[Filesystems-devel] Bug#848551: f2fs-tools: please make an udeb

Adam Borowski kilobyte at angband.pl
Sat Dec 24 22:54:17 UTC 2016


On Sat, Dec 24, 2016 at 04:17:52AM -0800, Vincent Cheng wrote:
> On Sun, Dec 18, 2016 at 3:05 AM, Adam Borowski <kilobyte at angband.pl> wrote:
> > Adding d-i support, besides adding a menu item that's simple for a
> > single-device filesystem, requires having an udeb with at least mkfs, other
> > tools also being nice to have in case the user needs to troubleshoot during
> > the installation.
> >
> > Thus, would you care creating such an udeb?  Apologies for waking up that
> > late, it'd need to pass NEW no later than Xmas.
> 
> I have no time to work on this before the NEW freeze, but feel free to
> NMU to have src:f2fs-tools build a udeb package, and whatever else is
> required for d-i support.

Here's my first stab.

The list of included files, and generated dependencies look right, but the
udeb is _not_ yet tested inside d-i.  I'm uploading now to have a chance of
passing NEW.

I'll then prepare proper patches for d-i -- if it turns out there's
something that needs fixing in f2fs-tools, it'll be obviously my
responsibility.

Debdiff attached.


Meow!
-- 
Autotools hint: to do a zx-spectrum build on a pdp11 host, type:
  ./configure --host=zx-spectrum --build=pdp11
-------------- next part --------------
diff -Nru f2fs-tools-1.7.0/debian/changelog f2fs-tools-1.7.0/debian/changelog
--- f2fs-tools-1.7.0/debian/changelog	2016-09-02 08:47:51.000000000 +0200
+++ f2fs-tools-1.7.0/debian/changelog	2016-12-24 22:54:41.000000000 +0100
@@ -1,3 +1,10 @@
+f2fs-tools (1.7.0-1.1) unstable; urgency=medium
+
+  * NMU with permission.
+  * Make an udeb. (Closes: #848551)
+
+ -- Adam Borowski <kilobyte at angband.pl>  Sat, 24 Dec 2016 22:54:41 +0100
+
 f2fs-tools (1.7.0-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru f2fs-tools-1.7.0/debian/control f2fs-tools-1.7.0/debian/control
--- f2fs-tools-1.7.0/debian/control	2016-09-02 08:47:51.000000000 +0200
+++ f2fs-tools-1.7.0/debian/control	2016-12-24 22:54:37.000000000 +0100
@@ -62,3 +62,10 @@
  System (LFS).
  .
  This package contains the development files.
+
+Package: f2fs-tools-udeb
+Package-Type: udeb
+Section: debian-installer
+Architecture: linux-any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Tools for Flash-Friendly File System (udeb)
diff -Nru f2fs-tools-1.7.0/debian/f2fs-tools-udeb.install f2fs-tools-1.7.0/debian/f2fs-tools-udeb.install
--- f2fs-tools-1.7.0/debian/f2fs-tools-udeb.install	1970-01-01 01:00:00.000000000 +0100
+++ f2fs-tools-1.7.0/debian/f2fs-tools-udeb.install	2016-12-24 22:54:41.000000000 +0100
@@ -0,0 +1,2 @@
+/sbin
+/lib/*/libf2fs.so*
diff -Nru f2fs-tools-1.7.0/debian/rules f2fs-tools-1.7.0/debian/rules
--- f2fs-tools-1.7.0/debian/rules	2015-12-22 10:04:01.000000000 +0100
+++ f2fs-tools-1.7.0/debian/rules	2016-12-24 22:54:41.000000000 +0100
@@ -20,3 +20,7 @@
 get-orig-source:
 	wget http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/f2fs-tools-$(DEB_UPSTREAM_VERSION).tar.xz
 	mv f2fs-tools-$(DEB_UPSTREAM_VERSION).tar.xz f2fs-tools_$(DEB_UPSTREAM_VERSION).orig.tar.xz
+
+override_dh_shlibdeps:
+	dh_shlibdeps -a -p f2fs-tools-udeb -- -xlibf2fs0
+	dh_shlibdeps -a -N f2fs-tools-udeb


More information about the Filesystems-devel mailing list