mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
sgdisk still segfaults for some tasks (e.g 'sgdisk -v', 'sgdisk -V') Add a follow-up patch that fixes the issue. It was taken from Archlinux (From OE-Core rev: b2f3f8ced22da68eecd7689cc09e28f70100bd56) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
40 lines
1.6 KiB
BlitzBasic
40 lines
1.6 KiB
BlitzBasic
SUMMARY = "Utility for modifying GPT disk partitioning"
|
|
DESCRIPTION = "GPT fdisk is a disk partitioning tool loosely modeled on Linux fdisk, but used for modifying GUID Partition Table (GPT) disks. The related FixParts utility fixes some common problems on Master Boot Record (MBR) disks."
|
|
HOMEPAGE = "https://sourceforge.net/projects/gptfdisk/"
|
|
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
|
|
|
|
DEPENDS = "util-linux"
|
|
|
|
SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BP}.tar.gz \
|
|
file://0001-gptcurses-correctly-include-curses.h.patch \
|
|
file://0001-Updated-guid.cc-to-deal-with-minor-change-in-libuuid.patch \
|
|
file://0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch \
|
|
file://0001-Use-64bit-time_t-on-linux-as-well.patch \
|
|
file://popt-1.19-follow-up.patch \
|
|
"
|
|
SRC_URI[sha256sum] = "dafead2693faeb8e8b97832b23407f6ed5b3219bc1784f482dd855774e2d50c2"
|
|
|
|
UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/gptfdisk/files/gptfdisk/"
|
|
UPSTREAM_CHECK_REGEX = "/gptfdisk/(?P<pver>(\d+[\.\-_]*)+)/"
|
|
|
|
EXTRA_OEMAKE = "'CC=${CC}' 'CXX=${CXX}' gdisk fixparts ${PACKAGECONFIG_CONFARGS}"
|
|
|
|
PACKAGECONFIG ??= "ncurses popt"
|
|
PACKAGECONFIG[ncurses] = "cgdisk,,ncurses"
|
|
PACKAGECONFIG[popt] = "sgdisk,,popt"
|
|
|
|
do_install() {
|
|
install -d ${D}${sbindir}
|
|
for f in cgdisk sgdisk; do
|
|
if [ -x $f ]; then
|
|
install -m 0755 $f ${D}${sbindir}
|
|
fi
|
|
done
|
|
install -m 0755 gdisk ${D}${sbindir}
|
|
install -m 0755 fixparts ${D}${sbindir}
|
|
}
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|