[DRE-maint] Bug#604231: chef-solr

Luca Capello luca at pca.it
Tue Dec 7 23:57:33 UTC 2010


block 604231 by 606274
tags 604231 + patch
thanks

Hi there!

On Mon, 06 Dec 2010 19:04:38 +0100, Mehdi Dogguy wrote:
> On 06/12/2010 18:47, Luca Capello wrote:
>> Hi there!
>>
>
> (I should have CC'ed you too... I'm sorry for that).

Np.

>> On Sat, 04 Dec 2010 19:56:14 +0100, Mehdi Dogguy wrote:
>>>
>>> These can't be updated to the latest release because of the freeze.
>>> Are you fine with removing the chef-* binary packages from the source
>>> package and keep the same upstream version? or should I add a removal
>>> hint from Squeeze for src:chef?
>>
>> Already there:
>>
>> http://bugs.debian.org/605277
>>
>> Please note that if chef-solr is being removed from squeeze, the
>> reverse dependency that impeded solr removal goes away as well:
>>
>> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602697#10
>>
>
> Yeah, that's why we are here :)
>
>>
>> Mehdi, is it OK if I stop to care about this bug and leave it to you?
>>
>
> As you like, I don't know what to do here, except adding a removal hint
> for chef. If you'd like to prepare an NMU that would leave the client
> only, I'd accept it. Besides, not having any reply from the maintainers
> doesn't help to decide...

While preparing the NMU below I discovered that chef FTBFS, so I also
fixed that:

--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,16 @@
+chef (0.8.16-4.2) UNRELEASED; 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).
+
+ -- Luca Capello <luca at pca.it>  Wed, 08 Dec 2010 00:31:34 +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/control chef-0.8.16/debian/control
--- chef-0.8.16/debian/control
+++ chef-0.8.16/debian/control
@@ -24,96 +24,6 @@
  This package contains the chef-client and chef-solo binaries and associated
  files.
 
-Package: chef-solr
-Architecture: all
-Depends: ${misc:Depends}, ruby1.8, rabbitmq-server (>= 1.6), default-jre-headless | java6-runtime-headless, libjson-ruby1.8, libchef-ruby1.8 (= ${source:Version}), solr-jetty (>=1.4.0), libxml-ruby1.8, adduser, ucf
-Suggests: chef (= ${source:Version})
-Replaces: chef-indexer
-Conflicts: chef-indexer
-Description: system integration framework - search indexes management
- Chef is a systems integration framework and configuration management library
- written in Ruby. Chef provides a Ruby library and API that can be used to
- bring the benefits of configuration management to an entire infrastructure.
- .
- Chef can be run as a client (chef-client) to a server, or as a standalone
- tool (chef-solo). Configuration recipes are written in a pure Ruby
- domain-specific language.
- .
- The chef indexer listens to a message queue via AMQP for changes to search
- indexes. It then either creates or deletes entries in the index according
- to the information it is passed.
- .
- This package provides the chef-solr search engine which runs as a solr-jetty
- server, and chef-solr-indexer that talks to the AMQP message queue, by
- default rabbitmq-server.
-
-Package: chef-server
-Architecture: all
-Depends: ${misc:Depends}, ruby, merb-slices, libmerb-assets-ruby, libmerb-haml-ruby, libmerb-helpers-ruby, chef-server-api (= ${source:Version}), chef-solr (= ${source:Version}), thin, libjson-ruby, libchef-ruby (= ${source:Version}), libuuidtools-ruby1.8, adduser, libjs-jquery (>= 1.3.2), ucf
-Recommends: chef (= ${source:Version})
-Suggests: nginx, apache2, rake, chef-server-webui (=${source:Version})
-Description: system integration framework - centralized server
- Chef is a systems integration framework and configuration management library
- written in Ruby. Chef provides a Ruby library and API that can be used to
- bring the benefits of configuration management to an entire infrastructure.
- .
- Chef can be run as a client (chef-client) to a server, or as a standalone
- tool (chef-solo). Configuration recipes are written in a pure Ruby
- domain-specific language.
- .
- The Chef Server is a Merb application that provides centralized storage and
- distribution for recipes stored in "cookbooks," management and authentication
- of client nodes and node data, and search indexes for that data.
- .
- The chef-server package provides a merb binary wrapper that loads up the
- chef-server-api application.
- .
- This package contains the chef-server Merb application and associated files.
-
-Package: chef-server-api
-Architecture: all
-Depends: ${misc:Depends}, ruby, merb-slices, libmerb-assets-ruby, libmerb-haml-ruby, libmerb-helpers-ruby, rabbitmq-server (>= 1.6), couchdb (>= 0.9.1), thin, libjson-ruby, libchef-ruby (= ${source:Version})
-Recommends: chef (= ${source:Version})
-Replaces: chef-server-slice
-Conflicts: chef-server-slice
-Description: system integration framework - server API for clients
- Chef is a systems integration framework and configuration management library
- written in Ruby. Chef provides a Ruby library and API that can be used to
- bring the benefits of configuration management to an entire infrastructure.
- .
- Chef can be run as a client (chef-client) to a server, or as a standalone
- tool (chef-solo). Configuration recipes are written in a pure Ruby
- domain-specific language.
- .
- The Chef Server is a Merb application that provides centralized storage and
- distribution for recipes stored in "cookbooks," management and authentication
- of client nodes and node data, and search indexes for that data.
- .
- The chef-server-api package provides the API for the Chef Server so
- clients can connect and is started with the chef-server program.
- .
- This package contains the Merb slice for the chef-server-api.
-
-Package: chef-server-webui
-Architecture: all
-Depends: ${misc:Depends}, ruby, merb-slices, libmerb-param-protection-ruby, libmerb-assets-ruby, libmerb-haml-ruby, libmerb-helpers-ruby, thin, libopenid-ruby, libjson-ruby, libchef-ruby (= ${source:Version}), libcoderay-ruby, chef-server (= ${source:Version}), adduser, libjs-jquery-ui (>= 1.7.1), ucf
-Suggests: chef (= ${source:Version}), apache2, nginx
-Conflicts: chef-server-slice
-Description: system integration framework - web interface
- Chef is a systems integration framework and configuration management library
- written in Ruby. Chef provides a Ruby library and API that can be used to
- bring the benefits of configuration management to an entire infrastructure.
- .
- Chef can be run as a client (chef-client) to a server, or as a standalone
- tool (chef-solo). Configuration recipes are written in a pure Ruby
- domain-specific language.
- .
- The Chef Server WebUI is a Merb application that accesses the Chef Server API
- directly to provide an easy to use interface for managing Chef clients and
- Chef server data.
- .
- This package contains the Merb slice and assets for the chef-server-webui.
-
 Package: libchef-ruby
 Architecture: all
 Depends: ${misc:Depends}, ruby, libchef-ruby1.8 (= ${source:Version})
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 simply removed the -server* and -solr packages.  The three client
packages install fine on sid (but I have not tested if they function or
not, I do not know at all Chef) and they are available at:

  deb http://people.debian.org/~gismo/debian unstable/

As I wrote in #606274, I will upload a 0-day NMU (also fixing #598365,
and #598626) 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20101208/d211d4be/attachment.pgp>


More information about the Pkg-ruby-extras-maintainers mailing list