Hi, eek, such fragile bash hackery. Maybe a simply
test -e /usr/include/luajit-2.0/luajit.h would work better? Greetings, Joachim Am Mittwoch, den 20.01.2016, 10:27 +0100 schrieb John Paul Adrian Glaubitz: > On 01/20/2016 10:09 AM, Joachim Breitner wrote: > > Can you provide a patch that simply checks whether libluajit-5.1- > > dev is > > installed, so that we don’t have this error-prone redundancy? > > Maybe this could work? > > --- old/haskell-hslua-0.4.1/debian/rules 2015-12-22 > 10:28:34.000000000 +0100 > +++ new/haskell-hslua-0.4.1/debian/rules 2016-01-20 > 10:25:04.224031898 +0100 > @@ -1,6 +1,6 @@ > #!/usr/bin/make -f > > -ifneq (,$(filter $(DEB_BUILD_ARCH),arm64 ppc64el s390x)) > +ifeq (0,$(shell dpkg -l | grep libluajit-5.1-dev | grep ^ii > > /dev/null > ; echo $$?)) > DEB_SETUP_GHC_CONFIGURE_ARGS += --flags=-luajit > endif > > I haven't tested it though yet, so please don't apply it right away. > > Adrian > -- Joachim "nomeata" Breitner Debian Developer [email protected] | ICQ# 74513189 | GPG-Keyid: F0FBF51F JID: [email protected] | http://people.debian.org/~nomeata
signature.asc
Description: This is a digitally signed message part

