Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 2008 20:40:04 +0200
From:      Giorgos Keramidas <keramida@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/129864: [PATCH] editors/emacs-devel needs gettext to link correctly
Message-ID:  <87vdtcm4u3.fsf@kobe.laptop>
Resent-Message-ID: <200812221900.mBMJ07lI018785@freefall.freebsd.org>

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

>Number:         129864
>Category:       ports
>Synopsis:       <synopsis of the problem (one line)>
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 22 19:00:07 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Giorgos Keramidas
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: FreeBSD kobe 8.0-CURRENT FreeBSD 8.0-CURRENT #0: \
Sat Dec 20 17:54:13 EET 2008 build@kobe:/usr/obj/usr/src/sys/KOBE i386

>Description:

editors/emacs-devel fails to build when gettext is not already
installed from the Ports.  It seems that devel/m17n-lib needs
gettext, but emacs-devel does not link with gettext right now.

The build of editors/emacs-devel fails when gettext is missing with a
link error:

/usr/local/lib/libm17n-core.so: undefined reference to `libintl_bindtextdomain'
/usr/local/lib/libm17n-core.so: undefined reference to `libintl_bind_textdomain_codeset'
gmake[2]: *** [temacs] Error 1

Clemens Fischer (ino-qc at spotteswoode dot de dot eu dot org) first
reported this, and helped me test a patch that pulls in gettext.

Attached below is the patch Clemens has tested...

>How-To-Repeat:

Try building editors/emacs-devel on a system that does not have
gettext already.

>Fix:

----- cut here ----- 8< ----- cut here ----- 8< ----- cut here ----- 8< -----
--- Makefile.orig	2008-12-22 19:32:56.000000000 +0200
+++ Makefile	2008-12-22 19:33:02.000000000 +0200
@@ -57,6 +57,11 @@
 LIB_DEPENDS+=		freetype.9:${PORTSDIR}/print/freetype2 \
 			m17n.3:${PORTSDIR}/devel/m17n-lib
 # also libotf, which is pulled in by m17n
+
+# m17n depends on libintl.so too
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib -lintl"
+USE_GETTEXT=	yes
 .endif
 
 .if defined(WITHOUT_XIM)
----- cut here ----- 8< ----- cut here ----- 8< ----- cut here ----- 8< -----
>Release-Note:
>Audit-Trail:
>Unformatted:



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