Merge ~paelzer/ubuntu/+source/ipxe:fix-FTFBS-gcc-10-GROOVY into ubuntu/+source/ipxe:ubuntu/groovy-devel

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: 4c53c7d83267e816fc832be961c24ec84b8c61a9
Merged at revision: 4c53c7d83267e816fc832be961c24ec84b8c61a9
Proposed branch: ~paelzer/ubuntu/+source/ipxe:fix-FTFBS-gcc-10-GROOVY
Merge into: ubuntu/+source/ipxe:ubuntu/groovy-devel
Diff against target: 79 lines (+45/-1)
4 files modified
debian/changelog (+8/-0)
debian/patches/build-Be-explicit-about-fcommon-compiler-directive.patch (+35/-0)
debian/patches/series (+1/-0)
debian/util/geniso (+1/-1)
Reviewer Review Type Date Requested Status
Andreas Hasenack Approve
Canonical Server Pending
git-ubuntu developers Pending
Review via email: mp+391674@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

The original issue is fixed, but the (much) later geniso has a problem as well.
Looking at that now.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Fixed the image size issue as well, branch ready for review.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

+1
I was wondering if the image size needed to be a power of 2 or something like that, and that adding 1 could break it, but I found nothing in the mkfs.msdos about that.

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

It already was a non power of two number of KB before. The one is added after the division, so we add a full KB.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

 * [new tag] upload/1.0.0+git-20190125.36a4c85-5ubuntu3 -> upload/1.0.0+git-20190125.36a4c85-5ubuntu3

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading ipxe_1.0.0+git-20190125.36a4c85-5ubuntu3.dsc: done.
  Uploading ipxe_1.0.0+git-20190125.36a4c85-5ubuntu3.debian.tar.xz: done.
  Uploading ipxe_1.0.0+git-20190125.36a4c85-5ubuntu3_source.buildinfo: done.
  Uploading ipxe_1.0.0+git-20190125.36a4c85-5ubuntu3_source.changes: done.
Successfully uploaded packages.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 303357b..98dbeb9 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+ipxe (1.0.0+git-20190125.36a4c85-5ubuntu3) groovy; urgency=medium
7+
8+ * d/p/build-Be-explicit-about-fcommon-compiler-directive.patch: fix
9+ FTBFS with gcc-10
10+ * d/util/geniso: fix FTBFS due to rounding issues
11+
12+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 01 Oct 2020 10:14:14 +0200
13+
14 ipxe (1.0.0+git-20190125.36a4c85-5ubuntu2) groovy; urgency=medium
15
16 * d/p/lp-1882671-efi-Raise-TPL-during-driver-entry-point.patch: fix the
17diff --git a/debian/patches/build-Be-explicit-about-fcommon-compiler-directive.patch b/debian/patches/build-Be-explicit-about-fcommon-compiler-directive.patch
18new file mode 100644
19index 0000000..5ea8978
20--- /dev/null
21+++ b/debian/patches/build-Be-explicit-about-fcommon-compiler-directive.patch
22@@ -0,0 +1,35 @@
23+From f982a712979619dbae2c6e0d741757e2ce94be11 Mon Sep 17 00:00:00 2001
24+From: Bruce Rogers <brogers@suse.com>
25+Date: Wed, 6 May 2020 15:03:02 -0600
26+Subject: [PATCH] [build] Be explicit about -fcommon compiler directive
27+
28+gcc10 switched default behavior from -fcommon to -fno-common. Since
29+"__shared" relies on the legacy behavior, explicitly specify it.
30+
31+Signed-off-by: Bruce Rogers <brogers@suse.com>
32+Modified-by: Michael Brown <mcb30@ipxe.org>
33+Signed-off-by: Michael Brown <mcb30@ipxe.org>
34+
35+Origin: upstream, https://github.com/ipxe/ipxe/commit/f982a712979619dbae2c6e0d741757e2ce94be11
36+Applied-Upstream: not yet, post 1.20.1
37+Last-Update: 2020-10-01
38+
39+---
40+ src/Makefile.housekeeping | 1 +
41+ 1 file changed, 1 insertion(+)
42+
43+diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
44+index 66d6dd449..b6c61c112 100644
45+--- a/src/Makefile.housekeeping
46++++ b/src/Makefile.housekeeping
47+@@ -418,6 +418,7 @@ CFLAGS += -Os
48+ CFLAGS += -g
49+ ifeq ($(CCTYPE),gcc)
50+ CFLAGS += -ffreestanding
51++CFLAGS += -fcommon
52+ CFLAGS += -Wall -W -Wformat-nonliteral
53+ HOST_CFLAGS += -Wall -W -Wformat-nonliteral
54+ endif
55+--
56+2.28.0
57+
58diff --git a/debian/patches/series b/debian/patches/series
59index d5c97a2..167b657 100644
60--- a/debian/patches/series
61+++ b/debian/patches/series
62@@ -2,3 +2,4 @@ debian-changes
63 handle-dhcp-nack.patch
64 0005-strip-802.1Q-VLAN-0-priority-tags.patch
65 lp-1882671-efi-Raise-TPL-during-driver-entry-point.patch
66+build-Be-explicit-about-fcommon-compiler-directive.patch
67diff --git a/debian/util/geniso b/debian/util/geniso
68index 13d9275..420533a 100755
69--- a/debian/util/geniso
70+++ b/debian/util/geniso
71@@ -32,7 +32,7 @@ cp /usr/lib/ISOLINUX/isolinux.bin ${dir}
72 cp /usr/lib/syslinux/modules/bios/ldlinux.c32 ${dir}
73
74 # generate EFI boot image
75-blocks=$((($(stat -c %s "$EFI") / 1024 + 55) / 32 * 32 ))
76+blocks=$(((($(stat -c %s "$EFI") / 1024 + 55) / 32 * 32 )+1))
77 mkfs.msdos -C ${dir}/efi.img $blocks >/dev/null
78 mmd -i ${dir}/efi.img ::efi
79 mmd -i ${dir}/efi.img ::efi/boot

Subscribers

People subscribed via source and target branches