Package Details: libuser 0.64-1

Git Clone URL: https://aur.archlinux.org/libuser.git (read-only, click to copy)
Package Base: libuser
Description: A standardized interface for manipulating and administering user and group accounts.
Upstream URL: https://pagure.io/libuser/
Licenses: LGPL
Submitter: Barthalion
Maintainer: cyqsimon
Last Packager: cyqsimon
Votes: 13
Popularity: 0.000000
First Submitted: 2018-01-07 12:44 (UTC)
Last Updated: 2023-10-19 03:56 (UTC)

Latest Comments

1 2 3 Next › Last »

tormod commented on 2022-03-22 13:10 (UTC)

Just bookmarking this which also can be needed in a "real" solution: https://aur.archlinux.org/cgit/aur.git/tree/gtk-doc.patch?h=webkitgtk

tormod commented on 2022-03-22 12:34 (UTC)

It looks like autoconf/gtk-doc is broken, see https://github.com/spack/spack/issues/23964 and https://savannah.gnu.org/support/?110503

Currently our --disable-gtk-doc option is not recognized by configure. I guess the --disable-gtk-doc option is not supported unless autoconf was bootstrapped with gtk-doc installed... So ideally upstream would make release tarballs by running autoconf while having themselves gtk-doc installed, then the release tarball can be built without gtk-doc installed by using configure --disable-gtk-doc.

cyqsimon commented on 2022-03-22 09:38 (UTC)

@tormod

Thanks a lot! Applied your patch and fixed.

tormod commented on 2022-03-22 07:48 (UTC)

--disable-gtk-doc needs to be fixed properly, but here's how I get it to build:

diff --git a/PKGBUILD b/PKGBUILD
index d52781a..01b380e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,15 +8,16 @@ arch=('x86_64')
 license=('LGPL')
 url='https://pagure.io/libuser/'
 depends=('glib2' 'pam' 'popt' 'python')
-makedepends=('autoconf' 'automake' 'gettext' 'gtk-doc' 'libtool')
+makedepends=('autoconf' 'automake' 'gettext' 'libtool')
 backup=('etc/libuser.conf')
 source=("https://releases.pagure.org/libuser/libuser-${pkgver}.tar.xz")
 sha256sums=('8dc377255452a68e82c4837ba22c3ee4ae3658971bf0f2ef67ed0b77fc497f91')

 prepare() {
   cd ${pkgname}-${pkgver}
-  # TODO: we should skip gtk docs but it's not obvious how it should be done
-  #sed -i 's/gtkdocize/# gtkdocize/' autogen.sh
+  sed -i '/^gtkdocize/s/^/#/' autogen.sh
+  sed -i '/^SUBDIRS/d' docs/Makefile.am
+  sed -i '/^AC_CONFIG_FILES/s^docs/reference/Makefile^^' configure.ac
 }

 build() {
@@ -26,7 +27,7 @@ build() {
     --prefix=/usr \
     --sysconfdir=/etc \
     --sbindir=/usr/bin \
-    --disable-gtk-doc-html \
+    --disable-gtk-doc \
     --disable-rpath
   sed -i 's/SUBDIRS = po docs/SUBDIRS = po/' Makefile
   make

harappan commented on 2022-03-21 15:08 (UTC)

built today without error.

cyqsimon commented on 2022-03-21 03:54 (UTC) (edited on 2022-03-21 03:58 (UTC) by cyqsimon)

Okay, should be fixed now (for some definition of "fixed").

Ideally it should not be necessary to build GTK docs, but it's not obvious how I can disable it fully and properly after a lot of wasted time. For now I have declared makedepends=('gtk-doc') so at least everything builds.

If you have managed to build the newest version (0.6.3) with GTK docs disabled, please comment and tell me how. Thank you.

jghodd commented on 2022-03-20 21:17 (UTC) (edited on 2022-03-20 21:21 (UTC) by jghodd)

Still getting a build error.


automake: error: cannot open < docs/reference/gtk-doc.make: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...

cyqsimon commented on 2022-03-20 16:04 (UTC) (edited on 2022-03-20 16:13 (UTC) by cyqsimon)

@agamemnon Ah okay GTK docs generation was not disabled fully. I added a patch for that. Should be fixed now.

Edit: sry I screwed up. Give me a moment.

cyqsimon commented on 2022-03-20 15:58 (UTC)

@piernov Ah sorry I wrongly assumed you are MIA. That's okay I'll handle libuser-ldap too. It's not much work anyways.

harappan commented on 2022-03-20 15:35 (UTC)

Getting this error:

==> Starting build()...
+ mkdir -p admin m4
+ gtkdocize --docdir docs/reference
./autogen.sh: line 4: gtkdocize: command not found
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'libuser-0.63-1': 
error: packages failed to build: libuser-0.63-1