Opened 20 years ago

Closed 20 years ago

Last modified 9 years ago

#2826 closed defect (fixed)

BUG: gettext 0.14.3 cannot build when emacs port is active

Reported by: danchr@… Owned by: mij@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: gettext

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I tried to update gettext 0.14.3, and it failed with a linker error. It appears to use emacs when compiling, and found the binary I had installed by DP. It linked against a library provided by gettext, which, of course, wasn't activate whilst upgrading it.

This patch forces it to use /usr/bin/emacs, and tries to speed up the build by using a config.cache.

OK to commit?

Index: devel/gettext/Portfile
===================================================================
RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/devel/gettext/Portfile,v
retrieving revision 1.34
diff -a -u -u -r1.34 Portfile
--- devel/gettext/Portfile	24 Mar 2005 05:58:33 -0000	1.34
+++ devel/gettext/Portfile	7 Apr 2005 16:48:17 -0000
@@ -20,9 +20,10 @@
 
 checksums	md5 14c2644c2f3b0eb67d5db7ee389547de
 
-configure.env	LDFLAGS="-fno-common"
+configure.env	LDFLAGS="-fno-common" EMACS=/usr/bin/emacs
 
 configure.args	--with-included-gettext --mandir=${prefix}/share/man \
+		--cache-file=${worksrcpath}/config.cache \
 		--infodir=${prefix}/share/info --with-libiconv-prefix=${prefix}
 
 depends_lib	lib:XXX:libiconv
@@ -34,6 +35,8 @@
 variant darwin     { configure.env-append CPPFLAGS="-no-cpp-precomp" \
 					  LDFLAGS="-fno-common -bind_at_load"
 		     configure.env-delete LDFLAGS="-fno-common" }
+
+pre-configure     { system "touch ${worksrcpath}/config.cache" }
 
 post-destroot	{ file delete ${destroot}${prefix}/lib/charset.alias \
 		  ${destroot}${prefix}/share/locale/locale.alias }

Change History (3)

comment:1 Changed 20 years ago by danchr@…

Any response to this?

comment:2 Changed 20 years ago by mij@…

Resolution: fixed
Status: newclosed

Committed, thanks.

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: gettext added
Note: See TracTickets for help on using tickets.