[arch-commits] Commit in libevent/repos (4 files)
Jan Steffens
heftig at gemini.archlinux.org
Wed Aug 3 20:02:59 UTC 2022
Date: Wednesday, August 3, 2022 @ 20:02:58
Author: heftig
Revision: 452031
archrelease: copy trunk to testing-x86_64
Added:
libevent/repos/testing-x86_64/
libevent/repos/testing-x86_64/EVENT__SIZEOF_TIME_T.patch
(from rev 452030, libevent/trunk/EVENT__SIZEOF_TIME_T.patch)
libevent/repos/testing-x86_64/PKGBUILD
(from rev 452030, libevent/trunk/PKGBUILD)
libevent/repos/testing-x86_64/keys/
----------------------------+
EVENT__SIZEOF_TIME_T.patch | 37 ++++++++++++++++++++++++
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 102 insertions(+)
Copied: libevent/repos/testing-x86_64/EVENT__SIZEOF_TIME_T.patch (from rev 452030, libevent/trunk/EVENT__SIZEOF_TIME_T.patch)
===================================================================
--- testing-x86_64/EVENT__SIZEOF_TIME_T.patch (rev 0)
+++ testing-x86_64/EVENT__SIZEOF_TIME_T.patch 2022-08-03 20:02:58 UTC (rev 452031)
@@ -0,0 +1,37 @@
+From f5ad737d73ed18b95ce63f1d8e933a89a26653e9 Mon Sep 17 00:00:00 2001
+From: Azat Khuzhin <azat at libevent.org>
+Date: Sat, 9 Jul 2022 14:22:38 +0300
+Subject: [PATCH] Add -Wundef for cmake and fix EVENT__SIZEOF_TIME_T usage
+
+Note, autotools already supports it.
+---
+ CMakeLists.txt | 1 +
+ event-config.h.cmake | 3 +++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5ee0df2f7..9237252c7 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -295,6 +295,7 @@ if (${GNUC})
+
+ list(APPEND __FLAGS
+ -Wall -Wextra -Wno-unused-parameter -Wstrict-aliasing -Wstrict-prototypes
++ -Wundef
+
+ -fno-strict-aliasing # gcc 2.9.5+
+ -Wmissing-prototypes
+diff --git a/event-config.h.cmake b/event-config.h.cmake
+index 9fff34877..4a6267017 100644
+--- a/event-config.h.cmake
++++ b/event-config.h.cmake
+@@ -485,6 +485,9 @@
+ /* The size of 'void *', as computer by sizeof */
+ #define EVENT__SIZEOF_VOID_P @EVENT__SIZEOF_VOID_P@
+
++/* The size of 'time_t', as computer by sizeof */
++#define EVENT__SIZEOF_TIME_T @EVENT__SIZEOF_TIME_T@
++
+ /* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+ #ifndef __cplusplus
Copied: libevent/repos/testing-x86_64/PKGBUILD (from rev 452030, libevent/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2022-08-03 20:02:58 UTC (rev 452031)
@@ -0,0 +1,65 @@
+# Contributor: Tom Gundersen <teg at jklm.no>
+# Contributor: Judd <jvinet at zeroflux.org>
+
+pkgbase=libevent
+pkgname=(libevent libevent-docs)
+pkgver=2.1.12
+pkgrel=2
+pkgdesc="Event notification library"
+url="https://libevent.org/"
+arch=(x86_64)
+license=(BSD)
+depends=(openssl)
+makedepends=(cmake ninja python zlib doxygen)
+options=(debug)
+source=(
+ https://github.com/libevent/libevent/releases/download/release-$pkgver-stable/libevent-$pkgver-stable.tar.gz{,.asc}
+ EVENT__SIZEOF_TIME_T.patch
+)
+sha256sums=('92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb'
+ 'SKIP'
+ '945fc885b15692721bc7ae52f5774ef4fab8cc0f6108baa8860ab368de8675cf')
+validpgpkeys=('B35BF85BF19489D04E28C33C21194EBB165733EA'
+ '9E3AC83A27974B84D1B3401DB86086848EF8686D')
+
+prepare() {
+ cd libevent-$pkgver-stable
+
+ # Fix Firefox build
+ patch -Np1 -i ../EVENT__SIZEOF_TIME_T.patch
+}
+
+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
+ cmake --build build
+}
+
+check() {
+ cd build
+ ctest --output-on-failure --stop-on-failure -j$(nproc)
+}
+
+package_libevent() {
+ provides=(libevent{,_core,_extra,_openssl,_pthreads}-2.1.so)
+ optdepends=('python: event_rpcgen.py')
+
+ DESTDIR="$pkgdir" cmake --install build
+
+ mkdir -p doc/usr/share
+ mv {"$pkgdir",doc}/usr/share/doc
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libevent-$pkgver-stable/LICENSE
+}
+
+package_libevent-docs() {
+ pkgdesc+=" (documentation)"
+ depends=()
+
+ mv doc/* "$pkgdir"
+}
More information about the arch-commits
mailing list