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

Re: local changes to /usr/lib/rpm/macros...



Hmm , I'm resending because it seem the list-engine
didn't like my message... I hope it doesn't cut
this one in half also.

================================
Speaking of which;

        This is the `macrofiles' definition in the rpmrc that came with
the package: rpm-4.1.tgz. (I'm not sure how this will turn up in your
browser but what looks like "macrofiles:\n" is actualy "macrofiles:\t")

macrofiles:
//lib/rpm/macros://lib/rpm/%{_target}/macros:/etc/rpm/macros.specspo:/etc/rpm/macros.prelink:/etc/rpm/macros.solve:/etc/rpm/macros.up2date:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros

I'm not sure if there is a typo in it (is "//" no good ?) but
here are the side affects:

output from `strace -f rpm -qa 2>&1 | less' :

=====================================================
open("/lib/rpm/macros://lib/rpm/i586-linux/macros", O_RDONLY) = -1
ENOENT (No su
ch file or directory)
open("/etc/rpm/macros.specspo", O_RDONLY) = -1 ENOENT (No such file or
directory
)
open("/etc/rpm/macros.prelink", O_RDONLY) = -1 ENOENT (No such file or
directory
)
open("/etc/rpm/macros.solve", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/rpm/macros.up2date", O_RDONLY) = -1 ENOENT (No such file or
directory
)
open("/etc/rpm/macros", O_RDONLY)       = 3

=====bunch of stuff here======

open("/etc/rpm/i586-linux/macros", O_RDONLY) = -1 ENOENT (No such file
or direct
ory)
open("/root/.rpmmacros", O_RDONLY)      = -1 ENOENT (No such file or
directory)
=====================================================

this first open "/lib/rpm/macros://lib/rpm/i586-linux/macros" was
expanded from
"//lib/rpm/macros://lib/rpm/%{_target}/macros"

This caused me some confusion seeing as when I installed
rpm-4.1; the only macrofile I had was: "/lib/rpm/macros" (duh!)

> I was trying to change the location of %_repackage_dir, so I added it
> to my ~/.rpmmacros file.  This had no effect.  Should it have?

You might try playing with `macrofiles' in your `rpmrc' (although
I don't know if ~/.rpmmacros is supposed to override previously
defined macros).

Cheers all!
                        -Tristan

James Olin Oden wrote:
> >
> > Hi All,
> >
> > I was trying to change the location of %_repackage_dir, so I added it
> > to my ~/.rpmmacros file.  This had no effect.  Should it have?
> >
> > My purpose of course is to try to change this directory without editing
> > the macros file.  The main problem with editing this file directly is that
> > changes are subject to being overwritten the next time RPM is upgraded.
> > Is there a way to make this change without editing the shipping macros
> > file?
> >
> > Thanks...james
> >
> > _______________________________________________
> > Rpm-list mailing list
> > Rpm-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/rpm-list





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