[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: pcb-20091103 for Gentoo, working on ebuild



On Sat, 2009-11-07 at 18:26 +0100, Stefan Salewski wrote:
> On Sat, 2009-11-07 at 16:51 +0000, Peter Clifton wrote:
> > On Sat, 2009-11-07 at 14:07 +0100, Stefan Salewski wrote:
> > 
> > > --docdir="/usr/share/doc/pcb-20091103"
> > > seems to generate an obsolete empty directory
> > > /usr/share/pcb-20091103/
> > 
> > That directory is somewhat of an annoyance on my box.. 
> > 
> I am not sure if I really understand your comment.
> By default documentation goes into /usr/share/doc/pcb directory. For
> gentoo convention is to have a subdirectory for each version, so we
> have /usr/share/doc/pcb-20091103. Works fine with --docdir= but this
> seems to generate the empty usr/share/pcb-20091103/ also.

Until recently, even builds where files were going
in /usr/share/pcb/..., PCB would produce an empty
folder /usr/share/pcb-$VERSION/ it is completely unrelated to docs, and
looks to be related to the Win32 build.

I've been annoyed by the empty dir before, but never really bothered to
track down its source.

> My gues is:
> 	sed -i -e 's/example//' -e 's/tutorial//' -e 's/ win32//' Makefile.in || die "sed failed"
> 	sed -i -e 's/DOC=doc/DOC="doc example tutorial"/' configure || die "sed failed"
> 	sed -i -e 's/$(pkgdatadir)/$(docdir)/' {example,tutorial}/Makefile.in || die "sed failed"
> 
> 
> First line removes example and tutotial (and win32) directories
> from /usr/share/pcb.
> 
> Second line generates  example and tutorial
> in /usr/share/doc/pcb-20091103/
> 
> Third line fixes the empty usr/share/pcb-20091103/

These substitutions probably only work correctly because those sub-dirs
aren't putting anything in $(pkgdatadir) legitimately.

I've got some patches queued up which should fix these issues upstream -
assuming no other developers complain about me applying them.

Best regards,

Peter C.




_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user