]> err.no Git - util-linux/commitdiff
build libblkid binary packages
authorScott James Remnant <scott@ubuntu.com>
Thu, 16 Jul 2009 12:57:25 +0000 (13:57 +0100)
committerScott James Remnant <scott@ubuntu.com>
Thu, 16 Jul 2009 13:38:46 +0000 (14:38 +0100)
The blkid library and tool have moved from e2fsprogs to util-linux-ng,
and is now built and used by default.

Merge the changes from Ubuntu to create these packages.

debian/control
debian/libblkid-dev.files [new file with mode: 0644]
debian/libblkid.copyright [new file with mode: 0644]
debian/libblkid1-udeb.dirs [new file with mode: 0644]
debian/libblkid1.files [new file with mode: 0644]
debian/libblkid1.symbols [new file with mode: 0644]
debian/rules
debian/shlibs.local
debian/util-linux-udeb.dirs [new file with mode: 0644]

index 472b0f58edd8a334222277d5558ce86d548f4517..3d8192f84b74d5b10733fcc7d216c1ba2f946bf1 100644 (file)
@@ -1,5 +1,5 @@
 Source: util-linux
-Build-Depends: libncurses5-dev, libslang2-dev (>=2.0.4), gettext, zlib1g-dev, libblkid-dev, uuid-dev, dpkg-dev (>=1.13.12), libselinux1-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], debhelper (>=5), lsb-release, pkg-config
+Build-Depends: libncurses5-dev, libslang2-dev (>=2.0.4), gettext, zlib1g-dev, uuid-dev, dpkg-dev (>=1.13.12), libselinux1-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], debhelper (>=5), lsb-release, pkg-config
 Section: base
 Priority: required
 Uploaders: Scott James Remnant <scott@ubuntu.com>
@@ -16,7 +16,7 @@ Essential: yes
 Depends: lsb-base (>= 3.0-6), tzdata (>=2006c-2)
 Pre-Depends: ${shlibs:Depends}
 Suggests: util-linux-locales, kbd | console-tools, dosfstools
-Replaces: schedutils, miscutils, setterm, fdisk, linux32, sparc-utils, ${util-linux:Conflicts}
+Replaces: schedutils, miscutils, setterm, fdisk, linux32, sparc-utils, e2fsprogs, ${util-linux:Conflicts}
 Conflicts: schedutils, setterm, fdisk, kbd (<< 1.05-3), console-tools (<< 1:0.2.3-21), linux32, ${util-linux:Conflicts}
 Provides: schedutils, linux32
 Description: Miscellaneous system utilities
@@ -76,3 +76,54 @@ Depends: ${shlibs:Depends}
 XC-Package-Type: udeb
 XB-Installer-Menu-Item: 99999
 Description: Manually partition a hard drive (cfdisk)
