Bug#187960: rootskel fails to build from source on arm/m68k
Package: rootskel
Version: 0.24
Severity: serious
Tags: patch
rootskel fails to build from source[1] on arm and m68k due to a bug
in fakeroot (being reported separately). The attached patch reworks
debian/rules to build the locale data during build rather than binary,
which seems more "correct" anyway. It also mucks with where builds
occur (build-tree instead of debian/foo) to better separate the build
and binary targets, and make the clean target a no-brainer.
... Adam
[1] http://buildd.debian.org/build.php?arch=&pkg=rootskel
-- System Information:
Debian Release: testing/unstable
Architecture: powerpc
Kernel: Linux lucifer 2.4.20 #1 Sat Dec 28 20:41:54 MST 2002 ppc
Locale: LANG=C, LC_CTYPE=C
--- rootskel/rules.old Mon Apr 7 10:43:01 2003
+++ rootskel-0.24/debian/rules Mon Apr 7 10:58:04 2003
@@ -17,29 +17,31 @@
build: build-stamp
build-stamp:
dh_testdir
- touch build-stamp
-
-build-locale:
- mkdir -p debian/rootskel/usr/lib/locale
+ # We want to work in build-tree, so we can clean without remorse:
+ mkdir build-tree
+ cp -a src/* build-tree/
+ find build-tree -depth -type d -path "*CVS*" -exec rm -rf {} \;
+ mkdir -p build-tree/usr/lib/locale
localedef -i "debian/C.UTF-8" -f "UTF-8" \
- "debian/rootskel/usr/lib/locale/C.UTF-8"
+ "build-tree/usr/lib/locale/C.UTF-8"
+ touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
rm -f debian/files~
+ rm -rf build-tree
dh_clean
# cvs update -P will remove these dirs if they are empty
DIRS=dev proc var/log var/lib/apt-install mnt floppy usr/lib/prebaseconfig.d
-install: build build-locale
+install: build
dh_testdir
dh_testroot
mkdir -p debian/rootskel/
- cp -a src/* debian/rootskel/
- find debian/rootskel -depth -type d -path "*CVS*" -exec rm -rf {} \;
+ cp -a build-tree/* debian/rootskel/
$(foreach DIR, $(DIRS), \
(mkdir -p debian/rootskel/$(DIR) ) ; )
touch debian/rootskel/var/lib/apt-install/queue
Reply to: