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

Re: rpm suggestion, was: Re: next Beta



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 01 December 2001 07:48 am, Karsten Weiss wrote:
> On Wed, 28 Nov 2001, Bernhard Rosenkraenzer wrote:
> > If you can't wait for the next beta, check out rawhide
> > (ftp://ftp.redhat.com/pub/redhat/linux/rawhide)...
>
> Talking about the next beta:
>
> Is there a chance that the mess in /usr/src/redhat/SOURCES
> could be fixed now that a new major series (8.x) gets started?
> I would like to see package subdirectories in this directory.
>
> I´ve already suggested this to Jeff Johnson some months ago but
> he didn´t like the idea because it would be too big a change
> and break compatibility. Maybe now is the right time? Or am I
> the only one who has a problem with the mess in this directory?

This is easy enough to change yourself. 
I agree, having everything dumped in /usr/src/redhat/SOURCES is a mess.

Just change the rpm macro:
%_sourcedir             %{_topdir}/SOURCES
To:
%_sourcedir     %{_topdir}/SOURCES/%{name}-%{version}

At the moment, this gives me a /SOURCES/ directory that looks like:
$ ls ~/rpmbuild/SOURCES/
ksetiwatch-2.2.1  mplayer-0.50  portsentry-1.1  vacation-1.2.6  
xf86ttfontool-0.1

I have a .rpmmacro file in my home directory that does this and it works 
fine. I use ~/rpmbuild as my _topdir and build rpms as a mortal user, 
rather than /usr/src/redhat/ as root.
Changing it in /usr/lib/rpm/macros should have the same effect in the 
/usr/src/redhat/BUILD/ directory.

Hope that helps,

- -D

- -- 

pgp key:  http://www.tuxfan.homeip.net:8080/pgpkey.txt

- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8COWTeMAUbzJhSVcRAkvXAKCoGl+FuEWjBHsgtDmj4MAx7AGP/ACfRtGF
SBnSWtxy5dyneArxoKwW+5E=
=9x9f
-----END PGP SIGNATURE-----





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