svn commit: r316281 - head/Mk

Baptiste Daroussin bapt at freebsd.org
Sat Apr 27 08:13:39 UTC 2013


On Sat, Apr 27, 2013 at 12:36:47PM +0800, Sunpoet Po-Chuan Hsieh wrote:
> On Sat, Apr 27, 2013 at 4:15 AM, Baptiste Daroussin <bapt at freebsd.org>wrote:
> 
> > On Sat, Apr 27, 2013 at 03:48:01AM +0800, Sunpoet Po-Chuan Hsieh wrote:
> > > On Tue, Apr 23, 2013 at 6:13 AM, Baptiste Daroussin <bapt at freebsd.org
> > >wrote:
> > >
> > > > Author: bapt
> > > > Date: Mon Apr 22 22:13:14 2013
> > > > New Revision: 316281
> > > > URL: http://svnweb.freebsd.org/changeset/ports/316281
> > > >
> > > > Log:
> > > >   Remove old links while creating the new packages
> > > >   Force creation of the symlink for pkgng to avoid failure if the link
> > > > already exists
> > > >
> > > >   Submitted by: ohauer@
> > > >
> > > > Modified:
> > > >   head/Mk/bsd.pkgng.mk
> > > >
> > > > Modified: head/Mk/bsd.pkgng.mk
> > > >
> > > >
> > ==============================================================================
> > > > --- head/Mk/bsd.pkgng.mk        Mon Apr 22 22:06:34 2013
> >  (r316280)
> > > > +++ head/Mk/bsd.pkgng.mk        Mon Apr 22 22:13:14 2013
> >  (r316281)
> > > > @@ -258,6 +258,9 @@ do-package: ${TMPPLIST}
> > > >                         fi; \
> > > >                 fi; \
> > > >         fi;
> > > > +       @for cat in ${CATEGORIES}; do \
> > > > +               ${RM} -fv
> > > > ${PACKAGES}/$$cat/${PKGNAMEPREFIX}${PORTNAME}*${PKG_SUFX} ; \
> > > > +       done
> > > >
> > >
> > > Please revert/modify this change!
> > > It has 2 problems.
> > >
> > > First, it would remove other *correct* links.
> > >
> > > % cd /usr/ports/x11/xorg
> > > % make package
> > > ...
> > > ===>  Checking if x11/xorg already installed
> > > ===>   Registering installation for xorg-7.5.2
> > > Installing xorg-7.5.2... done
> > > ===>  Building package for xorg-7.5.2
> > > /usr/ports/packages/x11/xorg-7.5.2.txz
> > > /usr/ports/packages/x11/xorg-cf-files-1.0.4.txz
> > > /usr/ports/packages/x11/xorg-libraries-7.5.1.txz
> > > /usr/ports/packages/x11/xorg-macros-1.16.1.txz
> > > Creating package for xorg-7.5.2
> >
> > This is not the problem but the goal with pkgng we need no more links
> > anywhere
> > except for pkgng itseld because the bootstrap in base relies on it.
> 
> 
> Does that mean all links in $CATEGORIES directories are unnecessary? If so,
> could we simply remove those directories instead of individual links?
> 

Yes All CATEGORIES symlinks are unecessary now, so does all symlinks in Latest
(except pkg.txz)

I'm open to better solutions to clean that that the one we have now :)

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20130427/aad9c42e/attachment-0001.sig>


More information about the svn-ports-head mailing list