From unknown Thu Aug 14 21:42:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10488 <10488@debbugs.gnu.org> To: bug#10488 <10488@debbugs.gnu.org> Subject: Status: guile-config deprecation? Reply-To: bug#10488 <10488@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:42:42 +0000 retitle 10488 guile-config deprecation? reassign 10488 guile submitter 10488 Mike Gran severity 10488 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 12 13:43:06 2012 Received: (at submit) by debbugs.gnu.org; 12 Jan 2012 18:43:06 +0000 Received: from localhost ([127.0.0.1]:55391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlPc9-0000bW-MM for submit@debbugs.gnu.org; Thu, 12 Jan 2012 13:43:05 -0500 Received: from eggs.gnu.org ([140.186.70.92]:40517) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlPc7-0000bQ-Uk for submit@debbugs.gnu.org; Thu, 12 Jan 2012 13:43:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlPbX-0007QN-7P for submit@debbugs.gnu.org; Thu, 12 Jan 2012 13:42:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:57991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlPbX-0007QI-5n for submit@debbugs.gnu.org; Thu, 12 Jan 2012 13:42:27 -0500 Received: from eggs.gnu.org ([140.186.70.92]:42148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlPbR-0007ku-Lb for bug-guile@gnu.org; Thu, 12 Jan 2012 13:42:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlPbM-0007Ox-5e for bug-guile@gnu.org; Thu, 12 Jan 2012 13:42:21 -0500 Received: from nm16.bullet.mail.ac4.yahoo.com ([98.139.52.213]:46616) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RlPbM-0007Or-10 for bug-guile@gnu.org; Thu, 12 Jan 2012 13:42:16 -0500 Received: from [98.139.52.192] by nm16.bullet.mail.ac4.yahoo.com with NNFMP; 12 Jan 2012 18:42:15 -0000 Received: from [98.139.52.154] by tm5.bullet.mail.ac4.yahoo.com with NNFMP; 12 Jan 2012 18:42:15 -0000 Received: from [127.0.0.1] by omp1037.mail.ac4.yahoo.com with NNFMP; 12 Jan 2012 18:42:15 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 540635.28070.bm@omp1037.mail.ac4.yahoo.com Received: (qmail 58033 invoked by uid 60001); 12 Jan 2012 18:42:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1326393734; bh=8lhjoj2EzIm/L7jxWxljmhyaBqc6k7r8ApVGkT58uEI=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gTFGZBMdp+oduEe9qI4jT8t1hVn5J8nA76ceODe+I4+EtjT2Fph04ibEvPRY6JBv/HdvmtZbZiX8wUwcLlbcb4hIyhJxqwgNtEGRKFQDS4rAgrhPt5UFx9MbiIGQeB1oCbNO8zAaVpi0A/LbaBOUP1xrn21dFZeqZhD2y+ui+7E= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uJOPCtL1GwdEy1Xy8+rNzXTHMVDrLkqfDqBpWByWiUjNCgD/aQA3GVT7J1ssxr7mY27qKmNTFOh4qBS3sIpR2ifcIPB3y7EkltNvQ/jV3flhF9DINidKh26EtDBZETMbpX1PEGbdtvx1j8JFAwDMpkzvtS+tC/j4ZlDRtIRRGU8=; X-YMail-OSG: Y6Aui2cVM1m4BBt3Php6A1NP8gbUICXl__mIKeGSHLkcLs2 V_bHiVeZ20nZAZaeGDz3GMPDtEf6SXWCzC3n0qaPej8_HL2W8YccE7mAvaQN 1wh28uNJtIFNbNYbfjz_nHboEkmiqHRBmw5xxjkn.4tMH7ciDBDYRTzfC4qY YAthtMI8pusPKDgCH4FKoayeNiD23VClZ7FuaKgMbjPI.muzY2JGTeS9WrZR aalLYvDAb1WwgwbmDcdXE1PwrDNdhn2eO8YN9Xxgz8PymFQKhnA15w5QsHHx GrHD_gHwirJtrl_LzorhTDxn_DP4g5ZInyE3oQaMOaUud40c6oFtGvMkXaha z.DjshqVsJ.twGBtsPnw6swLmJGhKjq61cTv3StBTngJ0AgdgLTSIwNyseXL aUXBAlDnyi2Oa7Sw2Cpae8lQpam8Bj2JbgYwbhwZF2j1t7vtQ8WMJbC5K0M. 7EdcZ7VMSGKVfECrnnk5MdGZAftf3q4KdK0nHiaHrasOiidas21yFIHzjC08 nlL4- Received: from [71.130.212.57] by web37903.mail.mud.yahoo.com via HTTP; Thu, 12 Jan 2012 10:42:14 PST X-Mailer: YahooMailWebService/0.8.115.331698 Message-ID: <1326393734.53092.YahooMailNeo@web37903.mail.mud.yahoo.com> Date: Thu, 12 Jan 2012 10:42:14 -0800 (PST) From: Mike Gran Subject: guile-config deprecation? To: Bug Guile MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Mike Gran List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) Hi-=0A=0AThere's a bit of confusion on the guile-config deprecation.=0A=0AN= EWS says that guile-config "will be deprecated"=0A=0Ameta/guile-config.in s= ays it "has been deprecated"=0A=0Ameta/guile.m4's GUILE_PROGS rule will err= or "guile-config required=0Abut not found"=0A=0Alikewise those rules that d= epend on GUILE_PROGS, such as GUILE_FLAGS=0Aand GUILE_SITE_DIR=0A=0A=0AIn t= he manual, in the "parallel installations" section, it implies=0Athat GUILE= _SITE_DIR is the way to get the sitedir from pkg-config,=0Abut with guile.m= 4, it is getting that information via guile-config,=0Awhich itself gets it = from pkg-config.=0A=0A=0AIn the README, it suggests "guile-config" is the w= ay to get the=0Asitedir for the installation of slib.=0A=0AThe man page for= pkg-config describes the PKG_CHECK_MODULES macro,=0Abut doesn't give any i= ndication of how to set up any autoconf=0Aflags beyond _CFLAGS and _LIBS.= =A0 So it isn't clear that PKG_CHECK_MODULES=0Acould be used as a replaceme= nt for GUILE_SITE_DIR.=0A=0A=0AIt seems to me, that there is some inconsist= ency here.=A0 I'm worried=0Athat guile-config will just disappear with no e= qually powerful,=0Adocumented replacement in place.=0A=0A=0AThe quickest fi= x would be to not deprecated it, while=0Amaybe creating and documenting a p= arallel set of pkg-config based=0A=0Amacros in guile.m4 for extracting thin= gs like sitedir.=0A=0A=0AThanks,=0A=0AMike=0A From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 02 08:49:39 2012 Received: (at 10488) by debbugs.gnu.org; 2 Feb 2012 13:49:39 +0000 Received: from localhost ([127.0.0.1]:50157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rsx2g-00053F-FH for submit@debbugs.gnu.org; Thu, 02 Feb 2012 08:49:39 -0500 Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:46490 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rsx2e-000538-Ar for 10488@debbugs.gnu.org; Thu, 02 Feb 2012 08:49:37 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 2F0C68D42; Thu, 2 Feb 2012 08:49:09 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=UG5LzlKHSmj2DE8MnxnKtmzwCmQ=; b=Bc8gbE e45TpYu9NRwuj6MDLR7049vfRG966hqSPhtgryTMGhzLNX6Q+LWSqM3aGxAxBVlP 5k23cG3YNM5bZaC38EokrNEu+H6gwenN1hKQQaUbrDkHzKcIeICTOMFzEgh+MXnf qsWdVtyB3Fd8FR+Yt0KkEIi97ZOiKv0jYgS4E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=Xpd2jRHKuiLCLj/UEHoWmHksET8xyW5H aJH1Fa7mrJNKtx5nQkTUrQNUlzw1I/0MB4XDhSHjWD2Onm3yCrAoqyEaj45VYo4N TR0AWJzt0j4OXkFLwffF6GSMLacPrVM4Hxk9RpcPRKSKO/bce/PAKF6V6wtRrK9W SRF/PN8f2vs= Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 2724A8D41; Thu, 2 Feb 2012 08:49:09 -0500 (EST) Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id C4AD98D40; Thu, 2 Feb 2012 08:49:07 -0500 (EST) From: Andy Wingo To: Mike Gran Subject: Re: bug#10488: guile-config deprecation? References: <1326393734.53092.YahooMailNeo@web37903.mail.mud.yahoo.com> Date: Thu, 02 Feb 2012 14:41:35 +0100 In-Reply-To: <1326393734.53092.YahooMailNeo@web37903.mail.mud.yahoo.com> (Mike Gran's message of "Thu, 12 Jan 2012 10:42:14 -0800 (PST)") Message-ID: <8762fpnyi8.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pobox-Relay-ID: AD90DF80-4DA4-11E1-8359-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10488 Cc: 10488@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On Thu 12 Jan 2012 19:42, Mike Gran writes: > There's a bit of confusion on the guile-config deprecation. Indeed. > NEWS says that guile-config "will be deprecated" This reflects what I would like to happen, but I share your concern that we not create a situation in which "guile-config will just disappear with no equally powerful, documented replacement in place". Hence the slowness of this transition. Thanks for bringing it up. > meta/guile-config.in says it "has been deprecated" I changed the text to "will be deprecated". It's somewhat weasel-worded, I guess. > meta/guile.m4's GUILE_PROGS rule will error "guile-config required > but not found" Uf, this is a can of worms. I hacked on this a bit this morning, and came up with the following. What do you think? # GUILE_PKG -- find Guile development files # # Usage: GUILE_PKG([VERSIONS]) # # This macro runs the @code{pkg-config} tool to find development files # for an available version of Guile. # # By default, this macro will search for the latest stable version of # Guile (e.g. 2.0), falling back to the previous stable version # (e.g. 1.8) if it is available. If no guile-@var{VERSION}.pc file is # found, an error is signalled. The found version is stored in # @var{GUILE_EFFECTIVE_VERSION}. # # If @code{GUILE_PROGS} was already invoked, this macro ensures that the # development files have the same effective version as the Guile # program. # # @var{GUILE_EFFECTIVE_VERSION} is marked for substitution, as by # @code{AC_SUBST}. # AC_DEFUN([GUILE_PKG], [PKG_PROG_PKG_CONFIG _guile_versions_to_search=m4_default([$1], [2.0 1.8]) if test -z "$GUILE_EFFECTIVE_VERSION"; then _guile_tmp="" for v in $_guile_versions_to_search; do if test "$v" = "$GUILE_EFFECTIVE_VERSION" _guile_tmp=$v fi done if test -z "$_guile_tmp"; then AC_MSG_FAILURE([searching for guile development files for versions $_guile_versions_to_search, but previously found $GUILE version $GUILE_EFFECTIVE_VERSION]) fi _guile_versions_to_search=$GUILE_EFFECTIVE_VERSION fi GUILE_EFFECTIVE_VERSION="" _guile_errors="" for v in $_guile_versions_to_search; do AC_MSG_NOTICE([checking for guile $v]) if test -z "$GUILE_EFFECTIVE_VERSION"; then PKG_CHECK_EXISTS([guile-$v], [GUILE_EFFECTIVE_VERSION=$v], []) fi done if test -z "$GUILE_EFFECTIVE_VERSION"; then AC_MSG_ERROR([ No Guile development packages were found. Please verify that you have Guile installed. If you installed Guile from a binary distribution, please verify that you have also installed the development packages. If you installed it yourself, you might need to adjust your PKG_CONFIG_PATH; see the pkg-config man page for more. ]) fi AC_MSG_NOTICE([found guile $v]) AC_SUBST([GUILE_EFFECTIVE_VERSION]) ]) # GUILE_FLAGS -- set flags for compiling and linking with Guile # # Usage: GUILE_FLAGS # # This macro runs the @code{pkg-config} tool to find out how to compile # and link programs against Guile. It sets four variables: # @var{GUILE_CFLAGS}, @var{GUILE_LDFLAGS}, @var{GUILE_LIBS}, and # @var{GUILE_LTLIBS}. # # @var{GUILE_CFLAGS}: flags to pass to a C or C++ compiler to build code that # uses Guile header files. This is almost always just one or more @code{-I} # flags. # # @var{GUILE_LDFLAGS}: flags to pass to the compiler to link a program # against Guile. This includes @code{-lguile-@var{VERSION}} for the # Guile library itself, and may also include one or more @code{-L} flag # to tell the compiler where to find the libraries. But it does not # include flags that influence the program's runtime search path for # libraries, and will therefore lead to a program that fails to start, # unless all necessary libraries are installed in a standard location # such as @file{/usr/lib}. # # @var{GUILE_LIBS} and @var{GUILE_LTLIBS}: flags to pass to the compiler or to # libtool, respectively, to link a program against Guile. It includes flags # that augment the program's runtime search path for libraries, so that shared # libraries will be found at the location where they were during linking, even # in non-standard locations. @var{GUILE_LIBS} is to be used when linking the # program directly with the compiler, whereas @var{GUILE_LTLIBS} is to be used # when linking the program is done through libtool. # # The variables are marked for substitution, as by @code{AC_SUBST}. # AC_DEFUN([GUILE_FLAGS], [AC_REQUIRE([GUILE_PKG]) PKG_CHECK_MODULES(GUILE, [guile-$GUILE_EFFECTIVE_VERSION]) dnl GUILE_CFLAGS and GUILE_LIBS are already defined and AC_SUBST'd by dnl PKG_CHECK_MODULES. But GUILE_LIBS to pkg-config is GUILE_LDFLAGS dnl to us. GUILE_LDFLAGS=$GUILE_LIBS dnl Determine the platform dependent parameters needed to use rpath. dnl AC_LIB_LINKFLAGS_FROM_LIBS is defined in gnulib/m4/lib-link.m4 and needs dnl the file gnulib/build-aux/config.rpath. AC_LIB_LINKFLAGS_FROM_LIBS([GUILE_LIBS], [$GUILE_LDFLAGS], []) GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS" AC_LIB_LINKFLAGS_FROM_LIBS([GUILE_LTLIBS], [$GUILE_LDFLAGS], [yes]) GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS" AC_SUBST([GUILE_EFFECTIVE_VERSION]) AC_SUBST([GUILE_CFLAGS]) AC_SUBST([GUILE_LDFLAGS]) AC_SUBST([GUILE_LIBS]) AC_SUBST([GUILE_LTLIBS]) ]) # GUILE_SITE_DIR -- find path to Guile "site" directory # # Usage: GUILE_SITE_DIR # # This looks for Guile's "site" directory, usually something like # PREFIX/share/guile/site, and sets var @var{GUILE_SITE} to the path. # Note that the var name is different from the macro name. # # The variable is marked for substitution, as by @code{AC_SUBST}. # AC_DEFUN([GUILE_SITE_DIR], [AC_REQUIRE([GUILE_PKG]) AC_MSG_CHECKING(for Guile site directory) GUILE_SITE=`$PKG_CONFIG --print-errors --variable=sitedir guile-$GUILE_EFFECTIVE_VERSION` AC_MSG_RESULT($GUILE_SITE) if test "$GUILE_SITE" = ""; then AC_MSG_FAILURE(sitedir not found) fi AC_SUBST(GUILE_SITE) ]) # GUILE_PROGS -- set paths to Guile interpreter, config and tool programs # # Usage: GUILE_PROGS # # This macro looks for programs @code{guile} and @code{guild}, setting # variables @var{GUILE} and @var{GUILD} to their paths, respectively. # If @code{guile} is not found, signal an error. # # The effective version of the found @code{guile} is set to # @var{GUILE_EFFECTIVE_VERSION}. This macro ensures that the effective # version is compatible with the result of a previous invocation of # @code{GUILE_FLAGS}, if any. # # As a legacy interface, it also looks for @code{guile-config} and # @code{guile-tools}, setting @var{GUILE_CONFIG} and @var{GUILE_TOOLS}. # # The variables are marked for substitution, as by @code{AC_SUBST}. # AC_DEFUN([GUILE_PROGS], [AC_PATH_PROG(GUILE,guile) if test "$GUILE" = "" ; then AC_MSG_ERROR([guile required but not found]) fi AC_SUBST(GUILE) _guile_prog_version=`$GUILE -c "(display (effective-version))"` if test -z "$GUILE_EFFECTIVE_VERSION"; then GUILE_EFFECTIVE_VERSION=$_guile_prog_version elif test "$GUILE_EFFECTIVE_VERSION" != "$_guile_prog_version"; then AC_MSG_ERROR([found development files for Guile $GUILE_EFFECTIVE_VERSION, but $GUILE has effective version $_guile_prog_version]) fi AC_PATH_PROG(GUILD,guild) AC_SUBST(GUILD) AC_PATH_PROG(GUILE_CONFIG,guile-config) AC_SUBST(GUILE_CONFIG) if test -n "$GUILD"; then GUILE_TOOLS=$GUILD else AC_PATH_PROG(GUILE_TOOLS,guile-tools) fi AC_SUBST(GUILE_TOOLS) ]) -- http://wingolog.org/ From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 02 13:49:58 2012 Received: (at 10488) by debbugs.gnu.org; 2 Feb 2012 18:49:58 +0000 Received: from localhost ([127.0.0.1]:51162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rt1jE-0004cu-S9 for submit@debbugs.gnu.org; Thu, 02 Feb 2012 13:49:58 -0500 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.120]:12632) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rt1j8-0004ce-Iw for 10488@debbugs.gnu.org; Thu, 02 Feb 2012 13:49:52 -0500 Authentication-Results: cdptpa-omtalb.mail.rr.com smtp.user=dsmich@roadrunner.com; auth=pass (LOGIN) X-Authority-Analysis: v=2.0 cv=ffgvOjsF c=1 sm=0 a=c3IPuW8Q23EA:10 a=zTVDa7HKqxcA:10 a=IkcTkHD0fZMA:10 a=ybZZDoGAAAAA:8 a=CjxXgO3LAAAA:8 a=gB9h--Plw1ihcNmEmZUA:9 a=QEXdDO2ut3YA:10 a=qIVjreYYsbEA:10 a=rC2wZJ5BpNYA:10 a=NGrChGe16laqu4eM8WvRmw==:117 X-Cloudmark-Score: 0 Received: from [10.127.132.153] ([10.127.132.153:64775] helo=cdptpa-web02-z02) by cdptpa-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTPA id 6E/3C-25990-8AADA2F4; Thu, 02 Feb 2012 18:49:12 +0000 Message-ID: <20120202184912.KGOAP.50164.root@cdptpa-web02-z02> Date: Thu, 2 Feb 2012 13:49:12 -0500 From: To: Andy Wingo , Mike Gran Subject: Re: bug#10488: guile-config deprecation? In-Reply-To: <8762fpnyi8.fsf@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) Sensitivity: Normal X-Originating-IP: X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10488 Cc: 10488@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) ---- Andy Wingo wrote: > On Thu 12 Jan 2012 19:42, Mike Gran writes: > > > There's a bit of confusion on the guile-config deprecation. > > Indeed. > > > NEWS says that guile-config "will be deprecated" > > This reflects what I would like to happen, but I share your concern that > we not create a situation in which "guile-config will just disappear > with no equally powerful, documented replacement in place". Hence the > slowness of this transition. Thanks for bringing it up. > > > meta/guile-config.in says it "has been deprecated" > > I changed the text to "will be deprecated". It's somewhat > weasel-worded, I guess. > > > meta/guile.m4's GUILE_PROGS rule will error "guile-config required > > but not found" > > Uf, this is a can of worms. I hacked on this a bit this morning, and > came up with the following. What do you think? How about adding something for extensiondir ? -Dale From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 02 15:43:10 2012 Received: (at 10488) by debbugs.gnu.org; 2 Feb 2012 20:43:10 +0000 Received: from localhost ([127.0.0.1]:51324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rt3Us-0000QB-Gv for submit@debbugs.gnu.org; Thu, 02 Feb 2012 15:43:10 -0500 Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:59207 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rt3Uq-0000Q4-KI for 10488@debbugs.gnu.org; Thu, 02 Feb 2012 15:43:09 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 3F95793DB; Thu, 2 Feb 2012 15:42:39 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=D6m4DUEN2t6SBxXxp73V+WnpcYE=; b=jvV3Zr WJq+u4nTIEDL14isl1UfQqMBA9U2AV9IkUNGY+m642AhYlnXrCkRhFRQLWYRDEMd nuOx85Gi9xtqnpL7jgTFdQmpOFi8KIntk6AwldGif3ud2qpz+YQRmdcPy4TVlY1a +dKQ3kMm/9lvmuBPyj2TvhJ6TFspghN6aZLCU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=W+cxL1/437tOQ4loW4uiuSdRJikTZkmj pLt/KnJ7mcSMan8uT+UHjeanR5y8dT0tl43MZK512u/gERRL/AsqM+U3ePLAXh/a RIoD65DfkjQ9hkyaFSGyvLLBsoIrHeKp+czhVbBPtyFSKH84Hn3Xs/z3XXHODuDC DkvQLiR6H6Y= Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 2062C93DA; Thu, 2 Feb 2012 15:42:39 -0500 (EST) Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 513BE93D9; Thu, 2 Feb 2012 15:42:38 -0500 (EST) From: Andy Wingo To: Subject: Re: bug#10488: guile-config deprecation? References: <20120202184912.KGOAP.50164.root@cdptpa-web02-z02> Date: Thu, 02 Feb 2012 21:42:35 +0100 In-Reply-To: <20120202184912.KGOAP.50164.root@cdptpa-web02-z02> (dsmich@roadrunner.com's message of "Thu, 2 Feb 2012 13:49:12 -0500") Message-ID: <87sjitm0g4.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pobox-Relay-ID: 71C7EC02-4DDE-11E1-9851-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10488 Cc: 10488@debbugs.gnu.org, Mike Gran X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On Thu 02 Feb 2012 19:49, writes: > How about adding something for extensiondir ? That's a good idea. The dir for the .go files, too. Andy -- http://wingolog.org/ From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 30 14:37:36 2012 Received: (at 10488) by debbugs.gnu.org; 30 Mar 2012 18:37:36 +0000 Received: from localhost ([127.0.0.1]:47331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDghb-0001ph-60 for submit@debbugs.gnu.org; Fri, 30 Mar 2012 14:37:36 -0400 Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:58075 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDghM-0001pK-2o for 10488@debbugs.gnu.org; Fri, 30 Mar 2012 14:37:34 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 9195D9370; Fri, 30 Mar 2012 14:05:45 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=uzlUERtRTIKiDcG6CyVnqQu4MCg=; b=yhNL+Q zeGFDKhZKBVwCG/OGnp8uzrTIP3IkE1ABIvHbkln2/Vn6CJh4yRdYmQYD7VVsYGw Lpj2Xth5jFXd0fHB3G5pH7YG3RLuPb2R3/Z09D9280FHDv99dFfzvTQkhf/0KZvK xI9YlIygTPOJS3TkmSPZbGvywliqf1z3t98WA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=GP0NchS5ABRqUyHbNRXYVOBUb3jAo4/9 vMyXgiTpWy53u/JJUcAo0XROy+wap0hopOmDLxv6Me0bqBc8miFwVrYusNgsTHio dvZrXWKMTsc/c0HtbM+oaLCtjfhZHWb2wfjykCnqN3oodJ5BoQljqvy6aLJT+hgZ YBQkemlAdaE= Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 8B239936F; Fri, 30 Mar 2012 14:05:45 -0400 (EDT) Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id E7A61936E; Fri, 30 Mar 2012 14:05:44 -0400 (EDT) From: Andy Wingo To: Mike Gran Subject: Re: bug#10488: guile-config deprecation? References: <1326393734.53092.YahooMailNeo@web37903.mail.mud.yahoo.com> <8762fpnyi8.fsf@pobox.com> Date: Fri, 30 Mar 2012 20:05:41 +0200 In-Reply-To: <8762fpnyi8.fsf@pobox.com> (Andy Wingo's message of "Thu, 02 Feb 2012 14:41:35 +0100") Message-ID: <877gy2klqi.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pobox-Relay-ID: F8826124-7A92-11E1-933C-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10488 Cc: 10488@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On Thu 02 Feb 2012 14:41, Andy Wingo writes: >> meta/guile.m4's GUILE_PROGS rule will error "guile-config required >> but not found" > > Uf, this is a can of worms. I hacked on this a bit this morning, and > came up with the following. What do you think? I pushed this as wip-guile-pkg, for review. It needs documentation still. Andy -- http://wingolog.org/ From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 02 13:42:31 2013 Received: (at 10488) by debbugs.gnu.org; 2 Mar 2013 18:42:31 +0000 Received: from localhost ([127.0.0.1]:55735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UBrOA-00052R-Hw for submit@debbugs.gnu.org; Sat, 02 Mar 2013 13:42:31 -0500 Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:50378 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UBrO7-00052J-8E for 10488@debbugs.gnu.org; Sat, 02 Mar 2013 13:42:29 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 58F64C134 for <10488@debbugs.gnu.org>; Sat, 2 Mar 2013 13:42:22 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=G60LE2sfm9/kXDbgByaY+UaYPRI=; b=ei6FC7 E5PFGCy4nl27UNBvuSmongl7IFIQ4EKAdC3UW1Y+vuSJyUjzFtswUSJ4DSEfcgJf oGFMIUA6DwsaSXnz9fEIi/RdqZZLMmj5fRxcy1i8hVPSSBHjTy9BE1/FMssYlp3A QLA9QVNgo3DCTkSDur31xmh/z72jCvQ1znRy0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=YVb0sukI0TQiSua1Eh5ZT2qFNAGEIvty 9sF4/Ao9Xm7qvkbZPUQ6hGLbOZRihhDYOzsxIFrEXWULGbWtr12s4VwtRKbJwIzZ /8Y6lxS27TdBqoftCIh8l5Cd5osG85X30gOsAorHR8qM9xNno+1GCjEvbNXNWd9h OScFi3b7zWs= Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 515D8C133 for <10488@debbugs.gnu.org>; Sat, 2 Mar 2013 13:42:22 -0500 (EST) Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 82059C132 for <10488@debbugs.gnu.org>; Sat, 2 Mar 2013 13:42:21 -0500 (EST) From: Andy Wingo To: 10488@debbugs.gnu.org Subject: Re: bug#10488: guile-config deprecation? References: <1326393734.53092.YahooMailNeo@web37903.mail.mud.yahoo.com> <8762fpnyi8.fsf@pobox.com> <877gy2klqi.fsf@pobox.com> Date: Sat, 02 Mar 2013 19:42:19 +0100 In-Reply-To: <877gy2klqi.fsf@pobox.com> (Andy Wingo's message of "Fri, 30 Mar 2012 20:05:41 +0200") Message-ID: <8738wdhcdw.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Pobox-Relay-ID: EAFACEDA-8368-11E2-9912-034D0E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 10488 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain Hi, An old bug. Here Mike notes that the manual said "guile-config is deprecated", but that guile.m4 still used it. To solve that, I fixed the docs to be say "will be deprecated", and went to look at the .m4. I ended up rewriting it. The new guile.m4 lets you choose a version, which is nice. It also checks to make sure that the Guile found via checking for GUILE_FLAGS was the same as the Guile found via checking for GUILE_PROGS. I pushed it to a branch a year ago but it never got review. Here's the patch, rebased and attached. I'll commit it soon if there are no objections. Regards, Andy --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-guile.m4-allows-selection-of-guile-2.0-1.8-etc.patch >From fde2e48a1e17e9f5844bae8c43f0938bcb02e60a Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 30 Mar 2012 20:04:16 +0200 Subject: [PATCH] guile.m4 allows selection of guile 2.0, 1.8, etc. * meta/guile.m4 (GUILE_PKG): New macro, chooses a version of Guile against which to compile. (GUILE_FLAGS, GUILE_PROGS): Rewrite to call GUILE_PKG as necessary, to respect any previous call to GUILE_PKG, and to not require guile-tools. --- meta/guile.m4 | 171 +++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 124 insertions(+), 47 deletions(-) diff --git a/meta/guile.m4 b/meta/guile.m4 index a7186fb..a3e1ef1 100644 --- a/meta/guile.m4 +++ b/meta/guile.m4 @@ -1,6 +1,6 @@ ## Autoconf macros for working with Guile. ## -## Copyright (C) 1998,2001, 2006, 2010 Free Software Foundation, Inc. +## Copyright (C) 1998,2001, 2006, 2010, 2012 Free Software Foundation, Inc. ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public License @@ -22,6 +22,7 @@ ## Index ## ----- ## +## GUILE_PKG -- find Guile development files ## GUILE_PROGS -- set paths to Guile interpreter, config and tool programs ## GUILE_FLAGS -- set flags for compiling and linking with Guile ## GUILE_SITE_DIR -- find path to Guile "site" directory @@ -38,53 +39,85 @@ ## NOTE: Comments preceding an AC_DEFUN (starting from "Usage:") are massaged ## into doc/ref/autoconf-macros.texi (see Makefile.am in that directory). -# GUILE_PROGS -- set paths to Guile interpreter, config and tool programs -# -# Usage: GUILE_PROGS -# -# This macro looks for programs @code{guile}, @code{guile-config} and -# @code{guile-tools}, and sets variables @var{GUILE}, @var{GUILE_CONFIG} and -# @var{GUILE_TOOLS}, to their paths, respectively. If either of the first two -# is not found, signal error. -# -# The variables are marked for substitution, as by @code{AC_SUBST}. -# -AC_DEFUN([GUILE_PROGS], - [AC_PATH_PROG(GUILE,guile) - if test "$GUILE" = "" ; then - AC_MSG_ERROR([guile required but not found]) +# GUILE_PKG -- find Guile development files +# +# Usage: GUILE_PKG([VERSIONS]) +# +# This macro runs the @code{pkg-config} tool to find development files +# for an available version of Guile. +# +# By default, this macro will search for the latest stable version of +# Guile (e.g. 2.0), falling back to the previous stable version +# (e.g. 1.8) if it is available. If no guile-@var{VERSION}.pc file is +# found, an error is signalled. The found version is stored in +# @var{GUILE_EFFECTIVE_VERSION}. +# +# If @code{GUILE_PROGS} was already invoked, this macro ensures that the +# development files have the same effective version as the Guile +# program. +# +# @var{GUILE_EFFECTIVE_VERSION} is marked for substitution, as by +# @code{AC_SUBST}. +# +AC_DEFUN([GUILE_PKG], + [PKG_PROG_PKG_CONFIG + _guile_versions_to_search="m4_default([$1], [2.0 1.8])" + if test -n "$GUILE_EFFECTIVE_VERSION"; then + _guile_tmp="" + for v in $_guile_versions_to_search; do + if test "$v" = "$GUILE_EFFECTIVE_VERSION"; then + _guile_tmp=$v + fi + done + if test -z "$_guile_tmp"; then + AC_MSG_FAILURE([searching for guile development files for versions $_guile_versions_to_search, but previously found $GUILE version $GUILE_EFFECTIVE_VERSION]) + fi + _guile_versions_to_search=$GUILE_EFFECTIVE_VERSION fi - AC_SUBST(GUILE) - AC_PATH_PROG(GUILE_CONFIG,guile-config) - if test "$GUILE_CONFIG" = "" ; then - AC_MSG_ERROR([guile-config required but not found]) + GUILE_EFFECTIVE_VERSION="" + _guile_errors="" + for v in $_guile_versions_to_search; do + AC_MSG_NOTICE([checking for guile $v]) + if test -z "$GUILE_EFFECTIVE_VERSION"; then + PKG_CHECK_EXISTS([guile-$v], [GUILE_EFFECTIVE_VERSION=$v], []) + fi + done + + if test -z "$GUILE_EFFECTIVE_VERSION"; then + AC_MSG_ERROR([ +No Guile development packages were found. + +Please verify that you have Guile installed. If you installed Guile +from a binary distribution, please verify that you have also installed +the development packages. If you installed it yourself, you might need +to adjust your PKG_CONFIG_PATH; see the pkg-config man page for more. +]) fi - AC_SUBST(GUILE_CONFIG) - AC_PATH_PROG(GUILE_TOOLS,guile-tools) - AC_SUBST(GUILE_TOOLS) + AC_MSG_NOTICE([found guile $v]) + AC_SUBST([GUILE_EFFECTIVE_VERSION]) ]) # GUILE_FLAGS -- set flags for compiling and linking with Guile # # Usage: GUILE_FLAGS # -# This macro runs the @code{guile-config} script, installed with Guile, to -# find out where Guile's header files and libraries are installed. It sets -# four variables, @var{GUILE_CFLAGS}, @var{GUILE_LDFLAGS}, @var{GUILE_LIBS}, -# and @var{GUILE_LTLIBS}. +# This macro runs the @code{pkg-config} tool to find out how to compile +# and link programs against Guile. It sets four variables: +# @var{GUILE_CFLAGS}, @var{GUILE_LDFLAGS}, @var{GUILE_LIBS}, and +# @var{GUILE_LTLIBS}. # # @var{GUILE_CFLAGS}: flags to pass to a C or C++ compiler to build code that # uses Guile header files. This is almost always just one or more @code{-I} # flags. # -# @var{GUILE_LDFLAGS}: flags to pass to the compiler to link a program against -# Guile. This includes @code{-lguile} for the Guile library itself, any -# libraries that Guile itself requires (like -lqthreads), and so on. It may -# also include one or more @code{-L} flag to tell the compiler where to find -# the libraries. But it does not include flags that influence the program's -# runtime search path for libraries, and will therefore lead to a program -# that fails to start, unless all necessary libraries are installed in a -# standard location such as @file{/usr/lib}. +# @var{GUILE_LDFLAGS}: flags to pass to the compiler to link a program +# against Guile. This includes @code{-lguile-@var{VERSION}} for the +# Guile library itself, and may also include one or more @code{-L} flag +# to tell the compiler where to find the libraries. But it does not +# include flags that influence the program's runtime search path for +# libraries, and will therefore lead to a program that fails to start, +# unless all necessary libraries are installed in a standard location +# such as @file{/usr/lib}. # # @var{GUILE_LIBS} and @var{GUILE_LTLIBS}: flags to pass to the compiler or to # libtool, respectively, to link a program against Guile. It includes flags @@ -97,16 +130,14 @@ AC_DEFUN([GUILE_PROGS], # The variables are marked for substitution, as by @code{AC_SUBST}. # AC_DEFUN([GUILE_FLAGS], - [dnl Find guile-config. - AC_REQUIRE([GUILE_PROGS])dnl + [AC_REQUIRE([GUILE_PKG]) + PKG_CHECK_MODULES(GUILE, [guile-$GUILE_EFFECTIVE_VERSION]) - AC_MSG_CHECKING([libguile compile flags]) - GUILE_CFLAGS="`$GUILE_CONFIG compile`" - AC_MSG_RESULT([$GUILE_CFLAGS]) + dnl GUILE_CFLAGS and GUILE_LIBS are already defined and AC_SUBST'd by + dnl PKG_CHECK_MODULES. But GUILE_LIBS to pkg-config is GUILE_LDFLAGS + dnl to us. - AC_MSG_CHECKING([libguile link flags]) - GUILE_LDFLAGS="`$GUILE_CONFIG link`" - AC_MSG_RESULT([$GUILE_LDFLAGS]) + GUILE_LDFLAGS=$GUILE_LIBS dnl Determine the platform dependent parameters needed to use rpath. dnl AC_LIB_LINKFLAGS_FROM_LIBS is defined in gnulib/m4/lib-link.m4 and needs @@ -116,6 +147,7 @@ AC_DEFUN([GUILE_FLAGS], AC_LIB_LINKFLAGS_FROM_LIBS([GUILE_LTLIBS], [$GUILE_LDFLAGS], [yes]) GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS" + AC_SUBST([GUILE_EFFECTIVE_VERSION]) AC_SUBST([GUILE_CFLAGS]) AC_SUBST([GUILE_LDFLAGS]) AC_SUBST([GUILE_LIBS]) @@ -133,16 +165,61 @@ AC_DEFUN([GUILE_FLAGS], # The variable is marked for substitution, as by @code{AC_SUBST}. # AC_DEFUN([GUILE_SITE_DIR], - [AC_REQUIRE([GUILE_PROGS])dnl + [AC_REQUIRE([GUILE_PKG]) AC_MSG_CHECKING(for Guile site directory) - GUILE_SITE=`[$GUILE_CONFIG] info sitedir` + GUILE_SITE=`$PKG_CONFIG --print-errors --variable=sitedir guile-$GUILE_EFFECTIVE_VERSION` + AC_MSG_RESULT($GUILE_SITE) if test "$GUILE_SITE" = ""; then - GUILE_SITE=`[$GUILE_CONFIG] info pkgdatadir`/site + AC_MSG_FAILURE(sitedir not found) fi - AC_MSG_RESULT($GUILE_SITE) AC_SUBST(GUILE_SITE) ]) +# GUILE_PROGS -- set paths to Guile interpreter, config and tool programs +# +# Usage: GUILE_PROGS +# +# This macro looks for programs @code{guile} and @code{guild}, setting +# variables @var{GUILE} and @var{GUILD} to their paths, respectively. +# If @code{guile} is not found, signal an error. +# +# The effective version of the found @code{guile} is set to +# @var{GUILE_EFFECTIVE_VERSION}. This macro ensures that the effective +# version is compatible with the result of a previous invocation of +# @code{GUILE_FLAGS}, if any. +# +# As a legacy interface, it also looks for @code{guile-config} and +# @code{guile-tools}, setting @var{GUILE_CONFIG} and @var{GUILE_TOOLS}. +# +# The variables are marked for substitution, as by @code{AC_SUBST}. +# +AC_DEFUN([GUILE_PROGS], + [AC_PATH_PROG(GUILE,guile) + if test "$GUILE" = "" ; then + AC_MSG_ERROR([guile required but not found]) + fi + AC_SUBST(GUILE) + + _guile_prog_version=`$GUILE -c "(display (effective-version))"` + if test -z "$GUILE_EFFECTIVE_VERSION"; then + GUILE_EFFECTIVE_VERSION=$_guile_prog_version + elif test "$GUILE_EFFECTIVE_VERSION" != "$_guile_prog_version"; then + AC_MSG_ERROR([found development files for Guile $GUILE_EFFECTIVE_VERSION, but $GUILE has effective version $_guile_prog_version]) + fi + + AC_PATH_PROG(GUILD,guild) + AC_SUBST(GUILD) + + AC_PATH_PROG(GUILE_CONFIG,guile-config) + AC_SUBST(GUILE_CONFIG) + if test -n "$GUILD"; then + GUILE_TOOLS=$GUILD + else + AC_PATH_PROG(GUILE_TOOLS,guile-tools) + fi + AC_SUBST(GUILE_TOOLS) + ]) + # GUILE_CHECK -- evaluate Guile Scheme code and capture the return value # # Usage: GUILE_CHECK_RETVAL(var,check) -- 1.7.10.4 --=-=-= Content-Type: text/plain -- http://wingolog.org/ --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 02 16:41:38 2013 Received: (at 10488) by debbugs.gnu.org; 2 Mar 2013 21:41:38 +0000 Received: from localhost ([127.0.0.1]:55929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UBuBV-0001XJ-RS for submit@debbugs.gnu.org; Sat, 02 Mar 2013 16:41:38 -0500 Received: from xanadu.aquilenet.fr ([88.191.123.111]:39842) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UBuBU-0001XC-2h for 10488@debbugs.gnu.org; Sat, 02 Mar 2013 16:41:37 -0500 Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 59FBDB9E1; Sat, 2 Mar 2013 22:41:29 +0100 (CET) Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tB9XmaIiuaIX; Sat, 2 Mar 2013 22:41:29 +0100 (CET) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id D35F9B99A; Sat, 2 Mar 2013 22:41:28 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Andy Wingo Subject: Re: bug#10488: guile-config deprecation? References: <1326393734.53092.YahooMailNeo@web37903.mail.mud.yahoo.com> <8762fpnyi8.fsf@pobox.com> <877gy2klqi.fsf@pobox.com> <8738wdhcdw.fsf@pobox.com> Date: Sat, 02 Mar 2013 22:41:28 +0100 In-Reply-To: <8738wdhcdw.fsf@pobox.com> (Andy Wingo's message of "Sat, 02 Mar 2013 19:42:19 +0100") Message-ID: <874ngt32ev.fsf@gnu.org> User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi! Andy Wingo skribis: > +# GUILE_PKG -- find Guile development files > +# > +# Usage: GUILE_PKG([VERSIONS]) > +# > +# This macro runs the @code{pkg-config} tool to find development files > +# for an available version of Guile. > +# > +# By default, this macro will search for the latest stable version of > +# Guile (e.g. 2.0), falling back to the previous stable version > +# (e.g. 1.8) if it is available. If no guile-@var{VERSION}.pc file is > +# found, an error is signalled. The found version is stored in > +# @var{GUILE_EFFECTIVE_VERSION}. > +# > +# If @code{GUILE_PROGS} was already invoked, this macro ensures that the > +# development files have the same effective version as the Guile > +# program. > +# > +# @var{GUILE_EFFECTIVE_VERSION} is marked for substitution, as by > +# @code{AC_SUBST}. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4996] X-Debbugs-Envelope-To: 10488 Cc: 10488@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.7 (/) Hi! Andy Wingo skribis: > +# GUILE_PKG -- find Guile development files > +# > +# Usage: GUILE_PKG([VERSIONS]) > +# > +# This macro runs the @code{pkg-config} tool to find development files > +# for an available version of Guile. > +# > +# By default, this macro will search for the latest stable version of > +# Guile (e.g. 2.0), falling back to the previous stable version > +# (e.g. 1.8) if it is available. If no guile-@var{VERSION}.pc file is > +# found, an error is signalled. The found version is stored in > +# @var{GUILE_EFFECTIVE_VERSION}. > +# > +# If @code{GUILE_PROGS} was already invoked, this macro ensures that the > +# development files have the same effective version as the Guile > +# program. > +# > +# @var{GUILE_EFFECTIVE_VERSION} is marked for substitution, as by > +# @code{AC_SUBST}. Looks good. My main grief would be that it makes guile.m4 depend on pkg.m4, which we don=E2=80=99t distribute ourselves. And so this may cause =E2=80=9CPKG_PROG_PKG_CONFIG: command not found=E2=80=9D bug reports. Hmm, WDYT? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 09 05:21:27 2013 Received: (at 10488) by debbugs.gnu.org; 9 Mar 2013 10:21:27 +0000 Received: from localhost ([127.0.0.1]:40911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UEGu7-0004SH-0R for submit@debbugs.gnu.org; Sat, 09 Mar 2013 05:21:27 -0500 Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:57254 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UEGu4-0004SA-SD for 10488@debbugs.gnu.org; Sat, 09 Mar 2013 05:21:25 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 566DBCF52; Sat, 9 Mar 2013 05:20:42 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=djgBGiIDzUjw L9PZTASufndhp3U=; b=CK0EL+PvUgfdhitojumtIHtY78BZaRuSM0TYvLtWzW0K naOKVpRziQ6NedqUchIR4AWQwoDao4n0YMxR7kLtQ478v3frXbh/2PwpUkNnjCyU uyYH9DL7w3KLYsrhqrMEElGezAL4OWVr2u0P8KXxF6jDPVS6orKwGd5r13pwq3g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=aZlu1T 0t3Z/m7Ze3a5xeYkQqLuY2ijub/oZSUDpZBDu21ONRM/ky9Kz17bAYQZKGxuNFwi p1f9S/6LfkwNqpkdwYhZMd4gVr/yZpvnIjPcyo4Lef5MjuyZrXmRT94lUYYh6nlm W90U/gBMNWMRKCr+UqEQB0M1sTqONxOhf2zf4= Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 4F924CF51; Sat, 9 Mar 2013 05:20:42 -0500 (EST) Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id C54B0CF50; Sat, 9 Mar 2013 05:20:41 -0500 (EST) From: Andy Wingo To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#10488: guile-config deprecation? References: <1326393734.53092.YahooMailNeo@web37903.mail.mud.yahoo.com> <8762fpnyi8.fsf@pobox.com> <877gy2klqi.fsf@pobox.com> <8738wdhcdw.fsf@pobox.com> <874ngt32ev.fsf@gnu.org> Date: Sat, 09 Mar 2013 11:20:39 +0100 In-Reply-To: <874ngt32ev.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sat, 02 Mar 2013 22:41:28 +0100") Message-ID: <878v5w3mdk.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pobox-Relay-ID: FF081C18-88A2-11E2-851E-59240E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 10488 Cc: 10488@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) On Sat 02 Mar 2013 22:41, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Looks good. My main grief would be that it makes guile.m4 depend on > pkg.m4, which we don=E2=80=99t distribute ourselves. And so this may cau= se > =E2=80=9CPKG_PROG_PKG_CONFIG: command not found=E2=80=9D bug reports. We can just tell people to cat pkg.m4 into their acinclude.m4, if that's an issue. guile-config already calls the pkg-config binary, so builders will probably have it installed anyway. Andy --=20 http://wingolog.org/ From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 09 05:29:12 2013 Received: (at 10488) by debbugs.gnu.org; 9 Mar 2013 10:29:12 +0000 Received: from localhost ([127.0.0.1]:40923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UEH1a-0004cw-5m for submit@debbugs.gnu.org; Sat, 09 Mar 2013 05:29:11 -0500 Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:39683 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UEH1X-0004co-1P for 10488@debbugs.gnu.org; Sat, 09 Mar 2013 05:29:08 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 6C0A6CF8E; Sat, 9 Mar 2013 05:28:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=AqV0v4v4i5m6bK/9sbJzUliQfeQ=; b=F+NPCh b+mmiECHt8pwx690Q4dgjAjs5FyrnrDL81ukcI3YtMExjAu+KNpZg05clJ1nS7rZ vBIZnsV1+8o849KT+IpVUymyTS4ktsLuQwzN9beTfnBTH44cqaCuUOWUP/Db75LU r3DhDfhIkZU33aj3bsdpoOuQdgEhHPyloZQjo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=rNR9HLtpFIAUw4e6XrKDJ0bzTd48cIV6 h5RIjDafbS1uBfqQkE7+ogOvOoiPOO3jiQeNR5vRHUMUNrwVt3T7bLFDN77VPRes BB3l259It8/qToNWXYVQBvdw8tFDqBSniZ3faJN/dr2AEVKola+g5Gt+1GZsWwtp 3filspJnK6c= Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 64D46CF8D; Sat, 9 Mar 2013 05:28:24 -0500 (EST) Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id DEB18CF8C; Sat, 9 Mar 2013 05:28:23 -0500 (EST) From: Andy Wingo To: Thien-Thi Nguyen Subject: Re: bug#10488: guile-config deprecation? References: <1326393734.53092.YahooMailNeo@web37903.mail.mud.yahoo.com> <8762fpnyi8.fsf@pobox.com> <877gy2klqi.fsf@pobox.com> <8738wdhcdw.fsf@pobox.com> <878v65q84t.fsf@zigzag.favinet> Date: Sat, 09 Mar 2013 11:28:21 +0100 In-Reply-To: <878v65q84t.fsf@zigzag.favinet> (Thien-Thi Nguyen's message of "Sun, 03 Mar 2013 08:01:38 +0100") Message-ID: <8738w43m0q.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 1277FF38-88A4-11E2-B7E6-59240E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 10488 Cc: 10488@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) Hi, On Sun 03 Mar 2013 08:01, Thien-Thi Nguyen writes: > () Andy Wingo > () Sat, 02 Mar 2013 19:42:19 +0100 > > I pushed it to a branch a year ago but it never got review. Here's > the patch, rebased and attached. I'll commit it soon if there are no > objections. > > Not an objection, but a suggestion: If the purpose of the code is to > select a Guile version, why not call it guile-sel.m4 (or somesuch), > and distribute it alongside guile.m4? With parallel installation, there is no obvious global choice of which version of Guile is the right one. Projects should choose, explicitly. A guile.m4 update will adjust the default search order, but projects should probably also bundle a copy of guile.m4 to prevent bug reports about inexplicable autoconf errors. So even if the system guile.m4 is updated, a typical project's choice of version does not change. There is also the difficulty that Guile provides two APIs: one for C and one for Scheme. When guile.m4 goes to look for the details of those APIs (e.g. the guild binary, and the libguile library), they need to come from the same Guile installation. For this reason guile.m4 should be aware of which choice the user has made, and have an easy way of correlating C and Scheme API. Andy -- http://wingolog.org/ From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 10 18:36:44 2013 Received: (at 10488-done) by debbugs.gnu.org; 10 Mar 2013 22:36:44 +0000 Received: from localhost ([127.0.0.1]:44648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UEorA-0000JS-Cy for submit@debbugs.gnu.org; Sun, 10 Mar 2013 18:36:44 -0400 Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:53550 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UEor5-0000JJ-WC for 10488-done@debbugs.gnu.org; Sun, 10 Mar 2013 18:36:39 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id BF0C2C339 for <10488-done@debbugs.gnu.org>; Sun, 10 Mar 2013 18:35:44 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=QqFVj3fTpqKSCJjEivJolbsZhVo=; b=lnLvC2 q119CmFMrR+PlS/6+Ar4x5Bx8GWs014X45nhKUJREuwTszH+dBRyU6Au3W7ZxGCG t2nBLGKkKOc+iJ41gVVBFnaKAvTlY+HM3X20EbNN6dFpFlEyNxWHBxBHEt+Dxd7k O68gTWfd/YltazOPVP9CnaFx4FUFbRh0ORxmk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=t6rxE1KS06aF9ofaonQMz7Ee0Jxb0uV8 WHkQFg7UTjaFXM159sJ1Tr3MOc8BbSVQr/TdZlliya+OdkCS6XdxGu2YZi2klHQU FdLZTqMl/Oh7JKUKCJYOfI78S9r1n/EhJpM8yoG9iZCriHRP0IHG2P6I9EvH7wAV aR9ISxZD++4= Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id B831CC338 for <10488-done@debbugs.gnu.org>; Sun, 10 Mar 2013 18:35:44 -0400 (EDT) Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 417F2C337 for <10488-done@debbugs.gnu.org>; Sun, 10 Mar 2013 18:35:44 -0400 (EDT) From: Andy Wingo To: 10488-done@debbugs.gnu.org Subject: Re: bug#10488: guile-config deprecation? References: <1326393734.53092.YahooMailNeo@web37903.mail.mud.yahoo.com> <8762fpnyi8.fsf@pobox.com> <877gy2klqi.fsf@pobox.com> <8738wdhcdw.fsf@pobox.com> Date: Sun, 10 Mar 2013 23:35:41 +0100 In-Reply-To: <8738wdhcdw.fsf@pobox.com> (Andy Wingo's message of "Sat, 02 Mar 2013 19:42:19 +0100") Message-ID: <87620yublu.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: D88F2064-89D2-11E2-9F7B-59240E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 10488-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) On Sat 02 Mar 2013 19:42, Andy Wingo writes: > I pushed it to a branch a year ago but it never got review. Here's the > patch, rebased and attached. I'll commit it soon if there are no > objections. I have pushed this. Please test with your applications! Andy -- http://wingolog.org/ From unknown Thu Aug 14 21:42:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 08 Apr 2013 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator