From f127e74fb5f8120e919511066bab03de553d6966 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Thu, 3 Jan 2019 00:11:20 -0600 Subject: [PATCH] gpart: fix crash on non-disk device --- srcpkgs/gpart/template | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/srcpkgs/gpart/template b/srcpkgs/gpart/template index 9d94e7e893c..fb0be332df0 100644 --- a/srcpkgs/gpart/template +++ b/srcpkgs/gpart/template @@ -1,15 +1,21 @@ # Template file for 'gpart' pkgname=gpart version=0.3 -revision=2 +revision=3 build_style=gnu-configure hostmakedepends="automake" short_desc="Partition table rescue/guessing tool" maintainer="Juan RP " license="GPL-2.0-or-later" homepage="https://github.com/baruch/gpart" -distfiles="https://github.com/baruch/gpart/archive/${version}.tar.gz" -checksum=ec56d12ec9ffdb9877c12692ea6e51620b1ae44473d3d253b27fc31ed9ebb4dd +distfiles="https://github.com/baruch/gpart/archive/${version}.tar.gz + https://github.com/ndowens/voidpatches/archive/gpart-patches.tar.gz" +checksum="ec56d12ec9ffdb9877c12692ea6e51620b1ae44473d3d253b27fc31ed9ebb4dd + ac68a5275d878623add392fc6a68913735e6cfbed5a6c49fcbe48105f88b97eb" + + post_extract() { + patch -p0 < ../voidpatches-gpart-patches/0004-Real-fix-for-crash.patch + } pre_configure() { autoreconf -fi