Hi,
i just opened a wishlist bug against e2fsprogs to include the patch.
It will give us a non-pic compiled libext2fs.a in the libext2fs-dev
package as /usr/lib/libext2fs-nopic.a which will end the binary
or full source code distribution in delo/arcboot.
diff -Nur e2fsprogs-1.27/debian/rules e2fsprogs-1.27.flo/debian/rules
--- e2fsprogs-1.27/debian/rules Wed May 1 20:31:46 2002
+++ e2fsprogs-1.27.flo/debian/rules Wed May 1 20:48:19 2002
@@ -49,6 +49,7 @@
maindir=${debdir}/e2fsprogs
stdbuilddir=${debdir}/BUILD-STD
bfbuilddir=${debdir}/BUILD-BF
+mipsbuilddir=${debdir}/BUILD-MIPS
# docdir=${maindir}/usr/share/doc/${package}
MANDIR=/usr/share/man
mandir=${tmpdir}${MANDIR}
@@ -58,8 +59,10 @@
STAMPSDIR=debian/stampdir
CFGSTDSTAMP=${STAMPSDIR}/configure-std-stamp
CFGBFSTAMP=${STAMPSDIR}/configure-bf-stamp
+CFGMIPSSTAMP=${STAMPSDIR}/configure-mips-stamp
BUILDSTDSTAMP=${STAMPSDIR}/build-std-stamp
BUILDBFSTAMP=${STAMPSDIR}/build-bf-stamp
+BUILDMIPSSTAMP=${STAMPSDIR}/build-mips-stamp
CCOPTS = -O2 -fsigned-char
LIBC-DEV = libc6-dev
@@ -95,6 +98,26 @@
--disable-swapfs --disable-imager \
--disable-resizer --disable-debugfs
+ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+ifneq (,$(findstring $(DEB_BUILD_ARCH),mips mipsel))
+build_specials=build-mips
+install_specials=install-mips
+endif
+endif
+
+${CFGMIPSSTAMP}:
+ dh_testdir
+
+ mkdir -p ${mipsbuilddir}
+
+ cd ${mipsbuilddir} && \
+ ${topdir}/configure --disable-nls \
+ --disable-swapfs --disable-imager \
+ --disable-resizer --disable-debugfs
+
+ mkdir -p ${STAMPSDIR}
+ touch ${CFGMIPSSTAMP}
+
${CFGSTDSTAMP}:
dh_testdir
@@ -126,7 +149,18 @@
mkdir -p ${STAMPSDIR}
touch ${CFGBFSTAMP}
-build: build-std build-bf
+build: build-std build-bf ${build_specials}
+
+build-mips: ${BUILDMIPSSTAMP}
+${BUILDMIPSSTAMP}: ${CFGMIPSSTAMP}
+ dh_testdir
+
+ cd ${mipsbuilddir} && make -C util
+ cd ${mipsbuilddir} && make libs \
+ LIB_SUBDIRS="lib/et lib/ext2fs" \
+ CFLAGS="-G 0 -fno-pic -mno-abicalls -O2"
+
+ touch ${BUILDMIPSSTAMP}
build-std: ${BUILDSTDSTAMP}
${BUILDSTDSTAMP}: ${CFGSTDSTAMP}
@@ -153,7 +187,7 @@
rm -f doc/libext2fs_*.html lib/et/com_err_*.html debian/*.substvars
dh_clean
-install: cleanup install-std install-bf
+install: cleanup install-std install-bf ${install_specials}
# This rule allows to factorize the dh_clean between the 2 install rules
# This must be launched before install-* (if launching them by hand, for
@@ -162,6 +196,15 @@
dh_testdir
dh_testroot
dh_clean -k
+
+install-mips: DH_OPTIONS=
+install-mips: build
+ dh_testdir
+ dh_testroot
+ dh_installdirs
+
+ cp ${mipsbuilddir}/lib/libext2fs.a \
+ ${debdir}/e2fslibs-dev/usr/lib/libext2fs-nopic.a
install-std: DH_OPTIONS=
install-std: build
Flo
--
Florian Lohoff flo@rfc822.org +49-5201-669912
Nine nineth on september the 9th Welcome to the new billenium
Attachment:
pgpB14BI_t4r8.pgp
Description: PGP signature