On Mon, Jan 05, 2004 at 10:56:20AM -0500, Dimitrie O. Paun wrote:
On January 5, 2004 10:33 am, Michael Stefaniuc wrote:
Are you building the rpm's as root? I never
do that.
Well, I don't do too much rpm building, and I haven't
changed permissions on /usr/src/redhat:
Here is my .rpmmacros file to be able to
build rpms as normal user. You
need to adapt the paths:
%_topdir /home/mstefani/rpm
%_tmppath /home/mstefani/rpm/INSTALL
You need also to setup the %_topdir directory. Do following as user you
want to build the rpms:
mkdir -p $_topdir $_tmppath
mkdir $_topdir/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
mkdir $_topdir/RPMS/{i386,i486,i586,i686,noarch,athlon}
That should be all.
[dimi@dimi wine]$ rpmbuild --rebuild
mingw-3.0-1.src.rpm
Installing mingw-3.0-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: mingw-3.0-1.src.rpm cannot be installed
Do you have something in your .rpmmacros and/or
.rpmrc that messes with
brp-strip? Cause the spec file has this:
# This keeps brp-strip from fucking up our nonnative binaries
%define __strip /bin/true
which works for me.
I don't even have a .rpmmacros or .rpmrc file:
hmm ... strange. My .rpmmacros
is no more than what i pasted above and
my .rpmrc has only directives to build and optimize every package for
athlon.
If you can't build mingw as user too i can put the rpm (compiled for
i386 or i686, i don't mind) on my
people.redhat.com page.
[root@dimi root]# ls /root/.rpm*
ls: /root/.rpm*: No such file or directory
[root@dimi root]# ls ~dimi/.rpm*
ls: /home/dimi/.rpm*: No such file or directory
It's a very standard RH9 installation, I don't usually change
stuff (I just hate configuring things :)).
I hope you at least upgrade the box to
the latest erratas ;)
bye
michael
--
Michael Stefaniuc Tel.: +49-711-96437-199
System Administration Fax.: +49-711-96437-111
Red Hat GmbH Email: mstefani(a)redhat.com
Hauptstaetterstr. 58
http://www.redhat.de/
D-70178 Stuttgart