@@ -46,6 +46,13 @@ except Exception:
46
46
prefix = "/usr/local"
47
47
proc_count = nproc ().strip ()
48
48
49
+ # Determine the library path based on architecture
50
+ arch = uname ("-m" ).strip ()
51
+ if arch == "ppc64le" :
52
+ libbase = "powerpc64le-linux-gnu/"
53
+ else :
54
+ # All others use architecture name
55
+ libbase = f"{ arch } -linux-gnu/"
49
56
50
57
class PackageDef (TypedDict , total = False ):
51
58
"""Package Definition for packages dictionary."""
@@ -158,6 +165,25 @@ packages = {
158
165
rev = "json-c-0.17-20230812" ,
159
166
build_type = "cmake" ,
160
167
),
168
+ "linux-audit/audit-userspace" : PackageDef (
169
+ rev = "3.1.2" ,
170
+ url = (
171
+ lambda pkg , rev : f"https://github.com/{ pkg } /archive/refs/tags/v{ rev } .tar.gz"
172
+ ),
173
+ build_type = "make" ,
174
+ custom_post_dl = ["./autogen.sh" ,
175
+ f"./configure --prefix={ prefix } \
176
+ --exec-prefix={ prefix } \
177
+ --libdir={ prefix } /lib/{ libbase } \
178
+ --enable-gssapi-krb5=no \
179
+ --with-libcap-ng=no \
180
+ --with-python3=no \
181
+ --with-python=no \
182
+ --without-golang \
183
+ --disable-zos-remote \
184
+ --with-arm=no \
185
+ --with-aarch64=yes" ],
186
+ ),
161
187
"linux-test-project/lcov" : PackageDef (
162
188
rev = "v1.16" ,
163
189
build_type = "make" ,
@@ -195,6 +221,7 @@ packages = {
195
221
"openbmc/phosphor-logging" : PackageDef (
196
222
depends = [
197
223
"USCiLab/cereal" ,
224
+ "linux-audit/audit-userspace" ,
198
225
"ibm-openbmc/phosphor-dbus-interfaces" ,
199
226
"openbmc/sdbusplus" ,
200
227
"openbmc/sdeventplus" ,
@@ -675,7 +702,6 @@ if username == "root":
675
702
uid = 0
676
703
677
704
# Determine the architecture for Docker.
678
- arch = uname ("-m" ).strip ()
679
705
if arch == "ppc64le" :
680
706
docker_base = "ppc64le/"
681
707
elif arch == "x86_64" :
0 commit comments