Skip to content

Commit 692a0a5

Browse files
committed
Apply missing sys/random.h fix on Debian 9 and Ubuntu 16
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 5b1fb36 commit 692a0a5

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

deps-packaging/git/cfbuild-git.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ case "$OS" in
3131
# 15:05:28 #include <sys/random.h>
3232
# 15:05:28 ^
3333
# 15:05:28 compilation terminated.
34-
patch -p1 < %{_topdir}/SOURCES/fix_git_on_rhel7.patch
34+
patch -p1 < %{_topdir}/SOURCES/fix_git_on_old_platforms.patch
3535
fi
3636
;;
3737
esac

deps-packaging/git/debian/rules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ install: build
2323
dh_clean -k
2424
dh_installdirs
2525

26+
case "$(OS)-$(OS_VERSION)" in
27+
ubuntu-16*)
28+
patch -p1 < $(CURDIR)/fix_git_on_old_platforms.patch
29+
;;
30+
debian-9*)
31+
patch -p1 < $(CURDIR)/fix_git_on_old_platforms.patch
32+
;;
33+
esac
34+
2635
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
2736

2837
rm -rf $(CURDIR)/debian/tmp$(PREFIX)/lib/perl*

0 commit comments

Comments
 (0)