aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/gptfdisk
diff options
context:
space:
mode:
Diffstat (limited to 'repos/extra/gptfdisk')
-rw-r--r--repos/extra/gptfdisk/.checksum3
-rw-r--r--repos/extra/gptfdisk/.files13
-rw-r--r--repos/extra/gptfdisk/abuild13
-rw-r--r--repos/extra/gptfdisk/depends2
-rw-r--r--repos/extra/gptfdisk/fix-musl.patch58
-rw-r--r--repos/extra/gptfdisk/gptfdisk-1.0.9-convenience-1.patch27
6 files changed, 0 insertions, 116 deletions
diff --git a/repos/extra/gptfdisk/.checksum b/repos/extra/gptfdisk/.checksum
deleted file mode 100644
index fc06f46c..00000000
--- a/repos/extra/gptfdisk/.checksum
+++ /dev/null
@@ -1,3 +0,0 @@
-acfd9b4bda044d8c67aea67eab3bfece3c8e1b56586a19e4b93b3eb30963c187 fix-musl.patch
-77217900dffddd48f45b6e8618cc3269602531abb8421c0cbf6a61c44ca6cf73 gptfdisk-1.0.10.tar.gz
-78bf676ff6964b9cf93af1be3e7e606e993ff2cb3dba866da8d104a0914bf70c gptfdisk-1.0.9-convenience-1.patch
diff --git a/repos/extra/gptfdisk/.files b/repos/extra/gptfdisk/.files
deleted file mode 100644
index a6ba7d8c..00000000
--- a/repos/extra/gptfdisk/.files
+++ /dev/null
@@ -1,13 +0,0 @@
-drwxr-xr-x root/root usr/
-drwxr-xr-x root/root usr/sbin/
--rwxr-xr-x root/root usr/sbin/cgdisk
--rwxr-xr-x root/root usr/sbin/fixparts
--rwxr-xr-x root/root usr/sbin/gdisk
--rwxr-xr-x root/root usr/sbin/sgdisk
-drwxr-xr-x root/root usr/share/
-drwxr-xr-x root/root usr/share/man/
-drwxr-xr-x root/root usr/share/man/man8/
--rw-r--r-- root/root usr/share/man/man8/cgdisk.8.gz
--rw-r--r-- root/root usr/share/man/man8/fixparts.8.gz
--rw-r--r-- root/root usr/share/man/man8/gdisk.8.gz
--rw-r--r-- root/root usr/share/man/man8/sgdisk.8.gz
diff --git a/repos/extra/gptfdisk/abuild b/repos/extra/gptfdisk/abuild
deleted file mode 100644
index 3d74c086..00000000
--- a/repos/extra/gptfdisk/abuild
+++ /dev/null
@@ -1,13 +0,0 @@
-name=gptfdisk
-version=1.0.10
-release=1
-source="https://downloads.sourceforge.net/$name/$name-$version.tar.gz
- gptfdisk-1.0.9-convenience-1.patch
- fix-musl.patch"
-
-prebuild() {
- sed -i 's|ncursesw/||' gptcurses.cc
- sed -i 's|sbin|usr/sbin|' Makefile
- sed -i '/UUID_H/s/^.*$/#if defined (_UUID_UUID_H) || defined (_UL_LIBUUID_UUID_H)/' guid.cc
- sed -i "/device =/s/= \(.*\);/= strdup(\1);/" gptcl.cc
-}
diff --git a/repos/extra/gptfdisk/depends b/repos/extra/gptfdisk/depends
deleted file mode 100644
index 8b4798d5..00000000
--- a/repos/extra/gptfdisk/depends
+++ /dev/null
@@ -1,2 +0,0 @@
-popt
-e2fsprogs
diff --git a/repos/extra/gptfdisk/fix-musl.patch b/repos/extra/gptfdisk/fix-musl.patch
deleted file mode 100644
index 69c26f02..00000000
--- a/repos/extra/gptfdisk/fix-musl.patch
+++ /dev/null
@@ -1,58 +0,0 @@
---- a/diskio-unix.cc
-+++ b/diskio-unix.cc
-@@ -52,7 +52,7 @@
- // work.
- int DiskIO::OpenForRead(void) {
- int shouldOpen = 1;
-- struct stat64 st;
-+ struct stat st;
-
- if (isOpen) { // file is already open
- if (openForWrite) {
-@@ -78,7 +78,7 @@
- } else {
- isOpen = 0;
- openForWrite = 0;
-- if (fstat64(fd, &st) == 0) {
-+ if (fstat(fd, &st) == 0) {
- if (S_ISDIR(st.st_mode))
- cerr << "The specified path is a directory!\n";
- #if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) \
-@@ -311,7 +311,7 @@
- // Note that seeking beyond the end of the file is NOT detected as a failure!
- int DiskIO::Seek(uint64_t sector) {
- int retval = 1;
-- off64_t seekTo, sought;
-+ off_t seekTo, sought;
-
- // If disk isn't open, try to open it....
- if (!isOpen) {
-@@ -320,7 +320,7 @@
-
- if (isOpen) {
- seekTo = sector * (uint64_t) GetBlockSize();
-- sought = lseek64(fd, seekTo, SEEK_SET);
-+ sought = lseek(fd, seekTo, SEEK_SET);
- if (sought != seekTo) {
- retval = 0;
- } // if
-@@ -428,8 +428,8 @@
- // return correct values for disk image files.
- uint64_t DiskIO::DiskSize(int *err) {
- uint64_t sectors = 0; // size in sectors
-- off64_t bytes = 0; // size in bytes
-- struct stat64 st;
-+ off_t bytes = 0; // size in bytes
-+ struct stat st;
- int platformFound = 0;
- #ifdef __sun__
- struct dk_minfo minfo;
-@@ -488,7 +488,7 @@
- // file (a QEMU image, dd backup, or what have you) and see what
- // fstat() gives us....
- if ((sectors == 0) || (*err == -1)) {
-- if (fstat64(fd, &st) == 0) {
-+ if (fstat(fd, &st) == 0) {
- bytes = st.st_size;
- if ((bytes % UINT64_C(512)) != 0)
- cerr << "Warning: File size is not a multiple of 512 bytes!"
diff --git a/repos/extra/gptfdisk/gptfdisk-1.0.9-convenience-1.patch b/repos/extra/gptfdisk/gptfdisk-1.0.9-convenience-1.patch
deleted file mode 100644
index 3d78b87b..00000000
--- a/repos/extra/gptfdisk/gptfdisk-1.0.9-convenience-1.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Submitted By: Bruce Dubbs <bdubbs_at_linuxfromscratch_dot_org>
-Date: 2015-10-19
-Initial Package Version: 1.0.1
-Upstream Status: None. BLFS specific.
-Origin: BLFS
-Description: Updates Makefile enabling parameter passing.
- Rediffed for version 1.0.1
-Updates: Rediffed for version 1.0.3 (P. Labastie)
- Patch version 2 for version 1.0.3: Removed ICU
- and POPT switches, keeping only the
- install target (P. Labastie)
-
-diff -Naur gptfdisk-1.0.3.old/Makefile gptfdisk-1.0.3.new/Makefile
---- gptfdisk-1.0.3.old/Makefile 2017-07-28 03:41:20.000000000 +0200
-+++ gptfdisk-1.0.3.new/Makefile 2018-04-20 10:04:18.896802047 +0200
-@@ -37,6 +37,11 @@
- clean: #no pre-reqs
- rm -f core *.o *~ gdisk sgdisk cgdisk fixparts
-
-+install: gdisk cgdisk sgdisk fixparts
-+ install -dm 755 $(DESTDIR)/sbin $(DESTDIR)/usr/share/man/man8
-+ install -m755 gdisk cgdisk sgdisk fixparts $(DESTDIR)/sbin
-+ install -m644 *.8 $(DESTDIR)/usr/share/man/man8
-+
- # what are the source dependencies
- depend: $(SRCS)
- $(DEPEND) $(SRCS)