From: nsudsgaard <nsudsgaard@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] clamav: update to 1.0.3, adopt.
Date: Thu, 14 Sep 2023 05:53:31 +0200 [thread overview]
Message-ID: <20230914035331.fyIDrYvC_Z5M014GZB9j9t5Xfnkcnv3iKv302VXPzxc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46041@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1378 bytes --]
There is an updated pull request by nsudsgaard against master on the void-packages repository
https://github.com/nsudsgaard/void-packages master
https://github.com/void-linux/void-packages/pull/46041
clamav: update to 1.0.3, adopt.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES** (native architecture only)
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl, x86_64)
- I built this PR locally for these architectures:
- i686
- aarch64 _crossbuild_
- aarch64-musl _crossbuild_
- armv7l _crossbuild_
- armv7l-musl _crossbuild_
- armv6l _crossbuild_
- armv6l-musl _crossbuild_
A patch file from https://github.com/void-linux/void-packages/pull/46041.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-46041.patch --]
[-- Type: text/x-diff, Size: 6320 bytes --]
From a36956cfa45eef2f66d87c18c79fd70c5f66368a Mon Sep 17 00:00:00 2001
From: Nicholas Sudsgaard <devel@nsudsgaard.com>
Date: Wed, 13 Sep 2023 16:45:13 +0900
Subject: [PATCH 1/2] clamav: update to 1.0.3, adopt.
---
common/shlibs | 7 ++--
srcpkgs/clamav/template | 88 +++++++++++++++++++++--------------------
2 files changed, 49 insertions(+), 46 deletions(-)
diff --git a/common/shlibs b/common/shlibs
index c407ffde9b8fd..730ee8f6b2159 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2256,9 +2256,10 @@ libsfml-system.so.2.5 SFML-2.5.0_1
libsfml-window.so.2.5 SFML-2.5.0_1
libsfml-audio.so.2.5 SFML-2.5.0_1
libsfml-graphics.so.2.5 SFML-2.5.0_1
-libclamav.so.9 clamav-0.103.1_2
-libclamunrar.so.9 clamav-0.103.1_2
-libclamunrar_iface.so.9 clamav-0.103.1_2
+libclamav.so.11 clamav-1.0.3_1
+libclamunrar.so.11 clamav-1.0.3_1
+libclamunrar_iface.so.11 clamav-1.0.3_1
+libclammspack.so.0 clamav-1.0.3_1
libfreshclam.so.2 clamav-0.103.1_2
libqca-qt5.so.2 qca-qt5-2.1.3_1
libqt5keychain.so.1 qtkeychain-qt5-0.7.0_1
diff --git a/srcpkgs/clamav/template b/srcpkgs/clamav/template
index 3574b7baeed09..df48421dda465 100644
--- a/srcpkgs/clamav/template
+++ b/srcpkgs/clamav/template
@@ -1,66 +1,68 @@
# Template file for 'clamav'
pkgname=clamav
-version=0.103.8
-revision=4
-build_style=gnu-configure
-# XXX: system llvm is too new (< 3.7 required)
-# Shipped llvm does not build with gcc>=6
-configure_args="--sbindir=/usr/bin --libdir=/usr/lib
- --with-openssl=${XBPS_CROSS_BASE}/usr --with-pcre=${XBPS_CROSS_BASE}/usr
- --with-zlib=${XBPS_CROSS_BASE}/usr --with-libbz2-prefix=${XBPS_CROSS_BASE}/usr
- --with-system-libmspack=${XBPS_CROSS_BASE}/usr --with-libcurl=${XBPS_CROSS_BASE}/usr
- --enable-ipv6 --with-user=_clamav --with-group=_clamav"
-conf_files="/etc/clamd.conf /etc/freshclam.conf"
-hostmakedepends="flex pkg-config zip"
-makedepends="json-c-devel libcurl-devel libmspack-devel libxml2-devel
- ncurses-devel pcre-devel tcl-devel"
+version=1.0.3
+revision=1
+build_style=cmake
+cmake_builddir=build
+# Setting ENABLE_JSON_SHARED=OFF is preferred, as libclamav.so may crash if you
+# use a different JSON library.
+configure_args="
+ -D CMAKE_BUILD_TYPE=Release
+ -D CMAKE_INSTALL_PREFIX=/usr
+ -D APP_CONFIG_DIRECTORY=/etc
+ -D DATABASE_DIRECTORY=/var/lib/_${pkgname}
+ -D CLAMAV_USER=_${pkgname}
+ -D CLAMAV_GROUP=_${pkgname}
+ -D ENABLE_JSON_SHARED=OFF"
+hostmakedepends="rust cargo python3"
+makedepends="bzip2-devel check-devel libcurl-devel json-c-devel libmilter-devel
+ libxml2-devel ncurses-devel openssl-devel pcre2-devel zlib-devel"
short_desc="Clam Anti-Virus scanner"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Nicholas Sudsgaard <devel@nsudsgaard.com>"
license="GPL-2.0-only"
homepage="https://www.clamav.net/"
distfiles="https://www.clamav.net/downloads/production/clamav-${version}.tar.gz"
-checksum=6f49da6ee927936de13d359e559d3944248e3a257d40b80b6c99ebe6fe8c8c3f
-_clamav_homedir="/var/lib/_${pkgname}"
+checksum=8779458dc31fdee1232eb8986f092d25568b39f5d337c0cbcd9c1abb5dc2886b
+system_accounts="_${pkgname}"
_clamav_descr="ClamAV user"
-system_accounts="_clamav"
-make_check=ci-skip
+_clamav_homedir="/var/lib/_${pkgname}"
+conf_files="/etc/clamd.conf /etc/freshclam.conf /etc/clamav-milter.conf"
-CPPFLAGS="-Wno-unused-local-typedefs"
if [ "$CROSS_BUILD" ]; then
- configure_args+=" --disable-mempool"
+ build_helper="qemu"
+ makedepends+=" rust-std"
+ configure_args+=" -D RUST_COMPILER_TARGET:STRING=${XBPS_CROSS_RUST_TARGET}"
fi
+
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-fts-devel"
- LDFLAGS="-lfts"
+ configure_args+=" -D CMAKE_EXE_LINKER_FLAGS=-lfts"
fi
-do_configure() {
- # Disable detection of sys/cdefs.h (it's obsolete)
- sed -i configure -e 's; sys/cdefs\.h$;;'
- sed -i configure -e 's;3\.7;3.9;'
- # Enable IPv6 for cross builds
+pre_configure() {
if [ "$CROSS_BUILD" ]; then
- configure_args+=" have_cv_ipv6=yes"
+ path=${XBPS_CROSS_BASE}/lib/rustlib/${XBPS_CROSS_RUST_TARGET}/lib
+
+ sed -i cmake/FindRust.cmake \
+ -e "s:^set(RUSTFLAGS \"\")$:set(RUSTFLAGS \"-L${path}\"):g"
fi
- # Need to set PCRE_HOME to make --with-pcre=/usr work
- PCRE_HOME=/usr ./configure ${configure_args}
}
+
post_install() {
- # Enable and patch clamd configuration
- mv -v ${PKGDESTDIR}/etc/clamd.conf.sample ${PKGDESTDIR}/etc/clamd.conf
- vsconf etc/clamd.conf.sample
- sed -i ${PKGDESTDIR}/etc/clamd.conf \
- -e "s;^Example$;# Example;" \
- -e "s;#DatabaseDirectory.*;DatabaseDirectory /var/lib/_${pkgname};"
+ vmkdir /etc 755
+ for path in ${conf_files}; do
+ name=${path#/etc}
+
+ mv -v ${PKGDESTDIR}//${path}.sample ${PKGDESTDIR}/${path}
+ vsconf ${PKGDESTDIR}/${path} ${name}.sample
+ sed -i ${PKGDESTDIR}/${path} \
+ -e "s;^Example$;# Example;" \
+ -e "s;#DatabaseDirectory.*;DatabaseDirectory /var/lib/_${pkgname};"
+ done
+ vdoc ${FILESDIR}/README.voidlinux
- # Enable and patch freshclam configuration
- mv -v ${PKGDESTDIR}/etc/freshclam.conf.sample ${PKGDESTDIR}/etc/freshclam.conf
- vsconf etc/freshclam.conf.sample
- sed -i ${PKGDESTDIR}/etc/freshclam.conf \
- -e "s;^Example$;# Example;" \
- -e "s;#DatabaseDirectory.*;DatabaseDirectory /var/lib/_${pkgname};"
- vdoc "${FILESDIR}/README.voidlinux"
}
+
clamav-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
From bb2ef58edd1075c85c6f6bf1bace5879f3705d32 Mon Sep 17 00:00:00 2001
From: Nicholas Sudsgaard <144646475+nsudsgaard@users.noreply.github.com>
Date: Thu, 14 Sep 2023 03:53:24 +0000
Subject: [PATCH 2/2] Renounce adoption
---
srcpkgs/clamav/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/clamav/template b/srcpkgs/clamav/template
index df48421dda465..51e05b8ab73b9 100644
--- a/srcpkgs/clamav/template
+++ b/srcpkgs/clamav/template
@@ -18,7 +18,7 @@ hostmakedepends="rust cargo python3"
makedepends="bzip2-devel check-devel libcurl-devel json-c-devel libmilter-devel
libxml2-devel ncurses-devel openssl-devel pcre2-devel zlib-devel"
short_desc="Clam Anti-Virus scanner"
-maintainer="Nicholas Sudsgaard <devel@nsudsgaard.com>"
+maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://www.clamav.net/"
distfiles="https://www.clamav.net/downloads/production/clamav-${version}.tar.gz"
next prev parent reply other threads:[~2023-09-14 3:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-13 9:39 [PR PATCH] " nsudsgaard
2023-09-13 9:42 ` [PR PATCH] [Updated] " nsudsgaard
2023-09-13 20:54 ` r-ricci
2023-09-14 2:26 ` nsudsgaard
2023-09-14 3:47 ` classabbyamp
2023-09-14 3:53 ` nsudsgaard [this message]
2023-09-14 3:54 ` clamav: update to 1.0.3 nsudsgaard
2023-09-14 7:02 ` r-ricci
2023-09-14 7:04 ` r-ricci
2023-09-14 7:05 ` r-ricci
2023-09-14 10:55 ` nsudsgaard
2023-09-14 14:46 ` WIP: clamav: update to 1.2.0 nsudsgaard
2023-09-17 6:22 ` [PR PATCH] [Updated] " nsudsgaard
2023-09-17 6:25 ` [PR PATCH] [Merged]: " Johnnynator
2023-09-18 9:20 ` jcgruenhage
2023-09-18 12:39 ` nsudsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230914035331.fyIDrYvC_Z5M014GZB9j9t5Xfnkcnv3iKv302VXPzxc@z \
--to=nsudsgaard@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).