Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197943 - sys-power/acpid-1.0.6-r1 still requires deprecated /proc/acpi/event
Summary: sys-power/acpid-1.0.6-r1 still requires deprecated /proc/acpi/event
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-03 11:00 UTC by Pacho Ramos
Modified: 2009-05-03 09:27 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
acpid-1.0.8.ebuild with Ted Felix's netlink-patch (acpid-1.0.8.ebuild-netlink.tar.bz2,19.27 KB, application/octet-stream)
2008-12-14 19:08 UTC, larstobi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2007-11-03 11:00:54 UTC
After compiling kernel-2.6.23 and after removing /proc/acpi/event creation option because, reading help, seems that it's deprecated, acpid cannot be run:

acpid: can't open /proc/acpi/event: No such file or directory

I am not sure if this should be also send to upstream...

Thanks

Portage 2.1.3.16 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Sat, 03 Nov 2007 09:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe -msse3"
DISTDIR="/usr/distfiles"
FEATURES="autoaddcvs ccache collision-protect cvs distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LINGUAS="es en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/musicbrainz /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 arts asf audiofile avahi bash-completion beagle bitmap-fonts bzip2 bzlib cairo caps cdb cdda cddb cdparanoia cdr cli cpdflib cpudetection cracklib cross crypt cups curl daap dbus dga divx4linux dlloader dri dts dvb dvd dvdr dvdread eds encode erandom escreen esd evo evolution exif fam fbcon ffmpeg flac foomaticdb fortran ftp galago gb gcj ggi gif gimp gimpprint glitz glut glx gnome gnome-print gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal hddtemp iconv idn imagemagick imlib isdnlog ithreads jabber java jpeg kde kdeenablefinal kdehiddenvisibility latex lcms libnotify lm_sensors logrotate mad madwifi midi mikmod mime mmx mmxext mng mono motif mp3 mpeg mpi mplayer mudflap musepack musicbrainz nas nautilus ncurses nethack network nls nocardbus nptl nptlonly nvidia ogg oggvorbis openal opengl openmp pam pcre pdf perl pic plotutils png posix ppds pppd python qt3 qt4 quicktime readline reflection rtc ruby scanner sdl seamonkey session slang slp sockets spell spl sse sse2 sse3 ssl startup-notification svg sysvipc tcltk tcpd tetex theora threads tiff timidity tk totem trayicon truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd videos vim vorbis wma wmf xcomposite xine xml xml2 xorg xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 Matěj Laitl 2007-11-30 22:39:14 UTC
Hi!

This is a known problem, which is not distribution-specific - under these circumstances it is best to contact the upstream. acpid lives on https://sourceforge.net/projects/acpid/

Someone has already posted this issue to upstream and it could be tracked here: https://sourceforge.net/tracker/index.php?func=detail&aid=1809944&group_id=33140&atid=407341

You may also use sourceforge's monitor feature to track the bug's status.
Comment 2 Steven 2008-07-27 16:09:28 UTC
Upstream seems very quiet to me (their last release is from June 2007)...
Comment 3 nietonfir 2008-11-15 11:39:11 UTC
Upstream seems to be working on this issue:
"Date: 2008-10-11 15:40
Sender: tedfelix
I'm going to start fixing this problem this week.  I've talked with Tim and
he's given me the go-ahead.  This has caused the power button and lid
switch to be broken in Ubuntu 8.04.1 and 8.10 beta even though
/proc/acpi/event is built into the kernel.  I've not tracked this down as I
figure it's kind of pointless to fix a deprecated interface.  Slackware
12.1 works fine.

I'll try to post weekly updates on the status.  Wish me luck.  I'm going
in....

Ted."

Status updates:
http://sourceforge.net/developer/diary.php?diary_user=2245441
Comment 4 larstobi 2008-12-14 19:08:05 UTC
Created attachment 175270 [details]
acpid-1.0.8.ebuild with Ted Felix's netlink-patch

Here is an ebuild for =sys-power/acpid-1.0.8 with Ted Felix's patch for Netlink and Input Layer support.

Ref.: http://sourceforge.net/tracker/index.php?func=detail&aid=2419210&group_id=33140&atid=407343
Comment 5 Johannes Dahl 2009-02-26 11:48:19 UTC
I'm using larstobi's ebuild on a x86 Gentoo box with mixed stable and testing packages and it works*. Is there any hope of this ebuild getting to Portage tree?

* With the minor caveat that it displays some messages on startup that don't go well together with the the nice and colourful "*starting blabla [OK]" init output.
Comment 6 larstobi 2009-02-26 12:08:06 UTC
(In reply to comment #5)
> * With the minor caveat that it displays some messages on startup that don't go
> well together with the the nice and colourful "*starting blabla [OK]" init
> output.

Is your blabla-message is this?
"acpid: can't open /proc/acpi/event: No such file or directory"

Did you put ACPID_OPTIONS="-n" in /etc/conf.d/acpid?
Comment 7 Johannes Dahl 2009-03-12 19:17:51 UTC
Sorry for the delay in response, I still have to learn to keep an eye on my inbox.

I do have ACPID_OPTIONS="-n" in /etc/conf.d/acpid (I haven't modified the file) and the messages I get from acpid on boot are these:
    acpid: starting up with netlink and the input layer
    acpid: 1 rule loaded
    acpid: waiting for events: event logging is off

So it's just cosmetics we're talking about, the way I see it.
Comment 8 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-03 09:27:36 UTC
+*acpid-1.0.10 (03 May 2009)
+
+  03 May 2009; Peter Alfredsen <loki_val@gentoo.org> +acpid-1.0.10.ebuild:
+  Bump, bug 246802. Thanks to Davide Pesavento <davidepesa@gmail.com>. Use
+  Ted Felix version of acpid that correctly handles using the netlink
+  interface instead of the deprecated /proc/acpi/event interface. Also fixes
+  bug 268079, CVE-2009-0798.
+