From 8b0395bd32d43638f57c8b788ba89250393de64faf590ca23c4dde4075966de7 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 12 Feb 2024 16:20:47 +0000 Subject: [PATCH] - jitterentropy-with-debug.patch: build with debuginfo (bsc#1207789) OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=17 --- jitterentropy-with-debug.patch | 24 ++++++++++++++++++++++++ jitterentropy.changes | 5 +++++ jitterentropy.spec | 1 + 3 files changed, 30 insertions(+) create mode 100644 jitterentropy-with-debug.patch diff --git a/jitterentropy-with-debug.patch b/jitterentropy-with-debug.patch new file mode 100644 index 0000000..0c46a0f --- /dev/null +++ b/jitterentropy-with-debug.patch @@ -0,0 +1,24 @@ +Index: jitterentropy-library-3.4.0/Makefile +=================================================================== +--- jitterentropy-library-3.4.0.orig/Makefile ++++ jitterentropy-library-3.4.0/Makefile +@@ -4,8 +4,8 @@ CC ?= gcc + #Hardening + ENABLE_STACK_PROTECTOR ?= 1 + CFLAGS ?= -fwrapv --param ssp-buffer-size=4 -fvisibility=hidden -fPIE -Wcast-align -Wmissing-field-initializers -Wshadow -Wswitch-enum +-CFLAGS +=-Wextra -Wall -pedantic -fPIC -O0 -fwrapv -Wconversion +-LDFLAGS +=-Wl,-z,relro,-z,now -lpthread ++CFLAGS +=-Wextra -Wall -pedantic -fPIC -O0 -fwrapv -Wconversion -g ++LDFLAGS +=-Wl,-z,relro,-z,now -lpthread -g + + # Enable internal timer support + CFLAGS += -DJENT_CONF_ENABLE_INTERNAL_TIMER +@@ -35,7 +35,7 @@ LIBDIR := lib + INCDIR := include + SRCDIR := src + +-INSTALL_STRIP ?= install -s ++INSTALL_STRIP ?= install + + NAME := jitterentropy + LIBMAJOR=$(shell cat $(SRCDIR)/jitterentropy-base.c | grep define | grep MAJVERSION | awk '{print $$3}') diff --git a/jitterentropy.changes b/jitterentropy.changes index 34d9f52..6333bad 100644 --- a/jitterentropy.changes +++ b/jitterentropy.changes @@ -14,6 +14,11 @@ Wed Mar 22 11:17:59 UTC 2023 - Pedro Monreal * github.com/smuellerDD/jitterentropy-library/commit/7bf9f85 * Add jitterentropy-fix-a-stack-corruption-on-s390x.patch +------------------------------------------------------------------- +Thu Jan 26 10:59:09 UTC 2023 - Marcus Meissner + +- jitterentropy-with-debug.patch: build with debuginfo (bsc#1207789) + ------------------------------------------------------------------- Tue Sep 13 12:34:39 UTC 2022 - Marcus Meissner diff --git a/jitterentropy.spec b/jitterentropy.spec index d17b77d..5e8a2fa 100644 --- a/jitterentropy.spec +++ b/jitterentropy.spec @@ -30,6 +30,7 @@ Source1: baselibs.conf #PATCH-FIX-UPSTREAM github.com/smuellerDD/jitterentropy-library/commit/7bf9f85 Patch0: jitterentropy-fix-a-stack-corruption-on-s390x.patch Patch1: jitterentropy-split-internal-header.patch +Patch2: jitterentropy-with-debug.patch %description The Jitter RNG provides a noise source using the CPU execution