summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-10-07 10:53:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-10-12 14:12:10 +0100
commit2cf9fb4df498fe0e4fa8356dc663fdfdec9a98cc (patch)
tree411508c9d098cd199dcb6d129031d9904b8ee7b0 /meta
parentb04b8a4e4d720df61e3294781236890e1ab91748 (diff)
downloadpoky-2cf9fb4df498fe0e4fa8356dc663fdfdec9a98cc.tar.gz
hal/hal-info: This is unsed in OE-Core and deprecated, drop
(From OE-Core rev: 72c010af2c0fe967a5cacc7fbdba75c3ea3e5c3a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rwxr-xr-xmeta/recipes-support/hal/files/20hal58
-rw-r--r--meta/recipes-support/hal/files/autoconf.diff13
-rw-r--r--meta/recipes-support/hal/files/hal-right-input-h.patch31
-rw-r--r--meta/recipes-support/hal/files/probe-video4linux.c.patch60
-rw-r--r--meta/recipes-support/hal/files/sg-inhibit.patch26
-rw-r--r--meta/recipes-support/hal/hal-info.inc21
-rw-r--r--meta/recipes-support/hal/hal-info_20091130.bb6
-rw-r--r--meta/recipes-support/hal/hal-info_git.bb9
-rw-r--r--meta/recipes-support/hal/hal.inc83
-rw-r--r--meta/recipes-support/hal/hal/configure_fix.patch62
-rw-r--r--meta/recipes-support/hal/hal_0.5.14.bb19
-rw-r--r--meta/recipes-support/hal/hal_git.bb12
12 files changed, 0 insertions, 400 deletions
diff --git a/meta/recipes-support/hal/files/20hal b/meta/recipes-support/hal/files/20hal
deleted file mode 100755
index 5b97c4f9e6..0000000000
--- a/meta/recipes-support/hal/files/20hal
+++ /dev/null
@@ -1,58 +0,0 @@
1#! /bin/sh
2#
3# hal Start the Daemon that stores device informations
4# for the Hardware abstraction layer
5#
6# Written by Martin Waitz based on skeleton code
7# written by Miquel van Smoorenburg <miquels@cistron.nl>.
8# Modified for Debian
9# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
10#
11
12PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
13DAEMON=/usr/sbin/hald
14PIDDIR=/var/run/hald
15PIDFILE=$PIDDIR/hald.pid
16NAME=hald
17DAEMONUSER=haldaemon
18DESC="Hardware abstraction layer"
19
20test -x $DAEMON || exit 0
21
22set -e
23
24do_start() {
25 if [ ! -d $PIDDIR ]; then
26 mkdir -p $PIDDIR
27 chown $DAEMONUSER:$DAEMONUSER $PIDDIR
28 fi
29 echo "Starting $DESC" "$NAME"
30 start-stop-daemon --start --pidfile $PIDFILE \
31 --exec $DAEMON -- $DAEMON_OPTS
32}
33
34do_stop() {
35 echo "Stopping $DESC" "$NAME"
36 start-stop-daemon --stop --quiet --pidfile $PIDFILE \
37 --exec $DAEMON
38}
39
40case "$1" in
41 start)
42 do_start
43 ;;
44 stop)
45 do_stop
46 ;;
47 restart|force-reload)
48 do_stop
49 sleep 5
50 do_start
51 ;;
52 *)
53 echo "Usage: $0 {start|stop|restart|force-reload}" >&2
54 exit 1
55 ;;
56esac
57
58exit 0
diff --git a/meta/recipes-support/hal/files/autoconf.diff b/meta/recipes-support/hal/files/autoconf.diff
deleted file mode 100644
index 451a2525d9..0000000000
--- a/meta/recipes-support/hal/files/autoconf.diff
+++ /dev/null
@@ -1,13 +0,0 @@
1Upstream-Status: Inappropriate [configuration]
2
3--- hal-0.5.9/configure.in~ 2007-04-03 05:36:44.000000000 +0100
4+++ hal-0.5.9/configure.in 2007-04-03 10:29:39.000000000 +0100
5@@ -6,7 +6,7 @@
6 # Patches for that is welcome.
7 #
8
9-AC_PREREQ(2.59c)
10+AC_PREREQ(2.59)
11 AC_INIT(hal, 0.5.9, david@fubar.dk)
12 AM_INIT_AUTOMAKE(hal, 0.5.9)
13 AM_CONFIG_HEADER(config.h)
diff --git a/meta/recipes-support/hal/files/hal-right-input-h.patch b/meta/recipes-support/hal/files/hal-right-input-h.patch
deleted file mode 100644
index 06697ed19d..0000000000
--- a/meta/recipes-support/hal/files/hal-right-input-h.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1Upstream-Status: Inappropriate [configuration]
2
3diff --git a/configure.in b/configure.in
4index e76ff51..5e8cc21 100644
5--- a/configure.in
6+++ b/configure.in
7@@ -983,6 +983,11 @@ AC_ARG_WITH([linux-input-header],
8 [Use an given Linux input.h rather than that installed on the system (<linux/input.h>)]))
9 if test "x$with_linux_input_header" != "x"; then
10 AC_DEFINE_UNQUOTED(HAL_LINUX_INPUT_HEADER_H, "$with_linux_input_header", [If set, the header to use instead of <linux/input.h>])
11+ LINUX_INPUT_H=$with_linux_input_header
12+ AC_SUBST(LINUX_INPUT_H)
13+else
14+ LINUX_INPUT_H=/usr/include/linux/input.h
15+ AC_SUBST(LINUX_INPUT_H)
16 fi
17
18 dnl
19diff --git a/tools/Makefile.am b/tools/Makefile.am
20index ae03edd..7d1cbab 100644
21--- a/tools/Makefile.am
22+++ b/tools/Makefile.am
23@@ -79,7 +79,7 @@ endif
24 if BUILD_KEYMAPS
25
26 if HAVE_GPERF
27-hal-setup-keymap-keys.txt: /usr/include/linux/input.h
28+hal-setup-keymap-keys.txt: @LINUX_INPUT_H@
29 awk '/^#define.*KEY_/ { if ($$2 != "KEY_MAX") { print substr($$2, 5) } }' < $< > $@
30
31 hal-setup-keymap-hash-name.gperf: hal-setup-keymap-keys.txt
diff --git a/meta/recipes-support/hal/files/probe-video4linux.c.patch b/meta/recipes-support/hal/files/probe-video4linux.c.patch
deleted file mode 100644
index 0f8140be85..0000000000
--- a/meta/recipes-support/hal/files/probe-video4linux.c.patch
+++ /dev/null
@@ -1,60 +0,0 @@
1Upstream-Status: Backport
2
3From ae13d96fa2a0612b6000f4b8f6ed9d3564035703 Mon Sep 17 00:00:00 2001
4From: Michael Biebl <biebl@debian.org>
5Date: Sun, 10 Apr 2011 12:54:53 +0000
6Subject: Build hald-probe-video4linux on current kernels again
7
8The hald-probe-video4linux prober supports both v4l1 and v4l2. Support for v4l1
9has been removed from Linux kernel 2.6.38. Instead of disabling the prober
10altogether, #ifdef the v4l1 parts when building on a newer kernel.
11
12Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
13---
14(limited to 'hald/linux/probing/probe-video4linux.c')
15
16diff --git a/hald/linux/probing/probe-video4linux.c b/hald/linux/probing/probe-video4linux.c
17index 7bc13e8..b055720 100644
18--- a/hald/linux/probing/probe-video4linux.c
19+++ b/hald/linux/probing/probe-video4linux.c
20@@ -30,7 +30,9 @@
21 #include <sys/types.h>
22 #include <sys/time.h>
23 #include <sys/ioctl.h>
24+#ifdef HAVE_LINUX_VIDEODEV_H
25 #include <linux/videodev.h>
26+#endif
27 #include <linux/videodev2.h>
28 #include <errno.h>
29 #include <fcntl.h>
30@@ -50,7 +52,9 @@ main (int argc, char *argv[])
31 int ret = -1;
32 char *udi;
33 char *device_file;
34+#ifdef HAVE_LINUX_VIDEODEV_H
35 struct video_capability v1cap;
36+#endif
37 struct v4l2_capability v2cap;
38 LibHalContext *ctx = NULL;
39 LibHalChangeSet *cset;
40@@ -107,7 +111,9 @@ main (int argc, char *argv[])
41 LIBHAL_FREE_DBUS_ERROR (&error);
42 libhal_device_add_capability (ctx, udi, "video4linux.radio", &error);
43 }
44- } else {
45+ }
46+#ifdef HAVE_LINUX_VIDEODEV_H
47+ else {
48 HAL_DEBUG (("ioctl VIDIOC_QUERYCAP failed"));
49
50 if (ioctl (fd, VIDIOCGCAP, &v1cap) == 0) {
51@@ -134,6 +140,7 @@ main (int argc, char *argv[])
52 HAL_DEBUG (("ioctl VIDIOCGCAP failed"));
53 }
54 }
55+#endif
56
57 LIBHAL_FREE_DBUS_ERROR (&error);
58 libhal_device_commit_changeset (ctx, cset, &error);
59--
60cgit v0.9.0.2-2-gbebe
diff --git a/meta/recipes-support/hal/files/sg-inhibit.patch b/meta/recipes-support/hal/files/sg-inhibit.patch
deleted file mode 100644
index c655c29896..0000000000
--- a/meta/recipes-support/hal/files/sg-inhibit.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1Upstream-Status: Pending
2
3--- hal-0.5.9.1/hald/linux/probing/linux_dvd_rw_utils.c.old 2007-08-03 17:24:12.000000000 +0100
4+++ hal-0.5.9.1/hald/linux/probing/linux_dvd_rw_utils.c 2007-08-03 17:25:06.000000000 +0100
5@@ -58,6 +58,10 @@
6
7 #include "linux_dvd_rw_utils.h"
8
9+#if defined(SG_FLAG_UNUSED_LUN_INHIBIT)
10+# define SG_FLAG_LUN_INHIBIT SG_FLAG_UNUSED_LUN_INHIBIT
11+#endif
12+
13 typedef enum {
14 NONE = CGC_DATA_NONE, // 3
15 READ = CGC_DATA_READ, // 2
16@@ -153,8 +153,8 @@
17 errno = EIO;
18 ret = -1;
19 if (cmd->sg_io.masked_status & CHECK_CONDITION) {
20- CREAM_ON_ERRNO (cmd->sg_io.sbp);
21- ret = ERRCODE (cmd->sg_io.sbp);
22+ CREAM_ON_ERRNO ((char*)cmd->sg_io.sbp);
23+ ret = ERRCODE ((char*)cmd->sg_io.sbp);
24 if (ret == 0)
25 ret = -1;
26 }
diff --git a/meta/recipes-support/hal/hal-info.inc b/meta/recipes-support/hal/hal-info.inc
deleted file mode 100644
index d6743de9df..0000000000
--- a/meta/recipes-support/hal/hal-info.inc
+++ /dev/null
@@ -1,21 +0,0 @@
1DESCRIPTION = "Hardware Abstraction Layer device information"
2HOMEPAGE = "http://hal.freedesktop.org/"
3BUGTRACKER = "http://bugs.freedesktop.org/buglist.cgi?product=hal"
4SECTION = "unknown"
5
6LICENSE = "GPLv2 | AFL"
7LIC_FILES_CHKSUM = "file://COPYING;md5=ae484909bad0cf11c8e2071cee6bd4dc"
8
9SRC_URI = "http://hal.freedesktop.org/releases/${BPN}-${PV}.tar.gz"
10
11inherit autotools pkgconfig
12
13EXTRA_OECONF = "--disable-recall --disable-video"
14
15do_configure() {
16 gnu-configize
17 libtoolize --force
18 oe_runconf
19}
20
21FILES_${PN} += "${datadir}/hal/"
diff --git a/meta/recipes-support/hal/hal-info_20091130.bb b/meta/recipes-support/hal/hal-info_20091130.bb
deleted file mode 100644
index 65d4d6b05b..0000000000
--- a/meta/recipes-support/hal/hal-info_20091130.bb
+++ /dev/null
@@ -1,6 +0,0 @@
1require hal-info.inc
2
3PR = "r1"
4
5SRC_URI[md5sum] = "34375489a02a00b250fdc0b280be11b8"
6SRC_URI[sha256sum] = "3b5a90eaea4359977d36c808a19b3f08835345a258c68b9c6c080ad5ef875224"
diff --git a/meta/recipes-support/hal/hal-info_git.bb b/meta/recipes-support/hal/hal-info_git.bb
deleted file mode 100644
index adcde9e88f..0000000000
--- a/meta/recipes-support/hal/hal-info_git.bb
+++ /dev/null
@@ -1,9 +0,0 @@
1require hal-info.inc
2
3PV = "${SRCDATE}+git"
4PR = "r1"
5
6SRC_URI = "git://anongit.freedesktop.org/hal-info/;protocol=git;rev=HAL_INFO_20091130"
7S = "${WORKDIR}/git"
8
9DEFAULT_PREFERENCE = "-1"
diff --git a/meta/recipes-support/hal/hal.inc b/meta/recipes-support/hal/hal.inc
deleted file mode 100644
index efd9e72210..0000000000
--- a/meta/recipes-support/hal/hal.inc
+++ /dev/null
@@ -1,83 +0,0 @@
1DESCRIPTION = "Hardware Abstraction Layer"
2HOMEPAGE = "http://freedesktop.org/Software/hal"
3BUGTRACKER = "http://bugs.freedesktop.org/buglist.cgi?product=hal"
4SECTION = "unknown"
5
6LICENSE = "GPLv2+ | AFL"
7LIC_FILES_CHKSUM = "file://COPYING;md5=5b5ffd59fbb7c2fff6de76c94177af31"
8
9DEPENDS = "virtual/kernel dbus-glib udev util-linux intltool intltool-native expat libusb gperf-native"
10RDEPENDS_${PN} += "udev hal-info"
11
12SRC_URI = "http://hal.freedesktop.org/releases/hal-${PV}.tar.gz \
13 file://20hal"
14
15inherit autotools pkgconfig
16
17
18LEAD_SONAME = "libhal.so"
19
20# machines with pci and acpi get a machine dependant hal
21EXTRA_OECONF = "--with-hwdata=${datadir}/hwdata \
22 --with-expat=${STAGING_LIBDIR}/.. \
23 --with-dbus-sys=${sysconfdir}/dbus-1/system.d \
24 --with-hotplug=${sysconfdir}/hotplug.d \
25 --disable-docbook-docs \
26 --disable-policy-kit \
27 --disable-pmu \
28 --disable-pnp-ids \
29 ${@base_contains('COMBINED_FEATURES', 'pci', '--enable-pci --enable-pci-ids', '--disable-pci --disable-pci-ids',d)} \
30 ${@base_contains('MACHINE_FEATURES', 'acpi', '--enable-acpi', '--disable-acpi',d)} \
31 "
32
33PACKAGE_ARCH = "${@base_contains('MACHINE_FEATURES', 'acpi', '${MACHINE_ARCH}', '${TUNE_PKGARCH}',d)}"
34PACKAGE_ARCH = "${@base_contains('MACHINE_FEATURES', 'pci', '${MACHINE_ARCH}', '${TUNE_PKGARCH}',d)}"
35
36do_install_append() {
37 install -d ${D}/etc/dbus-1/event.d
38 install -m 0755 ${WORKDIR}/20hal ${D}/etc/dbus-1/event.d
39}
40
41# At the time the postinst runs, dbus might not be setup so only restart if running
42pkg_postinst_hal () {
43 # can't do this offline
44 if [ "x$D" != "x" ]; then
45 exit 1
46 fi
47
48 grep haldaemon /etc/group || addgroup haldaemon
49 grep haldaemon /etc/passwd || adduser --disabled-password --system --home /var/run/hald --no-create-home haldaemon --ingroup haldaemon -g HAL
50
51 # add volatile after new user/grp are created
52 echo "d root root 0700 /var/run/hald none" > /etc/default/volatiles/99_hal
53 echo "d haldaemon haldaemon 0755 /var/cache/hald none" >> /etc/default/volatiles/99_hal
54 /etc/init.d/populate-volatile.sh update
55
56 DBUSPID=`pidof dbus-daemon`
57
58 if [ "x$DBUSPID" != "x" ]; then
59 /etc/init.d/dbus-1 force-reload
60 fi
61}
62
63pkg_postrm_hal () {
64 deluser haldaemon || true
65 delgroup haldaemon || true
66}
67
68FILES_${PN} = "${sysconfdir} \
69 ${bindir}/lshal \
70 ${bindir}/hal-find-by-capability \
71 ${bindir}/hal-find-by-property \
72 ${bindir}/hal-device \
73 ${bindir}/hal-get-property \
74 ${bindir}/hal-set-property \
75 ${bindir}/hal-lock \
76 ${bindir}/hal-is-caller-locked-out \
77 ${sbindir} \
78 ${libdir}/libhal.so.* \
79 ${libdir}/libhal-storage.so.* \
80 ${libdir}/hal \
81 ${libexecdir} \
82 ${datadir}/hal/fdi \
83 ${datadir}/hal/scripts"
diff --git a/meta/recipes-support/hal/hal/configure_fix.patch b/meta/recipes-support/hal/hal/configure_fix.patch
deleted file mode 100644
index 076e784e0b..0000000000
--- a/meta/recipes-support/hal/hal/configure_fix.patch
+++ /dev/null
@@ -1,62 +0,0 @@
1Upstream-Status: Inappropriate [configuration]
2
3The AC_LANG sections upset libtool 2.2.2, as do .cpp files without a call
4to AC_PROG_CXX. Easiest solution is to patch this out for now.
5
6RP - 14/4/08
7
8Index: hal-0.5.9.1/configure.in
9===================================================================
10--- hal-0.5.9.1.orig/configure.in 2008-04-14 22:41:49.000000000 +0100
11+++ hal-0.5.9.1/configure.in 2008-04-14 22:43:13.000000000 +0100
12@@ -345,32 +345,8 @@
13 fi
14
15 dnl Check for libsmbios
16-AC_LANG_PUSH([C++])
17-AC_CHECK_LIB(smbios, SMBIOSFreeMemory, LIB_SMBIOS=yes , LIB_SMBIOS=no )
18-AC_LANG_POP([C++])
19-if test "$LIB_SMBIOS" = "yes" ; then
20- AC_MSG_CHECKING([for libsmbios >= 0.13.4])
21- AC_TRY_RUN(
22- #include <smbios/version.h>
23- int main ()
24- {
25- int major ;
26- int minor ;
27- int micro ;
28-
29- if ( sscanf( LIBSMBIOS_RELEASE_VERSION , "%d.%d.%d", &major, &minor, &micro ) == 3 ) {
30- if ((major == 0 && minor == 13 && micro >= 4) ||
31- (major >= 0 && minor > 13)) {
32- return 0;
33- }
34- }
35- return 1;
36- } , [USE_SMBIOS=yes; AC_MSG_RESULT(yes); AM_CONDITIONAL(HAVE_SMBIOS,true)],
37- [USE_SMBIOS=no; AC_MSG_RESULT(failed); AM_CONDITIONAL(HAVE_SMBIOS,false)])
38-else
39- USE_SMBIOS=no
40- AM_CONDITIONAL(HAVE_SMBIOS,false)
41-fi
42+USE_SMBIOS=no
43+AM_CONDITIONAL(HAVE_SMBIOS,false)
44
45 AC_ARG_WITH([libpci],
46 [AS_HELP_STRING([--without-libpci],
47Index: hal-0.5.9.1/hald/linux/addons/Makefile.am
48===================================================================
49--- hal-0.5.9.1.orig/hald/linux/addons/Makefile.am 2008-04-14 22:45:18.000000000 +0100
50+++ hal-0.5.9.1/hald/linux/addons/Makefile.am 2008-04-14 22:46:05.000000000 +0100
51@@ -60,11 +60,6 @@
52 hald_addon_usb_csr_LDADD = $(top_builddir)/libhal/libhal.la -lusb @GLIB_LIBS@
53 endif
54
55-if BUILD_DELL
56-libexec_PROGRAMS += hald-addon-dell-backlight
57-hald_addon_dell_backlight_SOURCES = addon-dell-backlight.cpp ../../logger.c
58-hald_addon_dell_backlight_LDADD = $(top_builddir)/libhal/libhal.la -lsmbios @GLIB_LIBS@
59-endif
60 endif
61
62 hald_addon_acpi_SOURCES = addon-acpi.c ../../logger.c ../../util_helper.c
diff --git a/meta/recipes-support/hal/hal_0.5.14.bb b/meta/recipes-support/hal/hal_0.5.14.bb
deleted file mode 100644
index 858e68519f..0000000000
--- a/meta/recipes-support/hal/hal_0.5.14.bb
+++ /dev/null
@@ -1,19 +0,0 @@
1require hal.inc
2
3PR = "r5"
4
5EXTRA_OECONF += "--with-linux-input-header=${STAGING_INCDIR}/linux/input.h"
6EXTRA_OEMAKE += "-e 'udevrulesdir=$(sysconfdir)/udev/rules.d'"
7
8PACKAGES =+ "libhal libhal-storage"
9
10FILES_libhal = "${libdir}/libhal.so.*"
11FILES_libhal-storage = "${libdir}/libhal-storage.so.*"
12
13FILES_${PN} =+ "${bindir}/hal-disable-polling \
14 ${bindir}/hal-setup-keymap"
15
16SRC_URI[md5sum] = "e9163df591a6f38f59fdbfe33e73bf20"
17SRC_URI[sha256sum] = "323aacfa52f12def3b0d1e76456e34f027c345adc344aad19a8cc0c59c1a8d02"
18
19SRC_URI += "file://probe-video4linux.c.patch"
diff --git a/meta/recipes-support/hal/hal_git.bb b/meta/recipes-support/hal/hal_git.bb
deleted file mode 100644
index e4ec09ba18..0000000000
--- a/meta/recipes-support/hal/hal_git.bb
+++ /dev/null
@@ -1,12 +0,0 @@
1require hal.inc
2
3PV = "0.5.9.1+git${SRCDATE}"
4PR = "r9"
5
6SRC_URI = "git://anongit.freedesktop.org/hal/;protocol=git \
7 file://20hal \
8 file://99_hal"
9
10S = "${WORKDIR}/git"
11
12DEFAULT_PREFERENCE = "-1"