[owl-users] Odd problem building latest bind package

From: cpb@private
Date: Wed Nov 08 2006 - 16:13:49 PST


Hello, I had a problem building package "bind".
I fixed the problem by adding a line to the bind.spec file:

  added line 59: %define _initrddir    %{_sysconfdir}/rc.d/init.d

I think I know why this fix works, but I want to know why it used to work
without this explicit %define.  Where is the definition of the symbol
_initrddir supposed to come from?  Arguments to ./configure?  Someplace in
the .rpmmacros?  I can't find a declaration or definition anywhere!  It's
kind of embarrassing...so I am asking the list to help me understand.

This is low priority. My fix works for me. I don't even use BIND! This system
is not a clean Owl-2_0-stable, I have upgraded it from Owl-1_0 in little
steps over the past couple of years, and I have overcome many more serious
problems, all my fault, never Owl's. It is probably an RPM feature that
that I should already know about. I should be able to find out myself if
I keep searching the internet, man pages, source code, etc.

I am using the native.tar.gz from 2006-11-08, from the Owl-2_0-stable branch.
I think I last built the package "bind" OK in July (2006).

I did "make" instead of "make PACKAGE=bind", in case that is relevant. About
8 other packages, including openssh, gzip, texinfo were built OK.

Thanks in advance. Here are a few lines from the (failed) log:

$ fgrep -n -C1 initrddir logs/bind

2677-+ install -pm644 /usr/src/world/rpm-work-1/SOURCES/resolver.5 /usr/src/world/rpm-work-1/buildroot/usr/man/man5/
2678:+ install -pD -m700 addon/bind.init /usr/src/world/rpm-work-1/buildroot%_initrddir/named
2679-+ install -pD -m700 /usr/src/world/rpm-work-1/SOURCES/bind-debug.control /usr/src/world/rpm-work-1/buildroot/etc/control.d/facilities/bind-debug
--
2723-Processing files: bind-9.3.2-owl1.2.0.1
2724:error: File must begin with "/": %_initrddir/named
2725-Processing files: bind-utils-9.3.2-owl1.2.0.1
--
2746-RPM build errors:
2747:    File must begin with "/": %_initrddir/named
2748-Command exited with non-zero status 1

------------------------------------------------------------------------
-- 
Chris Bopp, Honolulu, Hawaii
Repeat purchaser of the amazing Openwall GNU/*/Linux!



This archive was generated by hypermail 2.1.3 : Wed Nov 08 2006 - 16:15:13 PST