David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
libevent


Commits:
d31dc6a2 by David Runge at 2026-01-20T19:32:53+01:00
Use local bash array for cmake options

Signed-off-by: David Runge <[email protected]>

- - - - -
237e2d76 by David Runge at 2026-01-20T19:57:59+01:00
Disable flaky tests

Related-to: https://github.com/libevent/libevent/issues/1407
Signed-off-by: David Runge <[email protected]>

- - - - -
6756fbdf by David Runge at 2026-01-20T20:00:20+01:00
Update SRCINFO for correct SPDX license identifier

Signed-off-by: David Runge <[email protected]>

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -4,7 +4,7 @@ pkgbase = libevent
        pkgrel = 4
        url = https://libevent.org/
        arch = x86_64
-       license = BSD
+       license = BSD-3-Clause-Modification
        makedepends = cmake
        makedepends = ninja
        makedepends = python


=====================================
PKGBUILD
=====================================
@@ -34,19 +34,34 @@ prepare() {
 }
 
 build() {
-  cmake -S libevent-$pkgver-stable -B build -G Ninja \
-    -DCMAKE_BUILD_TYPE=None \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_SKIP_INSTALL_RPATH=TRUE \
-    -DEVENT__LIBRARY_TYPE=SHARED \
-    -DEVENT__DISABLE_REGRESS=OFF \
-    -DEVENT__DOXYGEN=ON
+  local cmake_options=(
+    -B build
+    -S libevent-$pkgver-stable
+    -D CMAKE_BUILD_TYPE=None
+    -D CMAKE_INSTALL_PREFIX=/usr
+    -D CMAKE_POLICY_VERSION_MINIMUM=3.5
+    -D CMAKE_SKIP_INSTALL_RPATH=TRUE
+    -D EVENT__DISABLE_REGRESS=OFF
+    -D EVENT__DOXYGEN=ON
+    -D EVENT__LIBRARY_TYPE=SHARED
+    -G Ninja
+  )
+
+  cmake "${cmake_options[@]}"
   cmake --build build
 }
 
 check() {
+  local ctest_options=(
+    # Disable flaky tests: https://github.com/libevent/libevent/issues/1407
+    # Note: Backporting e.g. https://github.com/libevent/libevent/pull/1555 
didn't resolve this!
+    --exclude-regex 
'(regress__timerfd_EPOLL|regress__timerfd_EPOLL_debug|regress__changelist_EPOLL|regress__changelist_EPOLL_debug|regress__timerfd_changelist_EPOLL|regress__timerfd_changelist_EPOLL_debug|regress__SELECT|regress__SELECT_debug|regress__POLL|regress__POLL_debug)'
+    --output-on-failure
+    --stop-on-failure
+  )
+
   cd build
-  ctest --output-on-failure --stop-on-failure -j$(nproc)
+  ctest "${ctest_options[@]}"
 }
 
 package_libevent() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libevent/-/compare/498b768effbccfd9cce6ad0c6f4452bca4d0fc7b...6756fbdfe8574be78b8d202d7dad6b9eb42fecb3

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libevent/-/compare/498b768effbccfd9cce6ad0c6f4452bca4d0fc7b...6756fbdfe8574be78b8d202d7dad6b9eb42fecb3
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to