Skip to contentSkip to conversation

New: hardcoded library paths in FILES section

Bug 214163 [email protected] 1 participant 3 messages Aug 24, 2021 – Aug 25, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=214163

            Bug ID: 214163
           Summary: hardcoded library paths in FILES section
           Product: Documentation
           Version: unspecified
          Hardware: x86-64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: man-pages
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

For example:

/usr/lib/gconv Usual default gconv module path.

This is not the default path for 64-bit native programs under openSUSE. The default path is:

* /usr/lib64/gconv for 64-bit native programs
* /usr/lib/gconv for 32-bit native programs

Therefore, it is not practical to patch the manual pages to replace lib with lib64, for example.

Manual pages should support multiple architectures as a concept.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

[Bug 214163] hardcoded library paths in FILES section

https://bugzilla.kernel.org/show_bug.cgi?id=214163

Michael Kerrisk ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |CODE_FIX

--- Comment #1 from Michael Kerrisk ([email protected]) --- I have applied the patch below. I'll close this now. Please reopen, if you think something further is needed. Thanks for the report.

Cheers,

Michael

man1/iconv.1 +4 -0
index 8207e1cea..826b7a754 100644
@@ -174,6 +174,10 @@ Usual system default gconv module configuration file.
 .TP
 .I /usr/lib/gconv/gconv\-modules.cache
 Usual system gconv module configuration cache.
+.PP
+Depending on the architecture,
+the above files may instead be located at directories with the path prefix
+.IR /usr/lib64 .
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH EXAMPLES
man8/iconvconfig.8 +4 -0
index d74132937..34725e4d5 100644
@@ -96,6 +96,10 @@ Usual system default gconv module configuration file.
 .TP
 .I /usr/lib/gconv/gconv\-modules.cache
 Usual system gconv module configuration cache.
+.PP
+Depending on the architecture,
+the above files may instead be located at directories with the path prefix
+.IR /usr/lib64 .
 .SH SEE ALSO
 .BR iconv (1),
 .BR iconv (3)
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#2 lore raw

[Bug 214163] hardcoded library paths in FILES section

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=214163

--- Comment #2 from Christopher Yeleighton ([email protected]) --- This is the fix for SUSE. I believe Debian has a different multiarch fs layout. But it can stay if the LFS says so.
In ldconfig(8) terms, we would probably take the subdirectory "gconv" of the "trusted directory" for the active architecture under /usr. I would appreciate a reference to that manual page containing the authoritative explanation of the concept.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.