Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-apps/hdparm/files/, sys-apps/hdparm/
Date: Fri, 15 Jul 2016 05:36:00
Message-Id: 1468561085.55c33db6fe5ebb7dca458924db5fd6d7d23f3a95.blueness@gentoo
1 commit: 55c33db6fe5ebb7dca458924db5fd6d7d23f3a95
2 Author: Felix Janda <felix.janda <AT> posteo <DOT> de>
3 AuthorDate: Sun Jul 10 19:39:55 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 15 05:38:05 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=55c33db6
7
8 sys-apps/hdparm: In tree version works
9
10 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=578456
11
12 sys-apps/hdparm/Manifest | 6 ---
13 sys-apps/hdparm/files/hdparm-9.45-musl.patch | 35 ----------------
14 sys-apps/hdparm/files/hdparm-conf.d.3 | 26 ------------
15 sys-apps/hdparm/files/hdparm-init-8 | 61 ----------------------------
16 sys-apps/hdparm/hdparm-9.45-r99.ebuild | 42 -------------------
17 sys-apps/hdparm/metadata.xml | 11 -----
18 6 files changed, 181 deletions(-)
19
20 diff --git a/sys-apps/hdparm/Manifest b/sys-apps/hdparm/Manifest
21 deleted file mode 100644
22 index f76e682..0000000
23 --- a/sys-apps/hdparm/Manifest
24 +++ /dev/null
25 @@ -1,6 +0,0 @@
26 -AUX hdparm-9.45-musl.patch 1096 SHA256 8fc853886d40814cfcd21669cf261d122ed8f1903a2405c36f13943a3bb97da8 SHA512 2518f3e447bb16ff02e8bc0d0d219ce88be6c48ea26f86c5fad3848377867a3bb8421bd3e349dc03716a6d28c4d18d6e05586c4e1b2f82bd9288af24af746631 WHIRLPOOL c780dac1557c1147bbac4443191488a9fbcee03441f8d38570575ffda9ebdc3b40056a2de2595c3a7035f4ad6495f39f3929b4b0c3cdfdbdef23ccd533bc70a6
27 -AUX hdparm-conf.d.3 872 SHA256 37c95ff723fa578e9039613d09dbf790d99113a318c065422986c744519214e9 SHA512 968c6b9d26a71bf724728c259d35a499a644496875eac255dcac3cb4a7e5cadb677a4f6e5e0f8bbd7e1826b6fb77cb39af15b11d1e59b3e9daf9ba442b9e6f02 WHIRLPOOL 110d330860c4f5e3b1626b85ab369a02e5c092acf656edc845a2f311b5349644317ec2021063a0fb977d3b9851e0bb9c54fd66e814a080d6af3aa0f05fbd658b
28 -AUX hdparm-init-8 1366 SHA256 f06714b70d9c14f9e55cb21c12a79d9bd9e9c04647751eaf2fdf57381fd7de62 SHA512 39bdd79fcccd900370951f849ab425d2de01cedb063ec51a135013aaa7e5eacef9f5e89d936d677e920b17ad6a5052d812648f00048e672d6f26c6581c024c3f WHIRLPOOL 0550594f3abe7ca9498495c19abbb505edf3ac8c8531f10444a132070756c9f02569a250cd3c957f0b4cf33810dd7b3ab3a10b37d9814ec785a0596c8ee561fe
29 -DIST hdparm-9.45.tar.gz 129410 SHA256 23b01caa56a995cf0897877b6aff98ea622a5df255bc2894b1a7693387f38669 SHA512 2692382f16fe9a87b7c9673bea44b8a9512b2449aaf18090f09c9e761fadc153f71d9779d063218f6951797649c0758f97242b7327da6653ea53991bf3da9eb8 WHIRLPOOL 6c424e265b7845afeff26f87654fbefe7d563404f2dee59f976594a87b375124262864305a14655bf5379e77e21bea0d8fb179e099374d7e8f952199f569ee58
30 -EBUILD hdparm-9.45-r99.ebuild 953 SHA256 292d3e5782c92375b907465276238860866dd2ddd1fb3c960136a71819fd3787 SHA512 3e9daf297361a50a566d39f89c5c93b067a05844fae9b7964c9ef644ddac0eefa0c74561279993957ccc5a23cdaa5ccdddb92e73f805434de16a3254e2477ce6 WHIRLPOOL c40a19b57f75590c089120988fc972b3b298ca4cc2c6891d74a3dc7c02d680eb2c2f0930f1f497e09c1f4c42f0ec4c90ed4db5b035598d34a80491ee5a5c42ef
31 -MISC metadata.xml 326 SHA256 7be17151b3f5f5c65b8edad44e9c49ac62d306f856a257b67e0f01a1d6b1796d SHA512 39219fcef0756910c51e804cf94170408208840e7b88d99b4583f8fcfb02e1664358f9d4bf4c3f1a1a619b6a87852bc4831c93f10215500842023132a85c2287 WHIRLPOOL 0c72b42d0ce47a7985115e1f65cd3a25bee06d41807b746e32966d69de586d4a84e22ffba08d1fbe0f0526d80074d8433813652e4512cadee0bbc847dac19e1b
32
33 diff --git a/sys-apps/hdparm/files/hdparm-9.45-musl.patch b/sys-apps/hdparm/files/hdparm-9.45-musl.patch
34 deleted file mode 100644
35 index a9fe0aa..0000000
36 --- a/sys-apps/hdparm/files/hdparm-9.45-musl.patch
37 +++ /dev/null
38 @@ -1,35 +0,0 @@
39 -diff -ur a/hdparm-9.45/fallocate.c b/hdparm-9.45/fallocate.c
40 ---- a/hdparm-9.45/fallocate.c 2010-10-04 20:38:39.000000000 -0100
41 -+++ b/hdparm-9.45/fallocate.c 2015-01-28 21:19:59.201795557 -0100
42 -@@ -27,7 +27,7 @@
43 - err = EINVAL;
44 - #else
45 - int fd;
46 -- loff_t offset = 0, len;
47 -+ off_t offset = 0, len;
48 - int mode = 0;
49 -
50 - fd = open(path, O_WRONLY|O_CREAT|O_EXCL, 0600);
51 -diff -ur a/hdparm-9.45/hdparm.h b/hdparm-9.45/hdparm.h
52 ---- a/hdparm-9.45/hdparm.h 2014-09-27 14:31:18.000000000 -0100
53 -+++ b/hdparm-9.45/hdparm.h 2015-01-28 21:19:08.662427386 -0100
54 -@@ -1,7 +1,7 @@
55 - /* Some prototypes for extern functions. */
56 -
57 - //#undef __KERNEL_STRICT_NAMES
58 --#include <linux/types.h>
59 -+#include <sys/types.h>
60 -
61 - #if !defined(__GNUC__) && !defined(__attribute__)
62 - #define __attribute__(x)
63 -diff -ur a/hdparm-9.45/sysfs.c b/hdparm-9.45/sysfs.c
64 ---- a/hdparm-9.45/sysfs.c 2010-10-04 20:39:20.000000000 -0100
65 -+++ b/hdparm-9.45/sysfs.c 2015-01-28 21:19:25.692214485 -0100
66 -@@ -13,6 +13,7 @@
67 - #include <fcntl.h>
68 - #include <errno.h>
69 - #include <dirent.h>
70 -+#include <limits.h>
71 - #include <sys/stat.h>
72 - #include <linux/types.h>
73 -
74
75 diff --git a/sys-apps/hdparm/files/hdparm-conf.d.3 b/sys-apps/hdparm/files/hdparm-conf.d.3
76 deleted file mode 100644
77 index a1ae626..0000000
78 --- a/sys-apps/hdparm/files/hdparm-conf.d.3
79 +++ /dev/null
80 @@ -1,26 +0,0 @@
81 -# /etc/conf.d/hdparm: config file for /etc/init.d/hdparm
82 -
83 -#
84 -# Note that options such as -y which force *immediate* power saving options
85 -# should generally not be placed here. The hdparm init.d script may run at
86 -# anytime with respect to other init.d scripts that do system wide drive
87 -# scans (like the hald script), so they will merely get spun right back up.
88 -# If you wish to use these options, please use the local.start init.d script
89 -# instead so that you're guaranteed that it will run last.
90 -#
91 -
92 -# You can either set hdparm arguments for each drive using hdX_args,
93 -# discX_args, cdromX_args and genericX_args, e.g.
94 -#
95 -# hda_args="-d1 -X66"
96 -# disc1_args="-d1"
97 -# cdrom0_args="-d1"
98 -
99 -# or you can set options for all PATA drives
100 -pata_all_args="-d1"
101 -
102 -# or you can set options for all SATA drives
103 -sata_all_args=""
104 -
105 -# or, you can set hdparm options for all drives
106 -all_args=""
107
108 diff --git a/sys-apps/hdparm/files/hdparm-init-8 b/sys-apps/hdparm/files/hdparm-init-8
109 deleted file mode 100644
110 index 9bf2385..0000000
111 --- a/sys-apps/hdparm/files/hdparm-init-8
112 +++ /dev/null
113 @@ -1,61 +0,0 @@
114 -#!/sbin/runscript
115 -# Copyright 1999-2012 Gentoo Foundation
116 -# Distributed under the terms of the GNU General Public License v2
117 -# $Id$
118 -
119 -depend() {
120 - before bootmisc
121 -}
122 -
123 -do_hdparm() {
124 - local e=
125 - eval e=\$${extra_args}
126 - [ -z "${args}${all_args}${e}" ] && return 0
127 -
128 - if [ -n "${args:=${all_args} ${e}}" ] ; then
129 - local orgdevice=$(readlink -f "${device}")
130 - if [ -b "${orgdevice}" ] ; then
131 - ebegin "Running hdparm on ${device}"
132 - hdparm ${args} "${device}" > /dev/null
133 - eend $?
134 - fi
135 - fi
136 -}
137 -
138 -scan_nondevfs() {
139 - # non-devfs compatible system
140 - local device
141 -
142 - for device in /dev/hd* /dev/sd* /dev/cdrom* ; do
143 - [ -e "${device}" ] || continue
144 - case "${device}" in
145 - *[0-9]) continue ;;
146 - /dev/hd*) extra_args="pata_all_args" ;;
147 - /dev/sd*) extra_args="sata_all_args" ;;
148 - *) extra_args="_no_xtra_args" ;;
149 - esac
150 -
151 - # check that the block device really exists by
152 - # opening it for reading
153 - local errmsg= status= nomed=1
154 - errmsg=$(export LC_ALL=C ; : 2>&1 <"${device}")
155 - status=$?
156 - case ${errmsg} in
157 - *": No medium found") nomed=0;;
158 - esac
159 - if [ -b "${device}" ] && [ "${status}" = "0" -o "${nomed}" = "0" ] ; then
160 - local conf_var="${device##*/}_args"
161 - eval args=\$${conf_var}
162 - do_hdparm
163 - fi
164 - done
165 -}
166 -
167 -start() {
168 - if get_bootparam "nohdparm" ; then
169 - ewarn "Skipping hdparm init as requested in kernel cmdline"
170 - return 0
171 - fi
172 -
173 - scan_nondevfs
174 -}
175
176 diff --git a/sys-apps/hdparm/hdparm-9.45-r99.ebuild b/sys-apps/hdparm/hdparm-9.45-r99.ebuild
177 deleted file mode 100644
178 index 1503008..0000000
179 --- a/sys-apps/hdparm/hdparm-9.45-r99.ebuild
180 +++ /dev/null
181 @@ -1,42 +0,0 @@
182 -# Copyright 1999-2016 Gentoo Foundation
183 -# Distributed under the terms of the GNU General Public License v2
184 -# $Id$
185 -
186 -EAPI="4"
187 -
188 -inherit toolchain-funcs flag-o-matic
189 -
190 -DESCRIPTION="Utility to change hard drive performance parameters"
191 -HOMEPAGE="http://sourceforge.net/projects/hdparm/"
192 -SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz"
193 -
194 -LICENSE="BSD GPL-2" # GPL-2 only
195 -SLOT="0"
196 -KEYWORDS="amd64 arm ~mips ppc x86"
197 -IUSE="static"
198 -
199 -src_prepare() {
200 - use static && append-ldflags -static
201 - sed -i \
202 - -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \
203 - -e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \
204 - Makefile || die "sed"
205 - epatch "${FILESDIR}"/${P}-musl.patch
206 -}
207 -
208 -src_compile() {
209 - emake STRIP=: CC="$(tc-getCC)"
210 -}
211 -
212 -src_install() {
213 - into /
214 - dosbin hdparm contrib/idectl
215 -
216 - newinitd "${FILESDIR}"/hdparm-init-8 hdparm
217 - newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm
218 -
219 - doman hdparm.8
220 - dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig
221 - docinto wiper
222 - dodoc wiper/{README.txt,wiper.sh}
223 -}
224
225 diff --git a/sys-apps/hdparm/metadata.xml b/sys-apps/hdparm/metadata.xml
226 deleted file mode 100644
227 index dc7b624..0000000
228 --- a/sys-apps/hdparm/metadata.xml
229 +++ /dev/null
230 @@ -1,11 +0,0 @@
231 -<?xml version="1.0" encoding="UTF-8"?>
232 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
233 -<pkgmetadata>
234 -<maintainer type="project">
235 - <email>base-system@g.o</email>
236 - <name>Gentoo Base System</name>
237 -</maintainer>
238 -<upstream>
239 - <remote-id type="sourceforge">hdparm</remote-id>
240 -</upstream>
241 -</pkgmetadata>