closes #4879
This commit is contained in:
Jacob Heider 2024-01-17 10:46:46 -05:00 committed by Jacob Heider
parent 71de422c7e
commit 00ba83e738

View file

@ -15,13 +15,20 @@ build:
gnu.org/gcc: '*' gnu.org/gcc: '*'
gnu.org/make: '*' gnu.org/make: '*'
script: script:
# 1.6.0 is missing an include
- run: |
sed -i -e '/argv_parse\.h/a\
#include <stdint.h>\
' pam_namespace.c
working-directory: modules/pam_namespace
if: =1.6.0
- ./configure $CONFIGURE_ARGS - ./configure $CONFIGURE_ARGS
- make --jobs {{ hw.concurrency }} - make --jobs {{ hw.concurrency }}
- make --jobs {{ hw.concurrency }} install - make --jobs {{ hw.concurrency }} install
- run: | - run: |
sed -i.bak "s|{{prefix}}|\$(dirname \$0)/..|g" pam_namespace_helper sed -i.bak "s|{{prefix}}|\$(dirname \$0)/..|g" pam_namespace_helper
rm *.bak rm *.bak
working-directory: "{{prefix}}/sbin" working-directory: '{{prefix}}/sbin'
env: env:
CONFIGURE_ARGS: CONFIGURE_ARGS:
- --disable-debug - --disable-debug
@ -41,9 +48,7 @@ provides:
- sbin/mkhomedir_helper - sbin/mkhomedir_helper
- sbin/pam_namespace_helper - sbin/pam_namespace_helper
- sbin/pam_timestamp_check - sbin/pam_timestamp_check
- sbin/pwhistory_helper
- sbin/unix_chkpwd - sbin/unix_chkpwd
- sbin/unix_update
test: test:
dependencies: dependencies:
freedesktop.org/pkg-config: '*' freedesktop.org/pkg-config: '*'
@ -53,4 +58,3 @@ test:
- pkg-config --modversion pam | grep {{version}} - pkg-config --modversion pam | grep {{version}}
- cc test.c -o test - cc test.c -o test
- ./test - ./test