Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/hdparm/, sys-apps/hdparm/files/
Date: Mon, 14 Jun 2021 09:20:08
Message-Id: 1623662352.fb97f38c862af403c6148a2e6660d48500835818.soap@gentoo
1 commit: fb97f38c862af403c6148a2e6660d48500835818
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 14 09:19:12 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 14 09:19:12 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb97f38c
7
8 sys-apps/hdparm: drop 9.58
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 sys-apps/hdparm/Manifest | 1 -
13 sys-apps/hdparm/files/hdparm-9.51-build.patch | 32 --------------------
14 sys-apps/hdparm/hdparm-9.58.ebuild | 43 ---------------------------
15 3 files changed, 76 deletions(-)
16
17 diff --git a/sys-apps/hdparm/Manifest b/sys-apps/hdparm/Manifest
18 index 0e2e651d774..9f2f81614d1 100644
19 --- a/sys-apps/hdparm/Manifest
20 +++ b/sys-apps/hdparm/Manifest
21 @@ -1,2 +1 @@
22 -DIST hdparm-9.58.tar.gz 138845 BLAKE2B 29e2697afaedcfbb1d7dea2238f9477afd932d553166437abbf068b8b3f3a5445a0b8542714d8a15e3c64f42a794c2603fe626ed936b4dbdeb8e4fe63afc5f46 SHA512 42fb70f494aae4cc205ca68c3e883e1f4fc33e8ced1914e280e9f3faa7233d3f839e59178ec09ddb9d32e9d2bca122ce324645ecb5ac73defa284030ac7d3cea
23 DIST hdparm-9.62.tar.gz 139976 BLAKE2B 83ea59e35eeec7fa2a9e2f9f4b7a9a0d44cd4366d95e529c08bf38b04f6d78862bfefdfb905d4fceadbb81453ee92a60aa55db8d4c0bd164ec67181b46f197bf SHA512 ac6c4d285d081ecd8c7b231192a5a0fc268d934eeeb59794ae9a9db01ecbdd0afa0cade6ed42a1fd26ad543c52a3b380ac4f1b679992d167becb4ed6251fd369
24
25 diff --git a/sys-apps/hdparm/files/hdparm-9.51-build.patch b/sys-apps/hdparm/files/hdparm-9.51-build.patch
26 deleted file mode 100644
27 index 2c6bdba68e3..00000000000
28 --- a/sys-apps/hdparm/files/hdparm-9.51-build.patch
29 +++ /dev/null
30 @@ -1,32 +0,0 @@
31 -* drop hardcoded -O2 flag from CFLAGS
32 -* drop hardcoded -s (strip) flag from LDFLAGS, and respect user LDFLAGS
33 -* fix hardcoded `make` and hardcoded -j2 flags
34 -* respect CFLAGS when linking
35 -
36 ---- hdparm-9.51/Makefile
37 -+++ hdparm-9.51/Makefile
38 -@@ -13,9 +13,8 @@
39 - CC ?= gcc
40 - STRIP ?= strip
41 -
42 --CFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS)
43 -+CFLAGS += -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs
44 -
45 --LDFLAGS = -s
46 - #LDFLAGS = -s -static
47 - INSTALL = install
48 - INSTALL_DATA = $(INSTALL) -m 644
49 -@@ -24,11 +23,10 @@
50 -
51 - OBJS = hdparm.o identify.o sgio.o sysfs.o geom.o fallocate.o fibmap.o fwdownload.o dvdspeed.o wdidle3.o
52 -
53 --all:
54 -- $(MAKE) -j4 hdparm
55 -+all: hdparm
56 -
57 - hdparm: hdparm.h sgio.h $(OBJS)
58 -- $(CC) $(LDFLAGS) -o hdparm $(OBJS)
59 -+ $(CC) $(CFLAGS) $(LDFLAGS) -o hdparm $(OBJS)
60 - $(STRIP) hdparm
61 -
62 - hdparm.o: hdparm.h sgio.h
63
64 diff --git a/sys-apps/hdparm/hdparm-9.58.ebuild b/sys-apps/hdparm/hdparm-9.58.ebuild
65 deleted file mode 100644
66 index d03b4546236..00000000000
67 --- a/sys-apps/hdparm/hdparm-9.58.ebuild
68 +++ /dev/null
69 @@ -1,43 +0,0 @@
70 -# Copyright 1999-2020 Gentoo Authors
71 -# Distributed under the terms of the GNU General Public License v2
72 -
73 -EAPI=6
74 -
75 -inherit toolchain-funcs flag-o-matic
76 -
77 -DESCRIPTION="Utility to change hard drive performance parameters"
78 -HOMEPAGE="https://sourceforge.net/projects/hdparm/"
79 -SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz"
80 -
81 -LICENSE="BSD GPL-2" # GPL-2 only
82 -SLOT="0"
83 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
84 -IUSE="static"
85 -
86 -PATCHES=(
87 - "${FILESDIR}"/${PN}-9.51-build.patch
88 -)
89 -
90 -src_prepare() {
91 - default
92 - use static && append-ldflags -static
93 -}
94 -
95 -src_configure() {
96 - tc-export CC
97 - export STRIP=:
98 -}
99 -
100 -src_install() {
101 - into /
102 - dosbin hdparm contrib/idectl
103 -
104 - newinitd "${FILESDIR}"/hdparm-init-8 hdparm
105 - newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm
106 -
107 - doman hdparm.8
108 - dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig
109 - docinto wiper
110 - dodoc wiper/{README.txt,wiper.sh}
111 - docompress -x /usr/share/doc/${PF}/wiper/wiper.sh
112 -}