|
Message-ID: <50834E01.2070101@barfooze.de> Date: Sun, 21 Oct 2012 03:21:05 +0200 From: John Spencer <maillist-musl@...fooze.de> To: musl@...ts.openwall.com Subject: Re: [PATCH 2/4] Add basic sys/cdefs.h found on most unix On 10/21/2012 02:39 AM, John Spencer wrote: > On 10/21/2012 02:38 AM, Abdoulaye Walsimou GAYE wrote: >> On 10/21/2012 02:11 AM, Rich Felker wrote: >>> As it stands, these libraries/apps won't work anywhere but GNU/Linux >>> (by "GNU/" I mean glibc-based) or BSD. If the offending code is >>> removed and replaced with what should be there, they'd be a lot more >>> portable. So I would not say sys/cdefs.h aids in porting them; I'd say >>> its presence gives these libs/apps a way to be lazy and >>> non-portable... >> >> I am not the writer of these applications and going to patch old >> applications >> that are there for a while is just not an option. > > why not ? >> >> >> May be it is incorrect, unfortunately it there for a while and some >> applications >> rely on it. >> > and can be patched easily, as sabotage does for example. > > from sabotage's 250 pkgs, only 2 needed patching: pkg/attr:sed -i 's@...EGIN_DECLS@@g' include/xattr.h pkg/elfutils: "s@...EGIN_DECLS@...def __cplusplus\nextern \"C\" {\n#endif@" \ (and the latter is not even in use anymore, since it is full of ugly glibc-specific code, i replaced it with libelf-compat, a cleaned up version)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.