public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@redhat.com>
To: Richard Henderson <rth@redhat.com>
Cc: Bryce McKinlay <bryce@waitaki.otago.ac.nz>,
	Phil Edwards <phil@jaj.com>,
	Nic Ferrier <nferrier@tapsellferrier.co.uk>,
	java@gcc.gnu.org, gcc@gcc.gnu.org
Subject: Re: Get rid of libtool? [was Re: Makefile problems]
Date: Wed, 27 Feb 2002 18:06:00 -0000	[thread overview]
Message-ID: <orzo1ucqjn.fsf@free.redhat.lsd.ic.unicamp.br> (raw)
In-Reply-To: Richard Henderson's message of "Mon, 25 Feb 2002 16:56:54 -0800"

On Feb 25, 2002, Richard Henderson <rth@redhat.com> wrote:

> How many people can fix problems with libtool when they occur?

Err...  Zero? :-)

Oh, you meant after they occur.  Perhaps half a person :-)

> How many people can fix problems with make when they occur?

Other than the maintainers of make?


How many people understand the implications involved with creating
libraries and linking with them such that they can be used properly in
the build tree (such that you can test before installing being assured
that you're not testing against a previously-installed version of the
library by accident) and the install tree (such that programs won't
search back in say /tmp/gcc-build, where hackers could place their
version of libgcc_s.so and escalate privileges whenever other users
use gcc)?

Libtool takes care of that, and that's *very* important.  More
important, in fact, than not requiring poor users to set
LD_LIBRARY_PATH, if you ask me.  I challenge anyone to come up with a
simple abstraction of library creation that accomplishes this and does
not turn into another barely-maintainable mess like libtool is.  In
fact, I'd love to be able to retire from this role of sole maintainer
of libtool in GCC, but I can't responsibly do this knowing that it
will introduce serious security problems in GCC.

> At present I believe the answer to the first question is "one".
> You are the only person I'm aware of that works on gcc that knows
> how to figure out what's happening when something goes wrong with
> libtool.  Note that this is immaterial to whether or not it is
> libtool that is at fault -- one must still track down the cause,
> which means understanding how libtool works.

I agree.  This is a problem.  There are 3 ways to fix it:

- getting more people to understand libtool :-)

- giving up on libtool and duplicating it poorly, probably running
  into the security problems I mentioned above

- getting some people to reimplement (relevant parts of) libtool for
  GCC such that we no longer depend on a single person

> On the other hand there are many people on this list that can 
> figure out what to do with a plain Makefile that has target
> specific fragments spliced in at configure time.

And miss some important implications of doing things `the simple way'.

> Having a single person at that sort of bottleneck is a maintainence
> problem itself.

No disagreement here.

> If you were to be hit by a bus tomorrow (providence forfend) we
> would either have to spend uncounted hours figuring out how libtool
> works, or replace it entirely.  And I suspect the later would take
> less time.

I don't disagree it would take less time.  But I pity users of
not-so-mainstream systems that will pay the price, and those of
relatively-mainstream systems that may become victims of hacking due
to search paths carelessly encoded into executables or shared
libraries that are part of GCC.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

  reply	other threads:[~2002-02-28  2:02 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3C78B3B6.5000303@waitaki.otago.ac.nz>
     [not found] ` <87it8mbse7.fsf@tf1.tapsellferrier.co.uk>
2002-02-24 16:21   ` Bryce McKinlay
2002-02-24 19:16     ` Brian Jones
2002-02-24 19:35     ` Phil Edwards
2002-02-24 19:45       ` Alexandre Oliva
2002-02-24 19:59         ` Bryce McKinlay
2002-02-24 21:22           ` Alexandre Oliva
2002-02-24 22:05             ` Jeff Sturm
2002-02-24 22:17               ` Phil Edwards
2002-02-24 22:24                 ` Alexandre Oliva
2002-02-24 23:20                   ` Phil Edwards
2002-02-25  5:36                     ` Alexandre Oliva
2002-02-25  9:10               ` Alexandre Oliva
2002-02-26 18:41                 ` Jeff Sturm
2002-02-26 18:47                   ` Richard Henderson
     [not found]                     ` <3C7C4E67.6050001@waitaki.otago.ac.nz>
2002-02-27  2:41                       ` Richard Henderson
2002-02-27 17:55                   ` Alexandre Oliva
2002-02-25 16:56               ` Richard Henderson
2002-02-25 17:00             ` Richard Henderson
2002-02-27 18:06               ` Alexandre Oliva [this message]
2002-02-27 20:17                 ` Albert Chin
2002-02-28  0:02                 ` Marc Espie
2002-02-28  0:49                   ` Alexandre Oliva
2002-02-28 17:35                   ` Phil Edwards
2002-07-03 15:41 Nathanael Nerode
2002-12-28  5:08 ` Alexandre Oliva

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

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

  git send-email \
    --in-reply-to=orzo1ucqjn.fsf@free.redhat.lsd.ic.unicamp.br \
    --to=aoliva@redhat.com \
    --cc=bryce@waitaki.otago.ac.nz \
    --cc=gcc@gcc.gnu.org \
    --cc=java@gcc.gnu.org \
    --cc=nferrier@tapsellferrier.co.uk \
    --cc=phil@jaj.com \
    --cc=rth@redhat.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).