Re: [Puppet Users] Foreman 0.2 Release Candidate

Mohamed Lrhazi
Tue, 22 Mar 2011 20:42:18 -0000

I replaced all shbangs in the tarball, with REE, still no go! what
binary would be liked to /usr/bin/ruby in the forman tree?

cd /usr/src/redhat/SOURCES
tar jzvf foreman-0.2rc1.tar.bz2
cd forman
grep -lr ''#!/usr/bin/env ruby'' . | xargs  sed -i -e
''s|/usr/bin/env
ruby|/opt/ruby-enterprise/bin/ruby|''
grep -lr ''#!/usr/bin/ruby'' . | xargs  sed -i -e
''s|/usr/bin/ruby|/opt/ruby-enterprise/bin/ruby|''
cd ..
rm foreman-0.2rc1.tar.bz2
tar jcf foreman-0.2rc1.tar.bz2 foreman
cd ../SPECS/
rpmbuild  -bb foreman.spec

still: /usr/bin/ruby ends up in the deps

Provides: config(foreman) = 0.2-rc1.1
Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh shadow-utils
Requires(post): /bin/sh chkconfig
Requires(preun): /bin/sh chkconfig initscripts
Requires(postun): /bin/sh initscripts
Requires: /bin/bash /bin/sh /bin/sh /opt/ruby-enterprise/bin/ruby
/usr/bin/env /usr/bin/make /usr/bin/ruby config(foreman) = 0.2-rc1.1
ruby-enterprise ruby-enterprise-rubygem-json_pure
ruby-enterprise-rubygem-rake ruby-enterprise-rubygems
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/foreman-0.2-rc1.1-root-root
Wrote: /usr/src/redhat/RPMS/noarch/foreman-0.2-rc1.1.noarch.rpm


On Tue, Mar 22, 2011 at 4:23 PM, Eduardo S. Scarpellini
<scarpellini@gmail.com> wrote:
> RPM checks the linked libraries (ldd) and some shbangs (#!) in buildtime
> (rpmbuild).
> These deps could came from these ruby-ee shbang paths.
>
> On Mar 22, 2011 5:14 PM, "Mohamed Lrhazi"
<lrhazi@gmail.com> wrote:
>> am trying to rebuild the source rpm to remove deps on ruby, as i use
>> entreprise-ruby...
>> the resulting rpm still instisi it needs ruby... were does that dep
come
>> from?
>>
>> during install:
>>
>> Resolving Dependencies
>> --> Running transaction check
>> ---> Package foreman.noarch 0:0.2-rc1.1 set to be updated
>> --> Processing Dependency: /usr/bin/ruby for package: foreman
>>
>> The spec file I used was changed to:
>>
>> Requires: ruby-enterprise
>> Requires: ruby-enterprise-rubygems
>> Requires: ruby-enterprise-rubygem-rake
>> #Requires: puppet >= 0.24.4
>> #Requires: rubygem(sqlite3-ruby)
>> #Requires: rubygem(rest-client)
>> Requires: ruby-enterprise-rubygem-json_pure
>> Requires(pre): shadow-utils
>> Requires(post): chkconfig
>> Requires(preun): chkconfig
>> Requires(preun): initscripts
>> Requires(postun): initscripts
>>
>>
>> Thanks a lot.
>> Mohamed.
>>
>>
>>
>> On Tue, Mar 22, 2011 at 11:21 AM, Ohad Levy <ohadlevy@gmail.com>
wrote:
>>> Hello All,
>>>
>>> I''m happy to announce a new release candidate of Foreman,
top highlights
>>> for this release includes:
>>>
>>> * New look and feel
>>> * Extended restful API
>>> * Support for New Puppet Reports format
>>> * Full VM/physical host Provisioning
>>> * Powerful template generator ( pxelinux, gpxe, kickstart, preseed,
grub
>>> etc..)
>>> * introduce a new service called smart proxy (which can run on
remote
>>> machines) to manage the following services:
>>>  ** DNS Management
>>>  ** DHCP Management
>>>  ** TFTP Management
>>>  ** Puppet/PuppetCA Management
>>>
>>> This release is a major release packed with goodies, around 130
tickets
>>> were closed
>>>
>>> Release notes can be found here:
>>> http://theforeman.org/projects/foreman/wiki/ReleaseNotes
>>>
>>> Full change log can be found here:
http://theforeman.org/versions/show/9
>>>
>>> As usually many many thanks to all contributors and users
>>>
>>> RPMS for both smart proxy and foreman can be found at
>>> http://yum.theforeman.org/test
>>>
>>> Have fun,
>>> Ohad
>>>
>>> --
>>> You received this message because you are subscribed to the Google
Groups
>>> "Puppet Users" group.
>>> To post to this group, send email to puppet-users@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> puppet-users+unsubscribe@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/puppet-users?hl=en.
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google
Groups
>> "Puppet Users" group.
>> To post to this group, send email to puppet-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> puppet-users+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.