[Buildroot] [PATCH/next 1/1] package/libscrypt: bump to version 1.22

Fabrice Fontaine fontaine.fabrice at gmail.com
Tue Mar 1 23:21:11 UTC 2022


- 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/20220221172900.1937856-1-fontaine.fabrice@gmail.com/
- Update indentation in hash file (two spaces)

https://github.com/technion/libscrypt/compare/v1.21...v1.22

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
 ...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

diff --git a/package/libscrypt/0001-Allow-adding-options-to-CFLAGS-and-LDFLAGS-variables.patch b/package/libscrypt/0001-Allow-adding-options-to-CFLAGS-and-LDFLAGS-variables.patch
deleted file mode 100644
index a023a6fe1c..0000000000
--- a/package/libscrypt/0001-Allow-adding-options-to-CFLAGS-and-LDFLAGS-variables.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 097c5d9248f4afd34c73de5aba01a143ef784257 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Stefan=20S=C3=B8rensen?= <stefan.sorensen at spectralink.com>
-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 <stefan.sorensen at spectralink.com>
----
- 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
-
diff --git a/package/libscrypt/libscrypt.hash b/package/libscrypt/libscrypt.hash
index fda63d1c0d..fcdc4bbeeb 100644
--- a/package/libscrypt/libscrypt.hash
+++ b/package/libscrypt/libscrypt.hash
@@ -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
diff --git a/package/libscrypt/libscrypt.mk b/package/libscrypt/libscrypt.mk
index fa89ed31bc..d28bd4e900 100644
--- a/package/libscrypt/libscrypt.mk
+++ b/package/libscrypt/libscrypt.mk
@@ -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
 
-- 
2.34.1




More information about the buildroot mailing list