package/libscrypt: bump to version 1.22
PATCH 1/1 package/libscrypt: bump to version 1.22
- Drop patch and use {C,LD}FLAGS_EXTRA which are available since
https://github.com/technion/libscrypt/commit/bdfec26744122e8f52a58bc086c89b27faaf5888
- While at it, also move PREFIX to LIBSCRYPT_MAKE_OPTS as advocated by Arnout in
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
- Update indentation in hash file (two spaces)
https://github.com/technion/libscrypt/compare/v1.21...v1.22
--- ...ions-to-CFLAGS-and-LDFLAGS-variables.patch | 34 ------------------- package/libscrypt/libscrypt.hash | 4 +-- package/libscrypt/libscrypt.mk | 14 +++++--- 3 files changed, 12 insertions(+), 40 deletions(-) delete mode 100644 package/libscrypt/0001-Allow-adding-options-to-CFLAGS-and-LDFLAGS-variables.patch
package/libscrypt/0001-Allow-adding-options-to-CFLAGS-and-LDFLAGS-variables.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From 097c5d9248f4afd34c73de5aba01a143ef784257 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Stefan=20S=C3=B8rensen?= <[email protected]> -Date: Tue, 14 Mar 2017 09:23:51 +0100 -Subject: [PATCH] Allow adding options to CFLAGS and LDFLAGS variables -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -This also removes a number of hard-coded CFLAGS, leaving it up to the -user to pass appropriate optimization/hardening flags. - -Signed-off-by: Stefan Sørensen <[email protected]> ---- - Makefile | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/Makefile b/Makefile -index 7022a4a..3098a9a 100644 ---- a/Makefile -+++ b/Makefile -@@ -5,8 +5,8 @@ MAKE_DIR ?= install -d - INSTALL_DATA ?= install - - CC?=gcc --CFLAGS?=-O2 -Wall -g -D_FORTIFY_SOURCE=2 -fstack-protector -fPIC --LDFLAGS?=-Wl,-z,now -Wl,-z,relro -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version -+override CFLAGS+=-fPIC -+override LDFLAGS+=-Wl,-z,now -Wl,-z,relro -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version - CFLAGS_EXTRA?=-Wl,-rpath=. - - all: reference --- -2.7.4 -
package/libscrypt/libscrypt.hash +2 -2
@@ -1,3 +1,3 @@ # Locally calculated -sha256 68e377e79745c10d489b759b970e52d819dbb80dd8ca61f8c975185df3f457d3 libscrypt-1.21.tar.gz -sha256 aacbfd9e19e5b38ea09616cebf0751ef0cc7b6a19ea0fd78f4b0598b2c503394 LICENSE +sha256 a2d30ea16e6d288772791de68be56153965fe4fd4bcd787777618b8048708936 libscrypt-1.22.tar.gz +sha256 aacbfd9e19e5b38ea09616cebf0751ef0cc7b6a19ea0fd78f4b0598b2c503394 LICENSE
package/libscrypt/libscrypt.mk +10 -4
@@ -4,23 +4,29 @@ # ################################################################################ -LIBSCRYPT_VERSION = 1.21 +LIBSCRYPT_VERSION = 1.22 LIBSCRYPT_SITE = $(call github,technion,libscrypt,v$(LIBSCRYPT_VERSION)) LIBSCRYPT_LICENSE = BSD-2-Clause LIBSCRYPT_LICENSE_FILES = LICENSE LIBSCRYPT_INSTALL_STAGING = YES +LIBSCRYPT_MAKE_OPTS = \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS_EXTRA="$(TARGET_CFLAGS)" \ + LDFLAGS_EXTRA="$(TARGET_LDFLAGS)" \ + PREFIX=/usr + define LIBSCRYPT_BUILD_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSCRYPT_MAKE_OPTS) endef define LIBSCRYPT_INSTALL_STAGING_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr \ + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSCRYPT_MAKE_OPTS) \ DESTDIR=$(STAGING_DIR) install endef define LIBSCRYPT_INSTALL_TARGET_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr \ + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSCRYPT_MAKE_OPTS) \ DESTDIR=$(TARGET_DIR) install endef
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Arnout Vandecappelle
AppliedQuoted 10 lines · Fabrice Fontaine
- Drop patch and use {C,LD}FLAGS_EXTRA which are available since
https://github.com/technion/libscrypt/commit/bdfec26744122e8f52a58bc086c89b27faaf5888
- While at it, also move PREFIX toLIBSCRYPT_MAKE_OPTSas advocated by Arnout in
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
- Update indentation in hash file (two spaces)https://github.com/technion/libscrypt/compare/v1.21...v1.22
Signed-off-by Fabrice Fontaine <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 85 lines
--- ...ions-to-CFLAGS-and-LDFLAGS-variables.patch | 34 ------------------- package/libscrypt/libscrypt.hash | 4 +-- package/libscrypt/libscrypt.mk | 14 +++++--- 3 files changed, 12 insertions(+), 40 deletions(-)delete mode 100644
package/libscrypt/0001-Allow-adding-options-to-CFLAGS-and-LDFLAGS-variables.patchpackage/libscrypt/0001-Allow-adding-options-to-CFLAGS-and-LDFLAGS-variables.patch deleted +0
-34@@ -1,34 +0,0 @@ -From 097c5d9248f4afd34c73de5aba01a143ef784257 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Stefan=20S=C3=B8rensen?= <[email protected]> -Date: Tue, 14 Mar 2017 09:23:51 +0100 -Subject: [PATCH] Allow adding options to CFLAGS and LDFLAGS variables -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -This also removes a number of hard-coded CFLAGS, leaving it up to the -user to pass appropriate optimization/hardening flags. - -Signed-off-by: Stefan Sørensen <[email protected]> ---- - Makefile | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/Makefile b/Makefile -index 7022a4a..3098a9a 100644 ---- a/Makefile -+++ b/Makefile -@@ -5,8 +5,8 @@ MAKE_DIR ?= install -d - INSTALL_DATA ?= install - - CC?=gcc --CFLAGS?=-O2 -Wall -g -D_FORTIFY_SOURCE=2 -fstack-protector -fPIC --LDFLAGS?=-Wl,-z,now -Wl,-z,relro -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version -+override CFLAGS+=-fPIC -+override LDFLAGS+=-Wl,-z,now -Wl,-z,relro -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version - CFLAGS_EXTRA?=-Wl,-rpath=. - - all: reference --- -2.7.4 -package/libscrypt/libscrypt.hash +2
-2@@ -1,3 +1,3 @@ # Locally calculated -sha256 68e377e79745c10d489b759b970e52d819dbb80dd8ca61f8c975185df3f457d3 libscrypt-1.21.tar.gz -sha256 aacbfd9e19e5b38ea09616cebf0751ef0cc7b6a19ea0fd78f4b0598b2c503394 LICENSE +sha256 a2d30ea16e6d288772791de68be56153965fe4fd4bcd787777618b8048708936 libscrypt-1.22.tar.gz +sha256 aacbfd9e19e5b38ea09616cebf0751ef0cc7b6a19ea0fd78f4b0598b2c503394 LICENSEpackage/libscrypt/libscrypt.mk +8
-3@@ -4,23 +4,29 @@ # ################################################################################ -LIBSCRYPT_VERSION = 1.21 +LIBSCRYPT_VERSION = 1.22 LIBSCRYPT_SITE = $(call github,technion,libscrypt,v$(LIBSCRYPT_VERSION)) LIBSCRYPT_LICENSE = BSD-2-Clause LIBSCRYPT_LICENSE_FILES = LICENSE LIBSCRYPT_INSTALL_STAGING = YES +LIBSCRYPT_MAKE_OPTS = \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS_EXTRA="$(TARGET_CFLAGS)" \ + LDFLAGS_EXTRA="$(TARGET_LDFLAGS)" \ + PREFIX=/usr + define LIBSCRYPT_BUILD_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSCRYPT_MAKE_OPTS) endef define LIBSCRYPT_INSTALL_STAGING_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr \
package/libscrypt/libscrypt.mk line 32
Quoted 10 lines
package/libscrypt/libscrypt.mk +2
-1+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSCRYPT_MAKE_OPTS) \ DESTDIR=$(STAGING_DIR) install endef define LIBSCRYPT_INSTALL_TARGET_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr \ + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSCRYPT_MAKE_OPTS) \ DESTDIR=$(TARGET_DIR) install endef
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot