Package Details: uswsusp-git 0.r501.g668c5f7-7

Git Clone URL: https://aur.archlinux.org/uswsusp-git.git (read-only)
Package Base: uswsusp-git
Description: Userspace software suspend - git checkout
Upstream URL: http://suspend.sourceforge.net/
Licenses: GPL
Conflicts: uswsusp
Provides: uswsusp
Submitter: jackoneill
Maintainer: eworm
Last Packager: eworm
Votes: 146
Popularity: 1.695445
First Submitted: 2010-12-17 20:59
Last Updated: 2015-07-13 07:27

Dependencies (4)

Required by (0)

Sources (7)

Latest Comments

eworm commented on 2015-07-31 22:03

@Herodotus: This should be fixed with latest pkgrel 7. Just tried, compiles for me in a clean and up-to-date chroot.

Herodotus commented on 2015-07-31 21:56

Same problem as remussatala, here are the earlier errors:

/bin/sh ./libtool --tag=CC --mode=link gcc -DS2RAM -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Wl,-O1,--sort-common,--as-needed,-z,relro -o resume resume-resume.o libsuspend-common.a -llzo2 -lpthread
libtool: link: gcc -DS2RAM -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o resume resume-resume.o libsuspend-common.a -llzo2 -lpthread
resume-resume.o: In function `main':
resume.c:(.text.startup+0x2c8): undefined reference to `open_printk'
resume.c:(.text.startup+0x2cd): undefined reference to `get_kernel_console_loglevel'
resume.c:(.text.startup+0x2e6): undefined reference to `set_kernel_console_loglevel'
resume.c:(.text.startup+0x412): undefined reference to `set_kernel_console_loglevel'
resume.c:(.text.startup+0x41a): undefined reference to `close_printk'
resume.c:(.text.startup+0x468): undefined reference to `set_kernel_console_loglevel'
libsuspend-common.a(splash.o): In function `splash_prepare':
splash.c:(.text+0x57c): undefined reference to `bootsplash_progress'
collect2: error: ld returned 1 exit status
Makefile:809: recipe for target 'resume' failed
...

remussatala commented on 2015-07-13 07:02

collect2: error: ld returned 1 exit status
Makefile:809: recipe for target 'resume' failed
make[2]: *** [resume] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp-user/aur-uswsusp-git/src/suspend-utils'
Makefile:1006: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-user/aur-uswsusp-git/src/suspend-utils'
Makefile:636: recipe for target 'all' failed
make: *** [all] Error 2

firekage commented on 2015-01-24 14:47

It hangs when booting on uresume events during startup. I removed uresume hooks and i can boot my computer: linux 3.18.2.2 and nvidia 346.35 drivers.

eworm commented on 2014-01-15 07:36

WARNING: I uploaded a version that builds, but encrypt support is disabled. Check whether or not you need this before you use it!

eworm commented on 2014-01-15 07:35

WARNING: I uploaded a version the builds, but encrypt support is disabled. Check whether or not you need this before you use it!

eworm commented on 2014-01-15 06:48

Upstream has been notified. The lines I cited are from upstream mailing list.

r08 commented on 2014-01-15 03:19

What eworm said. We need to inform upstream of the changes in the gcry_ac api

eworm commented on 2014-01-14 05:40

This is broken for now... From the linux suspend mailing list:

> Deprecated gcry_ac* api was removed in recent 1.6 libgcrypt. Is anyone working
> on switching to supported API? According to libgcrypt docs that API was
> deprecated for very long time.

Looks like nobody is working on that.

kokoko3k commented on 2013-09-22 11:18

Is there a known reason because the uresume hook is not executed after the systemd hook (used in place of base and udev, i mean).

cmsigler commented on 2013-05-21 16:14

Note: If you have had problems resuming from hibernation because of MD5 checksum mismatch, even though the saved and calculated values are identical, please see my latest comment on the uswsusp-fbsplash AUR. HTH. Clemmitt

eworm commented on 2013-04-29 19:27

base-devel is expected to be installed if you build packages.

Raimar commented on 2013-04-29 19:15

Consider to add build-base to avoid build errors:
makedepends=('git' 'base-devel')

Anonymous comment on 2013-01-11 19:24

Cloning into '/tmp/yaourt-tmp-enzo/aur-uswsusp-git/src/suspend-utils-build'...
done.
patching file wlcsv2c.pl
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
configure.ac:12: error: 'AM_CONFIG_HEADER': this macro is obsolete.
You should use the 'AC_CONFIG_HEADERS' macro instead.
/usr/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from...
configure.ac:12: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

eworm commented on 2012-06-23 08:13

Unflagging as libtool belongs to base-devel.

Maxr commented on 2012-06-23 06:41

libtool is part of base-devel. No need to add packages of that group to makedeps. See https://wiki.archlinux.org/index.php/PKGBUILD#makedepends

ultraviolet commented on 2012-06-23 01:18

libtool needs to be added to makedepends. Flagging out-of-date until this is fixed.

antiuser commented on 2012-05-10 19:01

@eworm:
thx, solved :)

eworm commented on 2012-05-10 17:57

I think you miss libtool.. Please install 'base-devel'.

antiuser commented on 2012-05-10 17:36

Cloning into '/var/abs/local/yaourtbuild/uswsusp-git/src/suspend-utils-build'...
done.
patching file wlcsv2c.pl
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:123: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

antiuser commented on 2012-05-10 17:32

Cloning into '/var/abs/local/yaourtbuild/uswsusp-git/src/suspend-utils-build'...
done.
patching file wlcsv2c.pl
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:123: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

Anonymous comment on 2012-05-03 17:18

I fixed the PKGBUILD.
I'm orphaning this pkg again, since I don't have experience in maintaining pkgs.

jackoneill commented on 2012-05-02 14:21

Hurr. You do that. I don't feel like it.

Orphaned.

eworm commented on 2012-05-02 09:31

Can you install initramfs files to /usr/lib/initcpio/, please? mkinitcpio directories moved to /usr/.

Anonymous comment on 2012-04-24 11:57

I can confirm that Zveroy's fix works!

Zveroy commented on 2012-04-24 11:22

Just add `mkdir "$pkgdir/etc"` before `make DESTDIR="$pkgdir" install` and it will build.

jakob commented on 2012-04-21 13:56

Indeed, setting it to `make DESTDIR="$pkgdir" install` yields the same error:
"/usr/bin/install: reguläre Datei „/home/jakob/tmp/pkgs/build/uswsusp-git/pkg/etc/suspend.conf“ kann nicht angelegt werden: Datei oder Verzeichnis nicht gefunden"
file or directory not found

jackoneill commented on 2012-04-18 20:19

Probably because of the slash in `make DESTDIR="$pkgdir/" install`. I doubt it makes any difference.

ethail commented on 2012-04-18 20:16

/usr/bin/install -c -m 644 ./conf/suspend.conf /dev/shm/uswsusp-git/pkg//etc/suspend.conf.new;

Focus on the pkg//etc part, why double / ?

http://pastie.org/3812734

ethail commented on 2012-04-18 20:14

/usr/bin/install -c -m 644 ./conf/suspend.conf /dev/shm/uswsusp-git/pkg//etc/suspend.conf.new;

Focus on the pkg//etc part, why double / ?

Anonymous comment on 2012-04-17 19:47

I'm having similar problems, basically pkg/etc is never created so it failed to copy the suspend.conf file. I had a quick dig around in the src and it appears that maybe install-sysconfDATA isn't being called correctly, or at least that's not correctly creating pkg/etc (it's a dependency on install-data-hook).

Changing PKGBUILD to have

make DESTDIR="$pkgdir/" installdirs-am install

(note installdirs-am) appears to work as a quick workaround.

jackoneill commented on 2012-04-15 10:06

Commenté par: shadowed87 sur Sun, 15 Apr 2012 08:57:58 +0000
> sorry mate, it was to point out the build failure :)

That's not what the out-of-date flag is for.

shadowed87 commented on 2012-04-15 08:57

sorry mate, it was to point out the build failure :)

jackoneill commented on 2012-04-14 11:15

shadowed87: I would appreciate it if you explained why you think this package is out of date. In the meantime, I'll unflag it.

As for the build failures, Works For Me™.

Anonymous comment on 2012-04-12 19:42

I installed it by manually cloning the git repository then doing the steps in the PKGBUILD
and at some point I applied the no-deprecated-switch.patch (but at a later point than in the PKGBUILD)
this way I got it compiled and installed correctly.

srl commented on 2012-04-12 19:38

I'm having th3voic3's problem ("no such file or directory" because .../etc isn't being created) as well.

parky6 commented on 2012-04-10 15:50

same problem

taylorchu commented on 2012-04-09 03:16

this does not build.
reason: install cannot find resume.conf

tocer commented on 2012-04-09 02:00

@jackoneill:

It works for me. the solution is remove compile option 'upx' in the makepkg.conf. Thanks anyway.

jackoneill commented on 2012-04-07 17:12

By the way, tocer, did you ever fix your problem?

I ran `mkinitcpio -vp linux` and got this:
[...]
-> Parsing hook: [uresume]
adding file: /usr/lib/suspend/resume
adding symlink: /usr/lib/liblzo2.so.2 -> /usr/lib/liblzo2.so.2.0.0
adding file: /usr/lib/liblzo2.so.2.0.0
adding symlink: /lib/libgcrypt.so.11 -> /lib/libgcrypt.so.11.7.0
adding file: /lib/libgcrypt.so.11.7.0
adding symlink: /lib/libgpg-error.so.0 -> /lib/libgpg-error.so.0.8.0
adding file: /lib/libgpg-error.so.0.8.0
adding file: /etc/suspend.conf
adding file: /hooks/uresume
-> Parsing hook: [filesystems]
[...]

I think mkinitcpio is supposed to include every library that /usr/lib/suspend/resume links to. Try `readelf -d /usr/lib/suspend/resume`. The relevant part:
0x0000000000000001 (NEEDED) Shared library: [liblzo2.so.2]
0x0000000000000001 (NEEDED) Shared library: [libgcrypt.so.11]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]

jackoneill commented on 2012-04-07 16:59

Commenté par: th3voic3 sur Sat, 07 Apr 2012 13:47:35 +0000
> Building this always fails with:
>
> make[3]: Entering directory `/home/th3voic3/AUR/uswsusp-git/src/uswsusp-build'
> if [ -f /home/th3voic3/AUR/uswsusp-git/pkg//etc/suspend.conf ]; then \
> /usr/bin/install -c -m 644 ./conf/suspend.conf /home/th3voic3/AUR/uswsusp-git/pkg//etc/suspend.conf.new; \
> else \
> /usr/bin/install -c -m 644 ./conf/suspend.conf /home/th3voic3/AUR/uswsusp-git/pkg//etc/suspend.conf; \
> fi
> /usr/bin/install: cannot create regular file ‘/home/th3voic3/AUR/uswsusp-git/pkg//etc/suspend.conf’: No such file or directory

==> Finished making: uswsusp-git 20120407-1 (Sat Apr 7 19:55:19 EEST 2012)
In other words, I can't reproduce it.

Anonymous comment on 2012-04-07 13:47

Building this always fails with:

make[3]: Entering directory `/home/th3voic3/AUR/uswsusp-git/src/uswsusp-build'
if [ -f /home/th3voic3/AUR/uswsusp-git/pkg//etc/suspend.conf ]; then \
/usr/bin/install -c -m 644 ./conf/suspend.conf /home/th3voic3/AUR/uswsusp-git/pkg//etc/suspend.conf.new; \
else \
/usr/bin/install -c -m 644 ./conf/suspend.conf /home/th3voic3/AUR/uswsusp-git/pkg//etc/suspend.conf; \
fi
/usr/bin/install: cannot create regular file ‘/home/th3voic3/AUR/uswsusp-git/pkg//etc/suspend.conf’: No such file or directory
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/home/th3voic3/AUR/uswsusp-git/src/uswsusp-build'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/home/th3voic3/AUR/uswsusp-git/src/uswsusp-build'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/th3voic3/AUR/uswsusp-git/src/uswsusp-build'
make: *** [install-recursive] Error 1

tocer commented on 2012-03-27 02:40

@Runiq: Yes, I rebuild kenel many times.

@jackoneill: I inspired from old bug(https://bugs.archlinux.org/task/17793), and found that liblzso2.so.2 don't included when build kernel.

rebuild kenel detail: http://paste.pocoo.org/show/571838/
my mkinitcpio.conf http://paste.pocoo.org/show/571839/
my suspend.conf http://paste.pocoo.org/show/571840/

btw: pacman -Qk lzo2 => lzo2: 34 total files, 0 missing files

jackoneill commented on 2012-03-22 22:00

Well, check that you have liblzo2.so.2: `pacman -Qk lzo2`.

To be honest, I haven't done much suspending lately, but it did work after my most recent -Syu, on the 16th (uswsusp-git 20110822-1).

Runiq commented on 2012-03-22 12:21

@tocer: Does rebuilding the package help?

tocer commented on 2012-03-22 09:31

resume fail:

/usr/lib/suspend/resume: error while loading shared libraries: liblzo2.so.2 cannot open shared object file: No such file or directory

I make sure I have installed lzo2-2.06-1 package

jackoneill commented on 2011-07-11 15:08

Updated for new mkinitcpio.

Anonymous comment on 2011-07-11 09:57

mkinitcpio has hit [core], when you have time don't forget to change install() to build() in uresume-install. Thanks!

jackoneill commented on 2011-07-09 08:27

Thanks, falconindy.

Updated.

falconindy commented on 2011-07-09 01:14

perl-switch doesn't need to be a depend, only a makedepend. But don't do that either. Use this patch:

http://sprunge.us/cIeT

jackoneill commented on 2011-07-05 15:01

Perl-switch added to depends. Let me know if it works without it, once compiled (in other words, if perl-switch is just a makedepend).

Once mkinitcpio 0.7.x hits [core], I will make that change to uresume-install.

On another note, who would like to maintain this package?

Maxr commented on 2011-07-01 06:01

perl-switch is needed - compile fails without.

eworm commented on 2011-07-01 05:30

From mkinitcpio 0.7 announcment on arch-general:

We now have a build() function instead of an install() function - the
latter was an unfortunate conflict with the install utility. The hooks
in the repository have been adjusted, but backward-compatibility code is
in place (a deprecation warning will be printed). All these packages
have conflicts=(mkinitcpio<0.7).

Would be great if you could change that when mkinitcpio 0.7 is moved from [testing] to [core].

jackoneill commented on 2011-04-25 07:01

Here's hoping someone turned on notifications on this package... :)

How fast is this for everyone else? I get about 24 MiB/s write speed and 30-something MiB/s read speed (real, not compressed). It seems rather slow, doesn't it?