Your message dated Thu, 09 Dec 2010 20:32:09 +0000
with message-id <[email protected]>
and subject line Bug#606274: fixed in chef 0.8.16-4.2
has caused the Debian Bug report #606274,
regarding chef: FTBFS: Patch remove_rubygems.patch does not remove cleanly
(refresh it or enforce with -f)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
606274: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606274
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: chef
Version: 0.8.16-4.1
Severity: serious
Tags: patch
Hi there!
=====
l...@gismo:~/$ gismo-pbuilder.sh --build base-sid chef_0.8.16-4.1.dsc
[...]
dpkg-deb: building package `libchef-ruby1.8' in
`../libchef-ruby1.8_0.8.16-4.1_all.deb'.
dpkg-genchanges >../chef_0.8.16-4.1_amd64.changes
dpkg-genchanges: not including original source code in upload
fakeroot debian/rules clean
test -x debian/rules
dh_testroot
dh_clean
/usr/bin/make -f debian/rules reverse-config
make[1]: Entering directory `/tmp/buildd/chef-0.8.16'
make[1]: Nothing to be done for `reverse-config'.
make[1]: Leaving directory `/tmp/buildd/chef-0.8.16'
if [ -d "." ]; then \
cd . && QUILT_PATCHES=/tmp/buildd/chef-0.8.16/debian/patches quilt
--quiltrc /dev/null pop -a -R || test $? = 2 ; \
fi
Removing patch jquery_unminified.patch
Removing chef-server-webui/public/javascripts/jquery.jeditable.js
Removing chef-server-webui/public/javascripts/yetii.js
Removing chef-server-webui/public/javascripts/jquery.tools.js
Patch remove_rubygems.patch does not remove cleanly (refresh it or enforce with
-f)
make: *** [reverse-patches] Error 1
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
E: Failed autobuilding of package
=====
When you do not build the package, the patch above seems to cleanly
apply and remove, so I guess the building process modifies some files.
And indeed if I compare the patched files above with the original ones,
the diff includes more than the quilt patch:
--8<---------------cut here---------------start------------->8---
--- chef-0.8.16/chef/bin/chef-client 2010-12-07 21:57:20.000000000 +0100
+++ chef-client 2010-12-07 22:17:57.000000000 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#! /usr/bin/ruby1.8
#
# ./chef-client - Run the chef client
#
@@ -18,7 +18,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require 'rubygems'
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require 'chef'
require 'chef/application/client'
--8<---------------cut here---------------end--------------->8---
This applies to the four chef-client binaries: chef-client, chef-solo,
knife and shef. The build log contains the following:
=====
(cd chef && /usr/bin/ruby debian-setup.rb setup)
---> bin
updating shebang: chef-client
updating shebang: shef
updating shebang: knife
updating shebang: chef-solo
<--- bin
=====
What is strange is that the current chef binary package available in sid
contains the four binaries above with exactly the same shebang as the
one that causes the error, which means that the build process should
have stopped even in the past...
Actually, the same problem should happen for the -server* binaries, but
it does not, given that the shebang in these binaries is specifically
modified to ruby1.8 because the -server* binaries do not support
Ruby-1.9 yet:
[chef-0.8.16/debian/patches/chef_solr_ruby18.patch]
# Description: Use ruby1.8 specifically as Chef Solr/Server doesn't support
# ruby1.9 yet.
Nevertheless, I am not a Ruby nor a chef expert, but applying the same
trick patch to the client binaries solves the FTBFS. I am confident
this is the correct fix also because the chef binary package (which
contains the client binaries) Depends: on Ruby-1.8:
Depends: ${misc:Depends}, ruby1.8, liberubis-ruby1.8, libjson-ruby1.8,
libextlib-ruby1.8 (>= 0.9.13), ohai (>= 0.4.0),
libchef-ruby1.8 (= ${source:Version}), libopenssl-ruby1.8,
libmixlib-authentication-ruby1.8 (>= 1.1.0), ucf
--8<---------------cut here---------------start------------->8---
diff -u chef-0.8.16/debian/changelog chef-0.8.16/debian/changelog
--- chef-0.8.16/debian/changelog
+++ chef-0.8.16/debian/changelog
@@ -1,3 +1,13 @@
+chef (0.8.16-4.2) UNRELEASED; urgency=low
+
+ * Non-maintainer upload.
+ * debian/patches/series: update.
+ * debian/patches/chef_client_ruby18.patch:
+ + fix FTBFS, use a versioned shebang for client binaries, since
+ the chef binary package Depends: on Ruby-1.8 (Closes: #NNNNNN).
+
+ -- Luca Capello <[email protected]> Tue, 07 Dec 2010 23:13:49 +0100
+
chef (0.8.16-4.1) unstable; urgency=low
* Non-maintainer upload to fix pending l10n issues
diff -u chef-0.8.16/debian/patches/series chef-0.8.16/debian/patches/series
--- chef-0.8.16/debian/patches/series
+++ chef-0.8.16/debian/patches/series
@@ -4,0 +5 @@
+chef_client_ruby18.patch
only in patch2:
unchanged:
--- chef-0.8.16.orig/debian/patches/chef_client_ruby18.patch
+++ chef-0.8.16/debian/patches/chef_client_ruby18.patch
@@ -0,0 +1,34 @@
+# Description: Use ruby1.8 specifically as Chef clients do not support
+# ruby1.9 yet (Closes: #NNNNNN).
+--- chef-0.8.16.orig/chef/bin/chef-client
++++ chef-0.8.16/chef/bin/chef-client
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby1.8
+ #
+ # ./chef-client - Run the chef client
+ #
+--- chef-0.8.16.orig/chef/bin/chef-solo
++++ chef-0.8.16/chef/bin/chef-solo
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby1.8
+ #
+ # ./chef-solo - Run the chef client, in stand-alone mode
+ #
+--- chef-0.8.16.orig/chef/bin/shef
++++ chef-0.8.16/chef/bin/shef
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby1.8
+ #
+ # ./shef - Run the shef REPL
+ #
+--- chef-0.8.16.orig/chef/bin/knife
++++ chef-0.8.16/chef/bin/knife
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby1.8
+ #
+ # ./knife - Chef CLI interface
+ #
--8<---------------cut here---------------end--------------->8---
I will upload a 0-day NMU (also fixing #598365, #598626 and #604231) in
two days if no one will complain before. The reason to now upload it
*now* as DELAYED/2 is because I need to work on the other bugs above ;-)
Thx, bye,
Gismo / Luca
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.36-rc6-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
pgpyq3r8IxSL2.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: chef
Source-Version: 0.8.16-4.2
We believe that the bug you reported is fixed in the latest version of
chef, which is due to be installed in the Debian FTP archive:
chef_0.8.16-4.2.diff.gz
to main/c/chef/chef_0.8.16-4.2.diff.gz
chef_0.8.16-4.2.dsc
to main/c/chef/chef_0.8.16-4.2.dsc
chef_0.8.16-4.2_all.deb
to main/c/chef/chef_0.8.16-4.2_all.deb
libchef-ruby1.8_0.8.16-4.2_all.deb
to main/c/chef/libchef-ruby1.8_0.8.16-4.2_all.deb
libchef-ruby_0.8.16-4.2_all.deb
to main/c/chef/libchef-ruby_0.8.16-4.2_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Luca Capello <[email protected]> (supplier of updated chef package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 09 Dec 2010 20:44:25 +0100
Source: chef
Binary: chef libchef-ruby libchef-ruby1.8
Architecture: source all
Version: 0.8.16-4.2
Distribution: unstable
Urgency: low
Maintainer: Joshua Timberman <[email protected]>
Changed-By: Luca Capello <[email protected]>
Description:
chef - system integration framework - client and solo binaries
libchef-ruby - system integration framework - Ruby libraries
libchef-ruby1.8 - system integration framework - Ruby 1.8 libraries
Closes: 598365 598626 604231 606274
Changes:
chef (0.8.16-4.2) unstable; urgency=low
.
* Non-maintainer upload.
* debian/control:
- remove outdated -server* packages and chef-solr as well, with
maintainer's approval (Closes: #604231).
* debian/patches/series: update.
* debian/patches/chef_client_ruby18.patch:
+ fix FTBFS, use a versioned shebang for client binaries, since
the chef binary package Depends: on Ruby-1.8 (Closes: #606274).
* [Debconf translation updates]
- Japanese (Hideki Yamane) (Closes: #598365).
- Vietnamese (Clytie Siddall) (Closes: #598626).
Checksums-Sha1:
620726b0559a496681e7b92a90be81a0b1eb5ad4 1874 chef_0.8.16-4.2.dsc
a1b1c623eb671eea2e139f003c82a4f159c4d038 72146 chef_0.8.16-4.2.diff.gz
6bf52dbb73dce4006f2f7cdbc38fd7bc22b29141 42924 chef_0.8.16-4.2_all.deb
bfac6aec28ef39bd1513d7051bf87cd9e0d0bfe7 28324 libchef-ruby_0.8.16-4.2_all.deb
a5b0b3571bb7b7be18870b8f73d9f368335ff5c4 178594
libchef-ruby1.8_0.8.16-4.2_all.deb
Checksums-Sha256:
6bd1e96f4a7a93aa52f4a10aea3db421631a78e04c23cb7d00d5c4e6d68c912c 1874
chef_0.8.16-4.2.dsc
28f73765d47664f6c0f9eb6fe95c2944c422d783453e75848d2b9d850b99562c 72146
chef_0.8.16-4.2.diff.gz
99844d329e8c1405e46ee6444502bef3f5611479b5fb2439fc93ccafeae3e154 42924
chef_0.8.16-4.2_all.deb
47e376033d585dc132bfd071795f57d22db0cfdad6ba1c8937a474f106dea0b5 28324
libchef-ruby_0.8.16-4.2_all.deb
7fb5fc6ac54537d573b20b08d8ee03301a8f6471b66ea3b0927ce07b8cc19aa0 178594
libchef-ruby1.8_0.8.16-4.2_all.deb
Files:
a1621f68ee1beff2a27263b92496cac4 1874 ruby extra chef_0.8.16-4.2.dsc
ff6cf454f842eb99c7e79f01182e99d4 72146 ruby extra chef_0.8.16-4.2.diff.gz
420a111d5c852449b6bc21d37f43920f 42924 ruby extra chef_0.8.16-4.2_all.deb
5b07429d25ee10d62bcdb27bef1a2703 28324 ruby extra
libchef-ruby_0.8.16-4.2_all.deb
c9dc725541fc7754768e4718a4830fd3 178594 ruby extra
libchef-ruby1.8_0.8.16-4.2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBCgAGBQJNATSLAAoJENkdV6A76fNtgf8QAJM8QmYAs1aGDbkoW3a8ulZK
KluL6N4ZNUdNipXvKW2LbeNI79oeopOhvQWZOtuy1yWjBurJxJpRVGhlJ1xfnbtj
3MzgUPj3gYrWyPo+UuMZbGLC91B1mrYEk0YrP02q00a8HqzNs50GYqcOjH/Y2Ykd
ckU2vzKCdszxDZFRWlYka1S3km1FdkSAZIBELx7giuMm4SFR8qJbYIzThOgkhQfl
w3UvixS7Y43p+9qqnwSDdTKCK4C89WQhdl0oRBWtVast1gSkyNzMtXAgSyJm82nZ
HeG9evNiFev+23egnc8ZIMxAw7CKpR2eOeb4QRcYOm4FInaCq6Lf8HTOjyeKNZKx
r9dM52buteQQDZsuViaQs97z/Q+0JcICOTiMbw96Axrldnmpx7aLJ3x5VpFLKZpn
aAwtWoswXbpH4DheXNwlgFfRW5Uk63uJeBX8DHwbsfVAUwJ5Gz9OftqycipKtezo
6KOrH7QmYRKIba4PykdtR5R3aftkIcoReOPoZ0Jts3vt32zenOLCP2Xolan1ETSs
hxGspM5u/pgwBOAe4WM0ASvFJ3DwUzqLrP2/bZQIvgRgOdjIrb4ENY7lvq7Xh+of
xUzJPM/vp5f+1fc25fWNmRI8sZTHQq8p0uxLrgw+Sc9JUEPLEe878/ixuDH6simT
qjU8tLDAPMxlBXPv4DJW
=DhUR
-----END PGP SIGNATURE-----
--- End Message ---