[Pkg-haskell-maintainers] How to bootstrap alex?

Samuel Thibault sthibault at debian.org
Thu Feb 9 09:25:26 UTC 2012


Joachim Breitner, le Thu 09 Feb 2012 09:47:14 +0100, a écrit :
> Am Donnerstag, den 09.02.2012, 01:11 +0100 schrieb Samuel Thibault:
> > Hello,
> > 
> > alex build-depends on itself. Dropping the dependency does not seem
> > enough to break the loop, I'm ending up with 
> > 
> > Building alex-3.0.1...
> > Preprocessing executable 'alex' for alex-3.0.1...
> > hlibrary.setup: The program alex is required but it could not be found
> > 
> > How to bootstrap it? I have installed the build-deps on the
> > DD-accessible exodar.debian.net sid chroot.
> 
> I managed to build it by dropping the dependency and setting
> DEB_SETUP_GHC_CONFIGURE_ARGS = --with-alex=/bin/true
> in debian/rules. Upstream ships the output of the generated files in
> src/ as well.
> 
> I guess this could be made the default, but it would be cleaner to
> remove these generated files in the clean target in regular builds.

Yes.

Actually, ideally things should work this way (which what I had tried
before giving up):

apt-get source alex
cd alex*
$EDITOR debian/control
... drop alex dependency
dpkg-buildpackage 

and it works, i.e. if /usr/bin/alex exists, the files are regenerated,
and if not, they are kept, and true is passed to configure.

Or else add debian/README.bootstrap which explains the few things to
change.

> Binary is on exodar, ~nomeata.

Thanks!

Samuel



More information about the Pkg-haskell-maintainers mailing list