Re: debian/rules not running ./configure
On Sun, 2003-10-26 at 21:06, Andreas Metzler wrote:
> On Sun, Oct 26, 2003 at 08:22:26PM +1100, Zenaan Harkness wrote:
> > What happens when you do debian/rules config.status?
> >
> > $ ./debian/rules config.status
> > dh_testdir
> > # Add here commands to configure the package.
> > CFLAGS=-Wall -g -O2 ./configure --host=i386-linux --build=i386-linux
> > --prefix=/usr --mandir=\${prefix}/share/man
> > --infodir=\${prefix}/share/info
> > /bin/sh: line 1: -g: command not found
> > make: *** [config.status] Error 127
> [...]
>
> You are missing quotes, i.e.
> CFLAGS="-Wall -g -O2" ...
> or
> CFLAGS="$(CFLAGS)" ./configure ...
When I look at other parts of the dh_make generated file, I see:
---
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
config.status: configure
dh_testdir
# Add here commands to configure the package.
CFLAGS=$(CFLAGS) ./configure --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
--mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
---
So, I guess the quotes should be the latter (around the ./configure instance),
given that CFLAGS is possibly added to.
BTW, how can I make dpkg-buildpackage give me verbose output of what it's doing
- ie. I want to figure out why it does not run ./configure (properly?) ??
ta
zen
Reply to: