Your message dated Mon, 31 Oct 2016 21:26:19 -0300
with message-id
<of6831baa7.c8958286-on0025805e.00023a77-8325805e.00026...@notes.na.collabserv.com>
and subject line Re: dfc: FTBFS on ppc64el with "error: 'optarg' undeclared"
has caused the Debian Bug report #797786,
regarding dfc: FTBFS on ppc64el with "error: 'optarg' undeclared"
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
797786: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=797786
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: dfc
Severity: normal
Tags: patch
User: [email protected]
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 <[email protected]> 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
--- End Message ---
--- Begin Message ---
This can be closed, since dfc is now building on ppc64el.
--
Fernando Seiti Furusato
Software Engineer
IBM Brazil - Linux Technology Center
--- End Message ---