commit:     b2079544204ab5db3c2a576179ffd876bc38c4c9
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sat May 14 13:08:27 2022 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sat May 14 13:17:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2079544

sys-apps/gptfdisk: Removed old

Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 sys-apps/gptfdisk/Manifest                         |  1 -
 .../files/gptfdisk-1.0.7-remove_byteswap.patch     | 50 ------------------
 sys-apps/gptfdisk/gptfdisk-1.0.7-r2.ebuild         | 60 ----------------------
 3 files changed, 111 deletions(-)

diff --git a/sys-apps/gptfdisk/Manifest b/sys-apps/gptfdisk/Manifest
index 7496e2b9a19b..ad42d3ca860a 100644
--- a/sys-apps/gptfdisk/Manifest
+++ b/sys-apps/gptfdisk/Manifest
@@ -1,3 +1,2 @@
-DIST gptfdisk-1.0.7.tar.gz 207723 BLAKE2B 
cebb0375294b4ff8f8eb522a4ae23259714d07d670a7bfbf8664586c948c1c8bee2674649a181a7c5d22f9dfe177feb7a9648ca9936c388b419faf7b52e789d8
 SHA512 
8a2067523479e34c76392571692b36e6c9eadcd0aca979f1ba09904930ed92a709bfdcdfa3369230a5ab2b5a751682dc7fb4645fb5f7f1c361ee8d28e104214c
 DIST gptfdisk-1.0.8.tar.gz 208958 BLAKE2B 
03c74c43fead13e90ff6cd42405e15db726f527801a9e3f1d5f6a83d3fa58f0f8e58b35edc1b12b0b2e6c7849b657ce4493ac67204d25309e6f63fe7f57f766b
 SHA512 
0818a238e57cf6de893da7c161e8aaf2d30ad917a47750de09967ce1d83d1ab6666fa043465abaffdc293d058acc3fa87f8bc93a4b03c7c5d9a9ceb8f5b07331
 DIST gptfdisk-1.0.9.tar.gz 215065 BLAKE2B 
1939ffd75972a4d7f92af2bfab90c7b0223825b5478b6b808dd35af943c687d38ba81663cd7ba5e0f9400656db4dac019c13a9f75d90b7bd716568c676c24dd2
 SHA512 
c2489ac7e196cb53b9fdb18d0e421571eca43c366de8922c5c7f550aadf192558e7af69b181c30747d6cf607c1670126223465eaa5e231cc589402d94a4e97a2

diff --git a/sys-apps/gptfdisk/files/gptfdisk-1.0.7-remove_byteswap.patch 
b/sys-apps/gptfdisk/files/gptfdisk-1.0.7-remove_byteswap.patch
deleted file mode 100644
index c1874d6edd7c..000000000000
--- a/sys-apps/gptfdisk/files/gptfdisk-1.0.7-remove_byteswap.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From fded770b55fdb3a201ad515d785c17ac35705652 Mon Sep 17 00:00:00 2001
-From: Erik Larsson <catacom...@gmail.com>
-Date: Tue, 8 Jun 2021 16:11:21 +0300
-Subject: [PATCH] gptpart.cc: Remove byteswap commands in
- GPTPart::SetName(const string&).
-
-The byteswapping done in GPTPart::SetName(const string&) was reversed
-later when GPTPart::ReversePartBytes() was called.
-
-The intended design seems to have been to keep the fields in native
-endianness until just before the partition is written to disk when all
-the GPTPart data is byteswapped all at once with a call to
-GPTPart::ReversePartBytes().
-However this was defeated by leaving the original byteswaps in there and
-effectively the name was swapped back to the native-endian form. For big
-endian systems this meant that a UTF-16BE string was written to disk,
-violating the specification and causing interoperability problems.
-
-Fixed by removing these inline byteswaps in GPTPart::SetName(const
-string&).
----
- gptpart.cc | 3 ---
- 1 file changed, 3 deletions(-)
-
-diff --git a/gptpart.cc b/gptpart.cc
-index 81bbcf0..841140a 100644
---- a/gptpart.cc
-+++ b/gptpart.cc
-@@ -242,7 +242,6 @@ void GPTPart::SetName(const string & theName) {
-       // then to utf16le
-       if ( uni < 0x10000 ) {
-          name[ pos ] = (uint16_t) uni ;
--         if ( ! IsLittleEndian() ) ReverseBytes( name + pos , 2 ) ;
-          pos ++ ;
-       } // if
-       else {
-@@ -252,10 +251,8 @@ void GPTPart::SetName(const string & theName) {
-          } // if
-          uni -= 0x10000 ;
-          name[ pos ] = (uint16_t)( uni >> 10 ) | 0xd800 ;
--         if ( ! IsLittleEndian() ) ReverseBytes( name + pos , 2 ) ;
-          pos ++ ;
-          name[ pos ] = (uint16_t)( uni & 0x3ff ) | 0xdc00 ;
--         if ( ! IsLittleEndian() ) ReverseBytes( name + pos , 2 ) ;
-          pos ++ ;
-       }
-    } // for
--- 
-2.32.0
-

diff --git a/sys-apps/gptfdisk/gptfdisk-1.0.7-r2.ebuild 
b/sys-apps/gptfdisk/gptfdisk-1.0.7-r2.ebuild
deleted file mode 100644
index df490f526b5e..000000000000
--- a/sys-apps/gptfdisk/gptfdisk-1.0.7-r2.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="GPT partition table manipulator for Linux"
-HOMEPAGE="https://www.rodsbooks.com/gdisk/";
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 
~amd64-linux ~x86-linux"
-IUSE="ncurses static"
-
-# libuuid from util-linux is required.
-RDEPEND="!static? (
-               dev-libs/popt
-               ncurses? ( sys-libs/ncurses:=[unicode(+)] )
-               kernel_linux? ( sys-apps/util-linux )
-       )"
-DEPEND="
-       ${RDEPEND}
-       static? (
-               dev-libs/popt[static-libs(+)]
-               ncurses? ( sys-libs/ncurses:=[unicode(+),static-libs(+)] )
-               kernel_linux? ( sys-apps/util-linux[static-libs(+)] )
-       )
-"
-BDEPEND="virtual/pkgconfig"
-
-PATCHES=(
-       "${FILESDIR}/${P}-remove_byteswap.patch" #797412
-)
-
-src_prepare() {
-       default
-
-       tc-export CXX PKG_CONFIG
-
-       if ! use ncurses ; then
-               sed -i \
-                       -e '/^all:/s: cgdisk::' \
-                       Makefile || die
-       fi
-
-       sed \
-               -e '/g++/s:=:?=:g' \
-               -e 's:-lncursesw:$(shell $(PKG_CONFIG) --libs ncursesw):g' \
-               -i Makefile || die
-
-       use static && append-ldflags -static
-}
-
-src_install() {
-       dosbin gdisk sgdisk $(usex ncurses cgdisk '') fixparts
-       doman *.8
-       dodoc NEWS README
-}

Reply via email to