gentoo/eudev — pull request #20 by nvinson (2012-11-23 14:47:52+00:00)
Title: More fixes to 'make distcheck'

With the latest master pull (081d682b263decd8d4b60a8351de30c0e563f751), I see the error "Can't exec "./test-udev: No such file or directory" when running 'sudo make distcheck". I had some free time so I looked into fixing it.

This pull request is the result of that fix. It also fixes the following issues:
* make failing distcheck due to nonempty build directory
* Incorrect definition for CLONE_NEWNS macro in src/test/Makefile.am
* Updated sources to pull CLONE_NEWNS from linux/sched.h when _USE_GNU is not defined.
* Corrected paths in various source files and perl script.
* Changed fprintf() calls that had the %m format specifier to perror() calls (GNUism)
* Updated the test-udev.pl script to delete the test /sys directory (helped address the previously mentioned "nonempty build directory" problem)

I also changed how the VERSION macro is handled in src/test/Makefile.am. Originally it was defined with a default value of 1. It now is assigned to the string form of @VERSION@. Affected sources were also updated to use %s for version instead of %i in format strings.

Thanks!