Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 May 2016 20:00:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 209185] USE_LDCONFIG and not-shared *.so files
Message-ID:  <bug-209185-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209185

            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@FreeBSD.org
          Reporter: vladimir.chukharev@gmail.com
                CC: freebsd-ports-bugs@FreeBSD.org
             Flags: exp-run?

Created attachment 169857
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169857&action=
=3Dedit
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/deinst=
all.

Unfortunately, there is no way to differentiate internal use from shared on=
e.
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=3Dyes 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,15=
8,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,1=
77,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 gette=
xt
translation files, please define USES[+]=3Dgettext as appropriate
WARN: /usr/ports/math/geogebra/pkg-message: possible use of absolute pathna=
me
"/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 prob=
ably
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 sear=
ch
(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=3Dn=
o" 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 (1=
066)
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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209185-13>