package src:ustr user bootst...@debian.org usertags 721352 bootstrap thanks
Hi, First of all, thanks for taking care of ustr in Debian! As part of this year's "Bootstrappable Debian" Google Summer of Code project, Helmut Grohne turned my attention to ustr and its own way of build-time autoconfiguration. It seems that the best way to avoid problems when cross-building would be to turn all the checks to pure compile-time checks, with no need to run any of the just-compiled code (since in the general case the build machine cannot run any of it). So what do you think about the attached config-compile patch? It does just that - turns the 64-bitness and the stdint.h checks into purely compile-time ones (will this C source file be able to compile or not), and, well, cheats a little bit on the vsnprintf one by assuming a POSIX-compliant libc which implements the POSIX-standardized I/O interface, including the "as many characters as would have been stored" return value for vsnprintf() on short buffers. The truth is that I couldn't really think of a way to implement a compile-time check for vsnprintf's behavior, but this should work on any Debian system. Also attached is a second patch which borrows a bit from Matthias Klose's Ubuntu cross-building patch, but adapts it to the suggested "new way" of autoconfiguring ustr. I'm sorry to submit both these patches as Quilt patches instead of topgit branches; the reason for this is that the Git repository that Vcs-Git points to for ustr does not really seem to be a topgit one. If you let me know where can I get a topgit remote repository for the Debian packaging of ustr, I'd be happy to import these patches as debian/* topic branches. Thanks again for your Debian work, both on ustr and everything else! G'luck, Peter -- Peter Pentchev r...@ringlet.net r...@freebsd.org p.penc...@storpool.com PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
signature.asc
Description: Digital signature