Hello community, here is the log from the commit of package trustedgrub for openSUSE:Factory checked in at 2017-04-11 09:41:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trustedgrub (Old) and /work/SRC/openSUSE:Factory/.trustedgrub.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trustedgrub" Tue Apr 11 09:41:43 2017 rev:25 rq:485090 version:1.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/trustedgrub/trustedgrub.changes 2013-07-26 15:59:16.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.trustedgrub.new/trustedgrub.changes 2017-04-11 09:41:43.334245784 +0200 @@ -1,0 +2,5 @@ +Sun Apr 2 20:55:14 UTC 2017 - [email protected] + +- grub-no-pie.patch: disable PIE building. + +------------------------------------------------------------------- New: ---- grub-no-pie.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trustedgrub.spec ++++++ --- /var/tmp/diff_new_pack.l93QO5/_old 2017-04-11 09:41:44.234118664 +0200 +++ /var/tmp/diff_new_pack.l93QO5/_new 2017-04-11 09:41:44.234118664 +0200 @@ -1,7 +1,7 @@ # # spec file for package trustedgrub # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -57,6 +57,7 @@ Patch30: remove-buildid.diff Patch31: string-ops-fix Patch32: trustedgrub-automake.patch +Patch33: grub-no-pie.patch Url: http://trustedgrub.sf.net BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: Grand Unified Boot Loader with TPM support @@ -130,15 +131,16 @@ %patch30 %patch31 -p1 %patch32 +%patch33 -p1 %build perl -pi -e 's,/usr/share/grub/i386-pc,/usr/lib/grub,' docs/grub.texi autoreconf --force --install %ifarch x86_64 - EXTRACFLAGS=' -fno-stack-protector -fno-strict-aliasing -minline-all-stringops -m32 -fno-asynchronous-unwind-tables -fno-unwind-tables' + EXTRACFLAGS=' -fno-PIE -fno-stack-protector -fno-strict-aliasing -minline-all-stringops -m32 -fno-asynchronous-unwind-tables -fno-unwind-tables' %else - EXTRACFLAGS=' -fno-stack-protector -fno-strict-aliasing -minline-all-stringops -fno-asynchronous-unwind-tables -fno-unwind-tables' + EXTRACFLAGS=' -fno-PIE -fno-stack-protector -fno-strict-aliasing -minline-all-stringops -fno-asynchronous-unwind-tables -fno-unwind-tables' %endif -CFLAGS="$RPM_OPT_FLAGS -Os -DNDEBUG -W -Wall -Wpointer-arith $EXTRACFLAGS" ./configure \ +LDFLAGS="-no-pie" CFLAGS="$RPM_OPT_FLAGS -Os -DNDEBUG -W -Wall -Wpointer-arith $EXTRACFLAGS" ./configure \ --prefix=/usr --infodir=%{_infodir} --mandir=%{_mandir} --datadir=/usr/lib \ --disable-auto-linux-mem-opt --disable-xfs --disable-ffs --disable-ufs2 make ++++++ grub-no-pie.patch ++++++ Index: TrustedGRUB-1.1.3/acinclude.m4 =================================================================== --- TrustedGRUB-1.1.3.orig/acinclude.m4 +++ TrustedGRUB-1.1.3/acinclude.m4 @@ -57,7 +57,7 @@ else fi grub_cv_prog_objcopy_absolute=yes for link_addr in 2000 8000 7C00; do - if AC_TRY_COMMAND([${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec]); then : + if AC_TRY_COMMAND([${CC-cc} ${LDFLAGS} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec]); then : else AC_MSG_ERROR([${CC-cc} cannot link at address $link_addr]) fi
