[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Some file installed in /usr/local after refreshing debian/rules by dh-make-perl...



Hi Gregor,

thanks for the help and the patch. 

Le Mon, Jun 16, 2008 at 12:32:15AM +0200, gregor herrmann a écrit :
> 
> Hm, some questions:
> * Why do you need ./install - you could copy the static HTML from
>   debian/foo.html in debian/rules?

Good point. Now instead of patching, I just ignore ./install and
extracted by hand an appropriate index.html file that I store in the
debian directory.

> * What are you doing with the mv commands?

emboss-explorer depends on apache2 | httpd-cgi, but contains an
interesting Perl module that can be used to parse some files of the
EMBOSS bioinformatical software suite. With the mv commands, I move it
and its manpage to a separate Debian binary package, so that users can
install them without installing a webserver.

> * The directory you chown is not created.

Good catch, it is corrected now.


>From a Perl point of view, the package is getting in a good shape,
except that make distclean fails when run after a build:

In the following exemple, I build and then clean four times. Only after
the third the output stabilises.

chouca(emboss-explorer)$ fakeroot debian/rules build
test -d debian/patched || install -d debian/patched
dpatch  apply-all
applying patch 01-fix_examples to ./ ... ok.
applying patch 02-fix_Conf.pm to ./ ... ok.
applying patch 05-build-manpages to ./ ... ok.
dpatch  cat-all  >>patch-stampT
mv -f patch-stampT patch-stamp
dh_testdir
# Add commands to compile the package here
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
Checking if your kit is complete...
Looks good
Writing Makefile for EMBOSS::GUI
/usr/bin/make
make[1]: entrant dans le répertoire « /home/charles/debian/debian-med/trunk/packages/emboss-explorer/emboss-explorer »
cp lib/EMBOSS/ACD.pm blib/lib/EMBOSS/ACD.pm
cp lib/EMBOSS/GUI.pm blib/lib/EMBOSS/GUI.pm
cp lib/EMBOSS/GUI/Conf.pm blib/lib/EMBOSS/GUI/Conf.pm
cp lib/EMBOSS/GUI/XHTML.pm blib/lib/EMBOSS/GUI/XHTML.pm
cp bin/acdcheck blib/script/acdcheck
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/acdcheck
cp bin/mkstatic blib/script/mkstatic
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/mkstatic
Manifying blib/man1/acdcheck.1p
Manifying blib/man1/mkstatic.1p
Manifying blib/man3/EMBOSS::GUI.3pm
Manifying blib/man3/EMBOSS::ACD.3pm
Manifying blib/man3/EMBOSS::GUI::Conf.3pm
Manifying blib/man3/EMBOSS::GUI::XHTML.3pm
make[1]: quittant le répertoire « /home/charles/debian/debian-med/trunk/packages/emboss-explorer/emboss-explorer »
touch build-stamp

chouca(emboss-explorer)$ fakeroot debian/rules clean
dpatch  deapply-all
reverting patch 05-build-manpages from ./ ... ok.
reverting patch 02-fix_Conf.pm from ./ ... ok.
reverting patch 01-fix_examples from ./ ... ok.
rm -rf patch-stamp patch-stampT debian/patched
dh_testdir
dh_testroot
dh_clean build-stamp install-stamp
# Add commands to clean up after the build process here
[ ! -f Makefile ] || /usr/bin/make realclean
make[1]: entrant dans le répertoire « /home/charles/debian/debian-med/trunk/packages/emboss-explorer/emboss-explorer »
Makefile out-of-date with respect to Makefile.PL
Cleaning current config before rebuilding Makefile...
make -f Makefile.old clean > /dev/null 2>&1
/usr/bin/perl Makefile.PL "INSTALLDIRS=vendor"
Checking if your kit is complete...
Looks good
Writing Makefile for EMBOSS::GUI
==> Your Makefile has been rebuilt. <==
==> Please rerun the make command.  <==
false
make[1]: *** [Makefile] Erreur 1
make[1]: quittant le répertoire « /home/charles/debian/debian-med/trunk/packages/emboss-explorer/emboss-explorer »
make: *** [clean] Erreur 2

chouca(emboss-explorer)$ fakeroot debian/rules clean
dpatch  deapply-all
05-build-manpages not applied to ./ .
02-fix_Conf.pm not applied to ./ .
01-fix_examples not applied to ./ .
rm -rf patch-stamp patch-stampT debian/patched
dh_testdir
dh_testroot
dh_clean build-stamp install-stamp
# Add commands to clean up after the build process here
[ ! -f Makefile ] || /usr/bin/make realclean
make[1]: entrant dans le répertoire « /home/charles/debian/debian-med/trunk/packages/emboss-explorer/emboss-explorer »
rm -f \
          *.a core \
          core.[0-9] blib/arch/auto/EMBOSS/GUI/extralibs.all \
          core.[0-9][0-9] GUI.bso \
          pm_to_blib.ts core.[0-9][0-9][0-9][0-9] \
          GUI.x  \
          perl tmon.out \
          *.o pm_to_blib \
          blib/arch/auto/EMBOSS/GUI/extralibs.ld blibdirs.ts \
          core.[0-9][0-9][0-9][0-9][0-9] *perl.core \
          core.*perl.*.? Makefile.aperl \
          perl GUI.def \
          core.[0-9][0-9][0-9] mon.out \
          libGUI.def perlmain.c \
          perl.exe so_locations \
          GUI.exp
rm -rf \
          blib
mv Makefile Makefile.old > /dev/null 2>&1
rm -f \
          Makefile.old Makefile
rm -rf \
          EMBOSS-GUI-2.1
make[1]: quittant le répertoire « /home/charles/debian/debian-med/trunk/packages/emboss-explorer/emboss-explorer »

chouca(emboss-explorer)$ fakeroot debian/rules clean
dpatch  deapply-all
05-build-manpages not applied to ./ .
02-fix_Conf.pm not applied to ./ .
01-fix_examples not applied to ./ .
rm -rf patch-stamp patch-stampT debian/patched
dh_testdir
dh_testroot
dh_clean build-stamp install-stamp
# Add commands to clean up after the build process here
[ ! -f Makefile ] || /usr/bin/make realclean

chouca(emboss-explorer)$ fakeroot debian/rules clean
dpatch  deapply-all
05-build-manpages not applied to ./ .
02-fix_Conf.pm not applied to ./ .
01-fix_examples not applied to ./ .
rm -rf patch-stamp patch-stampT debian/patched
dh_testdir
dh_testroot
dh_clean build-stamp install-stamp
# Add commands to clean up after the build process here
[ ! -f Makefile ] || /usr/bin/make realclean


What I do not undestand is that if I run make realclan by hand, the
problem does not occur. Do you know why the Makefile is rebuilt?

Have a nice day !

-- 
Charles


Reply to: