You are not logged in.
HI all,
Greetings from me! I try to install systemtap package:
$ makepkg -si
......
groupadd: PAM: Authentication service cannot retrieve authentication info
make[5]: *** [Makefile:845: install-exec-hook] Error 2
make[5]: Leaving directory '/home/nan/systemtap/src/systemtap-4.0/stapbpf'
make[4]: *** [Makefile:779: install-exec-am] Error 2
make[4]: Leaving directory '/home/nan/systemtap/src/systemtap-4.0/stapbpf'
make[3]: *** [Makefile:722: install-am] Error 2
make[3]: Leaving directory '/home/nan/systemtap/src/systemtap-4.0/stapbpf'
make[2]: *** [Makefile:716: install] Error 2
make[2]: Leaving directory '/home/nan/systemtap/src/systemtap-4.0/stapbpf'
make[1]: *** [Makefile:2046: install-recursive] Error 1
make[1]: Leaving directory '/home/nan/systemtap/src/systemtap-4.0'
make: *** [Makefile:2292: install] Error 2
==> ERROR: A failure occurred in package().
Aborting...Previously, installation of packages from AUR always succeeded. This is my first time to meet "groupadd: PAM: Authentication service cannot retrieve authentication info".
Could anyone give some help? Thanks very much in advance!
Best Regards
Nan Xiao
Last edited by nanxiao (2019-06-01 10:27:04)
Offline
The systemtap package has not been updated to 4.1 which includes this commit for that issue [1]
The PKGBUILD then needs to be modified to set the ownership and mode of the executables.
[1] https://sourceware.org/git/?p=systemtap … ac8a33f18f
Edit:
Initial attempt at package update
update pkgver to 4.1
switch group creation to sysusers.d (stapuser gid 156 others dynamic) and remove the install file
fix ownship and permissions of staprun,stapbpf in package function (permissions 04110 breaks stripping of those binaries)
diff --git a/PKGBUILD b/PKGBUILD
index ce76710..a428db7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,10 +2,10 @@
# Contributor : Christian Rebischke <Chris.Rebischke@archlinux.org>
# Contributor : dront78 <dront78@gmail.com>
pkgname=systemtap
-pkgver=4.0
-pkgrel=2
+pkgver=4.1
+pkgrel=1
pkgdesc="provides infrastructure to simplify the gathering of information about the running system."
-url="http://sourceware.org/systemtap/"
+url="https://sourceware.org/systemtap/"
arch=('x86_64' 'i686')
license=('GPL')
depends=('elfutils' 'nss' 'python2' 'cpio' 'systemd')
@@ -13,15 +13,17 @@ makedepends=('python2-setuptools' 'xmlto')
optdepends=('sqlite3: for storing results in a database')
source=("${pkgname}-${pkgver}.tar.gz::https://sourceware.org/systemtap/ftp/releases/${pkgname}-${pkgver}.tar.gz"
"${pkgname}-${pkgver}.tar.gz.asc::https://sourceware.org/systemtap/ftp/releases/${pkgname}-${pkgver}.tar.gz.asc"
+ systemtap.sysusers
)
-sha512sums=('66b5ba1902ed974101429dce9fee849273d3dc64e862c057177d158c5f284cc93299819ee8ee49d4bd3b7ff47a3512b1c68b74cad374147ce67fa406c7518c79'
- 'SKIP')
-install='systemtap.install'
-validpgpkeys=('5D38116FA4D3A7CC77E378D37E83610126DCC2E8')
+sha512sums=('fbd606d9842ac63af6e607613a112b08d7593da74ad0398716cdc46f74a977a8e6b9fae92e1f63779ccfc94cffa25f29dee2ae44f67ecc4cedae630e50a2e7b6'
+ 'SKIP'
+ 'aaf2a55a6c7fe097c1f0038aba7191229b48f665f9e7c932e84f3e28f90b3db8a40d467aa8445008510eb75cccf3d1e4e79ee5a4a92967cb5f2140caaa87bc9d')
+#install='systemtap.install'
+validpgpkeys=('F75E6545B9F8AA15AA932A444DE16D68FDBFFFB8')
build() {
- cd "${pkgname}-${pkgver}"
+ cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--sysconfdir=/etc \
@@ -37,9 +39,12 @@ build() {
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
- rmdir "${pkgdir}/var/run/stap-server/"
- rmdir "${pkgdir}/var/run/"
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ chgrp 156 "$pkgdir"/usr/bin/{staprun,stapbpf}
+ chmod 04110 "$pkgdir"/usr/bin/{staprun,stapbpf}
+ install -Dm 755 ../systemtap.sysusers "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+
+ rm -r "${pkgdir}/var/"
}
diff --git a/systemtap.install b/systemtap.install
deleted file mode 100644
index bde565f..0000000
--- a/systemtap.install
+++ /dev/null
@@ -1,18 +0,0 @@
-post_install() {
- getent group stapusr >/dev/null || groupadd -g 156 -r stapusr 2>/dev/null || groupadd -r stapusr
- getent group stapsys >/dev/null || groupadd -g 157 -r stapsys 2>/dev/null || groupadd -r stapsys
- getent group stapdev >/dev/null || groupadd -g 158 -r stapdev 2>/dev/null || groupadd -r stapdev
-
- getent group stapusr >/dev/null && chgrp stapusr /usr/bin/stapbpf
- chmod 04110 /usr/bin/stapbpf
-
- getent group stapusr >/dev/null && chgrp stapusr /usr/bin/staprun
- chmod 04110 /usr/bin/staprun
-
- echo "CONFIG_DEBUG_INFO is disabled on default. You need to recompile"
- echo "the kernel with CONFIG_DEBUG_INFO enabled."
-}
-
-post_upgrade() {
- post_install $1
-}
diff --git a/systemtap.sysusers b/systemtap.sysusers
new file mode 100644
index 0000000..372a208
--- /dev/null
+++ b/systemtap.sysusers
@@ -0,0 +1,3 @@
+g stapusr 156
+g stapsys
+g stapdevLast edited by loqs (2019-05-31 16:06:43)
Offline
@loqs Your patch installed systemtap successfully. Could you check it into AUR? Thanks very much for your help!
Offline