From owner-svn-ports-branches@freebsd.org Wed Feb 24 14:18:28 2021 Return-Path: Delivered-To: svn-ports-branches@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 22D1755E7D0; Wed, 24 Feb 2021 14:18:28 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dlyh40TRyz3KgH; Wed, 24 Feb 2021 14:18:28 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 032DE2DC6C; Wed, 24 Feb 2021 14:18:28 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 11OEIRQs040353; Wed, 24 Feb 2021 14:18:27 GMT (envelope-from fernape@FreeBSD.org) Received: (from fernape@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 11OEIRfc040351; Wed, 24 Feb 2021 14:18:27 GMT (envelope-from fernape@FreeBSD.org) Message-Id: <202102241418.11OEIRfc040351@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: fernape set sender to fernape@FreeBSD.org using -f From: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= Date: Wed, 24 Feb 2021 14:18:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r566476 - in branches/2021Q1/devel/newt: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: fernape X-SVN-Commit-Paths: in branches/2021Q1/devel/newt: . files X-SVN-Commit-Revision: 566476 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2021 14:18:28 -0000 Author: fernape Date: Wed Feb 24 14:18:27 2021 New Revision: 566476 URL: https://svnweb.freebsd.org/changeset/ports/566476 Log: MFH: r566474 devel/newt: does not register shared libs pkg info -b newt does not show any shared libraries despite the port installing one. The framework uses the output of readelf -d to know if the library has a SONAME and this ports does not add a SONAME if it does not detect the GNU linker. Then, the resulting package does not register any shared libraries. * Patch configure.ac to learn and detect LLVM linker so it adds the SONAME to the library. * Add USE_LDCONFIG (portlint wrongly complains about not installing shared libs) PR: 253712 Submitted by: masamory7@gmail.com Added: branches/2021Q1/devel/newt/files/patch-configure.ac - copied unchanged from r566474, head/devel/newt/files/patch-configure.ac Modified: branches/2021Q1/devel/newt/Makefile Directory Properties: branches/2021Q1/ (props changed) Modified: branches/2021Q1/devel/newt/Makefile ============================================================================== --- branches/2021Q1/devel/newt/Makefile Wed Feb 24 14:16:21 2021 (r566475) +++ branches/2021Q1/devel/newt/Makefile Wed Feb 24 14:18:27 2021 (r566476) @@ -2,7 +2,7 @@ PORTNAME= newt PORTVERSION= 0.52.20 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= https://releases.pagure.org/newt/ @@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libslang.so:devel/libslang2 \ libpopt.so:devel/popt -USES= gmake ncurses pathfix +USES= autoreconf gmake localbase ncurses pathfix GNU_CONFIGURE= yes MAKE_ENV= PCFLAGS="${CFLAGS}" USE_LDCONFIG= yes @@ -46,10 +46,8 @@ TCL_CPPFLAGS= -I${TCL_INCLUDEDIR:Q} SOVERSION= ${PORTVERSION:R:E} post-patch: + @${REINPLACE_CMD} -e 's|-DUSE_INTERP_RESULT||' ${WRKSRC}/configure.ac @${REINPLACE_CMD} -e \ - '/^SONAME/s|=.*|=${SOVERSION}| ; \ - s|-DUSE_INTERP_RESULT||' ${WRKSRC}/configure - @${REINPLACE_CMD} -e \ 's|@CPP@|@CC@ -E| ; \ s|-D_GNU_SOURCE|| ; \ s| -g | |g ; \ @@ -58,7 +56,7 @@ post-patch: post-patch-PYTHON-on: @${REINPLACE_CMD} -e \ - '/PYTHONVERS/s|=.*|=${PYTHON_VERSION}|' ${WRKSRC}/configure + '/PYTHONVERS/s|=.*|=${PYTHON_VERSION}|' ${WRKSRC}/configure.ac post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/whiptail Copied: branches/2021Q1/devel/newt/files/patch-configure.ac (from r566474, head/devel/newt/files/patch-configure.ac) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2021Q1/devel/newt/files/patch-configure.ac Wed Feb 24 14:18:27 2021 (r566476, copy of r566474, head/devel/newt/files/patch-configure.ac) @@ -0,0 +1,29 @@ +--- configure.ac.orig 2017-03-17 10:36:31 UTC ++++ configure.ac +@@ -2,7 +2,7 @@ AC_INIT([newt_pr.h]) + + PACKAGE=newt + VERSION=0.52.20 +-SONAME=0.52 ++SONAME=52 + + AC_CONFIG_HEADER([config.h]) + +@@ -24,7 +24,7 @@ AC_CHECK_SIZEOF([void *]) + AC_MSG_CHECKING([for GNU ld]) + LD=`$CC -print-prog-name=ld 2>&5` + +-if test `$LD -v 2>&1 | $ac_cv_path_GREP -c "GNU ld"` = 0; then ++if test `$LD -v 2>&1 | $ac_cv_path_GREP -c -E "GNU ld|compatible with GNU linkers"` = 0; then + # Not + GNU_LD="" + AC_MSG_RESULT([no]) +@@ -102,7 +102,7 @@ else + AC_SUBST([TCL_LIB_FLAG]) + WHIPTCLLIB=whiptcl + # needed with tcl8.6 +- CPPFLAGS="$CPPFLAGS -DUSE_INTERP_RESULT" ++ CPPFLAGS="$CPPFLAGS " + else + AC_MSG_RESULT([NOT found]) + fi