3 Commits a971fe547a ... 8bfb9dc4c6

Author SHA1 Message Date
  Christoph Biedl 8bfb9dc4c6 vblade 24-4 3 years ago
  Christoph Biedl cbf7abef6c Pass pass cross tools to make. Closes: #958227 4 years ago
  Christoph Biedl 9d0309ac90 Fix build breakage with gcc-10 / -fno-common. Closes: #957908 4 years ago
4 changed files with 58 additions and 1 deletions
  1. 7 0
      debian/changelog
  2. 49 0
      debian/patches/fix-gcc-10.patch
  3. 1 0
      debian/patches/series
  4. 1 1
      debian/rules

+ 7 - 0
debian/changelog

@@ -1,3 +1,10 @@
+vblade (24-4) unstable; urgency=medium
+
+  * Fix build breakage with gcc-10 / -fno-common. Closes: #957908
+  * Pass pass cross tools to make. Closes: #958227
+
+ -- Christoph Biedl <debian.axhn@manchmal.in-ulm.de>  Sat, 25 Jul 2020 11:06:25 +0200
+
 vblade (24-3) unstable; urgency=medium
 
   * Improve init scripts

+ 49 - 0
debian/patches/fix-gcc-10.patch

@@ -0,0 +1,49 @@
+Subject: Fix build breakage with gcc-10 / -fno-common
+Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+Date: 2020-04-19
+Bug-Debian: https://bugs.debian.org/957908
+Forwarded: https://sourceforge.net/p/aoetools/mailman/message/36986207/
+
+--- a/dat.h
++++ b/dat.h
+@@ -163,12 +163,12 @@
+ 	Nserial= 20,
+ };
+ 
+-int	shelf, slot;
+-ulong	aoetag;
+-uchar	mac[6];
+-int	bfd;		// block file descriptor
+-int	sfd;		// socket file descriptor
+-vlong	size;		// size of vblade
+-vlong	offset;
+-char	*progname;
+-char	serial[Nserial+1];
++extern int	shelf, slot;
++extern ulong	aoetag;
++extern uchar	mac[6];
++extern int	bfd;		// block file descriptor
++extern int	sfd;		// socket file descriptor
++extern vlong	size;		// size of vblade
++extern vlong	offset;
++extern char	*progname;
++extern char	serial[Nserial+1];
+--- a/aoe.c
++++ b/aoe.c
+@@ -28,6 +28,16 @@
+ char *ifname;
+ int bufcnt = Bufcount;
+ 
++int	shelf, slot;
++ulong	aoetag;
++uchar	mac[6];
++int	bfd;		// block file descriptor
++int	sfd;		// socket file descriptor
++vlong	size;		// size of vblade
++vlong	offset;
++char	*progname;
++char	serial[Nserial+1];
++
+ void
+ aoead(int fd)	// advertise the virtual blade
+ {

+ 1 - 0
debian/patches/series

@@ -1,6 +1,7 @@
 
 # cherry-picked from upstream
 cherry-pick.vblade-24-1-g02afd36.support-for-vblade-persistence.patch
+fix-gcc-10.patch
 
 # to be upstreamed
 improve-init-scripts.patch

+ 1 - 1
debian/rules

@@ -19,7 +19,7 @@ override_dh_clean:
 	dh_clean
 
 override_dh_auto_build:
-	$(MAKE) PLATFORM=$(PLATFORM)
+	dh_auto_build --no-parallel -- PLATFORM=$(PLATFORM)
 
 override_dh_auto_install:
 	$(MAKE) install prefix=debian/vblade/usr