Control: tag -1 + confirmed patch

On Sun, 06 Oct 2013 21:50:25 +0200, David Suárez wrote:

> Source: ruby-passenger
> Version: 4.0.10-1
> Severity: serious
> Tags: jessie sid
> User: debian...@lists.debian.org
> Usertags: qa-ftbfs-20131006 qa-ftbfs
> Justification: FTBFS on amd64
> 
> > /usr/bin/ruby1.8 /usr/bin/rake fakeroot
> > make[1]: /usr/bin/ruby1.8: Command not found
> > make[1]: *** [override_dh_auto_build] Error 127

No surprise, the package has no build-dep on ruby1.8, and gem2deb
installs ruby1.9.1 and ruby2.0.

I see three options:
- add a build-dep on ruby1.8
- just drop the ruby1.8 fragments in d/rules
- replace them with ruby2.0

I don't know enough about ruby to make this decision.

In case it helps, I'm attaching a patch that implements the third
option; the result looks ok to my ruby-ignorant eyes.


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Die Quote: So far
diff --git a/debian/changelog b/debian/changelog
index f03f5a3..e09e50c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+ruby-passenger (4.0.10-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "FTBFS: make[1]: /usr/bin/ruby1.8: Command not found":
+    debian/rules: replace ruby1.8 with ruby2.0 which now gets installed by
+    gem2deb.
+    (Closes: #725591)
+
+ -- gregor herrmann <gre...@debian.org>  Sat, 26 Oct 2013 17:50:45 +0200
+
 ruby-passenger (4.0.10-1) unstable; urgency=low
 
   * New upstream release. (Closes: #711906)
diff --git a/debian/rules b/debian/rules
index 09b63c9..3ca8be5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,21 +11,21 @@ export USE_VENDORED_LIBEV=false
        dh $@ --buildsystem=ruby --with ruby,apache2,autoreconf
 
 override_dh_auto_build:
-       /usr/bin/ruby1.8 /usr/bin/rake fakeroot
-       mv pkg/fakeroot pkg/fakeroot1.8
        /usr/bin/ruby1.9.1 /usr/bin/rake fakeroot
        mv pkg/fakeroot pkg/fakeroot1.9.1
+       /usr/bin/ruby2.0 /usr/bin/rake fakeroot
+       mv pkg/fakeroot pkg/fakeroot2.0
 
 override_dh_auto_install:
        mkdir debian/tmp/
-       cp -a pkg/fakeroot1.8/* debian/tmp/
        cp -a pkg/fakeroot1.9.1/* debian/tmp/
+       cp -a pkg/fakeroot2.0/* debian/tmp/
        rm -f 
debian/tmp/usr/share/doc/phusion-passenger/images/._phusion_banner.png
 
 override_dh_auto_clean:
        dh_auto_clean -O--buildsystem=ruby
-       rm -rf pkg/fakeroot1.8
        rm -rf pkg/fakeroot1.9.1
+       rm -rf pkg/fakeroot2.0
 
 override_dh_install:
        dh_install --list-missing -O--buildsystem=ruby

Attachment: signature.asc
Description: Digital signature

Reply via email to