On Thu, Sep 22, 2005 at 08:46:50PM +0300, Panu Matilainen wrote: > On Thu, 2005-09-22 at 10:16 -0700, Peter C. Norton wrote: > > The use of the %{_sysconfdir} and %{_mandir} is somewhat problematic on RHEL4. > > > > Since the package's configure script defaults to using /etc and > > /usr/share/man anyway, why are the rpm macros being used? > > > > See the following: > > > > #============================================================================== > > # ---- configure macros. > > # Macro(s) slavishly copied from autoconf's config.status. > > # > > %_prefix /usr > > %_exec_prefix %{_prefix} > > %_bindir %{_exec_prefix}/bin > > %_sbindir %{_exec_prefix}/sbin > > %_libexecdir %{_exec_prefix}/libexec > > %_datadir %{_prefix}/share > > %_sysconfdir %{_prefix}/etc > > %_sharedstatedir %{_prefix}/com > > %_localstatedir %{_prefix}/var > > %_lib lib > > %_libdir %{_exec_prefix}/%{_lib} > > %_includedir %{_prefix}/include > > %_oldincludedir /usr/include > > %_infodir %{_prefix}/info > > %_mandir %{_prefix}/man > > They're not problematic, you're looking at the wrong place. See the > definitions in /usr/lib/rpm/redhat/macros. That's the place where % > _initrddir for example is defined which makes me think you simply don't > have redhat-rpm-config installed. Uh-huh. That's a package that's not required anywhere, and isn't a generic requirement of the package. Where does it exist in other distributions? How is anyone supposed to know about this? It's not in the depends in the .src.rpm, so why should it be relied on? The need for conditionals is still present. -Peter -- The 5 year plan: In five years we'll make up another plan. Or just re-use this one.