bug-cpio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cpio] build fixes for cpio-2.11


From: Peter O'Gorman
Subject: [Bug-cpio] build fixes for cpio-2.11
Date: Mon, 6 Sep 2010 17:27:16 -0500
User-agent: Mutt/1.5.20 (2009-12-10)

Hi,

We had some issues building cpio-2.11, some of which I can see are
already fixed in git.

1) Should use the Gnulib strtoumax module as strtoumax is used in rmt.c.
2) Allow compilation with c89 compilers by moving declaration after
statement in makepath.c before statement.
3) One of our systems (HPPA/HPUX 10.20) has a compiler that does not
know how to pack structs, however, on all the systems that we build for,
the cpio structs are the correct size when naturally aligned, including
hpux 10.20. To work around this, we patched am/pack.m4 to first check if
packing is required using a compile time test, and then only look for a
way to pack structs if needed. I tested that this works with Fedora's
arm-gp2x-linux cross-compiler, and indeed cpio_cv_explicit_pack gets set
to yes for that build.

Patches attached.

Peter
-- 
Peter O'Gorman
address@hidden

Attachment: 0001-Use-the-Gnulib-strtoumax-module.patch
Description: Text document

Attachment: 0002-Fix-c99-decl-after-statement.patch
Description: Text document

Attachment: 0003-Check-if-struct-packing-is-required.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]