This ebuild is for the s2ram program. From the s2ram web page (http://en.opensuse.org/S2ram): "The goal of the s2ram binary is to get suspend to RAM working out of the box on as many machines as possible." Support for s2ram is integrated into the powersave daemon, for which an ebuild is presently pending inclusion into Portage (see bug #122278).
Created attachment 83684 [details] sys-power/s2ram-cvs/s2ram-cvs-0.ebuild
SourceForge CVS server URL notation have changed. Old: :pserver:anonymous@cvs.sourceforge.net:/cvsroot/suspend New: :pserver:anonymous@suspend.cvs.sourceforge.net:/cvsroot/suspend After patching the ebuild above the emerge works.
Now in sunrise overlay (0.5, not this live cvs version) http://gentoo-sunrise.org/svn/reviewed/sys-power/s2ram
sunrise-ebuild fails with newer pciutils: make[1]: Leaving directory `/var/tmp/portage/sys-power/s2ram-0.5/work/suspend-0.5/vbetool/x86em u' x86_64-pc-linux-gnu-gcc -O3 -ffast-math -fomit-frame-pointer -march=opteron -pipe -O2 -Wall -g s2ram.c vt.o vbetool/thunk.o vbetool/x86-common.o vbetool/vbetool.o vbetool/x86emu/libx86emu.a radeontool.o dmidecode.o -lpci -o s2ram /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_lo ad_name_list': : undefined reference to `gzopen' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_lo ad_name_list': : undefined reference to `gzgets' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_lo ad_name_list': : undefined reference to `gzclose' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_lo ad_name_list': : undefined reference to `gzclose' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_lo ad_name_list': : undefined reference to `gzeof' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_lo ad_name_list': : undefined reference to `gzopen' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_load_name_list': : undefined reference to `gzerror' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libpci.a(names.o): In function `pci_load_name_list': : undefined reference to `gzclose' collect2: ld returned 1 exit status make: *** [s2ram] Error 1 !!! ERROR: sys-power/s2ram-0.5 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 2486: Called src_compile s2ram-0.5.ebuild, line 42: Called die I have the following version installed: [I] sys-apps/pciutils Available versions: 2.2.3-r2 (~)2.2.4 (~)2.2.4-r2 Installed versions: 2.2.4-r2(18:35:48 02/15/07)(zlib) Using the following commandline, I got it do compile on ~amd64: USE=-zlib emerge -1 pciutils s2ram
(In reply to comment #4) > sunrise-ebuild fails with newer pciutils: > Using the following commandline, I got it do compile on ~amd64: > USE=-zlib emerge -1 pciutils s2ram Yeah, use this... I have no intent to debug a retarded pciutils flag; if you have a patch, attach it here and I'll add it.
I just checked out the 0.5 ebuild, and have a few things to report. First, as of kernel 2.6.23 CONFIG_SOFTWARE_SUSPEND has been changed to CONFIG_HIBERNATION. Also, I bumped the ebuild to 0.7 and everything seems to work, except there needs to be an added DEPEND on dev-libs/libx86.
suspend-0.9_pre20070917 (17 Sep 2007) 17 Sep 2007; Alon Bar-Lev <alonbl@gentoo.org> +metadata.xml, +suspend-0.9_pre20070917.ebuild: Initial add, bug#156431 *** This bug has been marked as a duplicate of bug 156431 ***