From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user Subject: Re: configuring guile packages [was: GNU Guile 2.9.8 Released [beta]] Date: Mon, 6 Jan 2020 14:56:46 +0800 Message-ID: References: <87woaa3rq4.fsf@pobox.com> <296377b9-14f8-107a-21f3-ca2c139ef336@gmail.com> <9adebe26-c789-fbaf-f29d-d4757a86c00a@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="129066"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Guile User To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jan 06 07:57:26 2020 Return-path: Envelope-to: guile-user@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 1ioMKM-000XPt-PH for guile-user@m.gmane.org; Mon, 06 Jan 2020 07:57:26 +0100 Original-Received: from localhost ([::1]:48838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioMKL-0006FA-1o for guile-user@m.gmane.org; Mon, 06 Jan 2020 01:57:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58011) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioMK0-0006DR-0Z for guile-user@gnu.org; Mon, 06 Jan 2020 01:57:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioMJu-0007iI-WF for guile-user@gnu.org; Mon, 06 Jan 2020 01:57:03 -0500 Original-Received: from mail-yb1-xb44.google.com ([2607:f8b0:4864:20::b44]:40153) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioMJu-0007hr-S7 for guile-user@gnu.org; Mon, 06 Jan 2020 01:56:58 -0500 Original-Received: by mail-yb1-xb44.google.com with SMTP id a2so21685718ybr.7 for ; Sun, 05 Jan 2020 22:56:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yviC6X5rAF/iy1GPU2oija8yyE6WsJyAWDD5ituabz4=; b=YIG3O61Mew0OEIDZw5K6o18r1DEbuA0Nz1R8Z2KRwilajLHqgjfKniBjXx8cpdo7XQ KqCtbX7IygcIOZzHOtYbTDSXi0150AZVBjtSCQQsdVRI3aT/al55MHToseMNFEv6FTOR vzHpXfr7VSiw+Se0+AvJ2/tITRdT7hFMvjdoU5LGflOguDI1FfXj2kZmyWvI3Bu2SVmi D9xiQ+C1e4sXQp62lwZKMGhxewgH3ScM3AtrmOKoVWUrt4GC7d7u7s/gxYA2LL/2NdxP WTXXXt952lG3EV9UxWdTmoH157Tb8du16f3RCMV0BMBvdE4Rb0fsHu62oZiCj1eQWGKG eQ/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yviC6X5rAF/iy1GPU2oija8yyE6WsJyAWDD5ituabz4=; b=q/GE6IfGSSD0jNlPgoRrFQMOqXIUtTan+q+IYzUN5/hC3tZCV2iqZz+WO5/jkuPJi0 XBn5gZs1M6GNRF5SY2B6OiF7kEdg2MQMeZgmXYR0Rq26ZC+wWbjDcRur5gVm2n3+M9AI HeUkwWd/vEDdkj4sWY0gas3LWZgKiKna23NATp4WAOuuCrc28YLEuNZm3l5kX6rVacFk G5xMOuQbd0ObJY5LM+4AuMr8ijio3f3cgCmDk6Doe9w7IRaIGZAlch+scKpb134ffaXu xwkn4Qa4oJmk97NGIBOOIiaeP6cclJkukxNivu9+c10RLTDckB7iS4FHwjQYvMOC7gAc D9XA== X-Gm-Message-State: APjAAAVo1CKF8aWUGzcjll5dGAMuWv9naWHPyStxUbnrebqZTc/8I0y9 W2ugV5hZR+cegJaVi3haB0RvhO+4vFIwx0XYymw= X-Google-Smtp-Source: APXvYqw0gmdq1ZAeLV/PBkEneE6Jnl1zbD92u8M+Dgzw3ReQW/Uf5RE57sOsJWMngiOPtjTY/H6y6K8grhQf7vEx/Kg= X-Received: by 2002:a25:ce0f:: with SMTP id x15mr73475501ybe.409.1578293817731; Sun, 05 Jan 2020 22:56:57 -0800 (PST) In-Reply-To: <9adebe26-c789-fbaf-f29d-d4757a86c00a@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::b44 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15997 Archived-At: Hi Matt! Thanks for the help. However, it seems doesn't work for me. I think your solution is to solve mixed guile version detection issue, right? I'm building it in docker, a pure clean Debian10 environment. Hmm... On Sat, Jan 4, 2020 at 7:29 AM Matt Wette wrote: > > > On 1/3/20 10:44 AM, Matt Wette wrote: > > On 1/3/20 6:53 AM, Matt Wette wrote: > >>> I am running into other issues, however, when there is a > >>> guile in my path that appears before anything else, but a guile-2 > >>> that appears from another directory. I am working to add > >>> --with-guile to fix that. I'm having problems checking against > >>> 2.0.14, for example. > > I have been working on my configures. I have separate guile-2.0.14, > > -2.2.4 and -2.9.8 installs. > > To get everything to work I ended up with the following configure.ac > > and nyacc.m4. Not beautiful > > but it's working for 2.0.14, 2.2.X and 2.9.8. > > > > ===== snip from configure.ac ===== > > m4_include([./pkg.m4]) > > m4_include([./guile.m4]) > > m4_include([./nyacc.m4]) > > > > AC_ARG_WITH(guile, [ --with-guile path to binary], > > ,with_guile=unspecified) > > > > if test "_$with_guile" != "_unspecified"; then > > GUILE=$with_guile > > GUILE_EFFECTIVE_VERSION=`$GUILE -c "(display (effective-version))"` > > guile_libdir=`$GUILE -c "(display (assq-ref %guile-build-info > > 'libdir))"` > > PKG_CONFIG_LIBDIR=$guile_libdir/pkgconfig > > PKG_CONFIG=pkg-config > > export PKG_CONFIG_LIBDIR > > else > > GUILE_PKG([3.2 3.0 2.9 2.2 2.0]) > > GUILE_PROGS > > fi > > > > GUILE_SITE_DIR > > GUILE_SITE_GO_DIR > > GUILE_DATA_DIR > > > > ========================== > > So I changed configure arg from "--with-guile=/path/to/guile" to > "GUILE=/path/to/guile" > AC_ARG_VAR([GUILE],[path to guile binary]) > if test "x$ac_env_GUILE_set" = "xset"; then > GUILE_EFFECTIVE_VERSION=`$GUILE -c "(display (effective-version))"` > guile_libdir=`$GUILE -c "(display (assq-ref %guile-build-info > 'libdir))"` > PKG_PROG_PKG_CONFIG > PKG_CONFIG_LIBDIR=$guile_libdir/pkgconfig > export PKG_CONFIG_LIBDIR > else > GUILE_PKG([3.0 2.9 2.2 2.0]) > GUILE_PROGS > fi > > > > > > >