#1032011 gettext: Private library should go to private subdir under lib

Package:
gettext
Source:
gettext
Description:
GNU Internationalization utilities
Submitter:
Bastien Roucariès
Date:
2023-02-26 16:51:06 UTC
Severity:
normal
Tags:
#1032011#5
Date:
2023-02-26 14:57:45 UTC
From:
To:
Dear Maintainer,

Private library /libgettextsrc-0.21.so and libgettextlib-0.21.so should go to
private sudbir aka:
usr/lib/x86_64-linux-gnu/gettext/libgettextsrc-0.21.so
and
usr/lib/x86_64-linux-gnu/gettext/libgettextlib-0.21.so

This is an upstream bug that should be reported

Bastien

#1032011#10
Date:
2023-02-26 15:19:19 UTC
From:
To:
Hello.

Another report from Bastien.

Package: gettext
Version: 0.21-11
Severity: minor
Tags: upstream

Dear Maintainer,

Private library /libgettextsrc-0.21.so and libgettextlib-0.21.so should go to
private sudbir aka:
usr/lib/x86_64-linux-gnu/gettext/libgettextsrc-0.21.so
and
usr/lib/x86_64-linux-gnu/gettext/libgettextlib-0.21.so

This is an upstream bug that should be reported

Bastien

[...]

#1032011#13
Date:
2023-02-26 15:19:19 UTC
From:
To:
Hello.

Another report from Bastien.

Package: gettext
Version: 0.21-11
Severity: minor
Tags: upstream

Dear Maintainer,

Private library /libgettextsrc-0.21.so and libgettextlib-0.21.so should go to
private sudbir aka:
usr/lib/x86_64-linux-gnu/gettext/libgettextsrc-0.21.so
and
usr/lib/x86_64-linux-gnu/gettext/libgettextlib-0.21.so

This is an upstream bug that should be reported

Bastien

[...]

#1032011#18
Date:
2023-02-26 15:49:52 UTC
From:
To:
Santiago Vila wrote:

Summary:

- Doing so upstream would violate both the GNU Coding Standards and the
  File system Hierarchy Standard.

- You can do such things at the distro level, if you make sure that the
  dynamic linker will find the libraries there.

Details:

Upstream, I have to respect two standards:

  * The GNU Coding Standards [1] say that ${libdir) is "The directory for
    object files and libraries of object code." Very simple and unambiguous.

  * The File system Hierarchy Standard [2] gives me the choice between
    installing in /usr/lib or /usr/lib/gettext.
    But what you proposed is not /usr/lib/gettext, it is a subdirectory of
    /usr/lib/x86_64-linux-gnu !

At the distro level, the distro decides where to put things. But if you
put shared libraries in /usr/lib/x86_64-linux-gnu/gettext/ you will
either have to make sure that this directory is known to ld.so (via
ld.so.conf, I guess), or use RPATH headers in the binaries (which many
distributions don't like to do).

Note that in future gettext versions, libgettextlib may be integrated
into libgettextsrc. So, we would be talking about a subdirectory for just
a single library.

Bruno

[1] https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
[2] https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s06.html

#1032011#23
Date:
2023-02-26 16:48:13 UTC
From:
To:
Le dimanche 26 février 2023, 15:49:52 UTC Bruno Haible a écrit :

Please install at usr/lib/gettext not /usr/lib ... The arch stuff is distro stuff I agree

Bastien