tags 461150 patch
thanks

The attached patch modify debian/rules to compile libowfat also against
glibc installing it as /usr/lib/libowfat.a

From a quick test I've done it seems to work.  I'm new to libowfat so
more testing is needed.

HTH
-- 
Walter Franzini
http://aegis.stepbuild.org/
diff -Nru --exclude '*~' libowfat-0.28/debian/changelog libowfat-0.28/debian/changelog
--- libowfat-0.28/debian/changelog	2010-08-09 11:26:56.000000000 +0200
+++ libowfat-0.28/debian/changelog	2010-08-09 11:26:57.000000000 +0200
@@ -1,3 +1,10 @@
+libowfat (0.28-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Enable linking against glibc
+
+ -- Walter Franzini <walter.franz...@gmail.com>  Mon, 09 Aug 2010 10:11:35 +0200
+
 libowfat (0.28-2) unstable; urgency=medium
 
   * debian/control: Build-Depends: dietlibc-dev (>= 0.32-5) [sparc]
diff -Nru --exclude '*~' libowfat-0.28/debian/rules libowfat-0.28/debian/rules
--- libowfat-0.28/debian/rules	2010-08-09 11:26:56.000000000 +0200
+++ libowfat-0.28/debian/rules	2010-08-09 11:26:57.000000000 +0200
@@ -16,14 +16,15 @@
 
 build: deb-checkdir build-stamp
 build-stamp: patch-stamp
-	$(MAKE) DIER=''
-	mv libowfat.a libowfat-glibc.a
+	$(MAKE) DIET=''
+	mv libowfat.a libowfat-glibc.a.SAVE
 	$(MAKE) clean DIET=''
 	$(MAKE) DIET='diet -v -Os'
 	touch build-stamp
 
 clean: deb-checkdir deb-checkuid
 	$(MAKE) clean DIET='diet -v -Os'
+	rm -f libowfat-glibc.a.SAVE
 	test ! -e patch-stamp || \
 	  for i in `ls -1r debian/diff/*.diff || :`; do patch -p1 -R <$$i; done
 	rm -rf '$(DIR)' .diet
@@ -36,7 +37,7 @@
 	install -d -m0755 '$(DIR)'/usr/include/diet
 	install -m0644 libowfat.a '$(DIR)'/usr/lib/diet/lib/
 	$(STRIP) --strip-debug '$(DIR)'/usr/lib/diet/lib/libowfat.a
-	install -m0644 libowfat-glibc.a '$(DIR)'/usr/lib/libowfat.a
+	install -m0644 libowfat-glibc.a.SAVE '$(DIR)'/usr/lib/libowfat.a
 	$(STRIP) --strip-debug '$(DIR)'/usr/lib/libowfat.a
 	install -m0644 *.h '$(DIR)'/usr/include/diet/
 	# man pages

Attachment: pgpa2rtlqnXKF.pgp
Description: PGP signature

Reply via email to