[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#570851: FTBFS on kfreebsd-*: libdrm_radeon.so* not installed anywhere



Source: libdrm
Version: 2.4.18-1
Severity: serious
Tags: patch
Justification: FTBFS
User: debian-bsd@lists.debian.org
Usertags: kfreebsd

Hi,

your package no longer builds on kfreebsd-*:
| dh_install -s --sourcedir=debian/tmp -X.la --fail-missing
| dh_install: usr/lib/libdrm_radeon.so.1.0.0 exists in debian/tmp but is not installed to anywhere
| dh_install: usr/lib/libdrm_radeon.so.1 exists in debian/tmp but is not installed to anywhere
| dh_install: missing files, aborting
| make: *** [binary-arch] Error 2

Please find attached a patch to fix this.

Mraw,
KiBi.
>From 72a0ecf2fc06ba404c5e43db09bea58a76f5af3e Mon Sep 17 00:00:00 2001
From: Cyril Brulebois <kibi@debian.org>
Date: Sun, 21 Feb 2010 22:22:42 +0100
Subject: [PATCH] Fix FTBFS on non-Linux archs due to libdrm_radeon.so*

---
 debian/changelog |    8 ++++++++
 debian/rules     |    3 +++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8735321..b0418ac 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+libdrm (2.4.18-2) unstable; urgency=low
+
+  * Fix FTBFS on non-Linux architectures by removing libdrm_radeon.so*
+    after “make install” since they belong to linux-any packages, leading
+    dh_install to fail due to those files being installed nowhere.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 21 Feb 2010 22:20:55 +0100
+
 libdrm (2.4.18-1) unstable; urgency=low
 
   * New upstream release.
diff --git a/debian/rules b/debian/rules
index fdc2b4c..017567e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -108,6 +108,9 @@ ifeq (linux, $(DEB_HOST_ARCH_OS))
 	for file in drm_mode.h drm_sarea.h drm.h i915_drm.h mga_drm.h r128_drm.h radeon_drm.h savage_drm.h sis_drm.h via_drm.h; do \
 		rm -f debian/tmp/usr/include/drm/$$file; \
 	done
+else
+	# remove files not installed on non-Linux architectures:
+	rm -f debian/tmp/usr/lib/libdrm_radeon.so.*
 endif
 
 # Build architecture-independent files here.
-- 
1.7.0


Reply to: