Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 399390 Details for
Bug 544032
sys-block/parted: fix includes to enable compiling against musl
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix compilation against musl
0001-sys-block-parted-fix-includes-to-allow-compiling-aga.patch (text/plain), 7.90 KB, created by
Travis Tilley
on 2015-03-21 15:52:45 UTC
(
hide
)
Description:
fix compilation against musl
Filename:
MIME Type:
Creator:
Travis Tilley
Created:
2015-03-21 15:52:45 UTC
Size:
7.90 KB
patch
obsolete
>From 9f0d72e96f571edc9afce3c10ea3e0d9ab54ec80 Mon Sep 17 00:00:00 2001 >From: Travis Tilley <ttilley@gmail.com> >Date: Sat, 21 Mar 2015 11:46:26 -0400 >Subject: [PATCH] sys-block/parted: fix includes to allow compiling against > musl > >--- > sys-block/parted/Manifest | 5 ++ > sys-block/parted/files/parted-3.2-devmapper.patch | 60 ++++++++++++++++++++++ > .../parted/files/parted-3.2-fix-includes.patch | 10 ++++ > .../parted/files/parted-3.2-po4a-mandir.patch | 11 ++++ > sys-block/parted/parted-3.2.ebuild | 57 ++++++++++++++++++++ > 5 files changed, 143 insertions(+) > create mode 100644 sys-block/parted/Manifest > create mode 100644 sys-block/parted/files/parted-3.2-devmapper.patch > create mode 100644 sys-block/parted/files/parted-3.2-fix-includes.patch > create mode 100644 sys-block/parted/files/parted-3.2-po4a-mandir.patch > create mode 100644 sys-block/parted/parted-3.2.ebuild > >diff --git a/sys-block/parted/Manifest b/sys-block/parted/Manifest >new file mode 100644 >index 0000000..d6969da >--- /dev/null >+++ b/sys-block/parted/Manifest >@@ -0,0 +1,5 @@ >+AUX parted-3.2-devmapper.patch 1972 SHA256 a72db7a487b891b19e6b859a6deaa4defe0c603842f1a91962de553e68acc96f SHA512 3baf2090ba86242df1633bb4b50deeb6e0226b0a56ad82466ddd76f028a859e29bd021f1f251047cd2a2a5ea1c77ed0129eca8be2e97ee48c21c1d186c07b8da WHIRLPOOL c0a16dce6f967b6d4d343bec9fe34c0803fdb231aa51abede4b94080db90af8be36d232f9d24246808a59be13be7635b520b0ec6c2cd82a99515c2ad0866f876 >+AUX parted-3.2-fix-includes.patch 257 SHA256 f87c9290e861b969f4520a1af84ebf4b8f5f1437c1d78ee235d5ffcda3bffe84 SHA512 55ee63c218d1867c0f2c596e7c3eec5c42af160181456cc551fe3d432eabed0ac2dd3a3955ff0c375f76aeec8071e7f55a32834b87a0d39b8ef30361f671bfdd WHIRLPOOL cbc2d36e9e0d59f032f4cd7e3a487674a17b8e87a873dea796dfadda7219526ad052b5826a9a353c0ed6d387b8f8c0ed9420394c8037f85c5deec08b292a158c >+AUX parted-3.2-po4a-mandir.patch 275 SHA256 327ffc2ea942a58a63cf6dc21d041965ee76b3b7d4d01b36a0654dcb6b0a92ae SHA512 5ef686f56d8c3939da3f24fdb6196d8858c2f980805f1cb06020d6f6996158f62b8372a233ec3ec98aae30b41034046d615e415b3abf2648db7be88e3b45a872 WHIRLPOOL 643013b78ebd6dbd93a60e7fc46215851bcd9d3166f0df308fa9d1a3927772cf1d63d2ba0da737983b3fbb0ff125f946d27662808e6233f6c60bdf4f7425898d >+DIST parted-3.2.tar.xz 1655244 SHA256 858b589c22297cacdf437f3baff6f04b333087521ab274f7ab677cb8c6bb78e4 SHA512 4e37dbdd6f5032c9ebfec43704f6882379597d038167b9c4d04053efa083c68a705196713864451fa9e11d32777e16c68982877945c5efd9ea5f8252cb20e1c4 WHIRLPOOL af928177b893150ac6d5e0efcef542b6fa0df6b135f975078f7d8d5f7a4b109ef4c1f8eeaf6afc5c34448ff662ce4cbe5289e084f4ec05257666503a0cd3c93f >+EBUILD parted-3.2.ebuild 1467 SHA256 1bb5e9f92b25efd5d0e8146fe0b9d5c6d35823d1a5f9d6f744e99f1648dc6332 SHA512 1b82b428071acf82512aa4e55d132d6a05e960bcec038bb6ce5d9a9bde1186dfdf406d1a0ac68ead2803e62c9a4da51620a49f6c186f65867eeea6fa6d5099d4 WHIRLPOOL e4b8491c074512aa860a444b91af6e6d4bed9c38abfd39986fded76938ea6a413287d5f1b3de90402915384b89b4b9fb43176b66d925eacedb2fb671b81f83dc >diff --git a/sys-block/parted/files/parted-3.2-devmapper.patch b/sys-block/parted/files/parted-3.2-devmapper.patch >new file mode 100644 >index 0000000..0cd3e0e >--- /dev/null >+++ b/sys-block/parted/files/parted-3.2-devmapper.patch >@@ -0,0 +1,60 @@ >+--- a/libparted/arch/linux.c >++++ b/libparted/arch/linux.c >+@@ -2304,6 +2304,7 @@ >+ return r < 0 ? NULL : resultp; >+ } >+ >++#ifdef ENABLE_DEVICE_MAPPER >+ static char * >+ dm_canonical_path (PedDevice const *dev) >+ { >+@@ -2326,12 +2327,22 @@ >+ err: >+ return NULL; >+ } >++#endif /* ENABLE_DEVICE_MAPPER */ >+ >+ static char* >+ _device_get_part_path (PedDevice const *dev, int num) >+ { >+- char *devpath = (dev->type == PED_DEVICE_DM >+- ? dm_canonical_path (dev) : dev->path); >++ char *devpath = >++#ifdef ENABLE_DEVICE_MAPPER >++ ( >++ dev->type == PED_DEVICE_DM >++ ? dm_canonical_path (dev) : >++#endif /* ENABLE_DEVICE_MAPPER */ >++ dev->path >++#ifdef ENABLE_DEVICE_MAPPER >++ ) >++#endif /* ENABLE_DEVICE_MAPPER */ >++ ; >+ size_t path_len = strlen (devpath); >+ char *result; >+ /* Check for devfs-style /disc => /partN transformation >+@@ -2945,12 +2956,14 @@ >+ unsigned long long *length); >+ >+ >++#ifdef ENABLE_DEVICE_MAPPER >+ if (disk->dev->type == PED_DEVICE_DM) { >+ add_partition = _dm_add_partition; >+ remove_partition = _dm_remove_partition; >+ resize_partition = _dm_resize_partition; >+ get_partition_start_and_length = _dm_get_partition_start_and_length; >+ } else { >++#endif /* ENABLE_DEVICE_MAPPER */ >+ add_partition = _blkpg_add_partition; >+ remove_partition = _blkpg_remove_partition; >+ #ifdef BLKPG_RESIZE_PARTITION >+@@ -2959,7 +2972,9 @@ >+ resize_partition = NULL; >+ #endif >+ get_partition_start_and_length = _kernel_get_partition_start_and_length; >++#ifdef ENABLE_DEVICE_MAPPER >+ } >++#endif /* ENABLE_DEVICE_MAPPER */ >+ >+ /* lpn = largest partition number. >+ * for remove pass, use greater of device or label limit */ >diff --git a/sys-block/parted/files/parted-3.2-fix-includes.patch b/sys-block/parted/files/parted-3.2-fix-includes.patch >new file mode 100644 >index 0000000..c6eff0e >--- /dev/null >+++ b/sys-block/parted/files/parted-3.2-fix-includes.patch >@@ -0,0 +1,10 @@ >+--- parted-3.1.orig/libparted/fs/xfs/platform_defs.h >++++ parted-3.1/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> >diff --git a/sys-block/parted/files/parted-3.2-po4a-mandir.patch b/sys-block/parted/files/parted-3.2-po4a-mandir.patch >new file mode 100644 >index 0000000..be0a9c6 >--- /dev/null >+++ b/sys-block/parted/files/parted-3.2-po4a-mandir.patch >@@ -0,0 +1,11 @@ >+--- a/doc/po4a.mk >++++ b/doc/po4a.mk >+@@ -23,7 +23,7 @@ >+ # threshold is 80%), it won't be distributed, and the build won't fail. >+ # >+ >+-mandir = $(mandir)/$(lang) >++mandir := $(mandir)/$(lang) >+ >+ # Inform automake that we want to install some man pages in section 1, 5 >+ # and 8. >diff --git a/sys-block/parted/parted-3.2.ebuild b/sys-block/parted/parted-3.2.ebuild >new file mode 100644 >index 0000000..2cb5c19 >--- /dev/null >+++ b/sys-block/parted/parted-3.2.ebuild >@@ -0,0 +1,57 @@ >+# Copyright 1999-2015 Gentoo Foundation >+# Distributed under the terms of the GNU General Public License v2 >+# $Header: /var/cvsroot/gentoo-x86/sys-block/parted/parted-3.2.ebuild,v 1.14 2015/03/03 09:57:56 dlan Exp $ >+ >+EAPI=5 >+inherit autotools eutils >+ >+DESCRIPTION="Create, destroy, resize, check, copy partitions and file systems" >+HOMEPAGE="http://www.gnu.org/software/parted" >+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" >+ >+LICENSE="GPL-3" >+SLOT="0" >+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86" >+IUSE="+debug device-mapper nls readline selinux static-libs" >+RESTRICT="test" >+ >+# specific version for gettext needed >+# to fix bug 85999 >+RDEPEND=" >+ >=sys-fs/e2fsprogs-1.27 >+ >=sys-libs/ncurses-5.7-r7 >+ device-mapper? ( >=sys-fs/lvm2-2.02.45 ) >+ readline? ( >=sys-libs/readline-5.2 ) >+ selinux? ( sys-libs/libselinux ) >+" >+DEPEND=" >+ ${RDEPEND} >+ nls? ( >=sys-devel/gettext-0.12.1-r2 ) >+ virtual/pkgconfig >+" >+ >+src_prepare() { >+ epatch "${FILESDIR}"/${PN}-3.2-devmapper.patch >+ epatch "${FILESDIR}"/${PN}-3.2-po4a-mandir.patch >+ epatch "${FILESDIR}"/${PN}-3.2-fix-includes.patch >+ eautoreconf >+} >+ >+src_configure() { >+ econf \ >+ $(use_enable debug) \ >+ $(use_enable device-mapper) \ >+ $(use_enable nls) \ >+ $(use_enable selinux) \ >+ $(use_enable static-libs static) \ >+ $(use_with readline) \ >+ --disable-rpath \ >+ --disable-silent-rules >+} >+ >+DOCS=( AUTHORS BUGS ChangeLog NEWS README THANKS TODO doc/{API,FAT,USER.jp} ) >+ >+src_install() { >+ default >+ prune_libtool_files >+} >-- >2.0.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 544032
: 399390