+
+Package: libblkid1
+Section: libs
+Priority: required
+Depends: ${shlibs:Depends}
+Architecture: any
+Description: block device id library
+ The blkid library which allows system programs like fsck and
+ mount to quickly and easily find block devices by filesystem UUID and
+ LABEL.  This allows system administrators to avoid specifying
+ filesystems by hard-coded device names, but via a logical naming
+ system instead.
+
+Package: libblkid1-udeb
+XC-Package-Type: udeb
+Section: debian-installer
+Priority: optional
+Depends: ${shlibs:Depends}
+Architecture: any
+Description: block device id library
+ The blkid library which allows system programs like fsck and
+ mount to quickly and easily find block devices by filesystem UUID and
+ LABEL.  This allows system administrators to avoid specifiying
+ filesystems by hard-coded device names, but via a logical naming
+ system instead.
+ .
+ This is a minimal package for debian-installer.
+
+Package: libblkid-dev
+Section: libdevel
+Priority: extra
+Depends: libc6-dev | libc-dev, libblkid1 (= ${binary:Version}), uuid-dev
+Architecture: any
+Description: block device id library - headers and static libraries
+ The blkid library which allows system programs like fsck and
+ mount to quickly and easily find block devices by filesystem UUID and
+ LABEL.  This allows system administrators to avoid specifiying
+ filesystems by hard-coded device names, but via a logical naming
+ system instead.
+ .
+ This package contains the development environment for the blkid library.
+
+Package: util-linux-udeb
+Architecture: any
+Priority: optional
+Section: debian-installer
+Depends: ${shlibs:Depends}
+XC-Package-Type: udeb
+Description: Miscellaneous system utilities
+ This is a minimal version of util-linux for debian-installer. It only
+ contains the blkid binary at the moment.
diff --git a/debian/libblkid-dev.files b/debian/libblkid-dev.files
new file mode 100644 (file)
index 0000000..31ec0f0
--- /dev/null
@@ -0,0 +1,4 @@
+usr/lib/libblkid*
+usr/include/blkid
+usr/share/man/man3/libblkid.3
+usr/lib/pkgconfig/blkid.pc
diff --git a/debian/libblkid.copyright b/debian/libblkid.copyright
new file mode 100644 (file)
index 0000000..8d2fd96
--- /dev/null
@@ -0,0 +1,19 @@
+This is libblkid, previously part of e2fsprogs this is now part of
+util-linux-ng and has thus moved to the util-linux Debian source
+package.
+
+Upstream Author: Theodore Ts'o <tytso@mit.edu>
+
+Copyright:
+
+Copyright (C) 1999, 2001 by Andries Brouwer
+Copyright (C) 1999, 2000, 2003 by Theodore Ts'o
+Copyright (C) 2001 Andreas Dilger
+Copyright (C) 2008 Kay Sievers <kay.sievers@vrfy.org>
+Copyright (C) 2009 Karel Zak <kzak@redhat.com>
+
+You are free to distribute this software under the terms of the GNU
+Lesser (Library) General Public License.
+
+On Debian systems, the complete text of the GNU Lesser (Library)
+General Public License can be found in /usr/share/common-licenses/LGPL.
diff --git a/debian/libblkid1-udeb.dirs b/debian/libblkid1-udeb.dirs
new file mode 100644 (file)
index 0000000..c3af857
--- /dev/null
@@ -0,0 +1 @@
+lib/
diff --git a/debian/libblkid1.files b/debian/libblkid1.files
new file mode 100644 (file)
index 0000000..d2f1ccc
--- /dev/null
@@ -0,0 +1 @@
+lib/libblkid*
diff --git a/debian/libblkid1.symbols b/debian/libblkid1.symbols
new file mode 100644 (file)
index 0000000..b0854dc
--- /dev/null
@@ -0,0 +1,47 @@
+libblkid.so.1 libblkid1 #MINVER#
+ BLKID_1.0@BLKID_1.0 2.16-1
+ BLKID_2.15@BLKID_2.15 2.16-1
+ blkid_dev_devname@BLKID_1.0 2.16-1
+ blkid_dev_has_tag@BLKID_1.0 2.16-1
+ blkid_dev_iterate_begin@BLKID_1.0 2.16-1
+ blkid_dev_iterate_end@BLKID_1.0 2.16-1
+ blkid_dev_next@BLKID_1.0 2.16-1
+ blkid_dev_set_search@BLKID_1.0 2.16-1
+ blkid_devno_to_devname@BLKID_1.0 2.16-1
+ blkid_do_probe@BLKID_2.15 2.16-1
+ blkid_do_safeprobe@BLKID_2.15 2.16-1
+ blkid_encode_string@BLKID_2.15 2.16-1
+ blkid_evaluate_tag@BLKID_2.15 2.16-1
+ blkid_find_dev_with_tag@BLKID_1.0 2.16-1
+ blkid_free_probe@BLKID_2.15 2.16-1
+ blkid_gc_cache@BLKID_1.0 2.16-1
+ blkid_get_cache@BLKID_1.0 2.16-1
+ blkid_get_dev@BLKID_1.0 2.16-1
+ blkid_get_dev_size@BLKID_1.0 2.16-1
+ blkid_get_devname@BLKID_1.0 2.16-1
+ blkid_get_library_version@BLKID_1.0 2.16-1
+ blkid_get_tag_value@BLKID_1.0 2.16-1
+ blkid_known_fstype@BLKID_1.0 2.16-1
+ blkid_new_probe@BLKID_2.15 2.16-1
+ blkid_parse_tag_string@BLKID_1.0 2.16-1
+ blkid_parse_version_string@BLKID_1.0 2.16-1
+ blkid_probe_all@BLKID_1.0 2.16-1
+ blkid_probe_all_new@BLKID_1.0 2.16-1
+ blkid_probe_filter_types@BLKID_2.15 2.16-1
+ blkid_probe_filter_usage@BLKID_2.15 2.16-1
+ blkid_probe_get_value@BLKID_2.15 2.16-1
+ blkid_probe_has_value@BLKID_2.15 2.16-1
+ blkid_probe_invert_filter@BLKID_2.15 2.16-1
+ blkid_probe_lookup_value@BLKID_2.15 2.16-1
+ blkid_probe_numof_values@BLKID_2.15 2.16-1
+ blkid_probe_reset_filter@BLKID_2.15 2.16-1
+ blkid_probe_set_device@BLKID_2.15 2.16-1
+ blkid_probe_set_request@BLKID_2.15 2.16-1
+ blkid_put_cache@BLKID_1.0 2.16-1
+ blkid_reset_probe@BLKID_2.15 2.16-1
+ blkid_safe_string@BLKID_2.15 2.16-1
+ blkid_send_uevent@BLKID_2.15 2.16-1
+ blkid_tag_iterate_begin@BLKID_1.0 2.16-1
+ blkid_tag_iterate_end@BLKID_1.0 2.16-1
+ blkid_tag_next@BLKID_1.0 2.16-1
+ blkid_verify@BLKID_1.0 2.16-1
index 589107365668ef32013304d7ebd6007386dba84c..441646ae394fe2313ef5c77068b3f80a32f77c95 100755 (executable)
@@ -110,6 +110,19 @@ endif
        if [ -f debian/util-linux/sbin/hwclock ] ; then \
            install -m 644 debian/hwclock.rules debian/util-linux/lib/udev/rules.d/85-hwclock.rules; \
        fi
