Subject: [alpine-aports] [PATCH 1/2] main/drbd-utils: upgrade to 9.2.0

From: Roland Kammerer <[email-masked]>
Date: Tue, 16 Jan 2018 14:50:47 +0100

---
 main/drbd-utils/APKBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/drbd-utils/APKBUILD b/main/drbd-utils/APKBUILD
index e777b8916b..3d41f4253c 100644
--- a/main/drbd-utils/APKBUILD
+++ b/main/drbd-utils/APKBUILD
@@ -1,7 +1,7 @@
 # Contributor: Leonardo Arena <[email-masked]>
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=drbd-utils
-pkgver=9.1.1
+pkgver=9.2.0
 pkgrel=0
 pkgdesc="Network-based RAID 1"
 url="http://www.drbd.org"
@@ -50,6 +50,6 @@ pacemaker() {
 	mv "$pkgdir"/usr/lib/ocf "$subpkgdir"/usr/lib
 }
 
-sha512sums="95257202e6c278e3e354c1495bef2d6a010fad906256289a72cda58dda7ede1db5aaa2ea62aaa4bca5202b811190ae566fda315ff0f0b4d7d26a8bf7655bd045  drbd-utils-9.1.1.tar.gz
+sha512sums="704ecae7dda0e86986e1c6d928fee5c7dc58d6ffeebe5cb1cf8e9de8d6690448db66ffb38abe51d3510cf4beff1f28f30f720510d34aedf27db0fff5768b44b4  drbd-utils-9.2.0.tar.gz
 562ae8eee03148666fb6e6e700c1eb9086f6901e176ea6cd007e3ac4e39d1cdaf967064de74dc1ad620155996dc7011bd0e2abd1c9595ff9bf5f4413673726f3  drbdsetup-permissions.patch
 bb465e32273aaba0b86ae681bc94c58bb51f542221f51ced197e22b316ce1bc9a0b4fe1f43af07ef13b3f0946466a43218f0a2ab7f4210adbb00174a503b64d7  drbd.initd"
-- 
2.15.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Roland Kammerer <[email-masked]>
Date: Tue, 16 Jan 2018 14:50:48 +0100

- New upstream release
- 9.0.10 intentionally skipped (broken because of compat code)
- Includes compat code including linux 4.14
---
 .../0001-build-fix-building-on-alpine.patch        | 22 ++++++++++++++++++++++
 main/drbd9-hardened/APKBUILD                       | 10 ++++++----
 2 files changed, 28 insertions(+), 4 deletions(-)
 create mode 100644 main/drbd9-hardened/0001-build-fix-building-on-alpine.patch

diff --git a/main/drbd9-hardened/0001-build-fix-building-on-alpine.patch b/main/drbd9-hardened/0001-build-fix-building-on-alpine.patch
new file mode 100644
index 0000000000..93ddd13c0b
--- /dev/null
+++ b/main/drbd9-hardened/0001-build-fix-building-on-alpine.patch
@@ -0,0 +1,22 @@
+From b7d0c3abe2df11174cf275f06bb3e0210047cfc3 Mon Sep 17 00:00:00 2001
+From: Roland Kammerer <[email-masked]>
+Date: Tue, 16 Jan 2018 14:28:47 +0100
+Subject: [PATCH 1/1] build: fix building on alpine
+
+---
+ drbd/Kbuild | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drbd/Kbuild b/drbd/Kbuild
+index e63cefc1..e7263600 100644
+--- a/drbd/Kbuild
++++ b/drbd/Kbuild
+@@ -150,4 +150,4 @@ $(obj)/drbd_buildtag.c: $(filter-out drbd_buildtag.o,$(drbd-y))
+ 		buildinfo="reproducible build, `date -u -d@${SOURCE_DATE_EPOCH} "+%F %T"`" ; 	\
+ 	fi ; 											\
+ 	echo -e "\t\t\" $$buildinfo\";\n}";							\
+-	mv --force $@.new $@
++	mv -f $@.new $@
+-- 
+2.15.1
+
diff --git a/main/drbd9-hardened/APKBUILD b/main/drbd9-hardened/APKBUILD
index 63b924beb8..b8b5404934 100644
--- a/main/drbd9-hardened/APKBUILD
+++ b/main/drbd9-hardened/APKBUILD
@@ -8,13 +8,13 @@ _kpkg=linux-$_flavor
 _kver=4.9.73
 _kpkgrel=0
 
-_usver=9.0.9
+_usver=9.0.11
 # upstream now also has a -rel in the tar-balls
 # set it here for "source", but don't mangle it into pkgrel/_mypkgrel
 # if there is a new upstream rel (eg. 9.0.1-2), we just increase _mypkgrel
 _usrel=1
 
-_mypkgrel=0
+_mypkgrel=1
 
 _kernelver=$_kver-r$_kpkgrel
 _abi_release=${_kver}-${_kpkgrel}-${_flavor}
@@ -32,7 +32,8 @@ makedepends="linux-${_flavor}-dev bash"
 install=""
 subpackages=""
 provides="${_usname}9-grsec=${pkgver}-r${pkgrel}"
-source="https://links.linbit.com/sources/$_usname/${_usver%.*}/$_usname-$_usver-$_usrel.tar.gz"
+source="https://links.linbit.com/sources/$_usname/${_usver%.*}/$_usname-$_usver-$_usrel.tar.gz
+        0001-build-fix-building-on-alpine.patch"
 
 _builddir=$srcdir/$_usname-$_usver-$_usrel
 prepare() {
@@ -69,4 +70,5 @@ package() {
 	make DESTDIR="$pkgdir" install || return 1
 }
 
-sha512sums="64e98eb055c3007231faf00b3b16d47a339d5aa2301e328a86c943d8d31cb73802e7d187a94bf84947750f98442370d8eb366a4675472050a1c0c095868152d5  drbd-9.0.9-1.tar.gz"
+sha512sums="fdfc63e190b89c02683d5c3fe9fd60dfb81ea28e7635642d38453ba1e397324fdc15f8d2850955d6b77784d3aa6460e3fefb828f00c85be9d00865e7b05a0d36  drbd-9.0.11-1.tar.gz
+5928bd53fa76493de85c1db420f68702a4638337c21feb317ddde94182d8218c758b3a736efa0f0357c9970ccf8575efb496830ac542b31c093580c5ae8a47f4  0001-build-fix-building-on-alpine.patch"
-- 
2.15.0

---