[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#376358: Further work



Ok, here I include attached the following incremental patches:
 - bashism.patch: previous patch that removes bashisms from debian/rules
 - binary-indep.patch: adds required target to debian/rules
 - ldconfig.patch: adds post{rm,inst} ldconfig calls

Also AFAICS the package could be updated to 3.7.2 standards without
any modification, altough I didn't thouroughly checked it I did gave
look at the upgrade-checklist and nothing seemed applicable.

linda complains about: 
W: socketapi1; The library libcppsctpsocket is not in a shlibs file.
W: socketapi1; The library libsctpsocket is not in a shlibs file.

which I'm not certain if/how to fix, since the package already provides a
shlibs file with:
libsctpsocket-170       1       socketapi (>= 1.7.0-1)
libcppsctpsocket-170    1       socketapi (>= 1.7.0-1)

I dunno if that's right...

	Hope to help,

		Damián Viano(Des).
diff -Nura socketapi-1.7.0/debian/rules socketapi-1.7.0.des/debian/rules
--- socketapi-1.7.0/debian/rules	2006-07-02 09:47:06.000000000 -0300
+++ socketapi-1.7.0.des/debian/rules	2006-07-02 14:08:35.000000000 -0300
@@ -60,7 +60,7 @@
 
 	cp -p debian/copyright $(docdir)
 	cp -p debian/changelog $(docdir)/changelog.Debian
-	tar cf $(docdir)/examples/cppsocket_programs.tar --exclude .libs --exclude .deps cppsocket_programs/{README,*.cc,*.h}
+	tar cf $(docdir)/examples/cppsocket_programs.tar --exclude .libs --exclude .deps cppsocket_programs/README cppsocket_programs/*.cc cppsocket_programs/*.h
 	tar cf $(docdir)/examples/socket_programs.tar --exclude .libs --exclude .deps socket_programs/*.c
 	cd $(docdir) && bzip2 -9 examples/*
 	cd $(docdir) && gzip -9 changelog.Debian
diff -Nura socketapi-1.7.0/debian/rules socketapi-1.7.0.des/debian/rules
--- socketapi-1.7.0/debian/rules	2006-07-02 09:47:06.000000000 -0300
+++ socketapi-1.7.0.des/debian/rules	2006-07-02 14:08:35.000000000 -0300
@@ -86,6 +86,7 @@
 define checkdir
 	test -f debian/rules
 endef
+binary-indep:
 
 binary: binary-indep binary-arch
diff -Nura socketapi-1.7.0/debian/postinst socketapi-1.7.0.des/debian/postinst
--- socketapi-1.7.0/debian/postinst	1969-12-31 21:00:00.000000000 -0300
+++ socketapi-1.7.0.des/debian/postinst	2006-07-02 10:00:31.000000000 -0300
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -e
+if [ "$1" = "configure" ]; then
+	ldconfig
+fi
diff -Nura socketapi-1.7.0/debian/postrm socketapi-1.7.0.des/debian/postrm
--- socketapi-1.7.0/debian/postrm	1969-12-31 21:00:00.000000000 -0300
+++ socketapi-1.7.0.des/debian/postrm	2006-07-02 10:00:49.000000000 -0300
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -e
+if [ "$1" = "remove" ]; then
+	ldconfig
+fi
diff -Nura socketapi-1.7.0/debian/rules socketapi-1.7.0.des/debian/rules
--- socketapi-1.7.0/debian/rules	2006-07-02 09:47:06.000000000 -0300
+++ socketapi-1.7.0.des/debian/rules	2006-07-02 11:01:08.000000000 -0300
@@ -46,6 +46,8 @@
 	cd debian/tmp && install -d usr/bin
 
 	cd debian && install -m 644 shlibs $(plib)/DEBIAN
+	cd debian && install -m 755 postinst $(plib)/DEBIAN
+	cd debian && install -m 755 postrm $(plib)/DEBIAN
 
 	cd shared/usr/lib && chrpath --delete libcppsctpsocket-170.so.1.0.7
 	cd shared/usr/lib && $(STRIP) --strip-unneeded libsctpsocket-170.so.1.0.7

Reply to: