From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/531 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: compatability: heirloom-utils +.5, libarchive -1 Date: Tue, 3 Jan 2012 18:38:08 +0100 Message-ID: <20120103173808.GH14961@port70.net> References: <20120103060600.2190fc2b@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1325612306 5617 80.91.229.12 (3 Jan 2012 17:38:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2012 17:38:26 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-532-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jan 03 18:38:22 2012 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Ri8JZ-0008Bx-Vs for gllmg-musl@lo.gmane.org; Tue, 03 Jan 2012 18:38:22 +0100 Original-Received: (qmail 11607 invoked by uid 550); 3 Jan 2012 17:38:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11599 invoked from network); 3 Jan 2012 17:38:21 -0000 Content-Disposition: inline In-Reply-To: <20120103060600.2190fc2b@newbook> User-Agent: Mutt/1.5.20 (2009-06-14) Xref: news.gmane.org gmane.linux.lib.musl.general:531 Archived-At: * Isaac Dunham [2012-01-03 06:06:00 -0800]: > heirloom-utils: They are trying to support other nonstandard linux > libcs, so they check for __GLIBC__ | __uclibc__ to determine whether > dirent.h is present & sufficient; if dietlibc is detected, both > unistd.h & dirent.h are used. The fallback is sys/dirent.h This should > probably be __linux__ | _POSIX_SOURCE triggers dirent.h inclusion, then > __diet__ triggers unistd.h; but if libc5/newlib are nonconformant here, > then that logic would be inadequate. i had to fix things in heirloom to be able to compile it with pcc+musl i did about the same hacks, but then i ran various tests and some of the more obscure tools failed so i figured heirloom is not that good quality, eg.: nl -b a -v 0 (i would never use nl but it turns out the build script mess of dash does ..for whatever reason) > Also, could PATH_MAX be exported unconditionally, or is that > nonstandard? Currently, defining any of the standard compatability > macros enables it. i think you cannot export it unconditionally PATH_MAX is in limits.h which is also specified by iso c so you cannot just export it if posix is not required explicitly > This is needed for the kernel to build without defining HOSTCFLAGS, > though it really wants -D_GNU_SOURCE > > Isaac