Bug#477565: please package libfdt
tag 477565 + patch thanks On Wed, Dec 14, 2011 at 01:34:08AM +0400, Dmitry Eremin-Solenikov wrote: Package: device-tree-compiler Version: 1.3.0-1 Followup-For: Bug #477565 Tag: patch Hi, Please care to apply the provided patch that enables packaging of libfdt into separate libfdt-dev package. Thanks for your patch. While it is true that libfdt was not having a stable API/ABI, latest upstream version fixed that. Now the shared library is properly versioned, so it's possible to provide it in a package. It's what the patch below does, it also provide a few more useful binaries. It uses dh_install, as installing more than 5 or 6 files by hand is a pain. diff -u device-tree-compiler-1.3.0/debian/control device-tree-compiler-1.3.0/debian/control --- device-tree-compiler-1.3.0/debian/control +++ device-tree-compiler-1.3.0/debian/control @@ -13,4 +13,20 @@ -Depends: ${shlibs:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} Description: OpenFirmware Device Tree Compiler for Flat Device Trees This tool compiles device-tree descriptions for booting PowerPC kernels on embedded systems without OpenFirmware. + +Package: libfdt1 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Flat Device Trees manipulation library + This is a library containing functions for manipulating Flat Device Trees. + +Package: libfdt-dev +Architecture: any +Section: libdevel +Depends: libfdt1 (= ${binary:Version}), ${misc:Depends} +Description: Flat Device Trees manipulation library - development files + This is a library containing functions for manipulating Flat Device Trees. + . + This package contains the files needed for development against libfdt. diff -u device-tree-compiler-1.3.0/debian/rules device-tree-compiler-1.3.0/debian/rules --- device-tree-compiler-1.3.0/debian/rules +++ device-tree-compiler-1.3.0/debian/rules @@ -40,7 +40,8 @@ dh_testroot dh_prep dh_installdirs - install -m755 dtc $(CURDIR)/debian/device-tree-compiler/usr/bin + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr + dh_install --list-missing --sourcedir=debian/tmp touch install-stamp # Build architecture-independent files here. @@ -59,6 +60,7 @@ dh_strip dh_compress dh_fixperms + dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol --- device-tree-compiler-1.3.0.orig/debian/device-tree-compiler.install +++ device-tree-compiler-1.3.0/debian/device-tree-compiler.install @@ -0,0 +1 @@ +usr/bin/* --- device-tree-compiler-1.3.0.orig/debian/libfdt1.install +++ device-tree-compiler-1.3.0/debian/libfdt1.install @@ -0,0 +1,2 @@ +usr/lib/libfdt-*.so +usr/lib/libfdt.so.* --- device-tree-compiler-1.3.0.orig/debian/libfdt-dev.install +++ device-tree-compiler-1.3.0/debian/libfdt-dev.install @@ -0,0 +1,3 @@ +usr/include/* +usr/lib/libfdt.a +usr/lib/libfdt.so -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurel...@aurel32.net http://www.aurel32.net -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#477565: please package libfdt
Bug#477565: please package libfdt
Package: device-tree-compiler Version: 1.3.0-1 Followup-For: Bug #477565 Tag: patch Hi, Please care to apply the provided patch that enables packaging of libfdt into separate libfdt-dev package. Thanks, Dmitry -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages device-tree-compiler depends on: ii libc6 2.13-21 device-tree-compiler recommends no packages. device-tree-compiler suggests no packages. -- no debconf information From fa8021c8fdef979f8ad217bfeef226faab418d58 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov dbarysh...@gmail.com Date: Mon, 12 Dec 2011 21:14:38 +0400 Subject: [PATCH] dtc: provide libfdt-dev package containing libfdt headers and static lib Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- debian/changelog |7 +++ debian/control | 10 ++ debian/{dirs = device-tree-compiler.dirs} |0 debian/libfdt-dev.dirs |2 ++ debian/rules |3 +++ 5 files changed, 22 insertions(+), 0 deletions(-) rename debian/{dirs = device-tree-compiler.dirs} (100%) create mode 100644 debian/libfdt-dev.dirs diff --git a/debian/changelog b/debian/changelog index 94d8e15..62723a7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +device-tree-compiler (1.3.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Provide libfdt-dev package with libfdt development files (Closes: #477565) + + -- Dmitry Eremin-Solenikov dbarysh...@gmail.com Mon, 12 Dec 2011 21:10:23 +0400 + device-tree-compiler (1.3.0-1) unstable; urgency=low * New upstream release. (Closes: #572945) diff --git a/debian/control b/debian/control index 8fe0b2e..f89d9c1 100644 --- a/debian/control +++ b/debian/control @@ -14,3 +14,13 @@ Depends: ${shlibs:Depends} Description: OpenFirmware Device Tree Compiler for Flat Device Trees This tool compiles device-tree descriptions for booting PowerPC kernels on embedded systems without OpenFirmware. + +Package: libfdt-dev +Architecture: any +Section: libdevel +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Flat Device Trees manipulation library + This is a library containing functions for manipulating Flat Device Trees. + . + As the libfdt API are neither declared stable nor promised to be backwards + compatible, only static version of the library is provided. diff --git a/debian/dirs b/debian/device-tree-compiler.dirs similarity index 100% rename from debian/dirs rename to debian/device-tree-compiler.dirs diff --git a/debian/libfdt-dev.dirs b/debian/libfdt-dev.dirs new file mode 100644 index 000..da07fdd --- /dev/null +++ b/debian/libfdt-dev.dirs @@ -0,0 +1,2 @@ +usr/include +usr/lib diff --git a/debian/rules b/debian/rules index 2eba1c4..484c486 100755 --- a/debian/rules +++ b/debian/rules @@ -41,6 +41,9 @@ install: build dh_prep dh_installdirs install -m755 dtc $(CURDIR)/debian/device-tree-compiler/usr/bin + install -m644 libfdt/libfdt.h libfdt/libfdt_env.h libfdt/fdt.h \ + $(CURDIR)/debian/libfdt-dev/usr/include + install -m644 libfdt/libfdt.a $(CURDIR)/debian/libfdt-dev/usr/lib touch install-stamp # Build architecture-independent files here. -- 1.7.7.3
Bug#477565: please package libfdt
severity 477565 wishlist thanks Hi, On Wed, Apr 23, 2008 at 04:07:49PM -0500, Hollis Blanchard wrote: The device-tree-compiler package does not include a copy of libfdt. This library is useful to other projects, such as qemu, and so I'm requesting that libfdt be made available in some Debian package. Thanks! Sure. However, I am a bit reluctant to provide a shared library if the API is not stable enough. Would a static library be enough? Cheers, -- .''`. Aurélien GÉRÔME : :' : `. `'` Debian Developer `- Unix Sys Net Admin signature.asc Description: Digital signature
Bug#477565: please package libfdt
Package: device-tree-compiler Version: 1.1.0.dfsg-1 The device-tree-compiler package does not include a copy of libfdt. This library is useful to other projects, such as qemu, and so I'm requesting that libfdt be made available in some Debian package. Thanks! -- Hollis Blanchard IBM Linux Technology Center -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]