Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2009 12:38:17 +0300 (MSK)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/130613: [patch] lang/fpc-units: build all packages by default
Message-ID:  <200901160938.n0G9cHaK068632@bb.ipt.ru>
Resent-Message-ID: <200901160940.n0G9e141058370@freefall.freebsd.org>

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

>Number:         130613
>Category:       ports
>Synopsis:       [patch] lang/fpc-units: build all packages by default
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 16 09:40:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Boris Samorodov
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
InPharmTech, Co.
>Environment:
System: FreeBSD bb.ipt.ru 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Jan 12 22:04:34 MSK 2009 bsam@bb.ipt.ru:/usr/obj/usr/src/sys/BB i386

>Description:
	1. The logic at lang/fpc-units/Makefile seems to be faulted: all options
	are "on" by default, but when no options file exists (i.e. for automatic
	batch building) none of packages are build.
	2. The unit numlib should be defined at _FPC_ALL_UNITS (ports/Mk/bsd.fpc.mk).
>How-To-Repeat:
	-----
	% cd /usr/ports/lang/fpc-units
	% ls -l `make -V OPTIONSFILE`
	-rw-r--r--  1 root  wheel  943 16 ### 12:06 /var/db/ports/fpc-units/options
	bb% make -V UNITS_SELECTED
	 aspell bfd cairo chm fftw fpmkunit fpgtk fv gdbm ggi gtk2 imagemagick imlib libcurl libgd libpng ncurses numlib opengl openssl pcap pxlib sdl svgalib symbolic syslog tcl unzip users utmp x11 xforms zlib
	bb% sudo rm `make -V OPTIONSFILE`
	bb% make -V UNITS_SELECTED
	
	bb%
	-----
>Fix:
	% cd /usr/ports
	% patch -p0 < _the_following_patch_

--- ports.diff begins here ---
Index: Mk/bsd.fpc.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.fpc.mk,v
retrieving revision 1.4
diff -u -r1.4 bsd.fpc.mk
--- Mk/bsd.fpc.mk	14 Jan 2009 15:58:10 -0000	1.4
+++ Mk/bsd.fpc.mk	16 Jan 2009 09:24:05 -0000
@@ -58,7 +58,7 @@
 _FPC_ALL_UNITS=	aspell bfd cairo chm fcl-async fcl-base fcl-db fcl-fpcunit fcl-image \
 		fcl-json fcl-net fcl-passrc fcl-process fcl-registry fcl-web fcl-xml fftw \
 		fpmkunit fpgtk fv gdbint gdbm ggi gnome1 graph gtk1 gtk2 hash httpd \
-		ibase imagemagick imlib libcurl libgd libpng mysql ncurses \
+		ibase imagemagick imlib libcurl libgd libpng mysql ncurses numlib \
 		odbc opengl openssl oracle pasjpeg paszlib pcap postgres pthreads pxlib \
 		regexpr sdl sqlite svgalib symbolic syslog tcl unzip users utmp x11 xforms \
 		zlib
Index: lang/fpc-units/Makefile
===================================================================
RCS file: /home/pcvs/ports/lang/fpc-units/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- lang/fpc-units/Makefile	14 Jan 2009 06:12:13 -0000	1.12
+++ lang/fpc-units/Makefile	16 Jan 2009 09:24:05 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	units
 PORTVERSION=	2.2.2
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	# none
 PKGNAMEPREFIX=	fpc-
@@ -85,7 +86,7 @@
 
 UNITS_SELECTED=		#
 .for OPT in ${ALL_OPTIONS}
-.	if defined(WITH_${OPT})  && !defined(WITHOUT_${OPT})
+.	if defined(WITH_${OPT})  || !defined(WITHOUT_${OPT})
 UNITS_SELECTED+=	${OPT:L}
 .	endif
 .endfor
--- ports.diff ends here ---

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



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