[Bug 209185] USE_LDCONFIG and not-shared *.so files

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 1 20:00:59 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209185

            Bug ID: 209185
           Summary: USE_LDCONFIG and not-shared *.so files
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr at FreeBSD.org
          Reporter: vladimir.chukharev at gmail.com
                CC: freebsd-ports-bugs at FreeBSD.org
             Flags: exp-run?

Created attachment 169857
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=169857&action=edit
patch

Some ports install *.so files for internal use only. Since the files are not
intended for shared use, there is no need to run ldconfig on install/deinstall.

Unfortunately, there is no way to differentiate internal use from shared one.
portlint produces a warning for each *.mo file and recommends to define
USE_LDCONFIG. We can see the warnings e.g. with math/geogebra.

 $ ( cd /usr/ports/math/geogebra ; DEVELOPER=yes portlint -agC )
WARN: /usr/ports/math/geogebra/pkg-plist:
[136,137,141,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187]:
installing shared libraries, please define USE_LDCONFIG as appropriate
WARN: /usr/ports/math/geogebra/pkg-plist:
[209,210,211,212,213,214,215,216,217,218,219,220,221,222]: installing gettext
translation files, please define USES[+]=gettext as appropriate
WARN: /usr/ports/math/geogebra/pkg-message: possible use of absolute pathname
"/proc".
0 fatal errors and 62 warnings found.

I mean at the moment only the first (grouped) warning: "installing shared
libraries, please define USE_LDCONFIG as appropriate". (The second one probably
also deserves some treatment. I do not volunteer to work on that.)

I've seen the same warnings from at least two more ports after a short search
(in multimedia category), so this is not unique case. I'd suspect that some
maintainers just follow the recommendation of portlint without actual need.

I propose a patch for Mk/bsd.ports.mk which allows to use "USE_LDCONFIG=no" as
an indicator of the fact that running ldconfig is not needed on
install/deinstall. Currently, this line leads to running ldconfig on a
directory named "no". And this results in an error from ldconfig.

I have tested the patch by rebuilding all ports installed on my computer (1066)
in a poudriere jail. Definitely an exp-run is needed to complete testing.

Also, some additions to Porters Handbook are needed in case this or similar
patch is accepted.


What are opinions? Is the proposed patch useful or just waste of time?

V.Chukharev

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list