See attached build log.
(Please do not complain about the need for looking at the build log until you can provide an easy way to open bugs with the correct data picked out of a tinderbox log. Thanks.)
Created attachment 244707 [details]
Created attachment 245181 [details, diff]
Patch to mess822-0.58-r1.ebuild to modernize the build system and respect LDFLAGS along the way
This was a bigger task than I expected going in. Upstream used custom thin wrappers to run the compiler, linker, and ar. Also, the make process itself tries to discover various system properties by building and running test programs. This has nasty consequences for cross-compilation, so I decided to fix that too. As a nice side effect, the build log is now informative since the commands are printed instead of just "./compile FILE", etc.. (The install phase is also done via a custom built application just for installing. That is left for another day.)
This patch addresses the following issues:
- Respect $LDFLAGS by converting link rules (originally done via ./load) to use Make's LINK.o variable.
- Respect $CPPFLAGS by using COMPILE.c (originally done via ./compile).
- Fix bad manual definition of read and write by replacing that header with an inclusion of <unistd.h>.
- Drop all the system inspection helpers in favor of manually creating the outputs they would have done. As best I can tell, everything they seek is specified in POSIX.1-2001, so it turned out to be nothing more than a series of one line headers that #include standard system headers.
- Fix conflicting definition of a package local function named 'puts' with different semantics than system puts, by renaming package local puts to avoid_system_puts.
+*mess822-0.58-r2 (06 Jun 2011)
+ 06 Jun 2011; Eray Aslan <firstname.lastname@example.org> +mess822-0.58-r2.ebuild,
+ Respect CFLAGS - bug #241056. Respect LDFLAGS - bug #334603. Restrict test -
+ bug #283172