making a self depending rpm.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've gotten quite good at making these.  I'm wondering does anyone have any tips for not making them?  Can someone tell me what I'm doing wrong here?

I have ruby 1.8.4 needed for a package, so I download and attempt to build ruby-1.8.4

Summary:        PSI ruby build 1.8.4
Name:   ruby
Version:        1.8.4
Release:        dev
Source0:        %{name}-%{version}.tar.gz
Provides:       %{name}
#Requires:
BuildRoot: /tmp/%{name}

%description

%prep
%setup
%define installDir /usr/local/
./configure --prefix=$RPM_BUILD_ROOT%{installDir}
%build
make
%install
make install
%clean
rm -rf $RPM_BUILD_ROOT

%post

%files
%defattr(755,dev,dev)
/%{installDir}/bin/erb
[...yadda yadda..]



when I'm done I get...

]#  rpm -ivh ~/rpm/RPMS/i386/ruby-1.8.4-dev.i386.rpm
error: Failed dependencies:
        /tmp/ruby/usr/local//bin/ruby is needed by ruby-1.8.4-dev.i386


notice the line from the build report...


Processing files: ruby-1.8.4-dev

Requires(post): /bin/sh
Requires: /tmp/ruby/usr/local//bin/ruby libc.so.6 libc.so.6(GLIBC_2.0) 

why is find-requires looking in the RPM_BUILD_ROOT?

thanks

-zac

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux