SHA256
3
0
forked from pool/elfutils

Updating link to change in openSUSE:Factory/elfutils revision 102

OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=39ccb2c48e80ef05b57903c9e8d0112a
This commit is contained in:
OBS User buildservice-autocommit 2022-11-12 16:39:50 +00:00 committed by Git OBS Bridge
parent f83284710d
commit 359ccf4f11
4 changed files with 19 additions and 26 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Nov 9 15:31:15 UTC 2022 - Dirk Müller <dmueller@suse.com>
- align patches section
- remove date/time handling weirdness, elfutils does no longer
use __DATE__ or __TIME__ (as proven by the newly added -Werror=date-time)
-------------------------------------------------------------------
Mon Nov 7 08:38:51 UTC 2022 - Martin Liška <mliska@suse.cz>

View File

@ -26,10 +26,10 @@ URL: https://sourceware.org/elfutils/
#Git-Clone: git://sourceware.org/git/elfutils
Source: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfutils-%{version}.tar.bz2
Source1: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfutils-%{version}.tar.bz2.sig
Source2: elfutils.changes
Source3: elfutils.keyring
Source4: %{name}.sysusers
Patch1: harden_debuginfod.service.patch
Patch2: 0005-backends-Add-RISC-V-object-attribute-printing.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
@ -114,17 +114,7 @@ URL for a distribution.
%build
%sysusers_generate_pre %{SOURCE4} %{name} %{name}.conf
# Change DATE/TIME macros to use last change time of elfutils.changes
# See http://lists.opensuse.org/opensuse-factory/2011-05/msg00304.html
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""
find . -type f -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
# Set modversion used to verify dynamically loaded ebl backend matches to
# similarly predictable value [upstream default is hostname + date]
MODVERSION="suse-build `eval echo ${DATE} ${TIME}`"
sed --in-place "s/^MODVERSION=.*\$/MODVERSION=\"${MODVERSION}\"/" configure.ac
export CFLAGS="%optflags"
export CFLAGS="%optflags -Werror=date-time"
CFLAGS+=" -g" # tests need debug info enabled (boo#1031556)
%ifarch %sparc
# Small PIC model not sufficient

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Nov 9 15:31:15 UTC 2022 - Dirk Müller <dmueller@suse.com>
- align patches section
- remove date/time handling weirdness, elfutils does no longer
use __DATE__ or __TIME__ (as proven by the newly added -Werror=date-time)
-------------------------------------------------------------------
Mon Nov 7 08:38:51 UTC 2022 - Martin Liška <mliska@suse.cz>

View File

@ -27,10 +27,11 @@ URL: https://sourceware.org/elfutils/
Source: https://fedorahosted.org/releases/e/l/%{name}/%{version}/%{name}-%{version}.tar.bz2
Source1: README-BEFORE-ADDING-PATCHES
Source2: baselibs.conf
Source3: %{name}.changes
Source4: https://fedorahosted.org/releases/e/l/%{name}/%{version}/%{name}-%{version}.tar.bz2.sig
Source5: %{name}.keyring
Source6: elfutils-rpmlintrc
Patch1: harden_debuginfod.service.patch
Patch2: 0005-backends-Add-RISC-V-object-attribute-printing.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
@ -40,8 +41,6 @@ BuildRequires: libzstd-devel
BuildRequires: xz-devel
BuildRequires: zlib-devel
Patch24304: 0005-backends-Add-RISC-V-object-attribute-printing.patch
%description
elfutils is a collection of utilities and libraries to read, create
and modify ELF binary files, find and handle DWARF debug data,
@ -151,17 +150,7 @@ The package is dummy.
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
# Change DATE/TIME macros to use last change time of elfutils.changes
# See http://lists.opensuse.org/opensuse-factory/2011-05/msg00304.html
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""
find . -type f -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
# Set modversion used to verify dynamically loaded ebl backend matches to
# similarly predictable value [upstream default is hostname + date]
MODVERSION="suse-build `eval echo ${DATE} ${TIME}`"
sed --in-place "s/^MODVERSION=.*\$/MODVERSION=\"${MODVERSION}\"/" configure.ac
export CFLAGS="%optflags"
export CFLAGS="%optflags -Werror=date-time"
CFLAGS+=" -g" # tests need debug info enabled (boo#1031556)
%ifarch %sparc
# Small PIC model not sufficient