Date: Thu, 27 May 2010 05:40:02 GMT From: keramida@freebsd.org (Giorgos Keramidas) To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/146979: editors/emacs configuration ignores "-D WITHOUT_X11" Message-ID: <201005270540.o4R5e2uZ027798@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <swell.k@gmail.com>, Paul Hoffman <phoffman@proper.com>, 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005270540.o4R5e2uZ027798>