Hello community, here is the log from the commit of package nmon for openSUSE:Factory checked in at 2016-07-14 09:47:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nmon (Old) and /work/SRC/openSUSE:Factory/.nmon.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nmon" Changes: -------- --- /work/SRC/openSUSE:Factory/nmon/nmon.changes 2016-06-19 12:53:49.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.nmon.new/nmon.changes 2016-07-14 09:47:28.000000000 +0200 @@ -1,0 +2,6 @@ +Fri Jul 8 17:32:36 UTC 2016 - [email protected] + +- Simplify build process a bit +- Build as PIE + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nmon.spec ++++++ --- /var/tmp/diff_new_pack.674Rr4/_old 2016-07-14 09:47:28.000000000 +0200 +++ /var/tmp/diff_new_pack.674Rr4/_new 2016-07-14 09:47:28.000000000 +0200 @@ -58,26 +58,44 @@ %setup -q -T -c %{name}-%{version} %build -export build_cmd="-D JFS -D GETUSER -D LARGEMEM -D KERNEL_2_6_18 -Wno-unused %{SOURCE0} -o nmon -lncurses -lm -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" +export CFLAGS="%{optflags} \ + -fPIE \ + -D JFS \ + -D GETUSER \ + -D LARGEMEM \ + -D KERNEL_2_6_18 \ + %if 0%{?is_opensuse} + -Wno-unused \ + %else + -D SLES12 -Wno-unused \ + %endif + %{SOURCE0}" +export LDFLAGS="-o nmon \ + -lncurses \ + -lm \ + -Wl,--as-needed \ + -Wl,--no-undefined \ + -Wl,-z,relro,-z,now \ + -pie" %ifarch ppc ppc64 ppc64le -cc %{optflags} -D PPC \ - ${build_cmd} +cc $CFLAGS -D PPC \ + $LDFLAGS %endif %ifarch s390x -cc %{optflags} -D MAINFRAME \ - ${build_cmd} +cc $CFLAGS -D MAINFRAME \ + $LDFLAGS %endif -%ifarch %arm aarch64 -cc %{optflags} -D ARM \ - ${build_cmd} +%ifarch %{arm} aarch64 +cc $CFLAGS -D ARM \ + $LDFLAGS %endif -%ifarch %ix86 x86_64 -cc %{optflags} -D X86 \ - ${build_cmd} +%ifarch %{ix86} x86_64 +cc $CFLAGS -D X86 \ + $LDFLAGS %endif %install -install -D -m 0755 nmon %{buildroot}%{_bindir}/nmon +install -D -p -m 0755 nmon %{buildroot}%{_bindir}/nmon install -d %{buildroot}%{_mandir}/man1 help2man \ --help-option=-h \
