]> git.proxmox.com Git - zfsonlinux.git/blame - spl-patches/0003-Fix-Debian-packaging-on-ARMv7-ARM64.patch
rebase ZFS on top of debian/0.7.6-1
[zfsonlinux.git] / spl-patches / 0003-Fix-Debian-packaging-on-ARMv7-ARM64.patch
CommitLineData
c43065ce
FG
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: LOLi <loli10K@users.noreply.github.com>
3Date: Thu, 18 Jan 2018 19:14:18 +0100
4Subject: [PATCH] Fix Debian packaging on ARMv7/ARM64
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9When building packages on Debian-based systems specify the target
10architecture used by 'alien' to convert .rpm packages into .deb: this
11avoids detecting an incorrect value which results in the following
12errors:
13
14<package>.aarch64.rpm is for architecture aarch64 ; the package cannot be built on this system
15<package>.armv7l.rpm is for architecture armel ; the package cannot be built on this system
16
17Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
18Reviewed-by: George Melikov <mail@gmelikov.ru>
19Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
20Closes zfsonlinux/zfs#7046
21Closes #678
22(cherry picked from commit 9ee1fc8b4cb7fdcda88e161d9fc2bbe50427972c)
23Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
24---
25 config/deb.am | 9 ++++++---
26 1 file changed, 6 insertions(+), 3 deletions(-)
27
28diff --git a/config/deb.am b/config/deb.am
29index e05a175..f745c91 100644
30--- a/config/deb.am
31+++ b/config/deb.am
32@@ -32,24 +32,27 @@ deb-kmod: deb-local rpm-kmod
33 name=${PACKAGE}; \
34 version=${VERSION}-${RELEASE}; \
35 arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \
36+ debarch=`$(DPKG) --print-architecture`; \
37 pkg1=kmod-$${name}*$${version}.$${arch}.rpm; \
38- fakeroot $(ALIEN) --bump=0 --scripts --to-deb $$pkg1; \
39+ fakeroot $(ALIEN) --bump=0 --scripts --to-deb --target=$$debarch $$pkg1; \
40 $(RM) $$pkg1
41
42 deb-dkms: deb-local rpm-dkms
43 name=${PACKAGE}; \
44 version=${VERSION}-${RELEASE}; \
45 arch=`$(RPM) -qp $${name}-dkms-$${version}.src.rpm --qf %{arch} | tail -1`; \
46+ debarch=`$(DPKG) --print-architecture`; \
47 pkg1=$${name}-dkms-$${version}.$${arch}.rpm; \
48- fakeroot $(ALIEN) --bump=0 --scripts --to-deb $$pkg1; \
49+ fakeroot $(ALIEN) --bump=0 --scripts --to-deb --target=$$debarch $$pkg1; \
50 $(RM) $$pkg1
51
52 deb-utils: deb-local rpm-utils
53 name=${PACKAGE}; \
54 version=${VERSION}-${RELEASE}; \
55 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
56+ debarch=`$(DPKG) --print-architecture`; \
57 pkg1=$${name}-$${version}.$${arch}.rpm; \
58- fakeroot $(ALIEN) --bump=0 --scripts --to-deb $$pkg1; \
59+ fakeroot $(ALIEN) --bump=0 --scripts --to-deb --target=$$debarch $$pkg1; \
60 $(RM) $$pkg1
61
62 deb: deb-kmod deb-dkms deb-utils
63--
642.14.2
65