Source: dfc Severity: normal Tags: patch User: debian-powe...@lists.debian.org
Dear Maintainer, Using -std=c99 caused getopt.h not to be included when compiling the pkg. One could either remove it from the compilation or, as is the case in the patch attached, include getopt.h. Since it only fails with that error for ppc archs (ppc, ppc64 and ppc64el), I added it specifically for them in the patch. Thanks and regards.
diff -Nru dfc-3.0.5/debian/changelog dfc-3.0.5/debian/changelog --- dfc-3.0.5/debian/changelog 2014-10-07 06:32:48.000000000 -0400 +++ dfc-3.0.5/debian/changelog 2015-09-02 09:46:27.000000000 -0400 @@ -1,3 +1,10 @@ +dfc (3.0.5-0.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Added getopt.h to ppc architectures, to fix ftbfs. + + -- Fernando Seiti Furusato <ferse...@br.ibm.com> Wed, 02 Sep 2015 09:45:58 -0400 + dfc (3.0.5-0.1) unstable; urgency=medium * Non-maintainer upload. diff -Nru dfc-3.0.5/debian/patches/add-getopt.patch dfc-3.0.5/debian/patches/add-getopt.patch --- dfc-3.0.5/debian/patches/add-getopt.patch 1969-12-31 19:00:00.000000000 -0500 +++ dfc-3.0.5/debian/patches/add-getopt.patch 2015-09-02 09:45:52.000000000 -0400 @@ -0,0 +1,13 @@ +--- a/src/dfc.c ++++ b/src/dfc.c +@@ -73,6 +73,10 @@ + #include <libintl.h> + #endif /* NLS_ENABLED */ + ++#if defined(__PPC__) ++#include <getopt.h> ++#endif ++ + int + main(int argc, char *argv[]) + { diff -Nru dfc-3.0.5/debian/patches/series dfc-3.0.5/debian/patches/series --- dfc-3.0.5/debian/patches/series 1969-12-31 19:00:00.000000000 -0500 +++ dfc-3.0.5/debian/patches/series 2015-09-02 09:44:08.000000000 -0400 @@ -0,0 +1 @@ +add-getopt.patch