On Friday, 06 April 2007, at 09:30:56 (-0500), Paul Johnson wrote: > People write spec files using macros, and then the macros on my > system do not generate packages that put files in the correct place. People write spec files using macros so that you, the end user/admin, can customize where things are put when you build/install RPM's. The fact that they don't go where you want them simply means you have neglected to properly set the macro values on your system to match what you want. Just like you can't really fault an autoconf-based package for installing in /usr/local if you don't specify a different --prefix. :) > Until now, I've just had the habit of editing the spec file to cut > out the usage of %{_sysconfdir}, replacing it with /etc. But it > causes me to wonder why I'm the only one apparently having this > problem, and why aren't all the RPMS built for Fedora & Fedora > extras messed up like mine, because I've not changed any settings in > the rpmbuild macros. Like Jeff said, check /etc/rpm/platform, but it seems to me that replacing %{_sysconfdir} with a hard-coded /etc is a bit silly. Would you hardcode values like $HOME or $LOGIN everywhere? Of course not; if they weren't getting set to the correct value, you'd fix their value. :) > I've often wished the RPM system did not allow macros because it is > hard to rebuild packages that some people make because they have > changed their macro definitions. (Try taking a SRPM file from the > atrpms repository, or something from Mandrake, and you'll see what I > mean. Unbuildable unless you make a lot of changes in your rpm > system.) I can see why those problems exist, but I can't understand > this _sysconfidir thing ending up in /usr/etc on my system but in > /etc on others. I have no experience with ATRPM's (at least no recent experience... Dag/RF was the clear winner when I went looking, and I've yet to find any reason that has changed), but I've built numerous packages from Mandrake. Other than their %make macro and their recent library naming psychosis^Wsystem, their stuff is pretty good. PLD too. 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) ----------------------------------------------------------------------- "Love?! What does *love* have to do with *marriage*?!" -- Peter Jurasik (Ambassador Londo Mollari), "Babylon Five" _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list