ports/74369: Makefile for ports/devel/pcre does not allow link size to be configured

David Landgren david at landgren.net
Thu Nov 25 12:40:27 UTC 2004


>Number:         74369
>Category:       ports
>Synopsis:       Makefile for ports/devel/pcre does not allow link size to be configured
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 25 12:40:26 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     David Landgren
>Release:        FreeBSD 4.10-STABLE
>Organization:
>Environment:
System: profane.mongueurs.net 4.10-STABLE FreeBSD 4.10-STABLE #4: Fri Oct  8 15:03:06 CEST 2004     root at profane.mongueurs.net:/usr/obj/usr/src/sys/PROFANE  i386

>Description:
The pcre library can be configured to adjust its internal data
structures to allow the compilation of jumbo-sized patterns. This
is specified by adding the --with-link-size=n to the configure
script. The Makefile in the ports directory does not allow this to
be overridden from the default value of 2.

The problem exists in the current Makefile of the port. The unified
diff patch below allows the port to be built with the following:

  make WITH_LINK_SIZE=3

and the problem is fixed.

The Makefile contains the following revision tag:
# $FreeBSD: ports/devel/pcre/Makefile,v 1.23 2004/10/12 00:16:52 eik Exp $

>How-To-Repeat:
Problem exists in current Makefile

>Fix:
The following unified diff patch provides the desired functionality.

--- Makefile.dist       Thu Nov 25 13:07:55 2004
+++ Makefile    Thu Nov 25 13:14:36 2004
@@ -31,6 +31,11 @@
                --enable-unicode-properties
 .endif

+.if defined(WITH_LINK_SIZE)
+CONFIGURE_ARGS+=       \
+               --with-link-size=${WITH_LINK_SIZE}
+.endif
+
 CONFIGURE_TARGET=      \
                --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

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



More information about the freebsd-ports-bugs mailing list