Re: [Gnucash-changes] Mac OSX fix - remove non-portable settings

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [Gnucash-changes] Mac OSX fix - remove non-portable settings

Derek Atkins
Neil,

Why did you remove this libtool test from autogen.sh?

-derek

Neil Williams <[hidden email]> writes:

> --- macros/autogen.sh
> +++ macros/autogen.sh
> @@ -126,15 +126,15 @@
>   INTL="--intl --no-changelog";;
>  esac
>  
> -(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
> -  (${LIBTOOL} --version) < /dev/null > /dev/null 2>&1 || {
> -    echo
> -    echo "**Error**: You must have \`libtool' installed to compile GnuCash."
> -    echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.4.2.tar.gz"
> -    echo "(or a newer version if it is available)"
> -    DIE=1
> -  }
> -}
> +# (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
> +#  (${LIBTOOL} --version) < /dev/null > /dev/null 2>&1 || {
> +#    echo
> +#    echo "**Error**: You must have \`libtool' installed to compile GnuCash."
> +#    echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.4.2.tar.gz"
> +#    echo "(or a newer version if it is available)"
> +#    DIE=1
> +#  }
> +#}

--
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       [hidden email]                        PGP key available
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Gnucash-changes] Mac OSX fix - remove non-portable settings

Neil Williams-2
On Thursday 13 October 2005 6:38 pm, Derek Atkins wrote:
> Neil,
>
> Why did you remove this libtool test from autogen.sh?

It halts the OSX build. I'll review it - it could be related to my other
problems with OSX and paths.

> > +# (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
> > +#  (${LIBTOOL} --version) < /dev/null > /dev/null 2>&1 || {
> > +#    echo
> > +#    echo "**Error**: You must have \`libtool' installed to compile
> > GnuCash." +#    echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.4.2.tar.gz"
> > +#    echo "(or a newer version if it is available)"
> > +#    DIE=1
> > +#  }
> > +#}

--

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

attachment0 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Gnucash-changes] Mac OSX fix - remove non-portable settings

Neil Williams-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Neil Williams wrote:
| On Thursday 13 October 2005 6:38 pm, Derek Atkins wrote:
|
|>Neil,
|>
|>Why did you remove this libtool test from autogen.sh?
|
| It halts the OSX build. I'll review it - it could be related to my other
| problems with OSX and paths.

Nope. It's nothing to do with the path. It's this command:

|>>+#  (${LIBTOOL} --version) < /dev/null > /dev/null 2>&1 || {

The version of libtool on OSX has no --version command, it has no --help
or -? or --usage or any other simple command that does not start the
linker. Whatever you pass it, either you pass a valid link command or
you get the error message - which naturally goes to STDERR which autogen
picks up as a "no such file or directory" error and thinks that libtool
is not installed.

PITA!

How do we get around that?

- --

Neil Williams
=============
http://www.codehelp.co.uk/
http://www.dclug.org.uk/
http://www.isbn.org.uk/
http://sourceforge.net/projects/isbnsearch/

http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDTqL6k7DVr6iX/QIRAqehAJ96P9tuHmM92jJtNWRbNMnn70HbSgCgkhQW
KKhxgDKGJonZ149w0IOHuAI=
=YpLV
-----END PGP SIGNATURE-----
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Gnucash-changes] Mac OSX fix - remove non-portable settings

Thomas Bushnell BSG
Neil Williams <[hidden email]> writes:

> The version of libtool on OSX has no --version command, it has no --help
> or -? or --usage or any other simple command that does not start the
> linker. Whatever you pass it, either you pass a valid link command or
> you get the error message - which naturally goes to STDERR which autogen
> picks up as a "no such file or directory" error and thinks that libtool
> is not installed.
>
> PITA!
>
> How do we get around that?

Um, decide that a fundamentally broken libtool constitutes a libtool
which is not installed, and then put one in the tarball for use when
there is none installed? :)

Thomas
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Gnucash-changes] Mac OSX fix - remove non-portable settings

Neil Williams-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Bushnell BSG wrote:
| Neil Williams <[hidden email]> writes:
|
|
|>The version of libtool on OSX has no --version command, it has no --help
|>or -? or --usage or any other simple command that does not start the
|>linker. Whatever you pass it, either you pass a valid link command or
|>you get the error message - which naturally goes to STDERR which autogen
|>picks up as a "no such file or directory" error and thinks that libtool
|>is not installed.
|>
|>PITA!
|>
|>How do we get around that?
|
|
| Um, decide that a fundamentally broken libtool constitutes a libtool
| which is not installed, and then put one in the tarball for use when
| there is none installed? :)

