[fink:package-submissions] #4921 fix doxgen-1.8.3.1-1 build for Xcode 9

Jack Howarth via Fink-tracker <[email protected]>
Newsgroups gmane.os.apple.fink.tracker
Message-ID </p/fink/package-submissions/4921/0105f6ba299799ac9ff35dd66ffb9a8be40fa483.package-submissions@fink.p.sourceforge.net>
Info file with Xcode 9 fix for doxygen.


Attachments:

- [doxygen.info](https://sourceforge.net/p/fink/package-submissions/_discuss/thread/56e428d3/2c30/attachment/doxygen.info) (2.4 kB; application/octet-stream)


---

** [package-submissions:#4921] fix doxgen-1.8.3.1-1 build for Xcode 9**

**Status:** open
**Group:** Undergoing_Validation
**Created:** Wed Jun 07, 2017 04:25 PM UTC by Jack Howarth
**Last Updated:** Wed Jun 07, 2017 04:25 PM UTC
**Owner:** nobody


The doxygen incorrectly passes -D__FreeBSD__=6 on darwin, according to Jeremy Huddleston Sequoia, which causes the build to fail with....

~~~
In file included from ./qcstring.h:46:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:88:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:163:11: fatal error: 'sys/endian.h' file not found
# include <sys/endian.h>
          ^~~~~~~~~~~~~~
1 warning and 1 error generated.
~~~

This is because the Xcode 9 release adds a new /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h file including...

~~~
#include <__config>
~~~

which tickles the include of the non-existant sys/endian.h header. 

The trivial fix is the Info file change...


~~~
Index: doxygen.info
===================================================================
RCS file: /cvsroot/fink/dists/10.9-libcxx/stable/main/finkinfo/devel/doxygen.info,v
retrieving revision 1.2
diff -u -r1.2 doxygen.info
--- doxygen.info	11 Oct 2016 12:16:52 -0000	1.2
+++ doxygen.info	7 Jun 2017 16:24:58 -0000
@@ -18,6 +18,7 @@
 PatchScript: <<
 	sed -e 's|@PREFIX@|%p|g' \
 		-e 's|@FINK_ARCH@|%m|g' <%{PatchFile} | patch -p1
+	perl -pi -e 's|-D__FreeBSD__=6||g' tmake/lib/macosx-c++/tmake.conf
 <<
 GCC: 4.0
 CompileScript: <<
~~~

which passes 'fink -m' against Xcode 9 beta on 10.12.


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/fink/package-submissions/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/fink/admin/package-submissions/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Fink-tracker mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.tracker
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.