Re: pkg upgrade odity

From: Konstantin Belousov <kostikbel_at_gmail.com>
Date: Wed, 01 May 2024 09:24:40 UTC
On Wed, May 01, 2024 at 09:52:30AM +0200, Baptiste Daroussin wrote:
> 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

Note that DT_SONAME is optional.  If soname is identical to the file name,
it is not needed.