Hello community,
here is the log from the commit of package master-boot-code for
openSUSE:Factory checked in at 2019-02-26 22:13:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/master-boot-code (Old)
and /work/SRC/openSUSE:Factory/.master-boot-code.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "master-boot-code"
Tue Feb 26 22:13:08 2019 rev:17 rq:677703 version:1.22
Changes:
--------
--- /work/SRC/openSUSE:Factory/master-boot-code/master-boot-code.changes
2013-12-11 11:30:27.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.master-boot-code.new.28833/master-boot-code.changes
2019-02-26 22:13:10.594258108 +0100
@@ -1,0 +2,6 @@
+Fri Feb 15 16:00:30 UTC 2019 - Dominique Leuenberger <[email protected]>
+
+- Add master-boot-code-objcopy.patch: only copy .text section
+ when invoking objcopy (boo#1125307).
+
+-------------------------------------------------------------------
New:
----
master-boot-code-objcopy.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ master-boot-code.spec ++++++
--- /var/tmp/diff_new_pack.SSF0uC/_old 2019-02-26 22:13:12.246257527 +0100
+++ /var/tmp/diff_new_pack.SSF0uC/_new 2019-02-26 22:13:12.250257526 +0100
@@ -1,7 +1,7 @@
#
# spec file for package master-boot-code
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -23,43 +23,38 @@
License: BSD-3-Clause
Group: System/Boot
Source0: %{name}-%{version}.tar.bz2
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+Patch0: master-boot-code-objcopy.patch
ExclusiveArch: %ix86 x86_64
%description
The i386 master boot code is code that, after copied to the MBR of the
boot disk, loads and starts the boot sector of the active partition.
-
-
Authors:
--------
Wolfgang Solfrank, TooLs GmbH
The Regents of the University of California
%prep
-%setup -n %{name}-%{version}
+%setup -q
+%patch0 -p1
%build
make
%install
-test -d $RPM_BUILD_ROOT/usr/lib/boot || mkdir -p $RPM_BUILD_ROOT/usr/lib/boot
-test -d $RPM_BUILD_ROOT/usr/sbin || mkdir -p $RPM_BUILD_ROOT/usr/sbin
-install -c -p -m 644 mbr512 $RPM_BUILD_ROOT/usr/lib/boot/master-boot-code
-install -c -p -m 644 mbr $RPM_BUILD_ROOT/usr/lib/boot/MBR
-install -c -p -m 755 fixmbr $RPM_BUILD_ROOT/usr/sbin/.
-
-%clean
-# Clear up the mess
-rm -rf $RPM_BUILD_ROOT;
+test -d %{buildroot}%{_prefix}/lib/boot || mkdir -p
%{buildroot}%{_prefix}/lib/boot
+test -d %{buildroot}%{_sbindir} || mkdir -p %{buildroot}%{_sbindir}
+install -c -p -m 644 mbr512 %{buildroot}%{_prefix}/lib/boot/master-boot-code
+install -c -p -m 644 mbr %{buildroot}%{_prefix}/lib/boot/MBR
+install -c -p -m 755 fixmbr %{buildroot}%{_sbindir}/.
%files
%defattr(-,root,root)
-%dir /usr/lib/boot
-%attr(644,root,root) /usr/lib/boot/master-boot-code
-%attr(644,root,root) /usr/lib/boot/MBR
-%attr(755,root,root) /usr/sbin/fixmbr
-%doc COPYING
+%dir %{_prefix}/lib/boot
+%attr(644,root,root) %{_prefix}/lib/boot/master-boot-code
+%attr(644,root,root) %{_prefix}/lib/boot/MBR
+%attr(755,root,root) %{_sbindir}/fixmbr
+%license COPYING
%changelog
++++++ master-boot-code-objcopy.patch ++++++
Index: master-boot-code-1.22/Makefile
===================================================================
--- master-boot-code-1.22.orig/Makefile
+++ master-boot-code-1.22/Makefile
@@ -8,7 +8,7 @@ mbr: mbr512
mbr512: mbr.S
gcc -m32 -c mbr.S -I. -DNO_BANNER -DNO_CHS -o mbr.o
ld -melf_i386 -e start -Ttext 0x600 mbr.o -o mbr_tmp
- objcopy -O binary mbr_tmp mbr512
+ objcopy -O binary -j .text mbr_tmp mbr512
clean:
-@rm -f mbr.o mbr mbr_tmp mbr512 fixmbr *~