Source: libtirpc
Version: 1.2.6-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: rpc-removal
Dear maintainer,
The glibc SunRPC implementation has been marked obsolete for some time.
It will get removed from glibc in version 2.32 that has been released a
few weeks ago. Packages have to switch to using TI RPC instead.
RPC is used by busybox in debian-installer to be able to mount NFS
partitions. In order to switch busybox to TI RPC, the library also has
to be provided in udeb format. Unfortunately TI RPC is currently built
with Kerberos support, for which we do not have udeb either. It's
therefore not possible to simply package the already built library as a
udeb package, a second build without Kerberos support has to be done.
You will find attached a patch implementing that. Unfortunately dh is
not really designed to support multiple built, so the resulting
debian/rules file is now a bit more verbose. Note that I have removed
the existing override_dh_autoreconf rules which was not really
compatible with the double build. It appears that debhelper now
correctly handles the autoreconf process and that it's not needed
anymore.
Would it be possible to apply this patch to the package?
Thanks,
Aurelien
--- libtirpc-1.2.6/debian/control
+++ libtirpc-1.2.6/debian/control
@@ -45,3 +45,15 @@
.
This package contains the netconfig configuration file as well as the
associated manpage.
+
+Package: libtirpc3-udeb
+Package-Type: udeb
+Architecture: any
+Section: debian-installer
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: transport-independent RPC library - udeb
+ This package contains a port of Sun's transport-independent RPC library to
+ Linux. The library is intended as a replacement for the RPC code in the GNU C
+ library, providing among others support for RPC (and in turn, NFS) over IPv6.
+ .
+ This is a cut-down library package for use in debian-installer.
--- libtirpc-1.2.6/debian/libtirpc3-udeb.install
+++ libtirpc-1.2.6/debian/libtirpc3-udeb.install
@@ -0,0 +1,2 @@
+etc/netconfig
+usr/lib/*/libtirpc.so.*
--- libtirpc-1.2.6/debian/rules
+++ libtirpc-1.2.6/debian/rules
@@ -5,9 +5,21 @@
%:
dh $@ --with autoreconf
-override_dh_autoreconf:
- . ./autogen.sh
- AUTOHEADER=true dh_autoreconf
+override_dh_auto_configure:
+ dh_auto_configure --builddir=build-deb
+ dh_auto_configure --builddir=build-udeb -- --disable-gssapi
+
+override_dh_auto_build:
+ dh_auto_build --builddir=build-deb
+ dh_auto_build --builddir=build-udeb
+
+override_dh_auto_install:
+ dh_auto_install --builddir=build-deb
+ dh_auto_install --builddir=build-udeb
+
+override_dh_auto_install:
+ dh_auto_install --builddir=build-deb
+ dh_auto_install --builddir=build-udeb --destdir=debian/tmp-udeb
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
override_dh_install:
@@ -19,4 +31,9 @@
LINKTARGET=`readlink
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libtirpc.so`; \
ln -sf /lib/$(DEB_HOST_MULTIARCH)/$$LINKTARGET
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libtirpc.so
- dh_install
+ dh_install -Nlibtirpc3-udeb
+ dh_install -plibtirpc3-udeb --sourcedir=debian/tmp-udeb
+
+override_dh_auto_clean:
+ rm -rf build-deb build-udeb
+ rm -rf debian/tmp-udeb