debian/0000775000000000000000000000000012155455652007202 5ustar debian/rules0000775000000000000000000000127112155437772010266 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with autoreconf override_dh_autoreconf: gtkdocize dh_autoreconf override_dh_install: dh_install -X.la --fail-missing override_dh_auto_test: # Some (all?) tests only work when running as root. override_dh_strip: dh_strip --dbg-package=libldm-dbg debian/watch0000664000000000000000000000011212155437772010230 0ustar version=3 https://github.com/mdbooth/libldm/tags .*/libldm-(.*)\.tar\.gz debian/changelog0000664000000000000000000000210712155455540011050 0ustar libldm (0.2.3-2ubuntu1) saucy; urgency=low * Merge from Debian unstable. Remaining changes: - debian/patches/0005-cast_be64toh_results.patch: Fix building ldmtool with newer glib versions. * debian/patches/0004-g_type_init-deprecated.patch: Drop, as it was applied in Debian. -- Logan Rosen Mon, 10 Jun 2013 19:02:57 -0400 libldm (0.2.3-2) unstable; urgency=medium * Fixed building ldmtool with newer glib versions (Closes: #710641) -- Hilko Bengen Sat, 01 Jun 2013 12:09:38 +0200 libldm (0.2.3-1ubuntu2) saucy; urgency=low * Add 0005-cast_be64toh_results.patch to fix FTBFS on powerpc. -- Adam Conrad Wed, 08 May 2013 16:51:37 -0600 libldm (0.2.3-1ubuntu1) saucy; urgency=low * debian/patches/0004-g_type_init-deprecated.patch: - Dont use g_type_init with new glib versions, fix FTBFS -- Angel Abad Sun, 05 May 2013 18:07:29 +0200 libldm (0.2.3-1) unstable; urgency=low * Initial release -- Hilko Bengen Sat, 05 Jan 2013 15:17:39 +0100 debian/compat0000664000000000000000000000000212155437772010403 0ustar 9 debian/libldm-1.0-0.install0000664000000000000000000000002612155437772012467 0ustar usr/lib/*-*/lib*.so.* debian/copyright0000664000000000000000000000403612155437772011143 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: libldm Source: https://github.com/mdbooth/libldm Files: * Copyright: 2012 Red Hat Inc. License: GPL-3.0+ Files: src/ldm.* src/gpt.* src/mbr.* Copyright: 2012 Red Hat Inc. License: LGPL-3.0+ # If you want to use GPL v2 or later for the /debian/* files use # the following clauses, or change it to suit. Delete these two lines Files: debian/* Copyright: 2012 Hilko Bengen License: GPL-3.0+ License: GPL-3.0+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". License: LGPL-3.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-3". debian/source/0000775000000000000000000000000012155455647010506 5ustar debian/source/format0000664000000000000000000000001412155437772011713 0ustar 3.0 (quilt) debian/ldmtool.install0000664000000000000000000000003212155437772012242 0ustar usr/bin usr/share/man/man1debian/libldm-dev.install0000664000000000000000000000011612155437772012612 0ustar usr/include/* usr/lib/*-*/lib*.a usr/lib/*-*/lib*.so usr/lib/*-*/pkgconfig/* debian/control0000664000000000000000000000375512155437772010622 0ustar Source: libldm Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Hilko Bengen Build-Depends: debhelper (>= 9~), dh-autoreconf, pkg-config, libglib2.0-dev, libjson-glib-dev, zlib1g-dev, uuid-dev, libdevmapper-dev, libudev-dev, libreadline-dev, gtk-doc-tools, Standards-Version: 3.9.3 Section: libs Homepage: https://github.com/mdbooth/libldm #Vcs-Git: git://git.debian.org/collab-maint/libldm.git #Vcs-Browser: http://git.debian.org/?p=collab-maint/libldm.git;a=summary Package: libldm-dev Section: libdevel Architecture: any Depends: libldm-1.0-0 (= ${binary:Version}), ${misc:Depends} Description: library for managing Microsoft Windows dynamic disks libldm is a library for managing Microsoft Windows dynamic disks, which use Microsoft's LDM metadata. It can inspect them, and also create and remove device-mapper block devices which can be mounted. . This package includes the headers Package: libldm-dbg Section: debug Architecture: any Depends: libldm-1.0-0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Debug symbols for libldm libldm is a library for managing Microsoft Windows dynamic disks, which use Microsoft's LDM metadata. It can inspect them, and also create and remove device-mapper block devices which can be mounted. . This package includes the debug symbols Package: libldm-1.0-0 Section: libs Architecture: any Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends} Description: library for managing Microsoft Windows dynamic disks libldm is a library for managing Microsoft Windows dynamic disks, which use Microsoft's LDM metadata. It can inspect them, and also create and remove device-mapper block devices which can be mounted. Package: ldmtool Section: otherosfs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: tool for managing Microsoft Windows dynamic disks ldmtool exposes libldm's functionality as a command-line tool. debian/patches/0000775000000000000000000000000012155455647010635 5ustar debian/patches/0005-cast_be64toh_results.patch0000664000000000000000000000626212155437772016313 0ustar From b8a77565458a0b183f1fd0e0af224fd0d5b3d8c8 Mon Sep 17 00:00:00 2001 From: Matthew Booth Date: Mon, 24 Sep 2012 16:23:01 +0100 Subject: [PATCH] Cast result of be64toh() to uint64_t glibc 2.16 makes a change to be64toh() which breaks libldm. In the new glibc, be64toh() returns unsigned long long int regardless of wordsize. This breaks in combination with PRIu64 on x86_64, which expects unsigned long. It's not clear to me whether this is a regression in glibc, or a failure of gcc to recognise that unsigned long long int and unsigned long are the same thing on x86_64. There's a Fedora bug open against glibc here: https://bugzilla.redhat.com/show_bug.cgi?id=859427 --- src/ldm.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/ldm.c b/src/ldm.c index a55723c..0273ddb 100644 --- a/src/ldm.c +++ b/src/ldm.c @@ -1090,18 +1090,18 @@ enum { " Size: %" PRIu64 "\n" " Flags2: %016" PRIo64, path, - be64toh(tocblock->seq1), - be64toh(tocblock->seq2), + (uint64_t) be64toh(tocblock->seq1), + (uint64_t) be64toh(tocblock->seq2), tocblock->bitmap[0].name, be16toh(tocblock->bitmap[0].flags1), - be64toh(tocblock->bitmap[0].start), - be64toh(tocblock->bitmap[0].size), - be64toh(tocblock->bitmap[0].flags2), + (uint64_t) be64toh(tocblock->bitmap[0].start), + (uint64_t) be64toh(tocblock->bitmap[0].size), + (uint64_t) be64toh(tocblock->bitmap[0].flags2), tocblock->bitmap[1].name, be16toh(tocblock->bitmap[1].flags1), - be64toh(tocblock->bitmap[1].start), - be64toh(tocblock->bitmap[1].size), - be64toh(tocblock->bitmap[1].flags2)); + (uint64_t) be64toh(tocblock->bitmap[1].start), + (uint64_t) be64toh(tocblock->bitmap[1].size), + (uint64_t) be64toh(tocblock->bitmap[1].flags2)); /* Find the start of the DB */ *vmdb = NULL; @@ -1150,8 +1150,8 @@ enum { be16toh((*vmdb)->version_major), be16toh((*vmdb)->version_minor), (*vmdb)->disk_group_guid, - be64toh((*vmdb)->committed_seq), - be64toh((*vmdb)->pending_seq), + (uint64_t) be64toh((*vmdb)->committed_seq), + (uint64_t) be64toh((*vmdb)->pending_seq), be32toh((*vmdb)->n_committed_vblks_vol), be32toh((*vmdb)->n_committed_vblks_comp), be32toh((*vmdb)->n_committed_vblks_part), @@ -1276,10 +1276,10 @@ enum { be16toh(privhead->version_minor), privhead->disk_guid, privhead->disk_group_guid, - be64toh(privhead->logical_disk_start), - be64toh(privhead->logical_disk_size), - be64toh(privhead->ldm_config_start), - be64toh(privhead->ldm_config_size)); + (uint64_t) be64toh(privhead->logical_disk_start), + (uint64_t) be64toh(privhead->logical_disk_size), + (uint64_t) be64toh(privhead->ldm_config_start), + (uint64_t) be64toh(privhead->ldm_config_size)); return TRUE; } -- 1.8.1.6 debian/patches/0002-patch-easy-fix-for-compiling-with-Werror-format-secu.patch0000664000000000000000000000422612155437772024277 0ustar From: Hilko Bengen Date: Wed, 19 Dec 2012 22:24:28 +0100 Subject: patch: easy fix for compiling with -Werror=format-security error: format not a string literal and no format arguments [-Werror=format-security] --- src/ldm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ldm.c b/src/ldm.c index a55723c..a4eb799 100644 --- a/src/ldm.c +++ b/src/ldm.c @@ -2759,7 +2759,7 @@ _dm_create_mirrored(const LDMVolumePrivate * const vol, GError ** const err) GString * chunk = _dm_create_part(part, cookie, err); if (chunk == NULL) { if (err && (*err)->code == LDM_ERROR_MISSING_DISK) { - g_warning((*err)->message); + g_warning("%s", (*err)->message); g_error_free(*err); *err = NULL; g_string_append(target.params, " - -"); continue; @@ -2804,7 +2804,7 @@ out: for (int i = devices->len; i > 0; i--) { GString *device = g_array_index(devices, GString *, i - 1); if (!_dm_remove(device->str, 0, &cleanup_err)) { - g_warning(cleanup_err->message); + g_warning("%s", cleanup_err->message); g_error_free(cleanup_err); cleanup_err = NULL; } } @@ -2847,7 +2847,7 @@ _dm_create_raid5(const LDMVolumePrivate * const vol, GError ** const err) GString * chunk = _dm_create_part(part, cookie, err); if (chunk == NULL) { if (err && (*err)->code == LDM_ERROR_MISSING_DISK) { - g_warning((*err)->message); + g_warning("%s", (*err)->message); g_error_free(*err); *err = NULL; g_string_append(target.params, " - -"); continue; @@ -2892,7 +2892,7 @@ out: for (int i = devices->len; i > 0; i--) { GString *device = g_array_index(devices, GString *, i - 1); if (!_dm_remove(device->str, 0, &cleanup_err)) { - g_warning(cleanup_err->message); + g_warning("%s", cleanup_err->message); g_error_free(cleanup_err); cleanup_err = NULL; } } debian/patches/series0000664000000000000000000000042612155455415012045 0ustar 0001-patch-relax-uuid-zlib-version-requirements.patch 0002-patch-easy-fix-for-compiling-with-Werror-format-secu.patch 0003-Make-sure-that-the-m4-directory-is-there-so-autoreco.patch 0004-Don-t-call-g_type_init-when-compiling-with-newer-gli.patch 0005-cast_be64toh_results.patch debian/patches/0001-patch-relax-uuid-zlib-version-requirements.patch0000664000000000000000000000133112155437772022547 0ustar From: Hilko Bengen Date: Wed, 19 Dec 2012 22:23:58 +0100 Subject: patch: relax uuid, zlib version requirements --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index cbffa95..748930a 100644 --- a/configure.ac +++ b/configure.ac @@ -82,14 +82,14 @@ PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.32.0], ] ) -PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.5], +PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2], [ AC_SUBST([ZLIB_CFLAGS]) AC_SUBST([ZLIB_LIBS]) ] ) -PKG_CHECK_MODULES([UUID], [uuid >= 2.21.0], +PKG_CHECK_MODULES([UUID], [uuid], [ AC_SUBST([UUID_CFLAGS]) AC_SUBST([UUID_LIBS]) debian/patches/0004-Don-t-call-g_type_init-when-compiling-with-newer-gli.patch0000664000000000000000000000101312155440013024167 0ustar From: Hilko Bengen Date: Sat, 1 Jun 2013 12:07:35 +0200 Subject: Don't call g_type_init when compiling with newer glib versions --- src/ldmtool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ldmtool.c b/src/ldmtool.c index 6e58883..2635b80 100644 --- a/src/ldmtool.c +++ b/src/ldmtool.c @@ -777,7 +777,9 @@ main(int argc, char *argv[]) } g_option_context_free(context); +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init(); +#endif LDM * const ldm = ldm_new(&err); debian/patches/0003-Make-sure-that-the-m4-directory-is-there-so-autoreco.patch0000664000000000000000000000055512155437772024103 0ustar From: Hilko Bengen Date: Sat, 5 Jan 2013 15:36:58 +0100 Subject: Make sure that the m4 directory is there so autoreconf works --- m4/.exists | 1 + 1 file changed, 1 insertion(+) create mode 100644 m4/.exists diff --git a/m4/.exists b/m4/.exists new file mode 100644 index 0000000..9c558e3 --- /dev/null +++ b/m4/.exists @@ -0,0 +1 @@ +.