Control: tags -1 +patch pending Hi! While this RC bug is only 15 days old, I see that you're very busy -- and this package has already been NMUed 10 times in a row. Thus, I'm proposing a NMU.
Here's a patch, I'll schedule it for DELAYED/7. If anything is amiss, please yell. Meow! -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢰⠒⠀⣿⡁ Imagine there are bandits in your house, your kid is bleeding out, ⢿⡄⠘⠷⠚⠋⠀ the house is on fire, and seven big-ass trumpets are playing in the ⠈⠳⣄⠀⠀⠀⠀ sky. Your cat demands food. The priority should be obvious...
diff -Nru libopenraw-0.0.9/debian/changelog libopenraw-0.0.9/debian/changelog --- libopenraw-0.0.9/debian/changelog 2016-09-24 19:12:12.000000000 +0200 +++ libopenraw-0.0.9/debian/changelog 2018-01-16 04:26:20.000000000 +0100 @@ -1,3 +1,11 @@ +libopenraw (0.0.9-3.11) unstable; urgency=medium + + * Non-maintainer upload. + * Don't use /etc/hosts for a read tests, it might be missing. + (Closes: #885963) + + -- Adam Borowski <kilob...@angband.pl> Tue, 16 Jan 2018 04:26:20 +0100 + libopenraw (0.0.9-3.10) unstable; urgency=medium * Non-maintainer upload. diff -Nru libopenraw-0.0.9/debian/patches/04-file-read-test.patch libopenraw-0.0.9/debian/patches/04-file-read-test.patch --- libopenraw-0.0.9/debian/patches/04-file-read-test.patch 1970-01-01 01:00:00.000000000 +0100 +++ libopenraw-0.0.9/debian/patches/04-file-read-test.patch 2018-01-16 04:26:14.000000000 +0100 @@ -0,0 +1,24 @@ +Description: don't use /etc/hosts for a file read test + This file is no longer guaranteed to exist. Also, pretty much any conffile + is not guaranteed either. However, the file's contents doesn't matter, only + requirement is for it to be readable and be at least 10 bytes long. + . + So let's use /bin/sh, that's present on any POSIX system. +Author: Adam Borowski <kilob...@angband.pl> +Bug-Debian: https://bugs.debian.org/885963 + +--- libopenraw-0.0.9.orig/test/fileio.t.c ++++ libopenraw-0.0.9/test/fileio.t.c +@@ -33,10 +33,10 @@ int main (int argc, char **argv) + (void)argc; + (void)argv; + +- f = raw_open(get_default_io_methods(), "/etc/hosts", O_RDONLY); ++ f = raw_open(get_default_io_methods(), "/bin/sh", O_RDONLY); + + if (f == NULL) { +- fprintf(stderr, "failed to open /etc/hosts\n"); ++ fprintf(stderr, "failed to open /bin/sh\n"); + return 1; + } + fprintf(stderr, "error code is %d\n", raw_get_error(f)); diff -Nru libopenraw-0.0.9/debian/patches/series libopenraw-0.0.9/debian/patches/series --- libopenraw-0.0.9/debian/patches/series 2016-09-24 19:02:26.000000000 +0200 +++ libopenraw-0.0.9/debian/patches/series 2018-01-16 04:23:36.000000000 +0100 @@ -1,2 +1,3 @@ 01-fix_typos.patch 03-fix_boost_linking.patch +04-file-read-test.patch