From patchwork Sat Oct 16 10:37:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1542063 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=DgM5gGEl; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (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) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HWfkL1D6jz9sRR for ; Sat, 16 Oct 2021 21:38:32 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 2A5AC80C65; Sat, 16 Oct 2021 10:38:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tb0Xagnehwos; Sat, 16 Oct 2021 10:38:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 45E8580C8B; Sat, 16 Oct 2021 10:38:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 449A11BF870 for ; Sat, 16 Oct 2021 10:38:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 32A3B40227 for ; Sat, 16 Oct 2021 10:38:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tqaqxz1Dk0UA for ; Sat, 16 Oct 2021 10:38:24 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by smtp2.osuosl.org (Postfix) with ESMTPS id 854D840010 for ; Sat, 16 Oct 2021 10:38:24 +0000 (UTC) Received: by mail-wr1-x429.google.com with SMTP id r7so30914568wrc.10 for ; Sat, 16 Oct 2021 03:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6yMRHzsa/82mV8WLybwEuWC2Sp6b/mRyClRdkaay3BA=; b=DgM5gGElJfa4sHkBfw6DtGyAoKP/Ydf10AOgJK6Iq47/wbJQvbig2QlbkqVfogTXJu WQR5kc6d7t2/lQ0vb6OTN5+tG6bsNmjZvrgI6+HJz8OIgsi8Gb8SqU9mphcZsZ+SSPA6 U4ezdRDCYe1rygtHi2CMmjyFMqolyd+IIBZyYz/CECdOsj1QUF4GFP5XPZwMZXjP4Xwg 6t+9u0jzagSoZKFIylMsQx+eRlcHIzp5cSuAu3Tm0gEp/BziTxIfV9xyYdhfVXeaSwFg lP8/YffoNAEeI2BygZ0UBd0pQjFVDBoJWh8lEiuVUlkMolZ8/W+NkbufH3AwnbjAcgor 79PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6yMRHzsa/82mV8WLybwEuWC2Sp6b/mRyClRdkaay3BA=; b=sSjy5Gj93HqzW3tsD1d7cAITLp0k3c94tdlB+ahFXqldWzbZLdQLAWU+mTKWRo+PM8 WA4hvRwcCSKmNGGpQqcxL/CyKEla30yk82JqxZejv8zrOEqVUqCLEzyLpxl3j3oULCER PdyoE/yehh10GIQvB1BT6K/QVznhXZa4SssN47q48ynyfn7uYrlfYhcnmc8YrR+6KevJ puxn1oEuOD3mvy3ZmQu+qBni6iJYK8RPMLFQtksJADxeg5hDY202vN2nAX132CardgdR 1T37CkI0Zqzl4TGJzQCNmBGLupGahdfG+UqNWlh0IY9t6HwCboHaPvLesJEbuuMACPSM tY+Q== X-Gm-Message-State: AOAM533tQlxseb/rR8MdhSIoWf55bMH6QHFHue8f0mND2dxQLaRLguek I9yYqHQ/mtjOyoWiJ/Of5RUsLS1CTd8= X-Google-Smtp-Source: ABdhPJysuaLGk8k3LcXL37i9xDooDXMylKGLFblAV8KRDpARB8E1eQLgz596wMLVTghdCWtpncxHIw== X-Received: by 2002:adf:bb88:: with SMTP id q8mr20866008wrg.390.1634380702471; Sat, 16 Oct 2021 03:38:22 -0700 (PDT) Received: from kali.home (lfbn-ren-1-1732-95.w86-253.abo.wanadoo.fr. [86.253.44.95]) by smtp.gmail.com with ESMTPSA id t11sm7191047wrz.65.2021.10.16.03.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Oct 2021 03:38:21 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sat, 16 Oct 2021 12:37:11 +0200 Message-Id: <20211016103711.2732298-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/liblockfile: bump to version 1.17 X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" - MMU is mandatory since version 1.11 and https://github.com/miquels/liblockfile/commit/09b8935abac7417870d6fbb2db8c4f1c7c35f4b6 - DESTDIR must be used since version 1.10 and https://github.com/miquels/liblockfile/commit/d7fe38363feb6e0c7413b4edc79f478ea8d0a237 so drop custom commands (LIBLOCKFILE_INSTALL_{STAGING,TARGET}_CMDS) and replace patch by an upstreamable one - Update hash of COPYRIGHT and add licenses/{GPL-2,LGPL-2} to license files: https://github.com/miquels/liblockfile/commit/40f8d8092bbb88177d810131c1b1f96ad0ec0bf7 Signed-off-by: Fabrice Fontaine --- ...01-Makefile.in-fix-cross-compilation.patch | 82 +++++++++++++++++++ package/liblockfile/0001-install.patch | 16 ---- package/liblockfile/Config.in | 1 + package/liblockfile/liblockfile.hash | 10 ++- package/liblockfile/liblockfile.mk | 21 ++--- package/lockfile-progs/Config.in | 1 + package/usbmount/Config.in | 2 + 7 files changed, 98 insertions(+), 35 deletions(-) create mode 100644 package/liblockfile/0001-Makefile.in-fix-cross-compilation.patch delete mode 100644 package/liblockfile/0001-install.patch diff --git a/package/liblockfile/0001-Makefile.in-fix-cross-compilation.patch b/package/liblockfile/0001-Makefile.in-fix-cross-compilation.patch new file mode 100644 index 0000000000..bc85694f80 --- /dev/null +++ b/package/liblockfile/0001-Makefile.in-fix-cross-compilation.patch @@ -0,0 +1,82 @@ +From 7535d990645d867a6e491d16cd2548ea7e54958e Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Mon, 5 Apr 2021 16:21:32 +0200 +Subject: [PATCH] Makefile.in: fix cross-compilation + +- Use DESTDIR to install each files instead of prepending prefix with it + as this will result in dotlockfile being wrongly install in $(bindir) +- Use -f when creating symlink to avoid an error if link already exists +- Do not install files with root group as this will break + cross-compilation + +Signed-off-by: Fabrice Fontaine +[Upstream status: https://github.com/miquels/liblockfile/pull/11] +--- + Makefile.in | 36 ++++++++++++++++++------------------ + 1 file changed, 18 insertions(+), 18 deletions(-) + +diff --git a/Makefile.in b/Makefile.in +index 9c74b35..5ce8153 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -10,7 +10,7 @@ CFLAGS = @CFLAGS@ -I. + LDFLAGS = @LDFLAGS@ + CC = @CC@ + +-prefix = $(DESTDIR)@prefix@ ++prefix = @prefix@ + exec_prefix = @exec_prefix@ + bindir = @bindir@ + libdir = @libdir@ +@@ -60,34 +60,34 @@ dlockfile.o: lockfile.c + -c lockfile.c -o dlockfile.o + + install_static: static install_common +- install -d -m 755 -g root -p $(libdir) +- install -m 644 liblockfile.a $(libdir) ++ install -d -m 755 -p $(DESTDIR)$(libdir) ++ install -m 644 liblockfile.a $(DESTDIR)$(libdir) + + install_shared: shared install_static install_common +- install -d -m 755 -g root -p $(libdir) ++ install -d -m 755 -p $(DESTDIR)$(libdir) + install -m 755 liblockfile.so \ +- $(libdir)/liblockfile.so.$(SOVER) +- ln -s liblockfile.so.$(SOVER) $(libdir)/liblockfile.so.$(MAJOR) +- ln -s liblockfile.so.$(SOVER) $(libdir)/liblockfile.so ++ $(DESTDIR)$(libdir)/liblockfile.so.$(SOVER) ++ ln -sf liblockfile.so.$(SOVER) $(DESTDIR)$(libdir)/liblockfile.so.$(MAJOR) ++ ln -sf liblockfile.so.$(SOVER) $(DESTDIR)$(libdir)/liblockfile.so + if test "$(DESTDIR)" = ""; then @LDCONFIG@; fi + + install_common: +- install -d -m 755 -g root -p $(includedir) +- install -d -m 755 -g root -p $(bindir) +- install -d -m 755 -g root -p $(mandir)/man1 +- install -d -m 755 -g root -p $(mandir)/man3 +- install -m 644 lockfile.h maillock.h $(includedir) ++ install -d -m 755 -p $(DESTDIR)$(includedir) ++ install -d -m 755 -p $(DESTDIR)$(bindir) ++ install -d -m 755 -p $(DESTDIR)$(mandir)/man1 ++ install -d -m 755 -p $(DESTDIR)$(mandir)/man3 ++ install -m 644 lockfile.h maillock.h $(DESTDIR)$(includedir) + if [ "$(MAILGROUP)" != "" ]; then\ +- install -g $(MAILGROUP) -m 2755 dotlockfile $(bindir);\ ++ install -g $(MAILGROUP) -m 2755 dotlockfile $(DESTDIR)$(bindir);\ + else \ +- install -g root -m 755 dotlockfile $(bindir); \ ++ install -m 755 dotlockfile $(DESTDIR)$(bindir); \ + fi +- install -m 644 *.1 $(mandir)/man1 +- install -m 644 *.3 $(mandir)/man3 ++ install -m 644 *.1 $(DESTDIR)$(mandir)/man1 ++ install -m 644 *.3 $(DESTDIR)$(mandir)/man3 + + install_nfslib: nfslib +- install -d -m 755 -g root -p $(nfslockdir) +- install -m 755 nfslock.so.$(NFSVER) $(nfslockdir) ++ install -d -m 755 -p $(DESTDIR)$(nfslockdir) ++ install -m 755 nfslock.so.$(NFSVER) $(DESTDIR)$(nfslockdir) + if test "$(DESTDIR)" = ""; then @LDCONFIG@; fi + + test: test-stamp diff --git a/package/liblockfile/0001-install.patch b/package/liblockfile/0001-install.patch deleted file mode 100644 index bfa197c64f..0000000000 --- a/package/liblockfile/0001-install.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -ur liblockfile-1.06.1/Makefile.in liblockfile-1.06.1-patched/Makefile.in ---- liblockfile-1.06.1/Makefile.in 2001-03-16 22:08:33.000000000 -0600 -+++ liblockfile-1.06.1-patched/Makefile.in 2007-04-11 07:18:38.000000000 -0500 -@@ -60,11 +60,7 @@ - - install_common: - install -m 644 lockfile.h maillock.h $(ROOT)$(includedir) -- if [ "$(MAILGROUP)" != "" ]; then\ -- install -g $(MAILGROUP) -m 2755 dotlockfile $(ROOT)$(bindir);\ -- else \ -- install -g root -m 755 dotlockfile $(ROOT)$(bindir); \ -- fi -+ install -m 2755 dotlockfile $(ROOT)$(bindir);\ - install -m 644 *.1 $(ROOT)$(mandir)/man1 - install -m 644 *.3 $(ROOT)$(mandir)/man3 - diff --git a/package/liblockfile/Config.in b/package/liblockfile/Config.in index 83ffea86c8..30bdf462c8 100644 --- a/package/liblockfile/Config.in +++ b/package/liblockfile/Config.in @@ -1,5 +1,6 @@ config BR2_PACKAGE_LIBLOCKFILE bool "liblockfile" + depends on BR2_USE_MMU # fork() help NFS-safe locking library. diff --git a/package/liblockfile/liblockfile.hash b/package/liblockfile/liblockfile.hash index 881ad992ae..c2cacd6fed 100644 --- a/package/liblockfile/liblockfile.hash +++ b/package/liblockfile/liblockfile.hash @@ -1,5 +1,7 @@ -# From http://snapshot.debian.org/archive/debian/20151026T153523Z/pool/main/libl/liblockfile/liblockfile_1.09-6.dsc -sha256 16979eba05396365e1d6af7100431ae9d32f9bc063930d1de66298a0695f1b7f liblockfile_1.09.orig.tar.gz -sha256 d45eacb7c637c16d03c777c55989d98da494ae9584a0783fe6dbf0db60fa290f liblockfile_1.09-6.debian.tar.bz2 +# From https://snapshot.debian.org/archive/debian/20210128T210947Z/pool/main/libl/liblockfile/liblockfile_1.17-1.dsc +sha256 6e937f3650afab4aac198f348b89b1ca42edceb17fb6bb0918f642143ccfd15e liblockfile_1.17.orig.tar.gz +sha256 e3657c0e3facfeccb58900c0b48d56cd68ad5f9f24d1b4c6eaa69c26490fb673 liblockfile_1.17-1.debian.tar.bz2 # Locally computed -sha256 5fffcc11f94a05a7cff02ff792407737eb1cba840767cc1a71b67fbb19695dd3 COPYRIGHT +sha256 3d080ab931103a823e6b9b788ccbc3e9d44797bd54546f3feebfd305f90de46a COPYRIGHT +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 licenses/GPL-2 +sha256 b7993225104d90ddd8024fd838faf300bea5e83d91203eab98e29512acebd69c licenses/LGPL-2 diff --git a/package/liblockfile/liblockfile.mk b/package/liblockfile/liblockfile.mk index 0710868232..f472809ebc 100644 --- a/package/liblockfile/liblockfile.mk +++ b/package/liblockfile/liblockfile.mk @@ -4,26 +4,17 @@ # ################################################################################ -LIBLOCKFILE_VERSION = 1.09 +LIBLOCKFILE_VERSION = 1.17 LIBLOCKFILE_SOURCE = liblockfile_$(LIBLOCKFILE_VERSION).orig.tar.gz -LIBLOCKFILE_SITE = http://snapshot.debian.org/archive/debian/20151026T153523Z/pool/main/libl/liblockfile -LIBLOCKFILE_PATCH = liblockfile_$(LIBLOCKFILE_VERSION)-6.debian.tar.bz2 +LIBLOCKFILE_SITE = http://snapshot.debian.org/archive/debian/20210128T210947Z/pool/main/libl/liblockfile +LIBLOCKFILE_PATCH = liblockfile_$(LIBLOCKFILE_VERSION)-1.debian.tar.bz2 LIBLOCKFILE_LICENSE = LGPL-2.0+, GPL-2.0+ (dotlockfile) -LIBLOCKFILE_LICENSE_FILES = COPYRIGHT +LIBLOCKFILE_LICENSE_FILES = COPYRIGHT licenses/GPL-2 licenses/LGPL-2 +# We're patching Makefile.in +LIBLOCKFILE_AUTORECONF = YES LIBLOCKFILE_INSTALL_STAGING = YES LIBLOCKFILE_CONF_OPTS = --mandir=/usr/share/man -define LIBLOCKFILE_INSTALL_STAGING_CMDS - mkdir -p $(addprefix $(STAGING_DIR)/usr/share/man/man,1 3) - rm -f $(STAGING_DIR)/usr/lib/liblockfile.so - $(TARGET_MAKE_ENV) $(MAKE) -C $(LIBLOCKFILE_DIR) ROOT=$(STAGING_DIR) install - ln -sf liblockfile.so $(STAGING_DIR)/usr/lib/liblockfile.so.1 -endef - -define LIBLOCKFILE_INSTALL_TARGET_CMDS - cp -a $(STAGING_DIR)/usr/lib/liblockfile.so* $(TARGET_DIR)/usr/lib -endef - $(eval $(autotools-package)) diff --git a/package/lockfile-progs/Config.in b/package/lockfile-progs/Config.in index de101a9a15..b9dbca9600 100644 --- a/package/lockfile-progs/Config.in +++ b/package/lockfile-progs/Config.in @@ -1,5 +1,6 @@ config BR2_PACKAGE_LOCKFILE_PROGS bool "lockfile programs" + depends on BR2_USE_MMU # liblockfile select BR2_PACKAGE_LIBLOCKFILE help Build lockfile utility programs. diff --git a/package/usbmount/Config.in b/package/usbmount/Config.in index 8ce0ce7613..7760356b7c 100644 --- a/package/usbmount/Config.in +++ b/package/usbmount/Config.in @@ -1,5 +1,6 @@ config BR2_PACKAGE_USBMOUNT bool "usbmount" + depends on BR2_USE_MMU # lockfile-progs -> liblockfile depends on BR2_PACKAGE_HAS_UDEV select BR2_PACKAGE_LOCKFILE_PROGS help @@ -10,4 +11,5 @@ config BR2_PACKAGE_USBMOUNT https://wiki.debian.org/usbmount comment "usbmount requires udev to be enabled" + depends on BR2_USE_MMU depends on !BR2_PACKAGE_HAS_UDEV