From unknown Tue Jun 24 20:56:26 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2266: Superfluous linking against fontconfig Reply-To: Yavor Doganov , 2266@debbugs.gnu.org Resent-From: Yavor Doganov Original-Sender: news Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 10 Feb 2009 09:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2266 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123425788629145 (code B ref -1); Tue, 10 Feb 2009 09:30:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 10 Feb 2009 09:24:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.0 required=4.0 tests=GMAIL,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1A9Of8X029138 for ; Tue, 10 Feb 2009 01:24:43 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWorB-00033z-Ho for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:24:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWorA-00033A-5o for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:24:41 -0500 Received: from [199.232.76.173] (port=46935 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWor9-000333-Aj for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:24:39 -0500 Received: from main.gmane.org ([80.91.229.2]:54128 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWor8-0001gx-Ot for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:24:38 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LWor0-0004Zb-1k for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 09:24:30 +0000 Received: from 213.91.219.2 ([213.91.219.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2009 09:24:30 +0000 Received: from yavor by 213.91.219.2 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2009 09:24:30 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Yavor Doganov Date: Tue, 10 Feb 2009 11:24:18 +0200 Organization: The GNU Emacs Church (Bulgarian eparchy) Lines: 41 Message-ID: <87iqni7igt.GNU's_Not_Unix!%yavor@gnu.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 213.91.219.2 User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 =?UTF-8?Q?(Goj=C5=8D)?= APEL/10.7 Emacs/22.2 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) X-Jabber-ID: doganov@jabber.minus273.org Sender: news X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Tags: patch This change 2008-10-30 Emanuele Giaquinta * configure.in: Check fontconfig always. causes unnecessary linking with libfontconfig when configured --without-x or --with-ns: $ ldd -u -r src/emacs Unused direct dependencies: =09 /usr/lib/libfontconfig.so.1 For Emacs.app, it can't be even removed with -Wl,--as-needed since user-defined LDFLAGS do not propagate to the link rule (yet). A straightforward solution seems to be the following: 2009-02-10 Yavor Doganov (tiny change) * configure.in: Check for fontconfig only if HAVE_X11=3Dyes. --- configure.in 10 =D1=84=D0=B5=D0=B2 2009 09:37:08 +0200 1.585 +++ configure.in 10 =D1=84=D0=B5=D0=B2 2009 11:16:38 +0200=09 @@ -1825,7 +1825,9 @@ fi =20 ### Start of font-backend section. -PKG_CHECK_MODULES(FONTCONFIG, fontconfig >=3D 2.2.0, HAVE_FC=3Dyes, HAVE_F= C=3Dno) +if test "${HAVE_X11}" =3D yes; then + PKG_CHECK_MODULES(FONTCONFIG, fontconfig >=3D 2.2.0, HAVE_FC=3Dyes, HAVE= _FC=3Dno) +fi test "${HAVE_FC}" =3D "no" && with_freetype=3Dno =20 ## Use -lXft if available, unless `--with-freetype=3Dno' nor `--with-xft= =3Dno'. From unknown Tue Jun 24 20:56:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Yavor Doganov Subject: bug#2266 closed by Glenn Morris (Re: bug#2266: Superfluous linking against fontconfig) Message-ID: References: <87iqni7igt.GNU's_Not_Unix!%yavor@gnu.org> X-Emacs-PR-Message: they-closed 2266 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch Reply-To: 2266@debbugs.gnu.org Date: Fri, 27 Feb 2009 22:05:06 +0000 Content-Type: multipart/mixed; boundary="----------=_1235772306-13434-1" This is a multi-part message in MIME format... ------------=_1235772306-13434-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #2266: Superfluous linking against fontconfig It has been closed by Glenn Morris . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Glenn Morris by replying to this email. --=20 2266: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2266 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1235772306-13434-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2266-done) by emacsbugs.donarmstrong.com; 27 Feb 2009 21:56:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1RLuQ0Y011737 for <2266-done@emacsbugs.donarmstrong.com>; Fri, 27 Feb 2009 13:56:27 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LdAek-00053q-Hm; Fri, 27 Feb 2009 16:54:06 -0500 From: Glenn Morris To: 2266-done@debbugs.gnu.org Subject: Re: bug#2266: Superfluous linking against fontconfig References: <87iqni7igt.GNU's_Not_Unix!%yavor@gnu.org> X-Spook: Tony Blair eternity server AFSPC North Korea cybercash X-Ran: )zk`;{X&U.Bo*~@"%\p0mkvJMV~y[_=F]4@[OU:sXWp`KJ"+r/`B2Ww4v)=6+PPjxVdjoC X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 27 Feb 2009 16:54:06 -0500 In-Reply-To: <87iqni7igt.GNU's_Not_Unix!%yavor@gnu.org> (Yavor Doganov's message of "Tue, 10 Feb 2009 11:24:18 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Yavor Doganov wrote: > 2008-10-30 Emanuele Giaquinta > > * configure.in: Check fontconfig always. > > causes unnecessary linking with libfontconfig when configured > --without-x or --with-ns: 2009-02-23 Adrian Robert * configure.in (HAVE_XFT, HAVE_FREETYPE, HAVE_LIBOTF) (HAVE_M17N_FLT): Don't check for these unless HAVE_X11. ------------=_1235772306-13434-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 10 Feb 2009 09:24:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.0 required=4.0 tests=GMAIL,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1A9Of8X029138 for ; Tue, 10 Feb 2009 01:24:43 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWorB-00033z-Ho for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:24:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWorA-00033A-5o for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:24:41 -0500 Received: from [199.232.76.173] (port=46935 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWor9-000333-Aj for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:24:39 -0500 Received: from main.gmane.org ([80.91.229.2]:54128 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWor8-0001gx-Ot for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:24:38 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LWor0-0004Zb-1k for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 09:24:30 +0000 Received: from 213.91.219.2 ([213.91.219.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2009 09:24:30 +0000 Received: from yavor by 213.91.219.2 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2009 09:24:30 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Yavor Doganov Subject: Superfluous linking against fontconfig Date: Tue, 10 Feb 2009 11:24:18 +0200 Organization: The GNU Emacs Church (Bulgarian eparchy) Lines: 41 Message-ID: <87iqni7igt.GNU's_Not_Unix!%yavor@gnu.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 213.91.219.2 User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.2 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) X-Jabber-ID: doganov@jabber.minus273.org Sender: news X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Tags: patch This change 2008-10-30 Emanuele Giaquinta * configure.in: Check fontconfig always. causes unnecessary linking with libfontconfig when configured --without-x or --with-ns: $ ldd -u -r src/emacs Unused direct dependencies: =09 /usr/lib/libfontconfig.so.1 For Emacs.app, it can't be even removed with -Wl,--as-needed since user-defined LDFLAGS do not propagate to the link rule (yet). A straightforward solution seems to be the following: 2009-02-10 Yavor Doganov (tiny change) * configure.in: Check for fontconfig only if HAVE_X11=3Dyes. --- configure.in 10 =D1=84=D0=B5=D0=B2 2009 09:37:08 +0200 1.585 +++ configure.in 10 =D1=84=D0=B5=D0=B2 2009 11:16:38 +0200=09 @@ -1825,7 +1825,9 @@ fi =20 ### Start of font-backend section. -PKG_CHECK_MODULES(FONTCONFIG, fontconfig >=3D 2.2.0, HAVE_FC=3Dyes, HAVE_F= C=3Dno) +if test "${HAVE_X11}" =3D yes; then + PKG_CHECK_MODULES(FONTCONFIG, fontconfig >=3D 2.2.0, HAVE_FC=3Dyes, HAVE= _FC=3Dno) +fi test "${HAVE_FC}" =3D "no" && with_freetype=3Dno =20 ## Use -lXft if available, unless `--with-freetype=3Dno' nor `--with-xft= =3Dno'. ------------=_1235772306-13434-1--