I don't think the tarball is the problem - configure doesn't test for
libtool that way, it's autogen.sh from CVS that is the problem.

I'd expect that this libtool is derived from BSD (it's in /usr/bin not
the /sw/bin from fink) I'd hope that we won't have the same problems on
BSD. Libtool does work on OSX, it just isn't easy to detect. I suppose
we could just assume that darwin always has libtool?

- --

Neil Williams
=============
http://www.codehelp.co.uk/
http://www.dclug.org.uk/
http://www.isbn.org.uk/
http://sourceforge.net/projects/isbnsearch/

http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDTqqYk7DVr6iX/QIRAo7nAJ9QfoZJr5OAKBWVfRSxxRgXuVb6vgCgjDQY
N9/9dAYj0cGakIWnsm5w+6I=
=xg+x
-----END PGP SIGNATURE-----
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Gnucash-changes] Mac OSX fix - remove non-portable settings

Derek Atkins
In reply to this post by Thomas Bushnell BSG
Thomas Bushnell BSG <[hidden email]> writes:

> Neil Williams <[hidden email]> writes:
>
>> The version of libtool on OSX has no --version command, it has no --help
>> or -? or --usage or any other simple command that does not start the
>> linker. Whatever you pass it, either you pass a valid link command or
>> you get the error message - which naturally goes to STDERR which autogen
>> picks up as a "no such file or directory" error and thinks that libtool
>> is not installed.
>>
>> PITA!
>>
>> How do we get around that?
>
> Um, decide that a fundamentally broken libtool constitutes a libtool
> which is not installed, and then put one in the tarball for use when
> there is none installed? :)

I agree with the former, but not the latter.  The way we get around
that is require that you have the fink "libtool" package installed
on your Mac.  Autogen still needs to /call/ libtool, so it's quite
reasonable to check for it.  A libtool that is so broken that it
doesn't support --version or --help is clearly one we don't want
to use.  Ignoring that is just... wrong.

If you can't find a fink package then you should just install libtool
from source.

-derek
--
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       [hidden email]                        PGP key available
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Gnucash-changes] Mac OSX fix - remove non-portable settings

Derek Atkins
In reply to this post by Neil Williams-2
Neil Williams <[hidden email]> writes:

> Nope. It's nothing to do with the path. It's this command:
>
> |>>+#  (${LIBTOOL} --version) < /dev/null > /dev/null 2>&1 || {
>
> The version of libtool on OSX has no --version command, it has no --help
> or -? or --usage or any other simple command that does not start the
> linker. Whatever you pass it, either you pass a valid link command or
> you get the error message - which naturally goes to STDERR which autogen
> picks up as a "no such file or directory" error and thinks that libtool
> is not installed.

FYI, I've reverted this change in CVS.

-derek
--
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       [hidden email]                        PGP key available
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Gnucash-changes] Mac OSX fix - remove non-portable settings

Neil Williams-2
In reply to this post by Derek Atkins
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Derek Atkins wrote:
| Thomas Bushnell BSG <[hidden email]> writes:
|>Neil Williams <[hidden email]> writes:
|>
|>>The version of libtool

installed by Apple

|>>on OSX has no --version command

The fink one DOES (and it's been installed for months) - the problem is
it's called glibtool !!!

Sorry for all the hassle, a simple environment variable can take care of
the name change.

With export LIBTOOL=glibtool in ~/.bashrc, it works with the original macro.

| I agree with the former, but not the latter.  The way we get around
| that is require that you have the fink "libtool" package installed
| on your Mac.

I'll put something in HACKING or similar.


- --

Neil Williams
=============
http://www.codehelp.co.uk/
http://www.dclug.org.uk/
http://www.isbn.org.uk/
http://sourceforge.net/projects/isbnsearch/

http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDTrh0k7DVr6iX/QIRAuZBAJ9FhDy1tHx2h4buiLX5Dx0IJq/4hgCfSXdD
xbWPB2SCGhLxa2i/p/7Gpg0=
=2ow8
-----END PGP SIGNATURE-----
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Gnucash-changes] Mac OSX fix - remove non-portable settings

Derek Atkins
Quoting Neil Williams <[hidden email]>:

> I'll put something in HACKING or similar.

I'd suggest README.cvs instead of HACKING.

-derek

--
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       [hidden email]                        PGP key available

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel