List Info

Thread: Re: USE_LINUX_RPM and PORTDOCS




Re: USE_LINUX_RPM and PORTDOCS
user name
2008-05-24 12:35:45
Quoting Boris Samorodov <bsamipt.ru> (Sat, 24 May
2008 20:49:29 +0400):

> On Sat, 24 May 2008 18:05:42 +0200 (CEST) Ganael
LAPLANCHE wrote:
> > On Sat, 24 May 2008 17:27:04 +0200 (CEST), Ganael
LAPLANCHE wrote
> > > On Sat, 24 May 2008 13:04:57 +0400, Boris
Samorodov wrote
> > > 
> > > > I'd suggest another option. What about
fixing bsd.linux-rpm.mk? Ex.,
> > > > one may introduce, say, a pre-install
target (or even do it at the
> > > > very beginning of a do-install stage)
and conditionally delete
> > > > unneeded files from WRKDIR (so they
won't get installed at do-install
> > > > stage).
> > > 
> > > Thanks for your answer 
> > > 
> > > Of course, fixing bsd.linux-rpm.mk would be
the best option !
> > > 
> > > Your idea is good, but PORTDOCS would not be
useable for that purpose. 
> > > It cannot be used to identify files to delete
because it is relative 
> > > to the destination target (DOCSDIR), not to
WRKDIR or WRKSRC.
> 
> > Wait... DOCSDIR_REL (relative to PREFIX) is
derived from DOCSDIR and *may* be
> > also always relative to WRKDIR for linux RPMs,
since RPM installation is just a
> > copy of a tree structure which is relative to
PREFIX. So maybe I was wrong here.
> > Anyway, if I add that to my
archivers/linux-par2cmdline port's Makefile :
> 
> > .if defined(NOPORTDOCS)
> > post-extract:
> > .for x in $
> >         $ $/$/$
> > .endfor
> >         $ $/$/
> > .endif
> 
> > It works  So I think
I'll stick to that solution at the moment.
> 
> Great, but I'd say that it should be done a little bit
later (may be
> at pre-install stage). "Extract" stage
according to bsd.ports.mk
> "Unpacks $ into $".

Removing unwanted stuff in post-extract is not uncommon. I
don't think
a patch for linux-rpm.mk with something like this would be a
bad
solution.

Bye,
Alexander.

-- 
Cats, no less liquid than their shadows, offer no angles to
the wind.
http://www.Leidinger.net
 Alexander  Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org 
   netchild  FreeBSD.org  : PGP ID = 72077137
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: USE_LINUX_RPM and PORTDOCS
user name
2008-05-24 13:17:07
Alexander Leidinger wrote at 19:35 +0200 on May 24, 2008:
 > Removing unwanted stuff in post-extract is not
uncommon. I don't think
 > a patch for linux-rpm.mk with something like this
would be a bad
 > solution.

Removing things in post-extract _should_ be uncommon.  If I
want
to look at the extraction of the distfile(s), running 'make
extract'
should give me that without removing things.  I think I've
heard
others echo that sentiment.

Why not pre- or post-patch - part of a stage that implies a
modification of unpacked distfile(s)?
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )