tech-pkg archive

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

Re: Cyclic dependency on NetBSD



On Tue, Dec 22, 2020 at 12:07:01PM +0100, Manuel Bouyer wrote:
> On Tue, Dec 22, 2020 at 11:03:03AM +0000, Thomas Mueller wrote:
> > > Hello,
> > > on the NetBSD build guests (running 8.0_STABLE/i386 or 9.0_STABLE/amd64),
> > > the pbulk build fails to start with:
> > > Cyclic dependency for package:
> > > cwrappers-20180325
> > > pkg_install-20201218
> > > cwrappers-20180325
> >  
> > > Manuel Bouyer <bouyer%antioche.eu.org@localhost>
> > 
> > What happens if you first build and install cwrappers, or cwrappers and pkg_install, with USE_CWRAPPERS=no (on command line or would it be in /etc/mk.conf?)?
> 
> This is not a reasonable solution for pbulk

I don't like this patch either.
Reducing PKGTOOLS_REQD is another option.

Index: pkgformat/pkg/depends.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/pkgformat/pkg/depends.mk,v
retrieving revision 1.12
diff -u -r1.12 depends.mk
--- pkgformat/pkg/depends.mk	2 Dec 2020 10:22:39 -0000	1.12
+++ pkgformat/pkg/depends.mk	22 Dec 2020 13:31:56 -0000
@@ -221,7 +221,7 @@
 	    ${MAKE} ${MAKEFLAGS} _AUTOMATIC=yes clean && \
 	cd ../../pkgtools/pkg_install && ${PKGSRC_SETENV} ${PKGSRC_MAKE_ENV} \
 	    _PKGSRC_DEPS=" ${PKGNAME}${_PKGSRC_DEPS}" \
-	    ${MAKE} ${MAKEFLAGS} _AUTOMATIC=yes ${DEPENDS_TARGET:Q}; \
+	    ${MAKE} ${MAKEFLAGS} _AUTOMATIC=yes USE_CWRAPPERS=no replace; \
 	fi
 
 ######################################################################


Home | Main Index | Thread Index | Old Index