From owner-freebsd-apache@freebsd.org Wed Sep 16 17:45:53 2015 Return-Path: Delivered-To: freebsd-apache@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 B78CC9CECDE for ; Wed, 16 Sep 2015 17:45:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9CCCE1423 for ; Wed, 16 Sep 2015 17:45:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9AF6D9CECDB; Wed, 16 Sep 2015 17:45:53 +0000 (UTC) Delivered-To: apache@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 824319CECD9 for ; Wed, 16 Sep 2015 17:45: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 68401141A for ; Wed, 16 Sep 2015 17:45: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 t8GHjrP0003227 for ; Wed, 16 Sep 2015 17:45:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: apache@FreeBSD.org Subject: [Bug 203157] www/apache24: mistakenly tries to build expat if old magic files exist while citing a wrong filename Date: Wed, 16 Sep 2015 17:45:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsdpr-20121114@billmail.scconsult.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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-apache@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Sep 2015 17:45:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203157 Bug ID: 203157 Summary: www/apache24: mistakenly tries to build expat if old magic files exist while citing a wrong filename Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: apache@FreeBSD.org Reporter: freebsdpr-20121114@billmail.scconsult.com Assignee: apache@FreeBSD.org Flags: maintainer-feedback?(apache@FreeBSD.org) I tried building ("make build" in www/apache24) apache24 from the port (to get LDAP support not in the binary package) and it chased the textproc/expat2 dependency and tried to install it from the port even though there was a perfectly usable binary package of expat already installed. The output around the detour was: ===> apache24-2.4.16_1 depends on executable: libtoolize - found ===> apache24-2.4.16_1 depends on shared library: libexpat.soEither /usr/share/misc/magic.mime or /usr/share/misc/mime.magic.mgc exist and must be removed. These are legacy files from an older release and may safely be deleted. Please see UPDATING 20150213 for more details. - not found ===> expat-2.1.0_3 depends on file: /usr/local/sbin/pkg - found Note the lack of space after libexpat.so and the 2 file names. I removed /usr/share/misc/magic.mime but /usr/share/misc/mime.magic.mgc did not exist. However /usr/share/misc/magic.mime.mgc DID exist, with the same mtime as /usr/share/misc/magic.mime (suspicious...) "make clean ; make build" resulted in the same detour into building expat with the same error message, even though no such files existed. I removed the suspect file, tried again, and the build went perfectly. This seems like it is maybe 2 bugs, but I'm not sure: 1. /usr/ports/Mk/Scripts/find-lib.sh looks for files of the correct names, emits an error message with one of them mangled. 2. The way /usr/ports/Mk/Scripts/find-lib.sh fails, the message it emits, and the resulting upstream reaction of chasing a dependency unnecessarily is not a recipe for least harm. If those obsolete files are so dangerous that they must break port builds, perhaps the check for them should live somewhere higher up where it can be made to break every port build from the start unconditionally. -- You are receiving this mail because: You are the assignee for the bug.