Commit 64adcad0 authored by Didier Raboud's avatar Didier Raboud

Add patch to use the IPv4 127.0.0.1 address instead the 'localhost' name in…

Add patch to use the IPv4 127.0.0.1 address instead the 'localhost' name in tests, this could fix the reproducible builds
parent 161ebd8d
......@@ -19,6 +19,7 @@ tests-wait-on-unfinished-jobs-everytime.patch
tests-fix-ppdLocalize-on-unclean-env.patch
tests-use-cupsfilters.patch
tests-fix-mips-getjobs.patch
tests-use-ipv4-lo-address.patch
# Debian patches that upstream doesn't want to fix
move-cupsd-conf-default-to-share.patch
......
Description: Use 127.0.0.1 instead of localhost in the test-suite. This should make the test-suite work in pbuilder.
Author: Didier Raboud <odyx@debian.org>
Origin: vendor
Last-Update: 2015-08-06
--- a/test/run-stp-tests.sh
+++ b/test/run-stp-tests.sh
@@ -504,7 +504,7 @@
cat >$BASE/cupsd.conf <<EOF
StrictConformance Yes
Browsing Off
-Listen localhost:$port
+Listen 127.0.0.1:$port
Listen $BASE/sock
PassEnv LOCALEDIR
PassEnv DYLD_INSERT_LIBRARIES
@@ -633,7 +633,7 @@
export SHLIB_PATH
CUPS_DISABLE_APPLE_DEFAULT=yes; export CUPS_DISABLE_APPLE_DEFAULT
-CUPS_SERVER=localhost:$port; export CUPS_SERVER
+CUPS_SERVER=127.0.0.1:$port; export CUPS_SERVER
CUPS_SERVERROOT=$BASE; export CUPS_SERVERROOT
CUPS_STATEDIR=$BASE; export CUPS_STATEDIR
CUPS_DATADIR=$BASE/share; export CUPS_DATADIR
@@ -766,10 +766,10 @@
echo "" >>$strfile
if test $file = ipp-2.1.test; then
- uri="ipp://localhost:$port/printers/Test1"
+ uri="ipp://127.0.0.1:$port/printers/Test1"
options="-V 2.1 -d NOPRINT=1 -f testfile.ps"
else
- uri="ipp://localhost:$port/printers"
+ uri="ipp://127.0.0.1:$port/printers"
options=""
fi
$VALGRIND ./ipptool -tI $options $uri $file >> $strfile
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment