Package Details: pommed-light 1.52lw-1

Git Clone URL: https://aur.archlinux.org/pommed-light.git (read-only, click to copy)
Package Base: pommed-light
Description: Handles the hotkeys of Apple MacBook (Pro) laptops - lightweight edition
Upstream URL: https://github.com/bytbox/pommed-light
Licenses: GPL2
Conflicts: pommed
Submitter: srl
Maintainer: srl
Last Packager: srl
Votes: 15
Popularity: 0.000000
First Submitted: 2012-04-14 09:52 (UTC)
Last Updated: 2023-05-04 18:02 (UTC)

Dependencies (6)

Required by (0)

Sources (2)

Latest Comments

1 2 3 4 Next › Last »

es20490446e commented on 2024-11-05 01:31 (UTC)

sha256sum is invalid.

srl commented on 2023-05-04 18:05 (UTC)

Sorry for the delay, everyone. At some point I put off fixing this package for a few days, and then it slipped off my TODO list. For two years, apparently. Sorry.

I've done a new version upstream, and updated this package here. Please let me know if it's working.

I don't have a mac any more (haven't for a decade), and don't have the ability to do meaningful maintenance here or upstream. At this point I'm semi-blindly merging any PRs I get. If anyone has a mac and would like to take over maintenance, please let met know!

(And thanks to Mettacrawer for bumping this.)

Mettacrawer commented on 2023-05-04 02:01 (UTC) (edited on 2023-05-04 02:03 (UTC) by Mettacrawer)

I modified the PKGBUILD so that it is pommed-light-git.

$ git diff
diff --git a/PKGBUILD b/PKGBUILD
index d7630c5..d1a2a8d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,25 +6,31 @@
 # Contributor: dpevp <daniel.plaza.espi@gmail.com>
 # Contributor: jordi Cerdan (jcerdan) <jcerdan@tecob.com>

-pkgname=pommed-light
-pkgver=1.51lw
-pkgrel=2
+pkgname=pommed-light-git
+pkgver=v1.51lw.r2.g2572be6
+pkgrel=1
 pkgdesc="Handles the hotkeys of Apple MacBook (Pro) laptops - lightweight edition"
 arch=('i686' 'x86_64')
 url="https://github.com/bytbox/pommed-light"
 license=('GPL2')
 install=$pkgname.install
-makedepends=('pkgconfig')
+makedepends=('git' 'pkgconfig')
 depends=('alsa-lib' 'pciutils' 'confuse' 'audiofile')
 conflicts=('pommed')
 optdepends=('eject: disc ejection support')
-source=(https://github.com/bytbox/${pkgname}/archive/v${pkgver}.tar.gz pommed.service)
-dfname="${pkgname}-${pkgver}"
-sha256sums=('18b18a2a1b557d31c871059464123435b752615880e0fad085212f01d7099187'
+source=('git+https://github.com/bytbox/pommed-light.git' pommed.service)
+sha256sums=('SKIP'
             '22cc70a00e995d3f42b08b2ac5c44f7acadeaa5b8bd287863d3e51b115a1151e')

+dfname=pommed-light
+
+pkgver() {
+  cd $dfname
+  git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
 build() {
-  cd ${srcdir}/${dfname}
+  cd $dfname
   make pommed
 }

I'm not pleased with this compile warning that is in the upstream repo:

evdev.c:294:39: warning: the comparison will always evaluate as ‘false’ for the address of ‘name’ will never be NULL [-Waddress]
  294 |       if ((ie->len == 0) || (ie->name == NULL))
      |                                       ^~

this

char name __flexarr 

is basically this

char name[]

in that case ie->name will always have a non-NULL value.

Mettacrawer commented on 2023-05-04 00:27 (UTC)

Upstream applied a patch but never created a release tarball with that patch. What might work is to create a PKGBUILD that uses git, i.e. a pommed-light-git AUR package.

brentward commented on 2021-02-11 07:00 (UTC)

@tyjak, I had the same error. I was able to resolve it by manually applying a patch referenced here which was to resolve the same error: https://bugs.gentoo.org/708514. This is the patch: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82d9607922cc4d6c00dfa2a83060828a00b99599

Essentially I just changed offending structs to external and I was able to compile the package. From there I just manually followed the install steps in the PKGBUILD.

I will submit my changes to the source. Hopefully we can get it merged and get the package installing again. In the mean time you can pull the up source repo and make the changes to the two files

tyjak commented on 2020-07-26 08:02 (UTC) (edited on 2020-07-26 08:02 (UTC) by tyjak)

Can't install on my macbook air I've got a an error on compilation :

gcc -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  pommed.o cd_eject.o evdev.o conffile.o audio.o evloop.o power.o beep.o video.o sysfs_backlight.o mactel/x1600_backlight.o mactel/gma950_backlight.o mactel/nv8600mgt_backlight.o mactel/kbd_backlight.o mactel/acpi.o  -pthread -lrt  -lasound  -laudiofile  -lconfuse  -lpci  -lz  -o pommed
/usr/bin/ld : mactel/x1600_backlight.o:(.bss+0x0) : définitions multiples de « lcd_bck_info »; sysfs_backlight.o:(.bss+0x0) : défini pour la première fois ici
/usr/bin/ld : mactel/nv8600mgt_backlight.o:(.bss+0x0) : définitions multiples de « lcd_bck_info »; sysfs_backlight.o:(.bss+0x0) : défini pour la première fois ici
collect2: erreur: ld a retourné le statut de sortie 1
make[1]: *** [<commande interne> : pommed] Erreur 1
make[1] : on quitte le répertoire « /home/david/.cache/yay/pommed-light/src/pommed-light-1.51lw/pommed »
make: *** [Makefile:8 : pommed] Erreur 2
==> ERREUR : Une erreur s’est produite dans build().
    Abandon…
erreur lors de la construction : %!s(func() string=0x55c73a31bbb0)

yakshaver commented on 2017-10-20 04:31 (UTC)

This still isn't working for me, so I ended up writing this: https://github.com/IvanMalison/dotfiles/blob/master/dotfiles/lib/bin/macbook_brightness.py It doesn't take care of handling keys, so you'll have to bind it yourself.

yakshaver commented on 2017-10-16 10:10 (UTC)

This at least got pommed to run for me: It seems that the issue is that the new version of confuse does not include libconfuse.so.1 sudo ln -s /usr/lib/libconfuse.so /usr/lib/libconfuse.so.1

yakshaver commented on 2017-10-16 09:46 (UTC)

@glowck The fix you mentuioned didn't see to work for me.

joshirio commented on 2017-08-20 08:07 (UTC) (edited on 2017-08-20 08:07 (UTC) by joshirio)

After recent updates it stopped working. If you get the following error on "systemctl status pommed.service": "/usr/bin/pommed: error while loading shared libraries: libconfuse.so.1: cannot open shared object" then just rebuild and install pommed-light again and it will work.