Hi!
This FTBFS has been unresponded for 8 months, has a patch rotting for 6.
Sounds like NMU time.

Here's a debdiff that includes this and #833444.  I'll upload to DELAYED/7,
please yell if anything is wrong.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢰⠒⠀⣿⡁ 
⢿⡄⠘⠷⠚⠋⠀ ... what's the frequency of that 5V DC?
⠈⠳⣄⠀⠀⠀⠀
diff -Nru openhackware-0.4.1+git-20140423.c559da7c/debian/changelog 
openhackware-0.4.1+git-20140423.c559da7c/debian/changelog
--- openhackware-0.4.1+git-20140423.c559da7c/debian/changelog   2016-07-03 
22:53:56.000000000 +0200
+++ openhackware-0.4.1+git-20140423.c559da7c/debian/changelog   2018-04-15 
03:56:36.000000000 +0200
@@ -1,3 +1,11 @@
+openhackware (0.4.1+git-20140423.c559da7c-4.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with gcc-7 (Johannes Brandstätter). Closes: #871094.
+  * Make the build reproducible (Chris Lamb). Closes: #833444.
+
+ -- Adam Borowski <kilob...@angband.pl>  Sun, 15 Apr 2018 03:56:36 +0200
+
 openhackware (0.4.1+git-20140423.c559da7c-4) unstable; urgency=medium
 
   * d/patches/001_build.patch: pass -fno-stack-protector.  This is not
diff -Nru 
openhackware-0.4.1+git-20140423.c559da7c/debian/patches/002_reproducible-build.patch
 
openhackware-0.4.1+git-20140423.c559da7c/debian/patches/002_reproducible-build.patch
--- 
openhackware-0.4.1+git-20140423.c559da7c/debian/patches/002_reproducible-build.patch
        1970-01-01 01:00:00.000000000 +0100
+++ 
openhackware-0.4.1+git-20140423.c559da7c/debian/patches/002_reproducible-build.patch
        2018-04-15 03:56:12.000000000 +0200
@@ -0,0 +1,17 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2016-08-04
+
+--- openhackware-0.4.1+git-20140423.c559da7c.orig/Makefile
++++ openhackware-0.4.1+git-20140423.c559da7c/Makefile
+@@ -36,8 +36,8 @@ else
+ DEBUG:= \#
+ endif
+ 
+-BUILD_DATE:= $(shell date -u +%F)
+-BUILD_TIME:= $(shell date -u +%T)
++BUILD_DATE:= $(shell date -u --date="@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" 
+%F)
++BUILD_TIME:= $(shell date -u --date="@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" 
+%T)
+ 
+ OBJDIR:= .objs
+ DISTDIR:= .
diff -Nru 
openhackware-0.4.1+git-20140423.c559da7c/debian/patches/fix_gcc7_build_failures.patch
 
openhackware-0.4.1+git-20140423.c559da7c/debian/patches/fix_gcc7_build_failures.patch
--- 
openhackware-0.4.1+git-20140423.c559da7c/debian/patches/fix_gcc7_build_failures.patch
       1970-01-01 01:00:00.000000000 +0100
+++ 
openhackware-0.4.1+git-20140423.c559da7c/debian/patches/fix_gcc7_build_failures.patch
       2018-04-15 03:55:23.000000000 +0200
@@ -0,0 +1,65 @@
+--- openhackware-0.4.1+git-20140423.c559da7c.orig/src/bloc.c
++++ openhackware-0.4.1+git-20140423.c559da7c/src/bloc.c
+@@ -1249,6 +1249,7 @@ static int mem_ioctl (bloc_device_t *bd,
+     case MEM_SET_SIZE:
+         u32 = args;
+         bd->trks = (*u32 + bd->seclen - 1) / bd->seclen + 1;
++        __attribute__((fallthrough));
+     default:
+         ret = -1;
+         break;
+--- openhackware-0.4.1+git-20140423.c559da7c.orig/src/char.c
++++ openhackware-0.4.1+git-20140423.c559da7c/src/char.c
+@@ -154,6 +154,7 @@ int console_open (void)
+             CHARDEV_DPRINTF("one serial port\n");
+             register_outd = 1;
+             /* No break here */
++            __attribute__((fallthrough));
+         case CHARDEV_KBD:
+             CHARDEV_DPRINTF("one input port %d %d\n", n, i);
+             if (i < 16 && chardev_open(cur) == 0) {
+@@ -162,6 +163,7 @@ int console_open (void)
+             if (!register_outd)
+                 break;
+             /* No break here */
++            __attribute__((fallthrough));
+         case CHARDEV_DISPLAY:
+             CHARDEV_DPRINTF("one output port %d %d\n", n, j);
+             if (j < 16 && chardev_open(cur) == 0) {
+@@ -587,6 +589,7 @@ int adb_cmd (adb_dev_t *dev, uint8_t cmd
+     case ADB_LISTEN:
+         memcpy(adb_send + 1, buf, len);
+         /* No break here */
++        __attribute__((fallthrough));
+     case ADB_TALK:
+         adb_send[0] = (dev->addr << 4) | cmd | reg;
+         break;
+--- openhackware-0.4.1+git-20140423.c559da7c.orig/src/libc/src/format.c
++++ openhackware-0.4.1+git-20140423.c559da7c/src/libc/src/format.c
+@@ -281,6 +281,7 @@ int _vprintf(outf_t outf, void *private,
+                 goto next;
+             }
+             /* No break here */
++            __attribute__((fallthrough));
+         case '1' ... '9':
+             switch (maxfill) {
+             case -2:
+@@ -350,6 +351,7 @@ int _vprintf(outf_t outf, void *private,
+                 goto invalid;
+             } else {
+                 tmp = outc(outf, private, '%', maxlen - totlen);
++                __attribute__((fallthrough));
+             }
+         default:
+         invalid:
+--- openhackware-0.4.1+git-20140423.c559da7c.orig/src/of.c
++++ openhackware-0.4.1+git-20140423.c559da7c/src/of.c
+@@ -3000,7 +3000,7 @@ void OF_finalize_pci_ide (void *dev,
+ {
+     OF_env_t *OF_env = OF_env_main;
+     OF_node_t *pci_ata = dev;
+-    OF_node_t *ata, *atas[2];
++    OF_node_t *ata, *atas[2] = { NULL };
+     int i;
+ 
+     OF_prop_int_new(OF_env, pci_ata, "#address-cells", 1);
diff -Nru openhackware-0.4.1+git-20140423.c559da7c/debian/patches/series 
openhackware-0.4.1+git-20140423.c559da7c/debian/patches/series
--- openhackware-0.4.1+git-20140423.c559da7c/debian/patches/series      
2016-07-02 02:00:32.000000000 +0200
+++ openhackware-0.4.1+git-20140423.c559da7c/debian/patches/series      
2018-04-15 03:56:12.000000000 +0200
@@ -1 +1,3 @@
 001_build.patch
+002_reproducible-build.patch
+fix_gcc7_build_failures.patch

Reply via email to