From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 16 23:00:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 93B0B7D4 for ; Wed, 16 Apr 2014 23:00:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6FB4C1D3E for ; Wed, 16 Apr 2014 23:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3GN00vm045111 for ; Wed, 16 Apr 2014 23:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3GN00w4045110; Wed, 16 Apr 2014 23:00:00 GMT (envelope-from gnats) Resent-Date: Wed, 16 Apr 2014 23:00:00 GMT Resent-Message-Id: <201404162300.s3GN00w4045110@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Olli Hauer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D70C87A8 for ; Wed, 16 Apr 2014 22:58:20 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A98661D26 for ; Wed, 16 Apr 2014 22:58:20 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3GMwKBh045004 for ; Wed, 16 Apr 2014 22:58:20 GMT (envelope-from ohauer@freefall.freebsd.org) Received: (from ohauer@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3GMwKnM045003; Wed, 16 Apr 2014 22:58:20 GMT (envelope-from ohauer) Message-Id: <201404162258.s3GMwKnM045003@freefall.freebsd.org> Date: Wed, 16 Apr 2014 22:58:20 GMT From: Olli Hauer To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/188708: ports framework CONFLICT_INSTALL regression with staged ports X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2014 23:00:00 -0000 >Number: 188708 >Category: ports >Synopsis: ports framework CONFLICT_INSTALL regression with staged ports >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 16 23:00:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Olli Hauer >Release: >Organization: >Environment: >Description: During the fix for www/mod_python3[35] I found an interesting issue during pkg add/install. Conflict directives from the ports: mod_python33/Makefile CONFLICTS_INSTALL= ap2[24]-mod_python3[^3]* mod_python35/Makefile CONFLICTS_INSTALL= ap2[24]-mod_python3[^5]* Having one port already installed, then the other one complains during make (package) => OK Installing the new package of the conflicting port with pkg add work/pkg/$PKGNAME fails => OK Executing make install => executes @exec from pkg-plist but install is stopped later by pkg >How-To-Repeat: $> sudo pkg add packages/All/ap22-mod_python35-3.5.0_1.txz Installing ap22-mod_python35-3.5.0_1...[preparing module `python' in /usr/local/etc/apache22/httpd.conf] $> grep python_module /usr/local/etc/apache22/httpd.conf #LoadModule python_module libexec/apache22/mod_python.so $> sudo sed -i '' '/LoadModule python_module/d' /usr/local/etc/apache22/httpd.conf $> grep python_module /usr/local/etc/apache22/httpd.conf => no results, now try to install mod_python33 $> cd www/mod_python33 $> make package ===> ap22-mod_python33-3.3.1_6 conflicts with installed package(s): ap22-mod_python35-3.5.0_1 .... ===> Building package for ap22-mod_python33-3.3.1_6 Now after package building INSTALL_CONFLICTTS is no longer enforced by the framework. Installation will be stopped by pkg after @exec from pkg-plist is already done. Remember python_module was removed before from httpd.conf $> sudo make install ===> Installing for ap22-mod_python33-3.3.1_6 ===> ap22-mod_python33-3.3.1_6 depends on file: /usr/local/bin/python2.7 - found ===> ap22-mod_python33-3.3.1_6 depends on file: /usr/local/sbin/apxs - found ===> Checking if www/mod_python33 already installed ===> Registering installation for ap22-mod_python33-3.3.1_6 [preparing module `python' in /usr/local/etc/apache22/httpd.conf] Installing ap22-mod_python33-3.3.1_6...pkg-static: ap22-mod_python33-3.3.1_6 conflicts with ap22-mod_python35-3.5.0_1 (installs files into the same place). Problematic file: /usr/local/lib/python2.7/site-packages/mod_python/Cookie.py ... *** Error code 70 Stop in /usr/svn_ports/www/mod_python33. Surprise, the python module was registered by the @exec directive from pkg-plist $> www/mod_python33 # grep python_ /usr/local/etc/apache22/httpd.conf #LoadModule python_module libexec/apache22/mod_python.so >Fix: >Release-Note: >Audit-Trail: >Unformatted: