gentoo / musl

[MIRROR] musl development overlay
https://gitweb.gentoo.org/proj/musl.git
99 stars 59 forks source link

sys-apps/accountsservice does not compile #466

Open saltedcoffii opened 2 years ago

saltedcoffii commented 2 years ago

sys-apps/accountsservice does not compile on musl. I did get it to compile but it's a bit hacky. Here's what I did:

  1. enabled the keepwork feature
  2. built sys-apps/accountsservice (sudo emerge -atvD1 sys-apps/accountsservice) (it failed)
  3. ran sudo su -s /bin/bash - portage
  4. ran cd /var/tmp/portage/sys-apps/accountsservice-22.08.8/work/accountsservice-22.08.8/
  5. ran:
    for i in https://github.com/alpinelinux/aports/raw/master/community/accountsservice/musl-{wtmp,fgetspent_r}.patch; do
    curl -L $i | patch -Np1
    done
  6. exited the portage shell back to my user (UID 1000)
  7. ran sudo emerge -atvD1 sys-apps/accountsservice (it succeeded)
  8. disabled the keepwork feature

It would stand to reason that these patches from Alpine Linux could be included in the ebuild for sys-apps/accountsservice. Consider adding these patches? Thank you as always!