diff --git a/.gitignore b/.gitignore index 135e80b2b..bf9d28008 100644 --- a/.gitignore +++ b/.gitignore @@ -287,7 +287,6 @@ Makefile.in /perl/MYMETA.json /perl/MYMETA.yml /perl/pm_to_blib -/perl/run-perl-tests /php/extension/acinclude.m4 /php/extension/aclocal.m4 /php/extension/autom4te.cache diff --git a/configure.ac b/configure.ac index 71f7b069d..ea403c30e 100644 --- a/configure.ac +++ b/configure.ac @@ -1557,8 +1557,6 @@ AC_CONFIG_FILES([appliance/libguestfs-make-fixed-appliance], [chmod +x,-w appliance/libguestfs-make-fixed-appliance]) AC_CONFIG_FILES([inspector/test-xmllint.sh], [chmod +x,-w inspector/test-xmllint.sh]) -AC_CONFIG_FILES([perl/run-perl-tests], - [chmod +x,-w perl/run-perl-tests]) AC_CONFIG_FILES([pick-guests.pl], [chmod +x,-w pick-guests.pl]) AC_CONFIG_FILES([podwrapper.pl], diff --git a/perl/Makefile.PL.in b/perl/Makefile.PL.in index 4f12bc080..59b00d627 100644 --- a/perl/Makefile.PL.in +++ b/perl/Makefile.PL.in @@ -19,13 +19,13 @@ use Config; use ExtUtils::MakeMaker; WriteMakefile ( - FIRST_MAKEFILE => '@abs_builddir@/Makefile-pl', + FIRST_MAKEFILE => 'Makefile-pl', NAME => 'Sys::Guestfs', VERSION => '0.@MAX_PROC_NR@', - LIBS => '-L@abs_top_builddir@/src/.libs -lguestfs', - INC => '-I@abs_top_builddir@/src -I@abs_top_srcdir@/src', + LIBS => '-L@top_builddir@/src/.libs -lguestfs', + INC => '-I@top_builddir@/src -I@top_srcdir@/src', TYPEMAPS => [ '@srcdir@/typemap' ], CCFLAGS => $Config{ccflags} . ' -DGUESTFS_PRIVATE=1 @CFLAGS@', ); diff --git a/perl/Makefile.am b/perl/Makefile.am index 780024fda..7b8f5d3f8 100644 --- a/perl/Makefile.am +++ b/perl/Makefile.am @@ -64,20 +64,10 @@ TESTS_ENVIRONMENT = $(top_builddir)/run --test INSTALLDIRS = site all: Makefile-pl src_deps - $(MAKE) -C $(srcdir) -f $(abs_builddir)/Makefile-pl \ - INST_ARCHLIB=$(abs_builddir)/blib/arch \ - INST_SCRIPT=$(abs_builddir)/blib/script \ - INST_BIN=$(abs_builddir)/blib/bin \ - INST_LIB=$(abs_builddir)/blib/lib \ - INST_MAN1DIR=$(abs_builddir)/blib/man1 \ - INST_MAN3DIR=$(abs_builddir)/blib/man3 \ - TEST_FILES=$(abs_srcdir)/t/*.t + $(MAKE) -f Makefile-pl Makefile-pl: Makefile.PL - cd $(srcdir); \ - perl $(abs_builddir)/Makefile.PL \ - INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix) - sed -i 's,Makefile.PL,$(abs_builddir)/Makefile.PL,' $@ + perl Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix) # No! Otherwise it is deleted before the clean-local rule runs. #CLEANFILES = Makefile-pl diff --git a/perl/run-perl-tests.in b/perl/run-perl-tests similarity index 93% rename from perl/run-perl-tests.in rename to perl/run-perl-tests index 11278a81e..0e7e9aba1 100755 --- a/perl/run-perl-tests.in +++ b/perl/run-perl-tests @@ -18,4 +18,4 @@ set -e -make -C $srcdir -f @abs_builddir@/Makefile-pl test "$@" +make -f Makefile-pl test "$@" diff --git a/run.in b/run.in index 5bc9459df..272504c39 100755 --- a/run.in +++ b/run.in @@ -90,9 +90,9 @@ export LD_LIBRARY_PATH # For Perl. if [ -z "$PERL5LIB" ]; then - PERL5LIB="$s/perl/lib:$b/perl/blib/lib:$b/perl/blib/arch" + PERL5LIB="$b/perl/blib/lib:$b/perl/blib/arch" else - PERL5LIB="$s/perl/lib:$b/perl/blib/lib:$b/perl/blib/arch:$PERL5LIB" + PERL5LIB="$b/perl/blib/lib:$b/perl/blib/arch:$PERL5LIB" fi export PERL5LIB