ports/170552: bsd.port.mk: Fix CONFIGURE_FAIL_MESSAGE to be pkgng-aware
Chris Rees
crees at FreeBSD.org
Sun Aug 12 10:20:04 UTC 2012
>Number: 170552
>Category: ports
>Synopsis: bsd.port.mk: Fix CONFIGURE_FAIL_MESSAGE to be pkgng-aware
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Aug 12 10:20:03 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Chris Rees
>Release: FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD pegasus.bayofrum.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Sun Apr 29 12:29:02 BST 2012 root at pegasus.bayofrum.net:/usr/obj/usr/src/sys/PEGASUS amd64
>Description:
If configure fails, a message is printed asking the user to ls /var/db/pkg to get all packages installed.
For years, this has worked fine... but nowadays:
[crees at pegasus]~% ls /var/db/pkg
/var/db/pkg/repo.sqlite
/var/db/pkg/local.sqlite
>How-To-Repeat:
>Fix:
pkg_info -Ea and pkg info -Ea both do what is required here.
Really, this shouldn't require an exp-run, but I guess it wouldn't hurt to stick it in with another change.
--- bsd.port.mk-configure-fail-message.diff begins here ---
Index: bsd.port.mk
===================================================================
--- bsd.port.mk (revision 302404)
+++ bsd.port.mk (working copy)
@@ -2908,7 +2908,7 @@
CONFIGURE_LOG?= config.log
# A default message to print if do-configure fails.
-CONFIGURE_FAIL_MESSAGE?= "Please report the problem to ${MAINTAINER} [maintainer] and attach the \"${CONFIGURE_WRKSRC}/${CONFIGURE_LOG}\" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an \`ls ${PKG_DBDIR}\`)."
+CONFIGURE_FAIL_MESSAGE?= "Please report the problem to ${MAINTAINER} [maintainer] and attach the \"${CONFIGURE_WRKSRC}/${CONFIGURE_LOG}\" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a ${PKG_INFO} -Ea)."
.if defined(GNU_CONFIGURE)
# Maximum command line length
--- bsd.port.mk-configure-fail-message.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list