Skip site navigation (1) Skip section navigation (2)

Re: horology regression test failure

From: Martin Pitt <martin(at)piware(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: horology regression test failure
Date: 2005-12-21 07:21:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-hackers

Tom Lane [2005-12-20 16:39 -0500]:
> Yeah, the chosen-at-random pathnames ;-).

It's not that random, these are the paths that the FHS and Debian
policy prescribe for this package's structure (multiple versions
installable in parallel). :) 

> I quote from the comments for make_relative_path():

Thanks, that was enlightening.

> In short, you can set --prefix however you want, but you really can't
> tack random decoration between --prefix and /bin, /share and friends;
> else make_relative_path will be unable to figure out how to transform
> one to the other.

I see, that at least makes the reason for the failure plausible.
However, if --bindir etc. cannot be set, then maybe configure should
not offer these options? OTOH the only thing that actually breaks is
the horology test suite, everything else works just fine since files
shipped in a package are never relocated.

> We could doubtless improve make_relative_path to some extent, but the
> mess you have above seems impossible to deal with.  How is a mere
> program supposed to deduce where things were moved to, given only
> knowledge of the actual location of --bindir?  I see little if any
> pattern that would allow prediction of the corresponding --datadir,
> let alone --libexecdir or --includedir ...

Right, with make_relative_path's current approach that seems to be
impossible. However, in a test suite I had expected a semantics like
$DESTDIR, i. e. instead of mangling the path somewhere in the middle,
the test suite should just prepend the tmp_check path.

It seems that the needs of the upstream tarball handling and the needs
of packaging differ somewhat. But instead of hacking in the interiors
of path handling, I will rather try another easy workaround.



Martin Pitt
Ubuntu Developer
Debian Developer

In response to


pgsql-hackers by date

Next:From: Hannu KrosingDate: 2005-12-21 07:50:03
Subject: Re: status of concurrent VACUUM patch ...
Previous:From: Andreas SeltenreichDate: 2005-12-21 07:06:44
Subject: Re: localization problem (and solution)

pgsql-bugs by date

Next:From: Martin PittDate: 2005-12-21 08:38:12
Subject: Re: horology regression test failure
Previous:From: Tom LaneDate: 2005-12-20 22:16:07
Subject: Re: horology regression test failure

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group