From nobody Fri May 13 04:56:24 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1BA8A1AD357C; Fri, 13 May 2022 04:56:25 +0000 (UTC) (envelope-from git@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 4KzxF50D2qz4ZK0; Fri, 13 May 2022 04:56:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652417785; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HdWRCoUXXzIavhjzEwrWKLOU4PYdu4js8qXRPFaTH04=; b=B8rdIA8xBvKidYXz19nj1kFYhoVKudF1Avdu8cZ2Pxet5Wz81txKhXVcTKEK12XgDVi7n2 qX3gBpuobRatQwdUfsHYF2IxHTxHCZln7nZjdE4XF6HfnkJXmqMZXQPwf33DGO9+g61Mai b0Ym7jjizhU6pPvv0tQIpFR82sDZvMJy1Y12ZGdsavKzZcKEug0K1xGz+pc6YZMTt3b0Wp 8eJumEvM1MXee9w8nzSLq93z1aTAgE++TxwCpcC/p4/FRjFZE60tcE8eM66n+4mpD62J8h 5lsrIKOxImjMflcxuY6gEdwvr5elY9aYrqUWfJIUYqjsTzzMLavaZ/2ab+k5Og== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D822F1C54F; Fri, 13 May 2022 04:56:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24D4uOsc009211; Fri, 13 May 2022 04:56:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24D4uOlW009210; Fri, 13 May 2022 04:56:24 GMT (envelope-from git) Date: Fri, 13 May 2022 04:56:24 GMT Message-Id: <202205130456.24D4uOlW009210@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Xin LI Subject: git: 70f2348dba64 - main - databases/lmdb: Fix static library installation. List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 70f2348dba64651646fd99f5f87c751a6837f499 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652417785; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HdWRCoUXXzIavhjzEwrWKLOU4PYdu4js8qXRPFaTH04=; b=YAtdGoN8mjHpXgjB8RsE2X9kTpebPSeZaMWoKrMp1YfjCuEokaAO3KVyDke0mJToXckJDt 1tYxeO9V9crMdBVFNabD70pv8xmua9ty/CpyJ0fJHi6Ey+MDOoYRIl6OBRl4cO1CxaKtz/ e8aGvDShkOUEaRb0+RoteWwBucJgmJhU5hmoenZ7Oph4/UBmjJQ1kqz49oKuZfEjrTiJ/M H+E0iMeGh1mCS7+5GLq2/QyMJ+ZzuBWJdZ6C52VcHslR4zFX6SyCUhdTwj79pV7XJK6rF5 uZGT9S9ugn3zr8f6l+KJL26K6glc3qWVDsWp1/UaDdEU4vdUyYDkEcBF3zrw2g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652417785; a=rsa-sha256; cv=none; b=m1mBCXuJevZmGPSRjA89zfhsx9Um/Bz9nXKnx7kZ+ghNiOJRLiRDdX7tYaCEijp0BxST/u 4ZLPkp4DsY36ZgRUbE+evxVhDw/koKzgUHg4uX/G8uZlYQa0SoytwDMT7OmE8ohO0OtTsc KqTafk8VLSZBlbS5LyZnr0KSkR2W2pt2EgfruIKGJQV5SucWh/qdk5z7XYISY4fjOwsMBv rk8dGpKcAvhzrW+ZDo6kPL48NDL38QPXxTIBoQBC83BjQhUzj7mRYqgv6mPGRWIW8xt+RG c1rNOGI8LQ4vAazEThybrPG98H6fYmKpof0WSj9XStpUW2aVYn0yl80CFXsknQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/ports/commit/?id=70f2348dba64651646fd99f5f87c751a6837f499 commit 70f2348dba64651646fd99f5f87c751a6837f499 Author: Xin LI AuthorDate: 2022-05-13 04:54:40 +0000 Commit: Xin LI CommitDate: 2022-05-13 04:54:40 +0000 databases/lmdb: Fix static library installation. INSTALL_LIB will strip symbols, and should not be used for static libraries. PR: ports/263884 Reported by: yuri MFH: 2022Q2 --- databases/lmdb/Makefile | 1 + databases/lmdb/files/patch-Makefile | 27 ++++++++++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/databases/lmdb/Makefile b/databases/lmdb/Makefile index 325721a9f62e..1b50dd00d951 100644 --- a/databases/lmdb/Makefile +++ b/databases/lmdb/Makefile @@ -2,6 +2,7 @@ PORTNAME= lmdb PORTVERSION= 0.9.29 +PORTREVISION= 1 DISTVERSIONPREFIX= ${PORTNAME:tu}_ PORTEPOCH= 1 CATEGORIES= databases diff --git a/databases/lmdb/files/patch-Makefile b/databases/lmdb/files/patch-Makefile index 40fd5d1cd596..b7600527676e 100644 --- a/databases/lmdb/files/patch-Makefile +++ b/databases/lmdb/files/patch-Makefile @@ -1,6 +1,6 @@ ---- Makefile.orig 2016-12-28 18:36:01 UTC +--- Makefile.orig 2021-03-16 16:41:19 UTC +++ Makefile -@@ -23,17 +23,17 @@ AR = ar +@@ -23,22 +23,24 @@ OPT = -O2 -g W = -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized THREADS = -pthread OPT = -O2 -g @@ -22,7 +22,15 @@ ######################################################################## -@@ -49,10 +49,10 @@ install: $(ILIBS) $(IPROGS) $(IHDRS) + IHDRS = lmdb.h +-ILIBS = liblmdb.a liblmdb$(SOEXT) ++LIBS = liblmdb.a ++SHLIBS = liblmdb$(SOEXT) ++ILIBS = $(LIBS) $(SHLIBS) + IPROGS = mdb_stat mdb_copy mdb_dump mdb_load + IDOCS = mdb_stat.1 mdb_copy.1 mdb_dump.1 mdb_load.1 + PROGS = $(IPROGS) mtest mtest2 mtest3 mtest4 mtest5 +@@ -49,10 +51,11 @@ install: $(ILIBS) $(IPROGS) $(IHDRS) mkdir -p $(DESTDIR)$(libdir) mkdir -p $(DESTDIR)$(includedir) mkdir -p $(DESTDIR)$(mandir)/man1 @@ -31,21 +39,18 @@ - for f in $(IHDRS); do cp $$f $(DESTDIR)$(includedir); done - for f in $(IDOCS); do cp $$f $(DESTDIR)$(mandir)/man1; done + for f in $(IPROGS); do $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir); done -+ for f in $(ILIBS); do $(INSTALL_LIB) $$f $(DESTDIR)$(libdir); done ++ for f in $(LIBS); do $(INSTALL_DATA) $$f $(DESTDIR)$(libdir); done ++ for f in $(SHLIBS); do $(INSTALL_LIB) $$f $(DESTDIR)$(libdir); done + for f in $(IHDRS); do $(INSTALL_DATA) $$f $(DESTDIR)$(includedir); done + for f in $(IDOCS); do $(INSTALL_MAN) $$f $(DESTDIR)$(mandir)/man1; done clean: rm -rf $(PROGS) *.[ao] *.[ls]o *~ testdb -@@ -64,20 +64,30 @@ test: all - liblmdb.a: mdb.o midl.o - $(AR) rs $@ mdb.o midl.o +@@ -66,18 +69,28 @@ liblmdb$(SOEXT): mdb.lo midl.lo --liblmdb$(SOEXT): mdb.lo midl.lo --# $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS) + liblmdb$(SOEXT): mdb.lo midl.lo + # $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS) - $(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.lo midl.lo $(SOLIBS) -+ liblmdb$(SOEXT): mdb.lo midl.lo -+ # $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS) + $(CC) $(LDFLAGS) -pthread -shared -Wl,-soname,$@ -o $@ mdb.lo midl.lo $(SOLIBS) mdb_stat: mdb_stat.o liblmdb.a