On Sun, 15 Jun 2008 23:43:43 +0900, Charles Plessy wrote: > I have refreshed debian/rules with dh-make-perl 0.45, and after this > build fails with messages like: > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > ERROR: Can't create '/usr/local/man/man3' > mkdir /usr/local/man/man3: Permission non accordée at /usr/share/perl/5.10/ExtUtils/Install.pm line 479 > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I don't get this error, at least not in a pbuilder chroot and after changing the PACKAGE at the top of debian/rules (the comment after the definition seems to confuse make). The build fails later because ./install has a different opinion about paths then the chroot (that's BUILD_DIR). Hm, some questions: * Why do you need ./install - you could copy the static HTML from debian/foo.html in debian/rules? * What are you doing with the mv commands? * The directory you chown is not created. Find attached a quick patch that make the package build for me at least. Cheers, gregor -- .''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4 : :' : debian gnu/linux user, admin & developer - http://www.debian.org/ `. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/ `- NP: Ben Weaver: Handed Down
Index: debian/changelog =================================================================== --- debian/changelog (revision 2063) +++ debian/changelog (working copy) @@ -1,7 +1,7 @@ emboss-explorer (2.2.0-6) UNRELEASED; urgency=medium -BROKEN: work in progress, and I do not know why debian/rules install tries to -put things in /usr/local... + BROKEN: work in progress, and I do not know why debian/rules install tries to + put things in /usr/local... [ Charles Plessy ] * Relicensed the packaging work to "Same as EMBOSS explorer". Index: debian/patches/04-fix_install.dpatch =================================================================== --- debian/patches/04-fix_install.dpatch (revision 2063) +++ debian/patches/04-fix_install.dpatch (working copy) @@ -8,11 +8,12 @@ ## DP: be replaced by another workaround. @DPATCH@ ---- ./install 2007-07-04 21:07:32.000000000 +0900 -+++ ./install.dp 2007-07-04 21:12:36.000000000 +0900 -@@ -1,68 +1,8 @@ +diff -urNad emboss-explorer~/install emboss-explorer/install +--- emboss-explorer~/install 2008-06-16 00:16:23.000000000 +0200 ++++ emboss-explorer/install 2008-06-16 00:28:09.000000000 +0200 +@@ -1,69 +1,10 @@ #!/bin/sh -+BUILD_DIR=./debian/emboss-explorer ++BUILD_DIR=$1 -usage() { - cat <<EOF @@ -21,8 +22,7 @@ -EOF - exit 1 -} -+HTML_PATH=/var/www/emboss-explorer - +- -prompt() { - echo -e "$1\n\t(default is $2)" - read INPUT @@ -68,7 +68,8 @@ - \$OUTPUT_URL='$OUTPUT_URL'; s/(?<=OUTPUT_URL = \")[^\"]*/\$OUTPUT_URL/; - \$EMBOSS_PREFIX='$EMBOSS_PREFIX'; s/(?<=EMBOSS_PREFIX = \")[^\"]*/\$EMBOSS_PREFIX/; -" $CONF_MODULE -- ++HTML_PATH=/var/www/emboss-explorer + -# install HTML and CGI files... -[ -d html ] || usage -echo installing HTML files to $HTML_PATH... @@ -79,9 +80,11 @@ - cp -rp html $HTML_PATH -fi echo creating HTML index file at $HTML_PATH/index.html... ++mkdir -p $BUILD_DIR$HTML_PATH echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\"> -@@ -71,58 +11,7 @@ + <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'> +@@ -71,58 +12,7 @@ <title>EMBOSS Explorer</title> </head> <frameset cols=\"170, *\"> Index: debian/rules =================================================================== --- debian/rules (revision 2063) +++ debian/rules (working copy) @@ -12,7 +12,8 @@ export PERL_MM_USE_DEFAULT=1 PERL ?= /usr/bin/perl -PACKAGE = emboss-explorer # was: $(shell dh_listpackages) +# was: $(shell dh_listpackages) +PACKAGE = emboss-explorer TMP = $(CURDIR)/debian/$(PACKAGE) include /usr/share/dpatch/dpatch.make @@ -40,12 +41,14 @@ dh_clean -k # Add commands to install the package into $(TMP) here $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr - ./install + ./install $(TMP) [ ! -d $(TMP)/usr/lib/perl5 ] || \ rmdir --ignore-fail-on-non-empty --parents --verbose \ $(TMP)/usr/lib/perl5 + dh_installdirs var/www/emboss-explorer/output chown -R www-data $(CURDIR)/debian/emboss-explorer/var/www/emboss-explorer/output # ACD.pm desserves its own package. + # hm? mv $(CURDIR)/debian/emboss-explorer/usr/share/perl5/EMBOSS/ACD.pm $(CURDIR)/debian/libemboss-acd-perl/usr/share/perl5/EMBOSS/ mv $(CURDIR)/debian/emboss-explorer/usr/share/man/man3/EMBOSS::ACD.3pm $(CURDIR)/debian/libemboss-acd-perl/usr/share/man/man3/ touch $@
Attachment:
signature.asc
Description: Digital signature