forked from pool/elfutils
Accepting request 1034953 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1034953 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/elfutils?expand=0&rev=102
This commit is contained in:
commit
9717429d4a
@ -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>
|
Mon Nov 7 08:38:51 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
@ -26,10 +26,10 @@ URL: https://sourceware.org/elfutils/
|
|||||||
#Git-Clone: git://sourceware.org/git/elfutils
|
#Git-Clone: git://sourceware.org/git/elfutils
|
||||||
Source: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfutils-%{version}.tar.bz2
|
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
|
Source1: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfutils-%{version}.tar.bz2.sig
|
||||||
Source2: elfutils.changes
|
|
||||||
Source3: elfutils.keyring
|
Source3: elfutils.keyring
|
||||||
Source4: %{name}.sysusers
|
Source4: %{name}.sysusers
|
||||||
Patch1: harden_debuginfod.service.patch
|
Patch1: harden_debuginfod.service.patch
|
||||||
|
Patch2: 0005-backends-Add-RISC-V-object-attribute-printing.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
@ -114,17 +114,7 @@ URL for a distribution.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%sysusers_generate_pre %{SOURCE4} %{name} %{name}.conf
|
%sysusers_generate_pre %{SOURCE4} %{name} %{name}.conf
|
||||||
# Change DATE/TIME macros to use last change time of elfutils.changes
|
export CFLAGS="%optflags -Werror=date-time"
|
||||||
# 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"
|
|
||||||
CFLAGS+=" -g" # tests need debug info enabled (boo#1031556)
|
CFLAGS+=" -g" # tests need debug info enabled (boo#1031556)
|
||||||
%ifarch %sparc
|
%ifarch %sparc
|
||||||
# Small PIC model not sufficient
|
# Small PIC model not sufficient
|
||||||
|
@ -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>
|
Mon Nov 7 08:38:51 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
@ -27,10 +27,11 @@ URL: https://sourceware.org/elfutils/
|
|||||||
Source: https://fedorahosted.org/releases/e/l/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
Source: https://fedorahosted.org/releases/e/l/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
||||||
Source1: README-BEFORE-ADDING-PATCHES
|
Source1: README-BEFORE-ADDING-PATCHES
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Source3: %{name}.changes
|
|
||||||
Source4: https://fedorahosted.org/releases/e/l/%{name}/%{version}/%{name}-%{version}.tar.bz2.sig
|
Source4: https://fedorahosted.org/releases/e/l/%{name}/%{version}/%{name}-%{version}.tar.bz2.sig
|
||||||
Source5: %{name}.keyring
|
Source5: %{name}.keyring
|
||||||
Source6: elfutils-rpmlintrc
|
Source6: elfutils-rpmlintrc
|
||||||
|
Patch1: harden_debuginfod.service.patch
|
||||||
|
Patch2: 0005-backends-Add-RISC-V-object-attribute-printing.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
@ -40,8 +41,6 @@ BuildRequires: libzstd-devel
|
|||||||
BuildRequires: xz-devel
|
BuildRequires: xz-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
|
||||||
Patch24304: 0005-backends-Add-RISC-V-object-attribute-printing.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
elfutils is a collection of utilities and libraries to read, create
|
elfutils is a collection of utilities and libraries to read, create
|
||||||
and modify ELF binary files, find and handle DWARF debug data,
|
and modify ELF binary files, find and handle DWARF debug data,
|
||||||
@ -151,17 +150,7 @@ The package is dummy.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||||
# Change DATE/TIME macros to use last change time of elfutils.changes
|
export CFLAGS="%optflags -Werror=date-time"
|
||||||
# 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"
|
|
||||||
CFLAGS+=" -g" # tests need debug info enabled (boo#1031556)
|
CFLAGS+=" -g" # tests need debug info enabled (boo#1031556)
|
||||||
%ifarch %sparc
|
%ifarch %sparc
|
||||||
# Small PIC model not sufficient
|
# Small PIC model not sufficient
|
||||||
|
Loading…
Reference in New Issue
Block a user