pkgsrc-Bugs archive

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

Re: pkg/58155 (CONFLICTS doesn't work with multi-version packages)



The following reply was made to PR pkg/58155; it has been noted by GNATS.

From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Cc: 
Subject: Re: pkg/58155 (CONFLICTS doesn't work with multi-version packages)
Date: Tue, 16 Apr 2024 15:02:47 +0200

 On Tue, Apr 16, 2024 at 12:53:51PM +0000, Taylor R Campbell wrote:
 > > Date: Tue, 16 Apr 2024 07:14:45 +0000 (UTC)
 > > From: wiz%NetBSD.org@localhost
 > > 
 > > I've expanded the patterns manually.
 > > 
 > > In general, we have PYTHON_SELF_CONFLICT for this.
 > 
 > We may have a lot more cases of this to address -- I just picked meson
 > as an example:
 
 > $ git grep 'CONFLICTS.*[$]'
 
 I don't understand how you chose the regex.
 
 > audio/py-ao/Makefile:CONFLICTS=		${PYPKGPREFIX}-pyao-[0-9]*
 > audio/py-daap/Makefile:CONFLICTS=	${PYPKGPREFIX}-PythonDaap-[0-9]*
 > comms/py-serial/Makefile:CONFLICTS+=	${PYPKGPREFIX}-pyserial-[0-9]*
 > databases/py-pypika-tortoise/Makefile:CONFLICTS=	${PYPKGPREFIX}-pypika-[0-9]*
 > databases/py-pypika/Makefile:CONFLICTS=	${PYPKGPREFIX}-pypika-tortoise-[0-9]*
 > databases/phpmyadmin5/Makefile:CONFLICTS+=			${PHP_PKG_PREFIX}-phpmyadmin-4..*
 > devel/lua-bit32/Makefile:CONFLICTS+=	${LUA_PKGPREFIX}-bitlib-[0-9]*
 > devel/py-at-spi2/Makefile:CONFLICTS=	${PYPKGPREFIX}-at-spi-[0-9]*
 > devel/py-gobject/Makefile.common:CONFLICTS+=		${PYPKGPREFIX}-gtk2<2.8.4
 > devel/py-gobject3/Makefile.common:CONFLICTS+=	${PYPKGPREFIX}-gtk2<2.8.4
 > devel/py-gobject3/Makefile.common:CONFLICTS+=	${PYPKGPREFIX}-gobject<2.28.6nb4
 > devel/ruby-pkg-config/Makefile:CONFLICTS+=	${RUBY_PKGPREFIX}-gnome2-glib<0.90.0
 > graphics/py-Pillow/Makefile:CONFLICTS+=	${PYPKGPREFIX}-imaging-[0-9]*
 > graphics/py-Pillow6/Makefile:CONFLICTS+=	${PYPKGPREFIX}-imaging-[0-9]*
 > lang/ruby-cucumber-gherkin/Makefile:CONFLICTS+=	${RUBY_PKGPREFIX}-gherkin-[0-9]*
 > math/py-roman/Makefile:CONFLICTS+=	${PYPKGPREFIX}-docutils<=0.7
 > net/py-Socks/Makefile:CONFLICTS=	${PYPKGPREFIX}-SocksiPy-branch-[0-9]*
 > net/py-adns/Makefile:CONFLICTS=	${PYPKGPREFIX}-adns-python-[0-9]*
 > net/py-socksipy-branch/Makefile:CONFLICTS=	${PYPKGPREFIX}-Socks-[0-9]*
 > net/rabbiter/Makefile:CONFLICTS+=	${RUBY_PKGPREFIX}-rabbit<2.0.0
 > security/passphrase/Makefile:CONFLICTS+=	${PYPKGPREFIX}-pyutil-[0-9]*
 > security/php-ssh2-0/Makefile:CONFLICTS=	${PHP_PKG_PREFIX}-${MODNAME}>=1.0
 > security/php-ssh2/Makefile:CONFLICTS=	${PHP_PKG_PREFIX}-${MODNAME}<1.0
 > textproc/py-gnosis-utils/Makefile:CONFLICTS+=	${PYPKGPREFIX}-Gnosis-Utils-[0-9]*
 > x11/py-gtk2/Makefile:CONFLICTS=	${PYPKGPREFIX}-gtk<0.6.10
 
 These need manual expansion.
 
 > databases/postgresql12/Makefile.common:CONFLICTS+=	postgresql[2-9][0-9]-${module}-[0-9]*
 > databases/postgresql13/Makefile.common:CONFLICTS+=	postgresql[2-9][0-9]-${module}-[0-9]*
 > databases/postgresql14/Makefile.common:CONFLICTS+=	postgresql[2-9][0-9]-${module}-[0-9]*
 > databases/postgresql15/Makefile.common:CONFLICTS+=	postgresql[2-9][0-9]-${module}-[0-9]*
 > databases/postgresql16/Makefile.common:CONFLICTS+=	postgresql[2-9][0-9]-${module}-[0-9]*
 > editors/emacs-snapshot/modules.mk:_EMACS_CONFLICTS.emacs=		xemacs-${PKGBASE}-[0-9]*
 > editors/emacs-snapshot/modules.mk:_EMACS_CONFLICTS.xemacs=	${PKGBASE:C|^xemacs-||}-[0-9]*
 > editors/emacs-snapshot/modules.mk:CONFLICTS+=	${_EMACS_CONFLICTS.${_EMACS_FLAVOR}}
 > emulators/suse121_linux/Makefile.common:CONFLICTS:=		${CONFLICTS:S/^suse_/suse32_/}
 > emulators/suse131_linux/Makefile.common:CONFLICTS:=		${CONFLICTS:S/^suse_/suse32_/}
 > emulators/suse15_linux/Makefile.common:CONFLICTS:=		${CONFLICTS:S/^suse_/suse32_/}
 > games/colchess-book-large/Makefile:CONFLICTS=		${CHESS_ENGINE}-book-[0-9]*
 > games/exchess-book-medium/Makefile:CONFLICTS=		${CHESS_ENGINE}-book-small-[0-9]*
 > games/exchess-book-small/Makefile:CONFLICTS=		${CHESS_ENGINE}-book-medium-[0-9]*
 
 These should work?
 
 > devel/meson/Makefile:CONFLICTS=	${PYPKGPREFIX}-meson-[0-9]*
 
 Fixed.
 
 > lang/lua/luaversion.mk:CONFLICTS+=	${PKGNAME:S/lua${_LUA_VERSION}/lua${v}/:C/-[0-9].*$/-[0-9]*/}
 
 No idea.
 
 > lang/python/pyversion.mk:CONFLICTS+=	${PKGNAME:S/py${_PYTHON_VERSION}/py${i}/:C/-[0-9].*$/-[0-9]*/}
 
 This is the code for PYTHON_SELF_CONFLICT.
 
 > lang/python/pyversion.mk:	CONFLICTS MULTI PLIST_VARS BUILDLINK_API_DEPENDS.${PYPACKAGE}	\
 > mk/pkgformat/pkg/metadata.mk:_PKG_CREATE_ARGS+=	${"${CONFLICTS:M*}" != "":?-C ${CONFLICTS:Q}:}
 > pkgtools/pkglint4/files/makevars.map:CONFLICTS		InternalList of Dependency [$package_list]
 
 Misgrep.
  Thomas
 


Home | Main Index | Thread Index | Old Index