parted: update to 3.3.

This commit is contained in:
Anthony Iliopoulos 2019-10-11 18:25:40 +02:00 committed by Helmut Pozimski
parent c7443cd544
commit 0c3e24fe12
3 changed files with 3 additions and 55 deletions

View file

@ -1,42 +0,0 @@
From 5cb16c0474fd4b28ed58ac06fecfc76a7f1fa9fb Mon Sep 17 00:00:00 2001
From: maxice8 <thinkabit.ukim@gmail.com>
Date: Sat, 22 Sep 2018 23:08:51 -0300
Subject: [PATCH] libparted/arch/linux.c: add missing sys/sysmacros.h include
for 'minor', 'major'
otherwise fails on glibc >= 2.27 with
arch/linux.c: In function '_dm_is_part':
arch/linux.c:551:28: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration]
if (!_is_dm_major (major (deps->device[0])))
^~~~~
arch/linux.c: In function '_device_probe_type':
arch/linux.c:648:44: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration]
arch_specific->minor = dev_minor = minor (dev_stat.st_rdev);
^~~~~
mknod
CCLD libparted.la
../libparted/.libs/libparted.so: undefined reference to `major'
../libparted/.libs/libparted.so: undefined reference to `minor'
collect2: error: ld returned 1 exit status
---
libparted/arch/linux.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 0f18904..a15854f 100644
--- libparted/arch/linux.c
+++ libparted/arch/linux.c
@@ -41,6 +41,7 @@
#include <sys/utsname.h> /* for uname() */
#include <scsi/scsi.h>
#include <assert.h>
+#include <sys/sysmacros.h>
#ifdef ENABLE_DEVICE_MAPPER
#include <libdevmapper.h>
#endif
--
2.19.0

View file

@ -1,10 +0,0 @@
--- libparted/fs/xfs/platform_defs.h
+++ libparted/fs/xfs/platform_defs.h
@@ -35,6 +35,7 @@
#define __XFS_PLATFORM_DEFS_H__
#include <stdio.h>
+#include <fcntl.h>
#include <stdarg.h>
#include <assert.h>
#include <endian.h>

View file

@ -1,7 +1,7 @@
# Template file for 'parted'
pkgname=parted
version=3.2
revision=7
version=3.3
revision=1
build_style=gnu-configure
# parted wants off_t as 64bit type
configure_args="ac_cv_sizeof_off_t=8"
@ -12,7 +12,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/parted/"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=858b589c22297cacdf437f3baff6f04b333087521ab274f7ab677cb8c6bb78e4
checksum=57e2b4bd87018625c515421d4524f6e3b55175b472302056391c5f7eccb83d44
libparted_package() {
short_desc+=" - shared library"