From owner-freebsd-ports-bugs@freebsd.org Sun Aug 23 14:12:53 2015 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F86F9C0A31 for ; Sun, 23 Aug 2015 14:12:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 344FBFF4 for ; Sun, 23 Aug 2015 14:12:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t7NECrWw084886 for ; Sun, 23 Aug 2015 14:12:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 202595] assumption about PHP installed from existence of php.conf in /etc and /usr/local/etc Date: Sun, 23 Aug 2015 14:12:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bugzilla@logicalsolutns.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Aug 2015 14:12:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202595 Bug ID: 202595 Summary: assumption about PHP installed from existence of php.conf in /etc and /usr/local/etc Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: bugzilla@logicalsolutns.com CC: freebsd-ports-bugs@FreeBSD.org pkg version (relatively) recently began showing ">" for ports that were updated with portupgrade For example: [root@kahlua]:[~]# pkg version -v | grep -v = gettext-0.19.5.1 > succeeds index (index has 0.19.4) gettext-runtime-0.19.5.1 > succeeds index (index has 0.19.4) gettext-tools-0.19.5.1 > succeeds index (index has 0.19.4) linux_base-c6-6.6_6 > succeeds index (index has 6.6_5) after numerous unsuccessful attempts to get pkg to update it's index - with no errors ever being reported, I attempted to rebuild the index with make -C /usr/ports index resulted in syntax errors in the script. Generating INDEX-8 - please wait../usr/local/bin/php-config: not found "/usr/ports/Mk/bsd.php.mk", line 156: Malformed conditional (${PHP_VER} == 53) "/usr/ports/Mk/bsd.php.mk", line 317: Malformed conditional (${PHP_VER} == 55 || ${PHP_VER} == 56) Error expanding embedded variable. ===> archivers/pear-File_Archive failed *** Error code 1 1 error I tracked this error down to the existence of EMPTY /usr/local/etc/php.conf & /usr/local/etc/php.ini files with corresponding symlinks in /etc Removing those empty files, and rebuilding the index resolved the errant report from pkg version **** In my opinion, the mere existence of empty php.conf or .ini files should NOT imply php is installed on the system and should not trigger php scripts to be run or tested. (e.g. In my case I want those empty files to exist and be attribute locked - even if they are empty and even when php is not installed.) It's also a bit disappointing that NO ERRORS were being generated for "pkg update" or "pkg update -f". Everything just seemed to be happy - except pkg version was showing "newer ports than indexed" as installed - and newer port releases were not triggering "<" (needs updated) - note: portupgrade was updating ports even though "pkg version" didn't show them as outdated. -- You are receiving this mail because: You are on the CC list for the bug.