+       # copy library and symlink into udeb
+       ln debian/libblkid1/lib/libblkid.so.1.* debian/libblkid1-udeb/lib/
+       ln debian/libblkid1/lib/libblkid.so.1   debian/libblkid1-udeb/lib/
+       ln debian/util-linux/sbin/blkid debian/util-linux-udeb/sbin/
+       # overwrite copyright
+       install -m 644 debian/libblkid.copyright debian/libblkid1/usr/share/doc/libblkid1/copyright
+       install -m 644 debian/libblkid.copyright debian/libblkid-dev/usr/share/doc/libblkid-dev/copyright
+       # dpkg symbol handling
+       echo "Generating symbols for libblkid1..."
+       dpkg-gensymbols -plibblkid1 -Pdebian/libblkid1 > debian/libblkid1.tmp-patch
+       cat debian/libblkid1.tmp-patch
+       patch debian/libblkid1.symbols < debian/libblkid1.tmp-patch
+       rm debian/libblkid1.tmp-patch
        cd debian; if [ -f util-linux/sbin/fdisk ]; then \
            ln util-linux/sbin/*fdisk fdisk-udeb/usr/sbin/; \
            S=fdisk-udeb/usr/sbin/cfdisk; if [ -f $$S ]; then mv $$S cfdisk-udeb/usr/sbin/; fi; \
index 26616108c5254623b37a889fdf1d15609f5b8081..eaaed72e95b8d562d85b0f573082b4137a6ed9e6 100644 (file)
@@ -1 +1,2 @@
 libblkid 1 libblkid1 (>=1.37-1)
+udeb: libblkid 1 libblkid1-udeb
diff --git a/debian/util-linux-udeb.dirs b/debian/util-linux-udeb.dirs
new file mode 100644 (file)
index 0000000..e1ae85e
--- /dev/null
@@ -0,0 +1 @@
+sbin