From owner-freebsd-ports-bugs@FreeBSD.ORG Thu May 27 05:40:03 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 050BA1065670 for ; Thu, 27 May 2010 05:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E85B58FC0A for ; Thu, 27 May 2010 05:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4R5e2kf027800 for ; Thu, 27 May 2010 05:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4R5e2uZ027798; Thu, 27 May 2010 05:40:02 GMT (envelope-from gnats) Date: Thu, 27 May 2010 05:40:02 GMT Message-Id: <201005270540.o4R5e2uZ027798@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: keramida@freebsd.org (Giorgos Keramidas) Cc: Subject: Re: ports/146979: editors/emacs configuration ignores "-D WITHOUT_X11" X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Giorgos Keramidas List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2010 05:40:03 -0000 The following reply was made to PR ports/146979; it has been noted by GNATS. From: keramida@freebsd.org (Giorgos Keramidas) To: wahjava@gmail.com (Ashish SHUKLA) Cc: Anonymous , Paul Hoffman , bug-followup@freebsd.org Subject: Re: ports/146979: editors/emacs configuration ignores "-D WITHOUT_X11" Date: Thu, 27 May 2010 08:32:45 +0300 On Wed, 26 May 2010 20:26:14 +0530, wahjava@gmail.com (Ashish SHUKLA) wrote: > [CCing to keramida@ for his inputs, if there any] > > Anonymous writes: >> SOUND support is not related to X11. It may depend on alsa-lib when it's >> installed but that's all. This should let you build with minimum >> dependencies (only devel/gmake) > > SOUND support doesn't require ALSA on BSDs. It uses OSS, and works great. > > M-x play-sound-file works for me. > > But yes, Thanks for reminding that its not dependent upon X11, and I should > take that WITHOUT_SOUND block from the WITHOUT_X11 block. > >> $ make WITHOUT_X11= WITHOUT_DBUS= BATCH= > >> I'm not sure what GETTEXT is doing there, though. It's not used by emacs >> directly and is useless for nox11 builds. And this comment gives pretty >> clear answer in which specific case it's needed > > Right, we can take that out, or make that support optional via NLS knob, in > case they later decide to use gettext functionality. Emacs itself doesn't need gettext when it is built without X11. There are, however, other libraries that Emacs links with which pull gettext as an indirect dependency. There are libraries that Emacs links with which require libintl: $ for libname in $( ( cd /usr/local/bin ; ldd emacs ) | \ awk '{print $3}' | fgrep /local/ | \ sort | uniq ) ; do ldd $libname 2>&1 | sed -n -e 1p -e /int/p ; \ done /usr/local/lib/libORBit-2.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x28313000) /usr/local/lib/libatk-1.0.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x282d2000) /usr/local/lib/libcroco-0.6.so.3: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x282b1000) /usr/local/lib/libdbus-glib-1.so.2: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x28316000) /usr/local/lib/libgconf-2.so.4: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x283a2000) /usr/local/lib/libgdk-x11-2.0.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x28d00000) /usr/local/lib/libgdk_pixbuf-2.0.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x28362000) /usr/local/lib/libgio-2.0.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x2837b000) /usr/local/lib/libglib-2.0.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x283d4000) /usr/local/lib/libgmodule-2.0.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x283d8000) /usr/local/lib/libgobject-2.0.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x282b8000) /usr/local/lib/libgsf-1.so.114: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x28a44000) /usr/local/lib/libgthread-2.0.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x283d9000) /usr/local/lib/libgtk-x11-2.0.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x290cb000) /usr/local/lib/libm17n-core.so.3: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x281ef000) /usr/local/lib/libm17n-flt.so.3: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x281f8000) /usr/local/lib/libpango-1.0.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x282fc000) /usr/local/lib/libpangocairo-1.0.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x28abe000) /usr/local/lib/libpangoft2-1.0.so.0: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x2832d000) /usr/local/lib/librsvg-2.so.2: libintl.so.8 => /usr/local/lib/libintl.so.8 (0x28e29000) ISTR that we discovered the dependency with gettext when we linked with the m17n library. It's not a direct dependency of Emacs, but it should stay if you ask me.