From unknown Wed Jun 25 03:54:37 2025 X-Loop: don@donarmstrong.com Subject: bug#1230: `configure --with-ns' fails when the shell is not bash Reply-To: Yavor Doganov , 1230@debbugs.gnu.org Resent-From: Yavor Doganov Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: yavor@gnu.org, Emacs Bugs , don@donarmstrong.com Resent-Date: Thu, 23 Oct 2008 11:45:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1230 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: patch Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12247619247398 (code B ref -1); Thu, 23 Oct 2008 11:45:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-12.2 required=4.0 tests=AWL,BAYES_00,HAS_PACKAGE, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED,X_DEBBUGS_CC autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Oct 2008 11:38:44 +0000 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 m9NBcaxA007391 for ; Thu, 23 Oct 2008 04:38:37 -0700 Received: from mx10.gnu.org ([199.232.76.166]:56174) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsyTp-0006O6-PO for emacs-pretest-bug@gnu.org; Thu, 23 Oct 2008 07:35:53 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsyWQ-0001lZ-WD for emacs-pretest-bug@gnu.org; Thu, 23 Oct 2008 07:38:35 -0400 Received: from [213.91.219.2] (port=1231 helo=southway-varna.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsyWQ-0001ki-9w for emacs-pretest-bug@gnu.org; Thu, 23 Oct 2008 07:38:34 -0400 Received: from keel.southway-varna.com ([192.168.0.2]) by southway-varna.com with esmtp (Exim 4.63) (envelope-from ) id 1KsyWG-0006HA-LP for emacs-pretest-bug@gnu.org; Thu, 23 Oct 2008 14:38:29 +0300 Received: from localhost ([127.0.0.1] helo=keel.southway-varna.com) by keel.southway-varna.com with esmtp (Exim 4.69) (envelope-from ) id 1KsyWG-000121-Ef for emacs-pretest-bug@gnu.org; Thu, 23 Oct 2008 14:38:24 +0300 Date: Thu, 23 Oct 2008 14:38:24 +0300 Message-ID: <87y70fsfrj.GNU's_Not_Unix!%yavor@gnu.org> From: Yavor Doganov To: emacs-pretest-bug@gnu.org 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) Organization: The GNU Emacs Church (Bulgarian eparchy) X-Jabber-ID: doganov@jabber.minus273.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-SA-Exim-Connect-IP: 192.168.0.2 X-SA-Exim-Mail-From: yavor@gnu.org X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on southway-varna.com) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Package: emacs,ns Tags: patch $ CONFIG_SHELL=3D/bin/dash /bin/dash ./configure --with-ns ... checking for X... libraries , headers=20 ./configure.lineno: 9373: source: not found ./configure.lineno: 9373: source: not found ./configure.lineno: 9373: source: not found checking AppKit/AppKit.h usability... no checking AppKit/AppKit.h presence... no checking for AppKit/AppKit.h... no That's because "source" is a bash feature. But at this point one would expect that configure should exit with an error. However, it continues, checks for GTK+ and finally fails for me because of missing image librararies. If I had them installed on this machine, it would really configure Emacs for a GTK build. This can't be right; if the user says `--with-ns' he really means that. The attached patch addresses both issues. 2008-10-23 Yavor Doganov (tiny change) * configure.in: Use `.' instead of `source' to source GNUstep.conf. Exit with an error if `--with-ns' was specified but is not found. --- configure.in 23 =D0=BE=D0=BA=D1=82 2008 13:56:25 +0300 1.568 +++ configure.in 23 =D0=BE=D0=BA=D1=82 2008 14:13:27 +0300=09 @@ -1234,15 +1234,17 @@ ns_appbindir=3D`pwd`/nextstep/Emacs.app ns_appresdir=3D`pwd`/nextstep/Emacs.app/Resources ns_appsrc=3D${srcdir}/nextstep/GNUstep/Emacs.base - GNUSTEP_MAKEFILES=3D"$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTE= P_MAKEFILES)" - GNUSTEP_SYSTEM_HEADERS=3D"$(source /etc/GNUstep/GNUstep.conf; echo $G= NUSTEP_SYSTEM_HEADERS)" - GNUSTEP_SYSTEM_LIBRARIES=3D"$(source /etc/GNUstep/GNUstep.conf; echo = $GNUSTEP_SYSTEM_LIBRARIES)" + GNUSTEP_MAKEFILES=3D"$(. /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAK= EFILES)" + GNUSTEP_SYSTEM_HEADERS=3D"$(. /etc/GNUstep/GNUstep.conf; echo $GNUSTE= P_SYSTEM_HEADERS)" + GNUSTEP_SYSTEM_LIBRARIES=3D"$(. /etc/GNUstep/GNUstep.conf; echo $GNUS= TEP_SYSTEM_LIBRARIES)" CPPFLAGS=3D"$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" CFLAGS=3D"$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" REAL_CFLAGS=3D"$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" LDFLAGS=3D"$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" fi - AC_CHECK_HEADER(AppKit/AppKit.h, HAVE_NS=3Dyes) + AC_CHECK_HEADER([AppKit/AppKit.h], [HAVE_NS=3Dyes], + [AC_MSG_ERROR([`--with-ns' was specified, but the include + files are missing or cannot be compiled.])]) NS_HAVE_NSINTEGER=3Dyes AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [NSInteger i;])], From unknown Wed Jun 25 03:54:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Yavor Doganov Subject: bug#1230 closed by Glenn Morris (Re: bug#1230: `configure --with-ns' fails when the shell is not bash) Message-ID: References: <0f1vy6aad9.fsf@fencepost.gnu.org> <87y70fsfrj.GNU's_Not_Unix!%yavor@gnu.org> X-Emacs-PR-Message: they-closed 1230 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: patch Reply-To: 1230@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1224822904-1978-1" This is a multi-part message in MIME format... ------------=_1224822904-1978-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,ns package: #1230: `configure --with-ns' fails when the shell is not bash 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 1230: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1230 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1224822904-1978-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From rgm@gnu.org Thu Oct 23 21:27:21 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-12.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1230-done) by emacsbugs.donarmstrong.com; 24 Oct 2008 04:27:21 +0000 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 m9O4RIY1000714 for <1230-done@emacsbugs.donarmstrong.com>; Thu, 23 Oct 2008 21:27:20 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KtEDz-0001Kt-0v; Fri, 24 Oct 2008 00:24:35 -0400 From: Glenn Morris To: 1230-done@debbugs.gnu.org Subject: Re: bug#1230: `configure --with-ns' fails when the shell is not bash References: <87y70fsfrj.GNU's_Not_Unix!%yavor@gnu.org> X-Spook: constitution Dateline quarter Syria Leuken-Baden Putin X-Ran: }-6XvzX]dh@^V*pg]SvGQ"1OT3eA,S$m0SLt>)UCp|GshQbM`x{+dhkCb4_]P7O'd=nz[m X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 24 Oct 2008 00:24:34 -0400 In-Reply-To: <87y70fsfrj.GNU's_Not_Unix!%yavor@gnu.org> (Yavor Doganov's message of "Thu, 23 Oct 2008 14:38:24 +0300") Message-ID: <0f1vy6aad9.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Thanks; applied. ------------=_1224822904-1978-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From yavor@gnu.org Thu Oct 23 04:38:43 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-12.2 required=4.0 tests=AWL,BAYES_00,HAS_PACKAGE, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED,X_DEBBUGS_CC autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Oct 2008 11:38:44 +0000 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 m9NBcaxA007391 for ; Thu, 23 Oct 2008 04:38:37 -0700 Received: from mx10.gnu.org ([199.232.76.166]:56174) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KsyTp-0006O6-PO for emacs-pretest-bug@gnu.org; Thu, 23 Oct 2008 07:35:53 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KsyWQ-0001lZ-WD for emacs-pretest-bug@gnu.org; Thu, 23 Oct 2008 07:38:35 -0400 Received: from [213.91.219.2] (port=1231 helo=southway-varna.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsyWQ-0001ki-9w for emacs-pretest-bug@gnu.org; Thu, 23 Oct 2008 07:38:34 -0400 Received: from keel.southway-varna.com ([192.168.0.2]) by southway-varna.com with esmtp (Exim 4.63) (envelope-from ) id 1KsyWG-0006HA-LP for emacs-pretest-bug@gnu.org; Thu, 23 Oct 2008 14:38:29 +0300 Received: from localhost ([127.0.0.1] helo=keel.southway-varna.com) by keel.southway-varna.com with esmtp (Exim 4.69) (envelope-from ) id 1KsyWG-000121-Ef for emacs-pretest-bug@gnu.org; Thu, 23 Oct 2008 14:38:24 +0300 Date: Thu, 23 Oct 2008 14:38:24 +0300 Message-ID: <87y70fsfrj.GNU's_Not_Unix!%yavor@gnu.org> From: Yavor Doganov To: emacs-pretest-bug@gnu.org X-Debbugs-CC: yavor@gnu.org 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) Organization: The GNU Emacs Church (Bulgarian eparchy) X-Jabber-ID: doganov@jabber.minus273.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-SA-Exim-Connect-IP: 192.168.0.2 X-SA-Exim-Mail-From: yavor@gnu.org Subject: `configure --with-ns' fails when the shell is not bash X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on southway-varna.com) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Package: emacs,ns Tags: patch $ CONFIG_SHELL=3D/bin/dash /bin/dash ./configure --with-ns ... checking for X... libraries , headers=20 ./configure.lineno: 9373: source: not found ./configure.lineno: 9373: source: not found ./configure.lineno: 9373: source: not found checking AppKit/AppKit.h usability... no checking AppKit/AppKit.h presence... no checking for AppKit/AppKit.h... no That's because "source" is a bash feature. But at this point one would expect that configure should exit with an error. However, it continues, checks for GTK+ and finally fails for me because of missing image librararies. If I had them installed on this machine, it would really configure Emacs for a GTK build. This can't be right; if the user says `--with-ns' he really means that. The attached patch addresses both issues. 2008-10-23 Yavor Doganov (tiny change) * configure.in: Use `.' instead of `source' to source GNUstep.conf. Exit with an error if `--with-ns' was specified but is not found. --- configure.in 23 =D0=BE=D0=BA=D1=82 2008 13:56:25 +0300 1.568 +++ configure.in 23 =D0=BE=D0=BA=D1=82 2008 14:13:27 +0300=09 @@ -1234,15 +1234,17 @@ ns_appbindir=3D`pwd`/nextstep/Emacs.app ns_appresdir=3D`pwd`/nextstep/Emacs.app/Resources ns_appsrc=3D${srcdir}/nextstep/GNUstep/Emacs.base - GNUSTEP_MAKEFILES=3D"$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTE= P_MAKEFILES)" - GNUSTEP_SYSTEM_HEADERS=3D"$(source /etc/GNUstep/GNUstep.conf; echo $G= NUSTEP_SYSTEM_HEADERS)" - GNUSTEP_SYSTEM_LIBRARIES=3D"$(source /etc/GNUstep/GNUstep.conf; echo = $GNUSTEP_SYSTEM_LIBRARIES)" + GNUSTEP_MAKEFILES=3D"$(. /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAK= EFILES)" + GNUSTEP_SYSTEM_HEADERS=3D"$(. /etc/GNUstep/GNUstep.conf; echo $GNUSTE= P_SYSTEM_HEADERS)" + GNUSTEP_SYSTEM_LIBRARIES=3D"$(. /etc/GNUstep/GNUstep.conf; echo $GNUS= TEP_SYSTEM_LIBRARIES)" CPPFLAGS=3D"$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" CFLAGS=3D"$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" REAL_CFLAGS=3D"$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" LDFLAGS=3D"$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" fi - AC_CHECK_HEADER(AppKit/AppKit.h, HAVE_NS=3Dyes) + AC_CHECK_HEADER([AppKit/AppKit.h], [HAVE_NS=3Dyes], + [AC_MSG_ERROR([`--with-ns' was specified, but the include + files are missing or cannot be compiled.])]) NS_HAVE_NSINTEGER=3Dyes AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [NSInteger i;])], ------------=_1224822904-1978-1--