From owner-freebsd-ports Fri Jul 5 20:51: 0 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABFFB37B401 for ; Fri, 5 Jul 2002 20:50:49 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4582843E67 for ; Fri, 5 Jul 2002 20:50:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g663o2JU068818 for ; Fri, 5 Jul 2002 20:50:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g663o27w068817; Fri, 5 Jul 2002 20:50:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98E0337B401 for ; Fri, 5 Jul 2002 20:49:44 -0700 (PDT) Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id E28EC43E31 for ; Fri, 5 Jul 2002 20:49:43 -0700 (PDT) (envelope-from edwin@mavetju.org) Received: from k7.mavetju (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 0227A2B6C8 for ; Sat, 6 Jul 2002 05:48:38 +0200 (CEST) Received: by k7.mavetju (Postfix, from userid 1001) id 8E0CC6A711E; Sat, 6 Jul 2002 13:48:36 +1000 (EST) Message-Id: <20020706034836.8E0CC6A711E@k7.mavetju> Date: Sat, 6 Jul 2002 13:48:36 +1000 (EST) From: Edwin Groothuis Reply-To: Edwin Groothuis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/40253: [patch] Fix palm/imgvtopgm due to change in graphics/netpbm Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 40253 >Category: ports >Synopsis: [patch] Fix palm/imgvtopgm due to change in graphics/netpbm >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 05 20:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Edwin Groothuis >Release: FreeBSD 4.5-RELEASE i386 >Organization: - >Environment: System: FreeBSD k7.mavetju 4.5-RELEASE FreeBSD 4.5-RELEASE #3: Mon Mar 11 13:32:05 EST 2002 edwin@k7.mavetju.org:/usr/src/sys/compile/k7 i386 # $FreeBSD: ports/palm/imgvtopgm/Makefile,v 1.8 2000/05/08 15:28:06 sumikawa Exp $ # $FreeBSD: ports/graphics/netpbm/Makefile,v 1.59 2002/06/20 02:08:57 pat Exp $ >Description: Netpbm version 10.2 (I assume) renamed libpnm.so.* to libnetpbm.so.*. imgvtopgm hasn't updated this dependency. >How-To-Repeat: cd /usr/ports/palm/imgvtopgm make >Fix: **** Makefile --- Makefile.old Sat Jul 6 13:16:52 2002 +++ Makefile Sat Jul 6 13:44:00 2002 @@ -12,9 +12,10 @@ MAINTAINER= sumikawa@FreeBSD.org -LIB_DEPENDS= pbm.1:${PORTSDIR}/graphics/netpbm +LIB_DEPENDS= netpbm.1:${PORTSDIR}/graphics/netpbm GNU_CONFIGURE= yes +CONFIGURE_ARGS= --libdir=${PREFIX} MAN1= imgvinfo.1 imgvtopnm.1 imgvview.1 pbmtoimgv.1 \ pgmtoimgv.1 ppmimgvquant.1 **** files/patch-aa --- files/old-aa Sat Jul 6 13:40:02 2002 +++ files/patch-aa Sat Jul 6 13:45:53 2002 @@ -1,5 +1,23 @@ ---- configure- Tue May 9 00:19:53 2000 -+++ configure Tue May 9 00:21:16 2000 +--- configure.orig Thu May 13 01:54:50 1999 ++++ configure Sat Jul 6 13:45:25 2002 +@@ -2248,7 +2248,7 @@ + mu_pnm_save_CPPFLAGS="$CPPFLAGS" + mu_pnm_save_LDFLAGS="$LDFLAGS" + +- LIBS="-lpbm $LIBS" ++ LIBS="-lnetpbm $LIBS" + CFLAGS="$X_CFLAGS $CFLAGS" + CPPFLAGS="$X_CFLAGS $CPPFLAGS" + LDFLAGS="$X_LDFLAGS $LDFLAGS" +@@ -2299,7 +2299,7 @@ + /usr/lib/* \ + /usr/local/lib/*; do + if test -d "$dir" \ +- && test "`ls $dir/libpbm.* 2>/dev/null`" != ""; then ++ && test "`ls $dir/libnetpbm.* 2>/dev/null`" != ""; then + mu_cv_pnm_libraries="$dir" + break + fi @@ -2330,11 +2330,10 @@ X_CFLAGS="-I$pnm_includes $X_CFLAGS" fi @@ -13,3 +31,90 @@ fi pnm_libraries_result="$pnm_libraries" +@@ -2358,14 +2357,14 @@ + LDFLAGS="$LDFLAGS $X_LIBS" + + PBM_LIBS="" +-echo $ac_n "checking for pbm_init in -lpbm""... $ac_c" 1>&6 +-echo "configure:2363: checking for pbm_init in -lpbm" >&5 ++echo $ac_n "checking for pbm_init in -lnetpbm""... $ac_c" 1>&6 ++echo "configure:2363: checking for pbm_init in -lnetpbm" >&5 + ac_lib_var=`echo pbm'_'pbm_init | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lpbm $LIBS" ++LIBS="-lnetpbm $LIBS" + cat > conftest.$ac_ext <&6 +- PBM_LIBS="$PNM_LIBS -lpbm" ++ PBM_LIBS="$PNM_LIBS -lnetpbm" + else + echo "$ac_t""no" 1>&6 + fi + + if test "$PBM_LIBS" = ""; then +-{ echo "configure: error: The PBM library '-lpbm' could not be found. ++{ echo "configure: error: The PBM library '-lnetpbm' could not be found. + Please use the configure options '--with-pnm-includes=DIR' + and '--with-pnm-libraries=DIR' to specify the netpbm location. + See the 'config.log' file for further diagnostics." 1>&2; exit 1; } + fi + + +-PGM_LIBS="" +-echo $ac_n "checking for pgm_init in -lpgm""... $ac_c" 1>&6 +-echo "configure:2412: checking for pgm_init in -lpgm" >&5 +-ac_lib_var=`echo pgm'_'pgm_init | sed 'y%./+-%__p_%'` +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then +- echo $ac_n "(cached) $ac_c" 1>&6 +-else +- ac_save_LIBS="$LIBS" +-LIBS="-lpgm $PNM_LIBS ${PBM_LIBS} $LIBS" +-cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +- rm -rf conftest* +- eval "ac_cv_lib_$ac_lib_var=yes" +-else +- echo "configure: failed program was:" >&5 +- cat conftest.$ac_ext >&5 +- rm -rf conftest* +- eval "ac_cv_lib_$ac_lib_var=no" +-fi +-rm -f conftest* +-LIBS="$ac_save_LIBS" +- +-fi +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then +- echo "$ac_t""yes" 1>&6 +- PGM_LIBS="$PNM_LIBS -lpgm" +-else +- echo "$ac_t""no" 1>&6 +-fi +- +-if test "$PGM_LIBS" = ""; then +-{ echo "configure: error: The PGM library '-lpgm' could not be found. +- Please use the configure options '--with-pnm-includes=DIR' +- and '--with-pnm-libraries=DIR' to specify the netpbm location. +- See the 'config.log' file for further diagnostics." 1>&2; exit 1; } +-fi + + + echo $ac_n "checking whether we need -DSYSV""... $ac_c" 1>&6 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message