[BusyBox] [PATCH] : busybox debian/rules
David Whedon
dwhedon at gordian.com
Fri Feb 23 06:29:31 UTC 2001
forwarding from myself to respond to Erik, I'm not on the list, I wich I could
make the web archive mail specific messages to me.
ruff:busybox$ fakeroot ./debian/rules build
. . . snip snip . . .
uname.o uniq.o uptime.o wc.o which.o whoami.o xargs.o yes.o busybox.o messages.o
usage.o utility.o libpwd.a
busybox.o(.rodata+0x4): undefined reference to `ar_main'
collect2: ld returned 1 exit status
make[1]: *** [busybox] Error 1
make[1]: Leaving directory
`/usr/home/davidw/debian/busybox/debian/busybox_builddir'
make: *** [debian/build-stamp-busybox] Error 2
ruff:busybox$ grep BB_AR debian/busybox_builddir/Config.h
#define BB_AR
#ifndef BB_AR
#define BB_AR
ruff:busybox$ grep " ar.c " debian/busybox_builddir/applet_source_list
ruff:busybox$
BB_AR is deinfed in Config.h, but ar.c didn't show up in applet_source_list. I
haven't looked deeply at the details, but I believe it is because we need to
copy Config.h into the build dir before we generate applet_source_list. If we
modify ./debian/rules so Config.h gets copied in first:
ruff:busybox$ diff -u ./debian/rules ./debian/rules.good
--- ./debian/rules Thu Feb 22 22:16:29 2001
+++ ./debian/rules.good Thu Feb 22 22:16:24 2001
@@ -27,8 +27,8 @@
dh_testdir
mkdir -p $(bbbd)
cp Makefile $(bbbd)
- -(cd $(bbbd); $(MAKE) "BB_SRC_DIR=../../" applet_source_list)
cp debian/Config.h-deb $(bbbd)/Config.h
+ -(cd $(bbbd); $(MAKE) "BB_SRC_DIR=../../" applet_source_list)
(cd $(bbbd); $(MAKE) "BB_SRC_DIR=../../")
touch debian/build-stamp-busybox
ruff:busybox$
ruff:busybox$ cp ./debian/rules.good ./debian/rules
ruff:busybox$ fakeroot ./debian/rules clean
. . snip snip . . .
ruff:busybox$ fakeroot ./debian/rules build
. . . snip snip . . .
make[1]: Leaving directory
`/usr/home/davidw/debian/busybox/debian/busybox_builddir'
touch debian/build-stamp-busybox
ruff:busybox$
It builds happily.
David
----- Forwarded message from David Whedon <dwhedon at gordian.com> -----
From: David Whedon <dwhedon at gordian.com>
Subject: [PATCH] : busybox debian/rules
To: busybox at busybox.net
Date: Thu, 22 Feb 2001 21:47:07 -0800
Without this it appears as though 'make' will use the Config.h from ../../,
rather than the one we want. The result is that ar.c doesn't end up in
applet_source_list and the build fails.
Okay to commit?
David
Index: rules
===================================================================
RCS file: /var/cvs/busybox/debian/rules,v
retrieving revision 1.7
diff -u -r1.7 rules
--- rules 2001/02/17 00:41:05 1.7
+++ rules 2001/02/23 05:39:22
@@ -27,8 +27,8 @@
dh_testdir
mkdir -p $(bbbd)
cp Makefile $(bbbd)
- -(cd $(bbbd); $(MAKE) "BB_SRC_DIR=../../" applet_source_list)
cp debian/Config.h-deb $(bbbd)/Config.h
+ -(cd $(bbbd); $(MAKE) "BB_SRC_DIR=../../" applet_source_list)
(cd $(bbbd); $(MAKE) "BB_SRC_DIR=../../")
touch debian/build-stamp-busybox
----- End forwarded message -----
More information about the busybox
mailing list