ports/70091: www/wml: install files in a standard directory.
Thierry Thomas
thierry at pompo.net
Fri Aug 6 19:40:25 UTC 2004
>Number: 70091
>Category: ports
>Synopsis: www/wml: install files in a standard directory.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Aug 06 19:40:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Thierry Thomas
>Release: FreeBSD 5.2.1-RELEASE-p9 i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD ws90bj.pompo.net 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #1: Tue Jul 13 18:16:08 CEST 2004 thierry at ws90bj.pompo.net:/usr/obj/usr/src/sys/WS90BJ-040102 i386
>Description:
www/wml installs perl arch-dependent files in a special directory
which requires running `perl -MConfig -we 'print $Config{archname}'`
to build pkg-plist.
>How-To-Repeat:
make install.
>Fix:
The following patch uses $PERL_ARCH.
--- wml.diff begins here ---
diff -urN www/wml.orig/Makefile www/wml/Makefile
--- www/wml.orig/Makefile Fri Aug 6 20:37:28 2004
+++ www/wml/Makefile Fri Aug 6 20:40:05 2004
@@ -7,6 +7,7 @@
PORTNAME= wml
PORTVERSION= 2.0.9
+PORTREVISION= 1
CATEGORIES= www lang
MASTER_SITES= http://thewml.org/distrib/ \
ftp://thewml.org/distrib/
@@ -19,11 +20,12 @@
USE_PERL5= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-perl=${PERL5}
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" \
+ PERL_ARCH="${PERL_ARCH}"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LIBTOOL_VER= 15
LIBTOOLFILES= wml_backend/p2_mp4h/configure
-PLIST_SUB+= ARCH=${LOCAL_PERL_ARCH}
+PLIST_SUB+= ARCH=${PERL_ARCH}
CAT1= wml_aux_txt2html.1 wml_aux_tidy.1 wml_p4_gm4.1
@@ -57,12 +59,6 @@
MAN7= wml_intro.7 wml_macros.7 wml_tutorial.7 wml_faq.7 wml_tags.7
.include <bsd.port.pre.mk>
-
-.if exists(${PERL5})
-LOCAL_PERL_ARCH!= ${PERL5} -MConfig -e 'print "$$Config{archname}"'
-.else
-LOCAL_PERL_ARCH= ${ARCH}-freebsd
-.endif
.if ${ARCH} == "amd64"
BROKEN= "Build fails on amd64 (needs to build shared libraries with -fPIC)"
diff -urN www/wml.orig/files/patch-configure www/wml/files/patch-configure
--- www/wml.orig/files/patch-configure Mon May 10 00:54:54 2004
+++ www/wml/files/patch-configure Fri Aug 6 00:11:43 2004
@@ -1,5 +1,5 @@
---- configure.orig Sat May 8 01:58:52 2004
-+++ configure Sat May 8 01:58:59 2004
+--- configure.orig Fri Oct 18 23:44:21 2002
++++ configure Thu Aug 5 23:40:57 2004
@@ -1170,7 +1170,7 @@
esac
case " $ac_configure_args " in
@@ -9,3 +9,12 @@
esac
fi
done
+@@ -2740,7 +2740,7 @@
+
+ dummy:
+ @echo INSTALLPRIVLIB=`echo $(INSTALLPRIVLIB) | $(abs2prefix)`
+- @echo INSTALLARCHLIB=`echo $(INSTALLARCHLIB) | $(abs2prefix)`
++ @echo INSTALLARCHLIB=`echo $(INSTALLPRIVLIB) | $(abs2prefix)`/$(PERL_ARCH)
+ };
+ }
+ EOT
--- wml.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list