File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ case "$OS" in
31
31
# 15:05:28 #include <sys/random.h>
32
32
# 15:05:28 ^
33
33
# 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
35
35
fi
36
36
;;
37
37
esac
Original file line number Diff line number Diff line change @@ -23,6 +23,26 @@ install: build
23
23
dh_clean -k
24
24
dh_installdirs
25
25
26
+ # Fixes the following compilation error on debian 9, ubuntu 16:
27
+ # 15:05:28 compat/posix.h:159:24: fatal error: sys/random.h: No such file or directory
28
+ # 15:05:28 #include <sys/random.h>
29
+ # 15:05:28 ^
30
+ # 15:05:28 compilation terminated.
31
+ case "$OS" in
32
+ ubuntu)
33
+ if [ $(echo $OS_VERSION | cut -d. -f1) = 16 ]
34
+ then
35
+ patch -p1 < $(CURDIR)/fix_git_on_old_platforms.patch
36
+ fi
37
+ ;;
38
+ debian)
39
+ if [ $(echo $OS_VERSION | cut -d. -f1) = 9 ]
40
+ then
41
+ patch -p1 < $(CURDIR)/fix_git_on_old_platforms.patch
42
+ fi
43
+ ;;
44
+ esac
45
+
26
46
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
27
47
28
48
rm -rf $(CURDIR)/debian/tmp$(PREFIX)/lib/perl*
File renamed without changes.
You can’t perform that action at this time.
0 commit comments