Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 2004 20:29:59 +1100 (EST)
From:      Gautam Gopalakrishnan <ggop@madras.dyndns.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/64252: Enable printing configure arguments
Message-ID:  <200403140929.i2E9TxQN010524@madras.dyndns.org>
Resent-Message-ID: <200403140940.i2E9e6JI047447@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         64252
>Category:       ports
>Synopsis:       Enable printing configure arguments
>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 Mar 14 01:40:06 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Gautam Gopalakrishnan
>Release:        FreeBSD 5.2.1-RELEASE-p1 i386
>Organization:
None
>Environment:
System: FreeBSD madras.dyndns.org 5.2.1-RELEASE-p1 FreeBSD 5.2.1-RELEASE-p1 #0: Wed Mar 3 11:42:30 EST 2004 root@madras.dyndns.org:/usr/obj/usr/src/sys/MADRAS i386

>Description:
While sending bug reports, it's useful to know the build arguments
passed to the configure script. Some (like vim) support getting
their compile time options, but most others don't.  This patch will
print the arguments and environment of configure. So if we remember
the WITH_ and WITHOUT_ arguments used, we can get the information
needed (only relevant bits shown here)

$ cd /usr/ports/x11-toolkits/gtk20
$ make PRINT_CONFIGURE_ARGS=yes
===>  Configuring for gtk-2.2.4_2
===> With environment: 'CPPFLAGS=-I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include LDFLAGS=-L/usr/local/lib -L/usr/X11R6/lib SHELL=/bin/sh CONFIG_SHELL=/bin/sh PORTOBJFORMAT=elf PATH=/usr/local/libexec/libtool13:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/home/ggop/bin lt_cv_sys_max_cmd_len=65536'
===> With arguments: '--enable-static --with-xinput=yes --x-libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include --prefix=/usr/X11R6 --build=i386-portbld-freebsd5.2.1'


$ cd /usr/ports/www/mozilla-devel
$ make WITHOUT_MAILNEWS=yes PRINT_CONFIGURE_ARGS=yes
===>  Configuring for mozilla-1.7.a_2,2
===> With environment: 'MOZ_INTERNAL_LIBART_LGPL=1 LOCALBASE=/usr/local SHELL=/bin/sh CONFIG_SHELL=/bin/sh PORTOBJFORMAT=elf MAKE=gmake lt_cv_sys_max_cmd_len=65536'
===> With arguments: '--disable-auto-deps --enable-chrome-format=jar --disable-cpp-exceptions --disable-cpp-rtti --enable-crypto --disable-debug --disable-debug --disable-gtktest --disable-freetypetest --disable-installer --disable-glibtest --enable-double-buffer --enable-mathml --disable-md --disable-pedantic --disable-bidi --disable-plaintext-editor-only --enable-strip --enable-svg --enable-svg-renderer-libart --disable-tests --disable-xterm-updates --enable-xinerama --with-system-zlib --with-system-jpeg=/usr/local --with-system-mng=/usr/local --with-system-png=/usr/local --with-pthreads --disable-ldap --disable-mailnews --enable-extensions=default,irc,xmlterm --disable-jsd --disable-dtd-debug --enable-default-toolkit=gtk2 --enable-xft --enable-reorder --x-libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include --prefix=/usr/X11R6 --build=i386-portbld-freebsd5.2.1'


>How-To-Repeat:
	We pass PRINT_CONFIGURE_ARGS=yes to make and the target has
	to be configure-message or something later. This prints
	CONFIGURE_ENV and CONFIGURE_ARGS, one per line.
>Fix:

--- configure.patch begins here ---
*** bsd.port.mk	Wed Feb  4 15:27:04 2004
--- bsd.port.mk.new	Sun Mar 14 19:53:04 2004
***************
*** 3872,3877 ****
--- 3872,3881 ----
  	@${ECHO_MSG} "===>  Patching for ${PKGNAME}"
  configure-message:
  	@${ECHO_MSG} "===>  Configuring for ${PKGNAME}"
+ .if defined(PRINT_CONFIGURE_ARGS)
+ 	@${ECHO_MSG} "===>  With environment: '${CONFIGURE_ENV}'" | ${TR} -s ' \t' ' '
+ 	@${ECHO_MSG} "===>  With arguments: '${CONFIGURE_ARGS}'" | ${TR} -s ' \t' ' '
+ .endif
  build-message:
  	@${ECHO_MSG} "===>  Building for ${PKGNAME}"
  install-message:
--- configure.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403140929.i2E9TxQN010524>