From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 21/34] hddtemp: add
Date: Mon, 09 May 2016 09:38:06 +0200 [thread overview]
Message-ID: <87futrn0kh.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <1462002570-14706-21-git-send-email-gilles.chanteperdrix@xenomai.org> (Gilles Chanteperdrix's message of "Sat, 30 Apr 2016 09:49:17 +0200")
>>>>> "Gilles" == Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> writes:
> ---
> package/Config.in | 1 +
> package/hddtemp/Config.in | 8 ++++++++
> package/hddtemp/hddtemp.hash | 2 ++
> package/hddtemp/hddtemp.mk | 19 +++++++++++++++++++
> 4 files changed, 30 insertions(+)
> create mode 100644 package/hddtemp/Config.in
> create mode 100644 package/hddtemp/hddtemp.hash
> create mode 100644 package/hddtemp/hddtemp.mk
> diff --git a/package/Config.in b/package/Config.in
> index bdc3063..76665e6 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1458,6 +1458,7 @@ comment "Utilities"
> source "package/file/Config.in"
> source "package/gnupg/Config.in"
> source "package/gnupg2/Config.in"
> + source "package/hddtemp/Config.in"
I think this should rather go under "Hardware handling" like
smartmontools or hdparm.
> source "package/inotify-tools/Config.in"
> source "package/lockfile-progs/Config.in"
> source "package/logrotate/Config.in"
> diff --git a/package/hddtemp/Config.in b/package/hddtemp/Config.in
> new file mode 100644
> index 0000000..0d28250
> --- /dev/null
> +++ b/package/hddtemp/Config.in
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_HDDTEMP
> + bool "hddtemp"
> + help
> + hddtemp is a small utility that gives you the temperature of your
> + hard drive by reading S.M.A.R.T. informations, for drives that
> + support this feature.
It also uses iconv (to figure out how to print a degrees celsius sign,
gaah), so you need to add:
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
And add it to HDDTEMP_DEPENDENCIES. A quick test shows that it forgets
to link with it, so it needs some help:
ifeq ($(BR2_PACKAGE_LIBICONV),y)
HDDTEMP_DEPENDENCIES += libiconv
HDDTEMP_CONF_ENV += LIBS="-liconv"
endif
It also needs a small patch to build without gettext as it
unconditionally calls:
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
Those needs to be inside #ifdef ENABLE_NLS conditionals.
And finally there's code in backtrace.c that breaks when building with
uClibc on i386 (as uClibc also defines __GLIBC__ for compatibility but
doesn't provide backtrace functionality by default):
#if defined(__i386__) && defined(__GLIBC__)
These patches should preferably be upstreamed, but as the latest (beta!)
release is 10 years old by now, the project seems pretty dead.
The savannah status is also listed as Orphaned/Unmaintained.
> +
> + http://www.guzu.net/linux/hddtemp.php
> diff --git a/package/hddtemp/hddtemp.hash b/package/hddtemp/hddtemp.hash
> new file mode 100644
> index 0000000..c308989
> --- /dev/null
> +++ b/package/hddtemp/hddtemp.hash
> @@ -0,0 +1,2 @@
> +# Locally calculated after checking pgp signature
> +sha256 618541584054093d53be8a2d9e81c97174f30f00af91cb8700a97e442d79ef5b hddtemp-0.3-beta15.tar.bz2
> diff --git a/package/hddtemp/hddtemp.mk b/package/hddtemp/hddtemp.mk
> new file mode 100644
> index 0000000..a51548d
> --- /dev/null
> +++ b/package/hddtemp/hddtemp.mk
> @@ -0,0 +1,19 @@
> +################################################################################
> +#
> +# hddtemp
> +#
> +################################################################################
> +
> +HDDTEMP_VERSION = 0.3-beta15
> +HDDTEMP_SOURCE = hddtemp-$(HDDTEMP_VERSION).tar.bz2
> +HDDTEMP_SITE = http://download.savannah.gnu.org/releases/hddtemp
> +HDDTEMP_LICENSE = GPLv2
The source files contain the "(at your option) any later version"
wording, so this should be GPLv2+
> +HDDTEMP_LICENSE_FILES = GPL-2
> +
> +define HDDTEMP_REMOVE_MAN
> + rm -rf $(TARGET_DIR)/usr/man
> +endef
Like Thomas mentioned, this is already taken care of in target-finalize.
The big question is how to handle hddtemp.db?
The tarball doesn't contain the file, so hddtemp doesn't do anything
sensible:
sudo ./target/usr/sbin/hddtemp /dev/sda
hddtemp: can't open /usr/share/misc/hddtemp.db: No such file or directory
The file is available on the upstream website, but it is not versioned -
So that is not suitable for Buildroot:
http://www.guzu.net/linux/hddtemp.db
Either we:
- Convince upstream to version this file (and preferably include it in
the tarball) - But as the project seems dead this might be hard
- Apply the Debian patch which includes (an older version of?)
hddtemp.db. Notice that Debian also patches various things in the
code, so please check that the changes make sense in the context of
Buildroot:
http://http.debian.net/debian/pool/main/h/hddtemp/hddtemp_0.3-beta15-52.diff.gz
- We include hddtemp.db in package/hddtemp. It isn't really nice, but
the file is relatively small (29K)
Given the missing hddtemp.db, how have you tested this package?
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2016-05-09 7:38 UTC|newest]
Thread overview: 91+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-30 7:43 [Buildroot] Reproducible builds Gilles Chanteperdrix
2016-04-30 7:48 ` [Buildroot] [PATCH 01/34] reproducibility: introduce config knob Gilles Chanteperdrix
2016-04-30 7:48 ` [Buildroot] [PATCH 02/34] reproducibility: override locale and timezone Gilles Chanteperdrix
2016-05-07 13:15 ` Thomas Petazzoni
2016-05-07 18:54 ` Arnout Vandecappelle
2016-06-14 13:53 ` Gilles Chanteperdrix
2016-04-30 7:48 ` [Buildroot] [PATCH 03/34] reproducibility: generate SOURCE_DATE_EPOCH Gilles Chanteperdrix
2016-05-07 13:20 ` Thomas Petazzoni
2016-05-07 21:00 ` Arnout Vandecappelle
2016-05-08 20:22 ` Gilles Chanteperdrix
2016-05-09 23:28 ` Arnout Vandecappelle
2016-05-11 7:17 ` Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 04/34] reproducibility: make rootfs.tar reproducible Gilles Chanteperdrix
2016-05-07 13:23 ` Thomas Petazzoni
2016-05-07 19:51 ` Arnout Vandecappelle
2016-05-08 20:17 ` Gilles Chanteperdrix
2016-05-09 23:29 ` Arnout Vandecappelle
2016-04-30 7:49 ` [Buildroot] [PATCH 05/34] reproducibility/linux: override build timestamp Gilles Chanteperdrix
2016-05-07 20:52 ` Arnout Vandecappelle
2016-04-30 7:49 ` [Buildroot] [PATCH 06/34] reproducibility/busybox: disable build timestamps Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 07/34] reproducibility/libgcrypt: override timestamps Gilles Chanteperdrix
2016-05-07 13:24 ` Thomas Petazzoni
2016-05-07 21:01 ` Arnout Vandecappelle
2016-04-30 7:49 ` [Buildroot] [PATCH 08/34] reproducibility/libgpg-error: " Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 09/34] reproducibility/libglib2: allow removing codegen Gilles Chanteperdrix
2016-05-07 13:28 ` Thomas Petazzoni
2016-05-08 12:51 ` Gustavo Zacarias
2016-05-08 12:56 ` Thomas Petazzoni
2016-05-07 21:04 ` Arnout Vandecappelle
2016-05-08 20:25 ` Gilles Chanteperdrix
2016-05-09 23:40 ` Arnout Vandecappelle
2016-05-10 19:42 ` Gilles Chanteperdrix
2016-05-12 20:05 ` Arnout Vandecappelle
2016-05-14 13:34 ` Gilles Chanteperdrix
2016-05-14 23:48 ` Arnout Vandecappelle
2016-06-14 14:18 ` Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 10/34] reproducibility/sysstat: override gcc macros Gilles Chanteperdrix
2016-05-07 21:07 ` Arnout Vandecappelle
2016-04-30 7:49 ` [Buildroot] [PATCH 11/34] reproducibility/vim: make vim reproducible Gilles Chanteperdrix
2016-05-07 13:30 ` Thomas Petazzoni
2016-05-08 20:26 ` Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 12/34] reproducibility/wireshark: remove documentation Gilles Chanteperdrix
2016-05-07 13:30 ` Thomas Petazzoni
2016-04-30 7:49 ` [Buildroot] [PATCH 13/34] reproducibility/libtool: fix reproducibility issues Gilles Chanteperdrix
2016-05-07 20:22 ` Thomas Petazzoni
2016-05-08 20:15 ` Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 14/34] reproducibility/python: also remove pyo files Gilles Chanteperdrix
2016-05-07 20:24 ` Thomas Petazzoni
2016-04-30 7:49 ` [Buildroot] [PATCH 15/34] reproducibility/gzip: avoid gzip timestamp in rootfs.tar.gz Gilles Chanteperdrix
2016-05-07 20:24 ` Thomas Petazzoni
2016-04-30 7:49 ` [Buildroot] [PATCH 16/34] reproducibility/lzo: forbid lzo with reproducible builds Gilles Chanteperdrix
2016-05-07 20:25 ` Thomas Petazzoni
2016-05-12 20:10 ` Arnout Vandecappelle
2016-04-30 7:49 ` [Buildroot] [PATCH 17/34] reproducibility/libnspr: override build timestamps Gilles Chanteperdrix
2016-05-07 20:27 ` Thomas Petazzoni
2016-05-08 20:32 ` Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 18/34] readline: fix installed libraries permission Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 19/34] reproducibility/python: make python reproducible Gilles Chanteperdrix
2016-05-07 20:29 ` Thomas Petazzoni
2016-05-08 20:19 ` Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 20/34] reproducibility/iproute2: do not rely on host directories Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 21/34] hddtemp: add Gilles Chanteperdrix
2016-05-07 20:31 ` Thomas Petazzoni
2016-05-09 7:38 ` Peter Korsgaard [this message]
2016-05-09 19:58 ` Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 22/34] High availability: add packages Gilles Chanteperdrix
2016-05-07 20:38 ` Thomas Petazzoni
2016-05-08 20:20 ` Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 23/34] pkg-download: allow git+ssh URLs Gilles Chanteperdrix
2016-05-07 20:39 ` Thomas Petazzoni
2016-05-09 6:41 ` Peter Korsgaard
2016-05-09 19:56 ` Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 24/34] grub2: really disable liblzma Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 25/34] grub2: allow full install (for installer images) Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 26/34] reproducibility: cpio: avoid embedding file dates in archive Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 27/34] package/cpio: allow generating host-cpio Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 28/34] reproducibility/fs/cpio: generate archive with host-cpio Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 29/34] cdrkit: add patch allowing to set creation date Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 30/34] reproducibility/fs/iso9660: reproducible iso images Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 31/34] reproducible/syslinux: make syslinux build reproducible Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 32/34] reproducible/iso9660: generate reproducible isos Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 33/34] reproducible/cpio: generate reproducible cpio archives Gilles Chanteperdrix
2016-04-30 7:49 ` [Buildroot] [PATCH 34/34] reproducible/grub2: get a reproducible grub2 full installation Gilles Chanteperdrix
2016-05-07 13:14 ` [Buildroot] [PATCH 01/34] reproducibility: introduce config knob Thomas Petazzoni
2016-05-09 7:42 ` Peter Korsgaard
2016-05-09 12:53 ` Thomas Petazzoni
2016-05-09 13:01 ` Peter Korsgaard
2016-05-09 13:11 ` Thomas Petazzoni
2016-05-07 13:11 ` [Buildroot] Reproducible builds Thomas Petazzoni
2016-05-07 20:55 ` Arnout Vandecappelle
2016-05-08 5:51 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87futrn0kh.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox