Bug#671044: install-reloc is invoked with too many arguments
On Wed, May 02, 2012 at 12:43:48PM +0200, Sylvain wrote: > Hi Bruno, > > On Wed, May 02, 2012 at 03:43:00AM +0200, Bruno Haible wrote: > > Hi Sylvain, > > > > > I received the bug report below when compiling GNU FreeDink on > > > Debian/kFreeBSD and Debian/Hurd. > > > > > > It seems that there's an issue with install-reloc: > > > https://buildd.debian.org/status/fetch.php?pkg=freedink&arch=kfreebsd-amd64&ver=1.08.20120427-1&stamp=1335561117 > > > https://buildd.debian.org/status/fetch.php?pkg=freedink&arch=hurd-i386&ver=1.08.20120427-1&stamp=133752 > > > > > > RELOC_LIBRARY_PATH_VAR=LD_LIBRARY_PATH RELOC_LIBRARY_PATH_VALUE= > > > RELOC_PREFIX=/usr > > > RELOC_DESTDIR=/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/debian/freedink-engine > > > RELOC_COMPILE_COMMAND=gcc -g -O2 -Wall -std=c99 -I/usr/include/SDL > > > -D_GNU_SOURCE=1 -D_REENTRANT RELOC_SRCDIR=../gnulib/lib > > > RELOC_BUILDDIR=../gnulib/lib RELOC_CONFIG_H_DIR=.. RELOC_EXEEXT= > > > RELOC_STRIP_PROG=: RELOC_INSTALL_PROG=/usr/bin/install -c > > > ../autotools/install-reloc freedink freedinkedit > > > '/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/debian/freedink-engine/usr/games' > > > Usage: ../autotools/install-reloc library_path_var library_path_value > > > prefix destdir compile_command srcdir builddir config_h_dir exeext > > > strip_command install_command... destprog > > > > > > AFAICS 'install-reloc', when run with environment variables, expects > > > exactly: > > > - 1 executable > > > - 1 destprog dir > > > > > > In this case, the relocatable-prog macros invokes install-reloc with: > > > - 2 executables (freedink, freedinkedit) > > > - 1 destprog dir > > > > Indeed, when invoked with RELOC_* environment variables, 'install-reloc' > > was meant to install one program only. This was how it was meant to be > > invoked from Automake. But this changed in Automake on 2008-09-07, see > > http://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=4295fe33eb23fb9440ee6a7404ec064067266372 > > > > Can you please try this modified 'install-reloc' program instead? > > Save it and do a "chmod +x install-reloc" before you can use it. > > Does it help on hurd-i386 (or on kFreeBSD as well, without the other patch)? > > Thanks for the prompt fix :) > > The new install-reloc works correctly on GNU/kFreeBSD : > > test -z "/usr/games" || /bin/mkdir -p > "/usr/src/freedink-1.08.20120427/debian/freedink-engine/usr/games" >RELOC_LIBRARY_PATH_VAR=LD_LIBRARY_PATH RELOC_LIBRARY_PATH_VALUE= > RELOC_PREFIX=/usr > RELOC_DESTDIR=/usr/src/freedink-1.08.20120427/debian/freedink-engine > RELOC_COMPILE_COMMAND=gcc -g -O2 -Wall -std=c99 -I/usr/include/SDL > -D_GNU_SOURCE=1 -D_REENTRANT RELOC_SRCDIR=../gnulib/lib > RELOC_BUILDDIR=../gnulib/lib RELOC_CONFIG_H_DIR=.. RELOC_EXEEXT= > RELOC_STRIP_PROG=: RELOC_INSTALL_PROG=/usr/bin/install -c > ../autotools/install-reloc freedink freedinkedit > '/usr/src/freedink-1.08.20120427/debian/freedink-engine/usr/games' > /usr/bin/install -c freedink freedinkedit > /usr/src/freedink-1.08.20120427/debian/freedink-engine/usr/games > > Note, though, that FreeDink does not have its own libraries, to > install-reloc is just invoking 'install'. This didn't test the path > where install-reloc installs the wrapper. > > I'll try on Debian/Hurd when I have the environment ready. I tested the fix under Debian/Hurd. AFAICS it works :) I'll upload a new Debian version of FreeDink with the updated install-reloc so we'll see if the autobuilders agree. -- Sylvain -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#671044: install-reloc is invoked with too many arguments
Hi Bruno, On Wed, May 02, 2012 at 03:43:00AM +0200, Bruno Haible wrote: > Hi Sylvain, > > > I received the bug report below when compiling GNU FreeDink on > > Debian/kFreeBSD and Debian/Hurd. > > > > It seems that there's an issue with install-reloc: > > https://buildd.debian.org/status/fetch.php?pkg=freedink&arch=kfreebsd-amd64&ver=1.08.20120427-1&stamp=1335561117 > > https://buildd.debian.org/status/fetch.php?pkg=freedink&arch=hurd-i386&ver=1.08.20120427-1&stamp=133752 > > > > RELOC_LIBRARY_PATH_VAR=LD_LIBRARY_PATH RELOC_LIBRARY_PATH_VALUE= > > RELOC_PREFIX=/usr > > RELOC_DESTDIR=/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/debian/freedink-engine > > RELOC_COMPILE_COMMAND=gcc -g -O2 -Wall -std=c99 -I/usr/include/SDL > > -D_GNU_SOURCE=1 -D_REENTRANT RELOC_SRCDIR=../gnulib/lib > > RELOC_BUILDDIR=../gnulib/lib RELOC_CONFIG_H_DIR=.. RELOC_EXEEXT= > > RELOC_STRIP_PROG=: RELOC_INSTALL_PROG=/usr/bin/install -c > > ../autotools/install-reloc freedink freedinkedit > > '/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/debian/freedink-engine/usr/games' > > Usage: ../autotools/install-reloc library_path_var library_path_value > > prefix destdir compile_command srcdir builddir config_h_dir exeext > > strip_command install_command... destprog > > > > AFAICS 'install-reloc', when run with environment variables, expects > > exactly: > > - 1 executable > > - 1 destprog dir > > > > In this case, the relocatable-prog macros invokes install-reloc with: > > - 2 executables (freedink, freedinkedit) > > - 1 destprog dir > > Indeed, when invoked with RELOC_* environment variables, 'install-reloc' > was meant to install one program only. This was how it was meant to be > invoked from Automake. But this changed in Automake on 2008-09-07, see > http://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=4295fe33eb23fb9440ee6a7404ec064067266372 > > Can you please try this modified 'install-reloc' program instead? > Save it and do a "chmod +x install-reloc" before you can use it. > Does it help on hurd-i386 (or on kFreeBSD as well, without the other patch)? Thanks for the prompt fix :) The new install-reloc works correctly on GNU/kFreeBSD : test -z "/usr/games" || /bin/mkdir -p "/usr/src/freedink-1.08.20120427/debian/freedink-engine/usr/games" RELOC_LIBRARY_PATH_VAR=LD_LIBRARY_PATH RELOC_LIBRARY_PATH_VALUE= RELOC_PREFIX=/usr RELOC_DESTDIR=/usr/src/freedink-1.08.20120427/debian/freedink-engine RELOC_COMPILE_COMMAND=gcc -g -O2 -Wall -std=c99 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT RELOC_SRCDIR=../gnulib/lib RELOC_BUILDDIR=../gnulib/lib RELOC_CONFIG_H_DIR=.. RELOC_EXEEXT= RELOC_STRIP_PROG=: RELOC_INSTALL_PROG=/usr/bin/install -c ../autotools/install-reloc freedink freedinkedit '/usr/src/freedink-1.08.20120427/debian/freedink-engine/usr/games' /usr/bin/install -c freedink freedinkedit /usr/src/freedink-1.08.20120427/debian/freedink-engine/usr/games Note, though, that FreeDink does not have its own libraries, to install-reloc is just invoking 'install'. This didn't test the path where install-reloc installs the wrapper. I'll try on Debian/Hurd when I have the environment ready. Cheers! Sylvain -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#671044: install-reloc is invoked with too many arguments
Hi Sylvain, > I received the bug report below when compiling GNU FreeDink on > Debian/kFreeBSD and Debian/Hurd. > > It seems that there's an issue with install-reloc: > https://buildd.debian.org/status/fetch.php?pkg=freedink&arch=kfreebsd-amd64&ver=1.08.20120427-1&stamp=1335561117 > https://buildd.debian.org/status/fetch.php?pkg=freedink&arch=hurd-i386&ver=1.08.20120427-1&stamp=133752 > > RELOC_LIBRARY_PATH_VAR=LD_LIBRARY_PATH RELOC_LIBRARY_PATH_VALUE= > RELOC_PREFIX=/usr > RELOC_DESTDIR=/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/debian/freedink-engine > RELOC_COMPILE_COMMAND=gcc -g -O2 -Wall -std=c99 -I/usr/include/SDL > -D_GNU_SOURCE=1 -D_REENTRANT RELOC_SRCDIR=../gnulib/lib > RELOC_BUILDDIR=../gnulib/lib RELOC_CONFIG_H_DIR=.. RELOC_EXEEXT= > RELOC_STRIP_PROG=: RELOC_INSTALL_PROG=/usr/bin/install -c > ../autotools/install-reloc freedink freedinkedit > '/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/debian/freedink-engine/usr/games' > Usage: ../autotools/install-reloc library_path_var library_path_value > prefix destdir compile_command srcdir builddir config_h_dir exeext > strip_command install_command... destprog > > AFAICS 'install-reloc', when run with environment variables, expects > exactly: > - 1 executable > - 1 destprog dir > > In this case, the relocatable-prog macros invokes install-reloc with: > - 2 executables (freedink, freedinkedit) > - 1 destprog dir Indeed, when invoked with RELOC_* environment variables, 'install-reloc' was meant to install one program only. This was how it was meant to be invoked from Automake. But this changed in Automake on 2008-09-07, see http://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=4295fe33eb23fb9440ee6a7404ec064067266372 Can you please try this modified 'install-reloc' program instead? Save it and do a "chmod +x install-reloc" before you can use it. Does it help on hurd-i386 (or on kFreeBSD as well, without the other patch)? Bruno install-reloc Description: application/shellscript
Bug#671044: install-reloc is invoked with too many arguments
Hi, I received the bug report below when compiling GNU FreeDink on Debian/kFreeBSD and Debian/Hurd. It seems that there's an issue with install-reloc: https://buildd.debian.org/status/fetch.php?pkg=freedink&arch=kfreebsd-amd64&ver=1.08.20120427-1&stamp=1335561117 https://buildd.debian.org/status/fetch.php?pkg=freedink&arch=hurd-i386&ver=1.08.20120427-1&stamp=133752 RELOC_LIBRARY_PATH_VAR=LD_LIBRARY_PATH RELOC_LIBRARY_PATH_VALUE= RELOC_PREFIX=/usr RELOC_DESTDIR=/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/debian/freedink-engine RELOC_COMPILE_COMMAND=gcc -g -O2 -Wall -std=c99 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT RELOC_SRCDIR=../gnulib/lib RELOC_BUILDDIR=../gnulib/lib RELOC_CONFIG_H_DIR=.. RELOC_EXEEXT= RELOC_STRIP_PROG=: RELOC_INSTALL_PROG=/usr/bin/install -c ../autotools/install-reloc freedink freedinkedit '/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/debian/freedink-engine/usr/games' Usage: ../autotools/install-reloc library_path_var library_path_value prefix destdir compile_command srcdir builddir config_h_dir exeext strip_command install_command... destprog AFAICS 'install-reloc', when run with environment variables, expects exactly: - 1 executable - 1 destprog dir In this case, the relocatable-prog macros invokes install-reloc with: - 2 executables (freedink, freedinkedit) - 1 destprog dir So I believe 'install-reloc' does not take environment variables into account, and fails. Is this a bug in gnulib, or did I do something wrong? Cheers! Sylvain On Tue, May 01, 2012 at 03:57:41PM +0200, Christoph Egger wrote: > Package: src:freedink > Version: 1.08.20120427-1 > Severity: serious > Tags: sid wheezy > User: debian-...@lists.debian.org > Usertags: kfreebsd > X-Debbugs-Cc: debian-...@lists.debian.org > Justification: fails to build from source (but built successfully in the past) > > Hi! > > Your package failed to build on the kfreebsd-* buildds: > > Making install in src > make[3]: Entering directory > `/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/src' > make[4]: Entering directory > `/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/src' > test -z "/usr/games" || /bin/mkdir -p > "/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/debian/freedink-engine/usr/games" > test -z "/usr/share/man/man6" || /bin/mkdir -p > "/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/debian/freedink-engine/usr/share/man/man6" > RELOC_LIBRARY_PATH_VAR=LD_LIBRARY_PATH RELOC_LIBRARY_PATH_VALUE= > RELOC_PREFIX=/usr > RELOC_DESTDIR=/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/debian/freedink-engine > RELOC_COMPILE_COMMAND=gcc -g -O2 -Wall -std=c99 -I/usr/include/SDL > -D_GNU_SOURCE=1 -D_REENTRANT RELOC_SRCDIR=../gnulib/lib > RELOC_BUILDDIR=../gnulib/lib RELOC_CONFIG_H_DIR=.. RELOC_EXEEXT= > RELOC_STRIP_PROG=: RELOC_INSTALL_PROG=/usr/bin/install -c > ../autotools/install-reloc freedink freedinkedit > '/build/buildd-freedink_1.08.20120427-1-kfreebsd-amd64-I0HlF8/freedink-1.08.20120427/debian/freedink-engine/usr/games' > Usage: ../autotools/install-reloc library_path_var library_path_value prefix > destdir compile_command srcdir builddir config_h_dir exeext strip_command > install_command... destprog > make[4]: *** [install-binPROGRAMS] Error 1 > make[4]: *** Waiting for unfinished jobs > > Full build log at > https://buildd.debian.org/status/fetch.php?pkg=freedink&arch=kfreebsd-amd64&ver=1.08.20120427-1&stamp=1335561117 > > Regards > > Christoph > > If you have further questions please mail debian-...@lists.debian.org > > -- > 9FED 5C6C E206 B70A 5857 70CA 9655 22B9 D49A E731 > Debian Developer | Lisp Hacker | CaCert Assurer -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org