Re: How to install source rpm's on redhat 9

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

 



Michael Schwendt said:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tue, 22 Apr 2003 11:05:39 -0400 (EDT), William Hooper wrote:
>
>> For example, I use Leafnode, which is distributed as a tar.bz2 file.
>> The
>> author does included a spec file, so I can just do:
>>
>> # rpmbuild -tb leafnode-<version>.tar.bz2
>>
>> When trying as a user now I get:
>>
>> [whooper@xxxxxxxx whooper]$ rpmbuild -tb
>> /harddrive2/storage/downloads/linux/leafnode-1.9.37.rel.tar.bz2
>> error: Failed to rename
>> /home/whooper/rpmbuild/SOURCES/%{name}-%{version}/rpm-spec.3oomkl to
>> /home/whooper/rpmbuild/SOURCES/%{name}-%{version}/rpm-spec.3oomkl: No
>> such
>> file or directory: No such file or directory
>
> This is a side-effect of having individual source directories in the
> SOURCES directory.
>
> Either change %_sourcedir to
>
>   %_sourcedir    %{_topdir}
>
> in your ~/.rpmmacros or create the necessary directory manually.
> Then rpmbuild -ta will work.

You are correct.  Thanks!

I actually changed it to
    %_sourcedir     %{_topdir}/SOURCES

instead of

    %_sourcedir     %{_topdir}/SOURCES/%{name}-%{version}

after replying to Mike Vanecek's message because RPM didn't clean up by
removing the name-version directory automatically.  After thinking about
it, the behavior of leaving the directory makes sense, I just don't need
to have the extra directory created in the first place.

I would have been wondering why it suddenly worked had I tried it again!

-- 
William Hooper





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux