Re: pkg upgrade odity

From: Alexander Leidinger <Alexander_at_Leidinger.net>
Date: Thu, 02 May 2024 07:54:16 UTC
Am 2024-05-02 09:33, schrieb Baptiste Daroussin:
> 2 mai 2024 à 09:28 "Alexander Leidinger" <Alexander@leidinger.net> a 
> écrit:
> 
> 
> 
>> 
>> Am 2024-05-01 09:52, schrieb Baptiste Daroussin:
>> 
>> >
>> > Le 30 avril 2024 23:30:16 GMT+02:00, Alexander Leidinger > <Alexander@Leidinger.net> a écrit :
>> >
>> > >
>> > > Am 2024-04-30 23:11, schrieb Baptiste Daroussin:
>> > >
>> >
>> >  Le 30 avril 2024 22:51:19 GMT+02:00, Alexander Leidinger >>> <Alexander@Leidinger.net> a écrit :
>> >
>> >  Am 2024-04-30 22:21, schrieb Baptiste Daroussin:
>> >
>> >  Le 30 avril 2024 13:18:41 GMT+02:00, Alexander Leidinger >>>>> <Alexander@Leidinger.net> a écrit :
>> >
>> >  >>>>>> Does this sound like "pkg check -B" would help here?
>> >
>> >  >>>>>> Bye,
>> >
>> >  Alexander.
>> >
>> >  >>>>> >>>>> Not at all! I need the output of pkg info -R --raw-format ucl >>>>> abseil
>> >
>> >  >>>> Output attached.
>> >
>> >  >>>>> This is a real issue on your system, which usually comes from local >>>>> building, is it your case?
>> >
>> >  >>>> It is my own build with poudriere-devel on another system, not build >>>> form ports on the system where the package was installed. The main >>>> differences to the official FreeBSD packages are WITH_PIE, >>>> WITH_BIND_NOW and WITH_RELRO (at least for abseil, some other ports >>>> may have some options like WITHOUT_X11).
>> >
>> >  >>>> Bye,
>> >
>> >  Alexander.
>> >
>> >  >>> >>> So pkg is right your package does not provide anymore the libraries >>> mosh requires!
>> >
>> >  >>> libabsl_strings is not in the provides.
>> >
>> > >
>> > > >> On the poudriere builder:
>> > >
>> > >  # tar -tvf >> /space/poudriere/data/packages/poudriere-bastille-default/All/abseil-20230125.3.pkg >> | grep libabsl_strings
>> > >
>> > >  lrwxr-xr-x 0 root wheel 0 10 Apr. 00:22 >> /usr/local/lib/libabsl_strings.so -> libabsl_strings.so.2301.0.0
>> > >
>> > >  -rwxr-xr-x 0 root wheel 99600 10 Apr. 00:22 >> /usr/local/lib/libabsl_strings.so.2301.0.0
>> > >
>> > >  lrwxr-xr-x 0 root wheel 0 10 Apr. 00:22 >> /usr/local/lib/libabsl_strings_internal.so -> >> libabsl_strings_internal.so.2301.0.0
>> > >
>> > >  -rwxr-xr-x 0 root wheel 9536 10 Apr. 00:22 >> /usr/local/lib/libabsl_strings_internal.so.2301.0.0
>> > >
>> > >  >> Bye,
>> > >
>> > >  Alexander.
>> > >
>> > >  > > > The thing it means it is that some of the .so files from devel/abseil > are not generated in a way that prevents pkg from extracting the SONAME > properly which has a big change to come from one of your non default > option (unrelated to x11 because the port has no x11 option)
>> > >
>> >
>> >  So it highlights a real problem
>> >
>> 
>> I've rebuild the abseil package and reinstalled it on the system in 
>> question. It was rebuild with an updated poudriere-devel 
>> (poudriere-git-3.4.99.20240424). Now pkg check -d doesn't complain 
>> about missing stuff anymore, and the raw pkg info output lists 
>> libabsl_strings.
>> 
>> Bye,
>> 
>> Alexander.
>> 
> 
> 
> Great, now the interesting part would be to know why the abseil package 
> had to be rebuilt in the first place, aka what was caussing the issue 
> either on the .so files themselves, or what potential bug of pkg was 
> trigger which made it unable to analyse properly those file.
> 
> Do you have a copy of the abseil package with the wrong 
> shlibs_provides?
> If yes I would love to be able to analyse it.

Uh, oh.... no. I used rm, not mv before rebuilding. And no zfs snapshot 
of packages or a backup of /var/cache/pkg or poudriere-builds.

And given that I see strange socket behavior on the -current system I 
could imagine (depending on how the package building is handled) that it 
may or may not be an issue inside pkg.

Bye,
Alexander.

-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF