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

dh-make-perl and permissions



I'm getting this error when trying to build the .deb.  Am I doing something incorrectly?

dh_installdocs README TODO examples/README
cp: cannot create regular file `debian/libxml-rss-perl/usr/share/doc/libxml-rss-perl/README': Permis
dh_installdocs: command returned error code 256
make: *** [binary-indep] Error 1
Cannot create deb package

moseley@bumby:~$ ls -l XML-RSS-1.02/debian/libxml-rss-perl/usr/share/doc/libxml-rss-perl/README
-r-xr-xr-x    1 moseley  moseley      2078 2002-11-12 03:55 XML-RSS-1.02/debian/libxml-rss-perl/usr/share/doc/libxml-rss-perl/README

Is dh_installdocs trying to copy the README twice?

I get the same thing if I first run dh-make-perl, cd into the directory and run

  fakeroot debian/rules binary

So I'm guessing it's not dh-make-perl's problem.



ii  dh-make-perl        0.10                Create debian packages from perl modules


Here's the details:


moseley@bumby:~$ wget -q http://search.cpan.org/CPAN/authors/id/K/KE/KELLAN/XML-RSS-1.02.tar.gz
moseley@bumby:~$ tar zxof XML-RSS-1.02.tar.gz 
moseley@bumby:~$ dh-make-perl --build /home/moseley/XML-RSS-1.02
Found: XML::RSS 0PM (libxml-rss-perl arch=all)
Needs the following modules: XML::Parser, XML::RSS
Using maintainer: Bill Moseley <moseley@hank.org>
Found changelog: Changes
Found docs: README TODO examples/README
Using rules: /usr/share/dh-make-perl/rules.noxs
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
/usr/bin/make realclean
make[1]: Entering directory `/home/moseley/XML-RSS-1.02'
make[1]: *** No rule to make target `realclean'.  Stop.
make[1]: Leaving directory `/home/moseley/XML-RSS-1.02'
make: [clean] Error 2 (ignored)
dh_clean
dh_testdir
# Add here commands to compile the package.
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
Checking if your kit is complete...
Looks good
Warning: prerequisite Test::Manifest 0.9 not found.
Writing Makefile for XML::RSS
/usr/bin/make OPTIMIZE="-O2 -g -Wall"
make[1]: Entering directory `/home/moseley/XML-RSS-1.02'
cp lib/RSS.pm blib/lib/XML/RSS.pm
Manifying blib/man3/XML::RSS.3
make[1]: Leaving directory `/home/moseley/XML-RSS-1.02'
touch build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tmp.
#/usr/bin/make install DESTDIR=`pwd`/debian/tmp
/usr/bin/make install PREFIX=`pwd`/debian/libxml-rss-perl/usr
make[1]: Entering directory `/home/moseley/XML-RSS-1.02'
Installing /home/moseley/XML-RSS-1.02/debian/libxml-rss-perl/usr/share/perl5/XML/RSS.pm
Installing /home/moseley/XML-RSS-1.02/debian/libxml-rss-perl/usr/share/man/man3/XML::RSS.3
make[1]: Leaving directory `/home/moseley/XML-RSS-1.02'
dh_testdir
dh_testroot
dh_installdocs README TODO examples/README
cp: cannot create regular file `debian/libxml-rss-perl/usr/share/doc/libxml-rss-perl/README': Permission denied
dh_installdocs: command returned error code 256
make: *** [binary-indep] Error 1
Cannot create deb package


-- 
Bill Moseley
moseley@hank.org



Reply to: