Package Details: uswsusp-git 1.0-9

Git Clone URL: https://aur.archlinux.org/uswsusp-git.git (read-only, click to copy)
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: iFreilicht
Last Packager: iFreilicht
Votes: 161
Popularity: 0.014628
First Submitted: 2010-12-17 20:59
Last Updated: 2021-03-31 14:40

Latest Comments

1 2 3 4 5 6 ... Next › Last »

vitor_hideyoshi commented on 2021-03-31 17:21

Now the version is 1.0-9 and everything is working flawlessly, thanks a lot for the quick response and congratulation the maintainership of the package @iFreilicht!

iFreilicht commented on 2021-03-31 14:40

@vitor_hideyoshi I updated the package once more, can you check whether paru is "updating" it properly now?

vitor_hideyoshi commented on 2021-03-31 14:29

Found what you want @iFreilicht. Just remove this block of code from the PKGBUILD and you can set your version number to 1.0:

pkgver() {
    cd suspend-utils/

    if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
        echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
    else
        echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
    fi
}

vitor_hideyoshi commented on 2021-03-31 13:32

@iFreilicht no it doesn't get solved just by reinstalling uswsusp-git, but you last commit did fix the bug, thanks a lot for that. If i figure out how to maintain the version name to 1.0 format instead of the commit release it post a comment here.

iFreilicht commented on 2021-03-31 13:16

Wouldn't this be fixed if you just re-installed uswsusp-git? I'm not sure how to properly fix this. For now, I reverted the version number change, but I'd like to have the version indeed be 1.0, which would be less confusing.

Can you confirm the revert fixed your issue?

vitor_hideyoshi commented on 2021-03-30 02:16

Since the last update paru has been trying to upgrade uswsusp-git from (0.r501.g668c5f7-1 => 1.0-8), and by this entering in a loop because 1.0-8 and 0.r501.g668c5f7-1 are the same release. I think that this is a problem in the versioning name of the git commit and the release version. To prevent my AUR helper from updating the software to the same version as if was new i had to add uswsusp-git to my pacman ignorelist.

iFreilicht commented on 2021-03-29 12:55

Build is now fixed for gcc >= 10.

eworm commented on 2021-03-29 12:48

Go and get it, have not used it in a long time.

koraynilay commented on 2020-09-01 08:38

CFLAGS="$CFLAGS -fcommon" should be added before ./configure otherwise the package won't compile with gcc >= 10.

scrouthtv commented on 2020-07-15 20:42

Doesn't work with gcc >= 10: /usr/bin/ld: libsuspend-common.a(dmidecode.o):(.bss+0x4): multiple definition of fb_nosuspend'; s2ram-main.o:(.bss+0x4): first defined here /usr/bin/ld: libsuspend-common.a(dmidecode.o):(.bss+0x8): multiple definition offorce'; s2ram-main.o:(.bss+0x8): first defined here /usr/bin/ld: libsuspend-common.a(dmidecode.o):(.bss+0xc): multiple definition of `flags'; s2ram-main.o:(.bss+0xc): first defined here collect2: error: ld returned 1 exit status make[2]: [Makefile:835: s2ram] Error 1 make[2]: Leaving directory '/home/me/.cache/yay/uswsusp-git/src/suspend-utils' make[1]: [Makefile:1025: all-recursive] Error 1 make[1]: Leaving directory '/home/me/.cache/yay/uswsusp-git/src/suspend-utils' make: *** [Makefile:649: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... error making: %!s(func() string=0x55d5156b4a60)

Since gcc 10, a symbol defined twice now results in an error not a warning and thus cancelling the compilation: "A common mistake in C is omitting extern when declaring a global variable in a header file. GCC 10 defaults to -fno-common, which means a linker error will now be reported."

This problem has to either be fixed on uswsusp's side or by adding -fcommon to CFLAGS: https://bbs.archlinux.org/viewtopic.php?id=255727