I finally got this to go.
Here's how:
Installed the rpm development tools to a non-standard location using rpm2cpio:
~/rpm_devel $ rpm2cpio rpm-devel.rpm | cpio -iuvd
Modified some macros to point to the correct area (these can be defined in a ~/.rpmmacros file or on the rpmbuild command line):
%define __os_install_post ~/rpm_devel/usr/lib/rpm/brp-compress ~/rpm_devel/usr/lib/rpm/brp-strip
~/rpm_devel/usr/lib/rpm/brp-strip-static-archive ~/rpm_devel/usr/lib/rpm/brp-strip-comment-note %{nil}
%define __check_files ~/rpm_devel/usr/lib/rpm/check-files %{buildroot}
%define _topdir ~/rpm_devel/topdir
%define _tmppath ~/rpm_devel/tmp
After all of this I am able to temporarily install rpmbuild to my home dir and build my rpms.
That was painful.
Thanks again for your help.
Mike
On 7/3/07, Michael Jennings <mej@xxxxxxxxx> wrote:
On Tuesday, 03 July 2007, at 09:19:32 (-0400),
Michael Dengler wrote:
> + /bin/mkdir -p /var/tmp/mezzanine-buildroot.15952/usr/bin
> /bin/mkdir: cannot create directory `/var/tmp/mezzanine-buildroot.15952 ':
> Permission denied
>
> ...
>
> when building as non-root.
Any system on which non-root users cannot write to /var/tmp is
inherently broken. File a bug against your sysadmin. :-)
> I added a new %_tmppath and %_topdir that points to my home dir to
> ~/.rpmmacros but alas...no joy.
Try setting $MEZZANINE_TMPDIR. If that doesn't work, use this:
perl -pi -e 's,/var/tmp,/tmp,g' mod/*.pm
Then try again. Use something else instead of /tmp if you wish.
Michael
--
Michael Jennings (a.k.a. KainX) http://www.kainx.org/ < mej@xxxxxxxxx>
n + 1, Inc., http://www.nplus1.net/ Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
"A woman broke up with me and sent me pictures of her and her new
boyfriend in bed together. Solution? I sent them to her dad."
-- Christopher Case
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list