From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#36995: 27.0.50; configure enables HAVE_JPEG in spite of --without-X Date: Sat, 10 Aug 2019 13:52:30 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="233268"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 36995@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 10 13:53:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hwPvo-000yYz-O6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Aug 2019 13:53:08 +0200 Original-Received: from localhost ([::1]:35912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwPvn-0003u2-Ek for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Aug 2019 07:53:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50513) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwPvj-0003s5-Ix for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2019 07:53:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hwPvi-0001ON-Gr for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2019 07:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34687) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hwPvi-0001OG-Ds for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2019 07:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hwPvi-0003p3-Af for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2019 07:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Aug 2019 11:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36995 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156543796314665 (code B ref -1); Sat, 10 Aug 2019 11:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Aug 2019 11:52:43 +0000 Original-Received: from localhost ([127.0.0.1]:43508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hwPvP-0003oT-1e for submit@debbugs.gnu.org; Sat, 10 Aug 2019 07:52:43 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hwPvM-0003oL-Cf for submit@debbugs.gnu.org; Sat, 10 Aug 2019 07:52:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50486) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwPvL-0003qY-8d for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2019 07:52:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hwPvK-0001DM-7q for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2019 07:52:39 -0400 Original-Received: from mail.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]:56555 helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hwPvK-0001CT-2F for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2019 07:52:38 -0400 Original-Received: from a1i15 (host2092.kph.uni-mainz.de [134.93.134.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ulm) by smtp.gentoo.org (Postfix) with ESMTPSA id 0AFC4349827; Sat, 10 Aug 2019 11:52:34 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164839 Archived-At: configure --without-X will result in HAVE_JPEG being enabled, if the jpeg library is detected on the system. Unless I am missing something, the only use of the HAVE_JPEG macro (and inclusion of jpeglib.h) is in image.c, which is only being compiled if a window system is enabled (via WINDOW_SYSTEM_OBJ). So enabling jpeg when X is disabled doesn't serve any purpose. Long time ago, all image formats used to be disabled when configured --without-X. Behaviour changed between Emacs versions 24.5 and 25.1. AFAICS, this is due to the following commit, which (intentionally or unintentionally?) dropped the test for a window system: commit 5761a2ecb1a5178d2ea69a39725bdee368a754a5 Author: Paul Eggert Date: Wed Apr 15 18:30:01 2015 -0700 Port jpeg configuration to Solaris 10 with Sun C * configure.ac: Check for jpeglib 6b by trying to link it, instead of relying on cpp magic that has problems in practice. Check for both jpeglib.h and jerror.h features. Remove special case for mingw32, which should no longer be needed (and if it were needed, should now be addressable by hotwiring emacs_cv_jpeglib). Fixes: bug#20332 In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu) of 2019-08-10 built on themis Repository revision: 2c5dd680180e978303662d3d32cc9aa5121b4d29 Repository branch: master System Description: Gentoo/Linux Configured using: 'configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-silent-rules --docdir=/usr/share/doc/emacs-vcs-27.0.9999 --htmldir=/usr/share/doc/emacs-vcs-27.0.9999/html --libdir=/usr/lib64 --program-suffix=-emacs-27-vcs --includedir=/usr/include/emacs-27-vcs --infodir=/usr/share/info/emacs-27-vcs --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=no --disable-acl --without-dbus --without-modules --without-gameuser --without-libgmp --without-gpm --without-json --without-kerberos --without-kerberos5 --without-lcms2 --without-xml2 --without-mailutils --without-selinux --without-gnutls --without-libsystemd --without-threads --without-wide-int --without-zlib --with-sound=no --without-x --without-ns 'CFLAGS=-march=native -ggdb -O2 -pipe' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Configured features: JPEG XIM PDUMPER