unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Freja Nordsiek <fnordsie@gmail.com>
To: Andy Wingo <wingo@pobox.com>
Cc: 24657-done@debbugs.gnu.org
Subject: bug#24657: Autoconf macro GUILE_PROGS only looks for guile without version suffix even if given version - patch included
Date: Thu, 23 Feb 2017 23:31:46 +0100	[thread overview]
Message-ID: <CAOqf98qYacXZ9W08Ne9hQAOyKYNnyDq3Cr9b+fo0MGSVNfLW7w@mail.gmail.com> (raw)
In-Reply-To: <87bmttw8cv.fsf@pobox.com>

Andy,


Your modifications to the patch make it a bit better since it will
handle the case where guile 2.2 gets put under the name guile-2 or
guile2. GIven how much more similar guile 2.1.x (and eventually 2.2.x)
are to guile 2.0.x than guile 2.0.x is to guile 1.8.x, this is not too
unlikely on distribution or another at some point.

Only one potential issue. On the off chance that the guile program
found by AC_PATH_PROGS is in the current directory and the absolute
path is not given nor a prefix of "./", it might be better to replace

    _guile_suffix=`echo "$GUILE" | sed -e 's,^.*/guile\(.*\)$,\1,'`

with

    _guile_suffix=`basename "$GUILE" | sed -e 's,^.*guile\(.*\)$,\1,'`

which replaces echo with basename to remove all the directory
information and then '/' is not looked for in the sed script anymore.


Freja

On Thu, Feb 23, 2017 at 10:43 AM, Andy Wingo <wingo@pobox.com> wrote:
> Hi Freja,
>
> Thanks for this bug report and the patch, and sorry for the delay :)
>
> On Mon 10 Oct 2016 11:45, Freja Nordsiek <fnordsie@gmail.com> writes:
>
>> While trying to build a package that uses guile with autotools, I
>> found a problem in the provided GUILE_PROGS macro.
>>
>> The macro searches for the executables guile, guild, guile-config, and
>> guile-tools. The problem is that even if the macro is given the
>> version, it only looks for guile, guild, etc. with no version suffix.
>
> Applied your patch with some small modifications; attached.  Let me know
> if it works for you!
>
> Andy
>





  reply	other threads:[~2017-02-23 22:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-10  9:45 bug#24657: Autoconf macro GUILE_PROGS only looks for guile without version suffix even if given version - patch included Freja Nordsiek
2017-02-23  9:43 ` Andy Wingo
2017-02-23 22:31   ` Freja Nordsiek [this message]
2017-03-14 14:25   ` Freja Nordsiek
2017-03-14 14:44     ` Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOqf98qYacXZ9W08Ne9hQAOyKYNnyDq3Cr9b+fo0MGSVNfLW7w@mail.gmail.com \
    --to=fnordsie@gmail.com \
    --cc=24657-done@debbugs.gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).