diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-06 10:25:44 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-06 10:25:44 +0100 |
commit | 64b277f858d171900cba8a53e675ef8c3ff893fc (patch) | |
tree | 7a19533ece87b58d4bbcc04d91701aaf888b0d99 /app-misc | |
parent | ededf7351b15c0df4d166af8fc7928bd1a0b2c8e (diff) |
gentoo auto-resync : 06:09:2023 - 10:25:44
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/Manifest.gz | bin | 49917 -> 49915 bytes | |||
-rw-r--r-- | app-misc/hddled/Manifest | 2 | ||||
-rw-r--r-- | app-misc/hddled/files/hddled-0.3-fix-missing-temp_failure_retry.patch | 19 | ||||
-rw-r--r-- | app-misc/hddled/hddled-0.3-r1.ebuild | 49 |
4 files changed, 70 insertions, 0 deletions
diff --git a/app-misc/Manifest.gz b/app-misc/Manifest.gz Binary files differindex e5187c880ed9..56abbd93118f 100644 --- a/app-misc/Manifest.gz +++ b/app-misc/Manifest.gz diff --git a/app-misc/hddled/Manifest b/app-misc/hddled/Manifest index 9334acd52098..76f1a42cd6e2 100644 --- a/app-misc/hddled/Manifest +++ b/app-misc/hddled/Manifest @@ -1,3 +1,5 @@ +AUX hddled-0.3-fix-missing-temp_failure_retry.patch 688 BLAKE2B 5c7efc0adfa904a8a554ebd06a75bd9a57fa699938d311935ab7f134b1ee12c4d71b164a72cda4ae2ed4189bf402b110c14b5e528ffe13bb320a07c5ca8e0114 SHA512 a6aa4f3311e8c2b67cd8c93237da90844981d0250beded7377bd443c86a7fc176757fb99c23f4390049f6a80d3afcd29dc06af96d0d4c7f0d5b527f1b187c9b1 DIST hddled-0.3.c.xz 3108 BLAKE2B eb7f2ab61d1969fe0f6ee3a8bebd7346b5cabcbb8a432a9c8c802289dc022efab09e2ca627915c9d2aacaeac8e6519524b9d77d34141850de7693778e825fba8 SHA512 9f535557aff78d3c9693a8d34810a768e8306de73841ba0d0a928a5d205a8a5faf632a9bf51db8763b5d8d2b3de73ee6f06af62f1a0025b0912c7c18133cdf19 +EBUILD hddled-0.3-r1.ebuild 946 BLAKE2B 259eedeb59ed8c3f0cc2023f44a64ccf65bc67390286eaf10c6a57ee135bbd77803949c44511e1dacc87f97c5559402082325f50432ee61df2d70852dc1f8c6d SHA512 da5c4db5877cb7ea7c2e68e55534df0265e8564943b14a1ccca5ed934e6b2b30942090b63333fb8ca4d9ed86627e95ab8b8d54757a8ef9107f60369fb174d6e6 EBUILD hddled-0.3.ebuild 791 BLAKE2B 96af6b998f1b8f932826bd45f5d0c25e9c7a43fafe3378c16e6fa5335bbe0eaa8b15056556b6246bcc3d3ee75f51a7c0ee13e902f896c98bef73411d1f00f49f SHA512 30e94d507f881511744a8e5af258130b713c02186f944026e134ffc7631c204f5d70ed00253651aec48b4d1b9064e53531f0e79312f727c1ff5c2d3d67dcf353 MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a diff --git a/app-misc/hddled/files/hddled-0.3-fix-missing-temp_failure_retry.patch b/app-misc/hddled/files/hddled-0.3-fix-missing-temp_failure_retry.patch new file mode 100644 index 000000000000..cff8347a212a --- /dev/null +++ b/app-misc/hddled/files/hddled-0.3-fix-missing-temp_failure_retry.patch @@ -0,0 +1,19 @@ +Bug: https://bugs.gentoo.org/894550 +--- a/hddled.c ++++ b/hddled.c +@@ -43,6 +43,15 @@ + + #define PACKAGE_STRING "hddled 0.3" + #define PACKAGE_BUGREPORT "hddled@very.puzzling.org" ++/* taken from glibc unistd.h and fixes musl */ ++#ifndef TEMP_FAILURE_RETRY ++#define TEMP_FAILURE_RETRY(expression) \ ++ (__extension__ \ ++ ({ long int __result; \ ++ do __result = (long int) (expression); \ ++ while (__result == -1L && errno == EINTR); \ ++ __result; })) ++#endif + + #define VMSTAT "/proc/vmstat" + diff --git a/app-misc/hddled/hddled-0.3-r1.ebuild b/app-misc/hddled/hddled-0.3-r1.ebuild new file mode 100644 index 000000000000..52a7e3a46975 --- /dev/null +++ b/app-misc/hddled/hddled-0.3-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="Show hard disk activity using the scroll lock LED" +HOMEPAGE="http://members.optusnet.com.au/foonly/whirlpool/code/" +SRC_URI="mirror://gentoo/${P}.c.xz" +S="${WORKDIR}" + +LICENSE="Unlicense" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X" + +DEPEND="X? ( x11-libs/libX11 )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-0.3-fix-missing-temp_failure_retry.patch" +) + +src_prepare() { + mv ${P}.c ${PN}.c || die + default +} + +src_compile() { + if use elibc_musl ; then + append-libs -largp + fi + + $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ${PN} ${PN}.c ${LDFLAGS} ${LIBS} || die + + if use X ; then + $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -DX -lX11 -o x${PN} ${PN}.c ${LDFLAGS} ${LIBS} || die + fi +} + +src_install() { + dobin ${PN} + + if use X ; then + dobin x${PN} + elog "X version was renamed to x${PN}" + fi +} |