From owner-freebsd-ports-bugs@freebsd.org Sun May 1 20:00:59 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28C02B29266 for ; Sun, 1 May 2016 20:00:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0C4191D29 for ; Sun, 1 May 2016 20:00:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u41K0w0P026011 for ; Sun, 1 May 2016 20:00:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 209185] USE_LDCONFIG and not-shared *.so files Date: Sun, 01 May 2016 20:00:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vladimir.chukharev@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: exp-run? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2016 20:00:59 -0000 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.=