Re: dh-make-perl and permissions
- To: debian-perl@lists.debian.org
- Subject: Re: dh-make-perl and permissions
- From: Bill Moseley <moseley@hank.org>
- Date: Sun, 4 Jan 2004 14:19:30 -0800
- Message-id: <[🔎] 20040104221930.GA29023@hank.org>
- In-reply-to: <20031230145459.GA558@hank.org>
- References: <20031229235549.GA20892@hank.org> <20031230011640.GE15517@riva.ucam.org> <20031230041053.GB24312@hank.org> <20031230122851.GN15517@riva.ucam.org> <20031230145459.GA558@hank.org>
Ok, so where should the bug report be filed? I just got caught by this
again. dh-make-perl is setting up the debian/rules file to copy more
than on README, but then dh_installdocs simply overwrites them all with
the last one copied.
The man page for dh_installdocs is not clear to me. It is clear that
listing a directory will copy the directory tree. But it's not clear to
me what should happen if you specify the path to a file, like
dh-make-perl creates.
Is dh-make-perl making the wrong assumptions about what dh_installdocs
should do, or is dh_installdocs broken?
On Tue, Dec 30, 2003 at 06:54:59AM -0800, Bill Moseley wrote:
> On Tue, Dec 30, 2003 at 12:28:52PM +0000, Colin Watson wrote:
> > > Doesn't seem like dh_installdocs is doing the right thing there. It's
> > > trying to overwrite the first README. Maybe it should use:
> > >
> > > cp --parents example/README debian/libxml-rss-perl/usr/share/doc/libxml-rss-perl
> >
> > How about:
> >
> > dh_installdocs README TODO
> > dh_installexamples examples/README
>
> Ok, so are you saying the dh-make-perl has the bug? dh-make-perl is
> using File::Find to find any README (and other common) files. Then it's
> simply doing a s/#DOCS#/@docs; on the skeleton rules file which
> contains:
>
> dh_installdocs #DOCS#
>
> Using dh_installexamples only solves the files in "examples", but
> dh-make-perl is finding READMEs anyplace they may be located.
>
> If the intent is to really copy every README regardless of where it
> might be located in the module's source then dh_installdocs is broken.
> dh_installdocs uses cp -a, so I wonder if the author was intending to
> copy recursively (which only works if the source is a directory
> when using -a).
>
> >
> > > > 555 is an odd set of permissions to have, though.
> > >
> > > Yes. Don't normally need to execute README files.
> >
> > And it should be owner-writeable.
>
> So is that something dh-make-perl should check for? It's the CPAN
> module that has those permissions.
>
> Thanks,
>
>
> --
> Bill Moseley
> moseley@hank.org
>
>
> --
> To UNSUBSCRIBE, email to debian-perl-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
--
Bill Moseley
moseley@hank.org
Reply to: