From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/532 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: compatability: heirloom-utils +.5, libarchive -1 Date: Tue, 3 Jan 2012 12:49:57 -0500 Message-ID: <20120103174957.GZ132@brightrain.aerifal.cx> 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 1325614125 19277 80.91.229.12 (3 Jan 2012 18:08:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2012 18:08:45 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-533-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jan 03 19:08:39 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 1Ri8mt-0004WH-4j for gllmg-musl@lo.gmane.org; Tue, 03 Jan 2012 19:08:39 +0100 Original-Received: (qmail 26449 invoked by uid 550); 3 Jan 2012 18:08:38 -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 26441 invoked from network); 3 Jan 2012 18:08:38 -0000 Content-Disposition: inline In-Reply-To: <20120103060600.2190fc2b@newbook> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:532 Archived-At: On Tue, Jan 03, 2012 at 06:06:00AM -0800, Isaac Dunham wrote: > I was building a kernel on Sabotage Linux (I'm using a rather modified > version already...), with initramfs enabled (which Sabotage does not > seem to support). make would die because it couldn't find a cpio.xz > archive, so I assumed I needed a full cpio and xz. > That wasn't the issue, but I found some more compatability stuff: > xz: Seems to build fine (well, selecting {en,de}coders may not work > right, but otherwise it builds unchanged) > 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 This sort of test is really backwards. The correct approach is to test conditionally for the (small, finite) set of known-broken libs (diet, etc.) and otherwise assume a working, conformant system. > libarchive: needs memory.h --I just dropped it, since the syntax isn't > exactly like string.h, and there are at least two other cpio > implementations Yes, memory.h is purely a nonstandard alias for string.h. > Also, could PATH_MAX be exported unconditionally, or is that > nonstandard? Currently, defining any of the standard compatability > macros enables it. > This is needed for the kernel to build without defining HOSTCFLAGS, > though it really wants -D_GNU_SOURCE I suspect there are other warnings that should really be errors when you try building without HOSTCFLAGS, and which might break on 64-bit systems due to int/pointer size mismatch. You really need to define the right feature-test macros for what it needs. Rich