From: wagnerflo <wagnerflo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: claws-mail-theme-basicsvg-0.6.4.
Date: Fri, 05 Apr 2024 19:03:22 +0200 [thread overview]
Message-ID: <20240405170322.24814213BD@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42738@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 680 bytes --]
There is an updated pull request by wagnerflo against master on the void-packages repository
https://github.com/wagnerflo/void-packages wagnerflo
https://github.com/void-linux/void-packages/pull/42738
New package: claws-mail-theme-basicsvg-0.6.4.
#### New package
Yes, it's a theme but might be of interest anyways: Claws-mail comes with a internal theme of raster icons and will not scale these, resulting in very tiny icons on Hi-DPI displays. This theme brings SVG replacements that will scale.
#### Local build testing
This package contains only architecture independent files.
A patch file from https://github.com/void-linux/void-packages/pull/42738.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-wagnerflo-42738.patch --]
[-- Type: text/x-diff, Size: 13814 bytes --]
From d2cb3affc19711f2a6fe53ca92c5e7b716bd34ec Mon Sep 17 00:00:00 2001
From: Florian Wagner <florian@wagner-flo.net>
Date: Wed, 27 Mar 2024 12:13:56 +0100
Subject: [PATCH 1/5] GitHub Action: trigger repository build
---
.github/workflows/trigger.yaml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 .github/workflows/trigger.yaml
diff --git a/.github/workflows/trigger.yaml b/.github/workflows/trigger.yaml
new file mode 100644
index 00000000000000..b23a12f500f1c6
--- /dev/null
+++ b/.github/workflows/trigger.yaml
@@ -0,0 +1,18 @@
+name: Trigger repository build
+
+on:
+ push:
+ branches:
+ - wagnerflo
+
+jobs:
+ trigger:
+ name: Trigger
+ runs-on: ubuntu-latest
+ steps:
+ - name: Trigger
+ uses: peter-evans/repository-dispatch@v3
+ with:
+ token: ${{ secrets.PAT }}
+ repository: wagnerflo/void-repository
+ event-type: Push to wagnerflo/void-packages
From 8e8fd040abe249a793366c84c8c2962080058b5e Mon Sep 17 00:00:00 2001
From: Florian Wagner <florian@wagner-flo.net>
Date: Wed, 10 Aug 2022 21:46:13 +0200
Subject: [PATCH 2/5] New package: claws-mail-theme-basicsvg-0.6.4.
---
srcpkgs/claws-mail-theme-basicsvg/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/claws-mail-theme-basicsvg/template
diff --git a/srcpkgs/claws-mail-theme-basicsvg/template b/srcpkgs/claws-mail-theme-basicsvg/template
new file mode 100644
index 00000000000000..567ada3697769e
--- /dev/null
+++ b/srcpkgs/claws-mail-theme-basicsvg/template
@@ -0,0 +1,17 @@
+# Template file for 'claws-mail-theme-basicsvg'
+pkgname=claws-mail-theme-basicsvg
+version=0.6.4
+revision=1
+depends="claws-mail"
+short_desc="Basic SVG icons theme for Claws Mail"
+maintainer="Florian Wagner <florian@wagner-flo.de>"
+license="GPL-2.0-only"
+homepage="http://rame.altervista.org/cmbasicsvg/"
+distfiles="http://rame.altervista.org/dl.php?fp=cmbasicsvg/BasicSVG-${version}.tar.gz"
+checksum=6136910b431bc39496557d9cf5786607c4c95473e8d9eac2d3f8d91f0a0dee3b
+create_wrksrc=yes
+
+do_install() {
+ vmkdir usr/share/claws-mail/themes
+ vcopy "${wrksrc}/BasicSVG" usr/share/claws-mail/themes
+}
From f6e12b8b80e887d5413c81f9323cad10e475afe3 Mon Sep 17 00:00:00 2001
From: Florian Wagner <florian@wagner-flo.net>
Date: Tue, 26 Dec 2023 19:41:34 +0100
Subject: [PATCH 3/5] New package: bupstash-0.12.0.
---
srcpkgs/bupstash/template | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 srcpkgs/bupstash/template
diff --git a/srcpkgs/bupstash/template b/srcpkgs/bupstash/template
new file mode 100644
index 00000000000000..3a4703dbba5858
--- /dev/null
+++ b/srcpkgs/bupstash/template
@@ -0,0 +1,18 @@
+# Template file for 'bupstash'
+pkgname=bupstash
+version=0.12.0
+revision=1
+archs="~i686*"
+build_style=cargo
+hostmakedepends="pkg-config"
+makedepends="libsodium-devel"
+short_desc="Easy and efficient encrypted backups"
+maintainer="Florian Wagner <florian@wagner-flo.de>"
+license="MIT"
+homepage="https://bupstash.io"
+distfiles="https://github.com/andrewchambers/bupstash/archive/refs/tags/v${version}.tar.gz"
+checksum=a2ce4eeb2caa881a778e823cc70d39c2adb0b301f737c55e44a4dd0fbd6a4265
+
+post_install() {
+ vlicense LICENSE
+}
From 706016f9fee535bffcbadefa03c14f9c0b91cd37 Mon Sep 17 00:00:00 2001
From: Florian Wagner <florian@wagner-flo.net>
Date: Fri, 5 Apr 2024 18:49:19 +0200
Subject: [PATCH 4/5] New package: python3-pymongo-4.6.3.
---
srcpkgs/python3-pymongo/template | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 srcpkgs/python3-pymongo/template
diff --git a/srcpkgs/python3-pymongo/template b/srcpkgs/python3-pymongo/template
new file mode 100644
index 00000000000000..b76bcd3686956a
--- /dev/null
+++ b/srcpkgs/python3-pymongo/template
@@ -0,0 +1,12 @@
+# Template file for 'python3-pymongo'
+pkgname=python3-pymongo
+version=4.6.3
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
+short_desc="Python driver for MongoDB"
+maintainer="Florian Wagner <florian@wagner-flo.de>"
+license="Apache-2.0"
+homepage="https://github.com/mongodb/mongo-python-driver"
+distfiles="${PYPI_SITE}/p/pymongo/pymongo-${version}.tar.gz"
+checksum=400074090b9a631f120b42c61b222fd743490c133a5d2f99c0208cefcccc964e
From 5d373f4ddaf50ad8dc6fe896fa11ee08b43a262e Mon Sep 17 00:00:00 2001
From: Florian Wagner <florian@wagner-flo.net>
Date: Fri, 5 Apr 2024 18:49:51 +0200
Subject: [PATCH 5/5] New package: mongodb-7.0.7.
---
srcpkgs/mongodb/files/mongodb.conf | 31 ++++++++++
srcpkgs/mongodb/files/mongodb/run | 3 +
srcpkgs/mongodb/patches/SConstruct.diff | 57 +++++++++++++++++++
.../patches/buildscripts_moduleconfig.py.diff | 34 +++++++++++
.../patches/buildscripts_scons.py.diff | 25 ++++++++
srcpkgs/mongodb/template | 57 +++++++++++++++++++
srcpkgs/python3-pymongo/template | 1 +
7 files changed, 208 insertions(+)
create mode 100644 srcpkgs/mongodb/files/mongodb.conf
create mode 100644 srcpkgs/mongodb/files/mongodb/run
create mode 100644 srcpkgs/mongodb/patches/SConstruct.diff
create mode 100644 srcpkgs/mongodb/patches/buildscripts_moduleconfig.py.diff
create mode 100644 srcpkgs/mongodb/patches/buildscripts_scons.py.diff
create mode 100644 srcpkgs/mongodb/template
diff --git a/srcpkgs/mongodb/files/mongodb.conf b/srcpkgs/mongodb/files/mongodb.conf
new file mode 100644
index 00000000000000..a8ab6a36c191ec
--- /dev/null
+++ b/srcpkgs/mongodb/files/mongodb.conf
@@ -0,0 +1,31 @@
+# mongod.conf
+
+# for documentation of all options, see:
+# http://docs.mongodb.org/manual/reference/configuration-options/
+
+# where to write logging data.
+systemLog:
+ destination: syslog
+
+# Where and how to store data.
+storage:
+ dbPath: /var/lib/mongodb
+
+# how the process runs
+processManagement:
+ timeZoneInfo: /usr/share/zoneinfo
+
+# network interfaces
+net:
+ port: 27017
+ bindIp: 127.0.0.1 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6
+ # addresses or, alternatively, use the
+ # net.bindIpAll setting.
+
+#security:
+
+#operationProfiling:
+
+#replication:
+
+#sharding:
diff --git a/srcpkgs/mongodb/files/mongodb/run b/srcpkgs/mongodb/files/mongodb/run
new file mode 100644
index 00000000000000..d77214d12a9539
--- /dev/null
+++ b/srcpkgs/mongodb/files/mongodb/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _mongodb mongod -f /etc/mongodb.conf
diff --git a/srcpkgs/mongodb/patches/SConstruct.diff b/srcpkgs/mongodb/patches/SConstruct.diff
new file mode 100644
index 00000000000000..6dc2f62b617f90
--- /dev/null
+++ b/srcpkgs/mongodb/patches/SConstruct.diff
@@ -0,0 +1,57 @@
+--- a/SConstruct 2023-06-07 17:07:38 UTC
++++ b/SConstruct
+@@ -23,7 +23,6 @@ import SCons.Script
+
+ import SCons
+ import SCons.Script
+-from mongo_tooling_metrics.lib.top_level_metrics import SConsToolingMetrics
+ from site_scons.mongo import build_profiles
+
+ # This must be first, even before EnsureSConsVersion, if
+@@ -1655,16 +1654,6 @@ env.AddMethod(lambda env, name, **kwargs: add_option(n
+ del envDict
+ env.AddMethod(lambda env, name, **kwargs: add_option(name, **kwargs), 'AddOption')
+
+-# The placement of this is intentional. Here we setup an atexit method to store tooling metrics.
+-# We should only register this function after env, env_vars and the parser have been properly initialized.
+-SConsToolingMetrics.register_metrics(
+- utc_starttime=datetime.utcnow(),
+- artifact_dir=env.Dir('$BUILD_DIR').get_abspath(),
+- env_vars=env_vars,
+- env=env,
+- parser=_parser,
+-)
+-
+ if get_option('build-metrics'):
+ env['BUILD_METRICS_ARTIFACTS_DIR'] = '$BUILD_ROOT/$VARIANT_DIR'
+ env.Tool('build_metrics')
+@@ -1801,9 +1790,9 @@ if has_option('variables-help'):
+ print(env_vars.GenerateHelpText(env))
+ Exit(0)
+
+-unknown_vars = env_vars.UnknownVariables()
+-if unknown_vars:
+- env.FatalError("Unknown variables specified: {0}", ", ".join(list(unknown_vars.keys())))
++#unknown_vars = env_vars.UnknownVariables()
++#if unknown_vars:
++# env.FatalError("Unknown variables specified: {0}", ", ".join(list(unknown_vars.keys())))
+
+ install_actions.setup(env, get_option('install-action'))
+
+@@ -3026,7 +3015,7 @@ if env.TargetOSIs('posix'):
+ # If runtime hardening is requested, then build anything
+ # destined for an executable with the necessary flags for PIE.
+ env.AppendUnique(
+- PROGCCFLAGS=['-fPIE'],
++ PROGCCFLAGS=['-fpic'],
+ PROGLINKFLAGS=['-pie'],
+ )
+
+@@ -3034,7 +3023,6 @@ if env.TargetOSIs('posix'):
+ env.Append(
+ CCFLAGS=[
+ "-fasynchronous-unwind-tables",
+- "-g2" if not env.TargetOSIs('emscripten') else "-g",
+ "-Wall",
+ "-Wsign-compare",
+ "-Wno-unknown-pragmas",
diff --git a/srcpkgs/mongodb/patches/buildscripts_moduleconfig.py.diff b/srcpkgs/mongodb/patches/buildscripts_moduleconfig.py.diff
new file mode 100644
index 00000000000000..b2f4c9ce97af29
--- /dev/null
+++ b/srcpkgs/mongodb/patches/buildscripts_moduleconfig.py.diff
@@ -0,0 +1,34 @@
+--- a/buildscripts/moduleconfig.py 2024-04-05 14:31:34.662126011 +0200
++++ b/buildscripts/moduleconfig.py 2024-04-05 14:35:03.112290925 +0200
+@@ -27,7 +27,7 @@
+ __all__ = ('discover_modules', 'discover_module_directories', 'configure_modules',
+ 'register_module_test') # pylint: disable=undefined-all-variable
+
+-import imp
++import importlib
+ import inspect
+ import os
+
+@@ -68,16 +68,18 @@
+
+ try:
+ print("adding module: %s" % (name))
+- fp = open(build_py, "r")
+ try:
+- module = imp.load_module("module_" + name, fp, build_py,
+- (".py", "r", imp.PY_SOURCE))
++ spec = importlib.util.spec_from_file_location(
++ "module_" + name, build_py
++ )
++ module = importlib.util.module_from_spec(spec)
++ spec.loader.exec_module(module)
+ if getattr(module, "name", None) is None:
+ module.name = name
+ found_modules.append(module)
+ found_module_names.append(name)
+ finally:
+- fp.close()
++ pass
+ except (FileNotFoundError, IOError):
+ pass
+
diff --git a/srcpkgs/mongodb/patches/buildscripts_scons.py.diff b/srcpkgs/mongodb/patches/buildscripts_scons.py.diff
new file mode 100644
index 00000000000000..5440bac0320b83
--- /dev/null
+++ b/srcpkgs/mongodb/patches/buildscripts_scons.py.diff
@@ -0,0 +1,25 @@
+--- a/buildscripts/scons.py 2021-08-23 09:10:10 UTC
++++ b/buildscripts/scons.py
+@@ -18,14 +18,14 @@ SITE_TOOLS_DIR = os.path.join(MONGODB_ROOT, 'site_scon
+
+ sys.path = [SCONS_DIR, SITE_TOOLS_DIR] + sys.path
+
+-# pylint: disable=C0413
+-from mongo.pip_requirements import verify_requirements, MissingRequirements
+-
+-try:
+- verify_requirements('etc/pip/compile-requirements.txt')
+-except MissingRequirements as ex:
+- print(ex)
+- sys.exit(1)
++## pylint: disable=C0413
++#from mongo.pip_requirements import verify_requirements, MissingRequirements
++#
++#try:
++# verify_requirements('etc/pip/compile-requirements.txt')
++#except MissingRequirements as ex:
++# print(ex)
++# sys.exit(1)
+
+ try:
+ import SCons.Script
diff --git a/srcpkgs/mongodb/template b/srcpkgs/mongodb/template
new file mode 100644
index 00000000000000..d90c9efb23396f
--- /dev/null
+++ b/srcpkgs/mongodb/template
@@ -0,0 +1,57 @@
+# Template file for 'mongodb'
+pkgname=mongodb
+version=7.0.7
+revision=1
+hostmakedepends="python3-cheetah3 python3-packaging python3-psutil
+ python3-pymongo python3-setuptools python3-yaml"
+makedepends="liblzma-devel libstemmer-devel libunwind-devel
+ libzstd-devel openssl-devel pcre2-devel snappy-devel
+ yaml-cpp-devel zlib-devel"
+short_desc="Distributed document-oriented NoSQL database"
+maintainer="Florian Wagner <florian@wagner-flo.de>"
+license="Apache-2.0"
+homepage="https://www.mongodb.com"
+distfiles="https://fastdl.mongodb.org/src/mongodb-src-r${version}.tar.gz"
+checksum=a2dce499bf32271baca14f430e3f57360d2ac70248a473ff1d2f381883ac2696
+
+system_accounts="_mongodb"
+mongodb_homedir="/var/lib/mongodb"
+make_dirs="/var/lib/mongodb 0750 _mongodb _mongodb"
+conf_files="/etc/mongodb.conf"
+
+post_patch() {
+ rm -rf src/third_party/pcre2
+ rm -rf src/third_party/snappy-*
+ rm -rf src/third_party/libstemmer_c
+ rm -rf src/third_party/unwind
+ rm -rf src/third_party/yaml-cpp
+ rm -rf src/third_party/zlib-*
+ rm -rf src/third_party/zstandard
+}
+
+do_build() {
+ buildscripts/scons.py \
+ --allocator=system \
+ --cxx-std=20 \
+ --disable-warnings-as-errors \
+ --runtime-hardening=on \
+ --use-system-libunwind \
+ --use-system-pcre2 \
+ --use-system-snappy \
+ --use-system-stemmer \
+ --use-system-yaml \
+ --use-system-zlib \
+ --use-system-zstd \
+ --ssl \
+ --modules= \
+ --linker=gold \
+ MONGO_VERSION=${version} \
+ VERBOSE=on
+}
+
+do_install() {
+ vbin build/install/bin/mongod
+ vbin build/install/bin/mongod
+ vconf ${FILESDIR}/mongodb.conf
+ vsv mongodb
+}
diff --git a/srcpkgs/python3-pymongo/template b/srcpkgs/python3-pymongo/template
index b76bcd3686956a..305e6d2b65e3c7 100644
--- a/srcpkgs/python3-pymongo/template
+++ b/srcpkgs/python3-pymongo/template
@@ -4,6 +4,7 @@ version=4.6.3
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel"
+makedepends="python3"
short_desc="Python driver for MongoDB"
maintainer="Florian Wagner <florian@wagner-flo.de>"
license="Apache-2.0"
next prev parent reply other threads:[~2024-04-05 17:03 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-13 9:54 [PR PATCH] " wagnerflo
2023-03-13 9:57 ` [PR PATCH] [Updated] " wagnerflo
2023-03-13 9:58 ` wagnerflo
2023-06-12 2:05 ` github-actions
2023-06-12 7:21 ` wagnerflo
2023-09-12 1:44 ` github-actions
2023-09-12 10:36 ` wagnerflo
2023-12-12 1:46 ` github-actions
2023-12-26 18:14 ` [PR PATCH] [Updated] " wagnerflo
2023-12-26 18:42 ` wagnerflo
2024-03-16 9:48 ` wagnerflo
2024-03-16 10:07 ` wagnerflo
2024-03-16 10:21 ` wagnerflo
2024-03-16 10:22 ` wagnerflo
2024-03-16 10:34 ` wagnerflo
2024-03-16 10:35 ` wagnerflo
2024-03-16 10:49 ` wagnerflo
2024-03-16 10:52 ` wagnerflo
2024-03-16 10:54 ` wagnerflo
2024-03-16 10:55 ` wagnerflo
2024-03-16 11:10 ` wagnerflo
2024-03-16 11:14 ` wagnerflo
2024-03-16 11:44 ` wagnerflo
2024-03-27 11:14 ` wagnerflo
2024-03-27 11:17 ` wagnerflo
2024-03-27 11:20 ` wagnerflo
2024-03-27 11:24 ` wagnerflo
2024-03-31 7:27 ` wagnerflo
2024-03-31 8:04 ` wagnerflo
2024-04-05 16:50 ` wagnerflo
2024-04-05 17:03 ` wagnerflo [this message]
2024-04-05 17:10 ` wagnerflo
2024-04-05 17:15 ` wagnerflo
2024-04-05 17:15 ` wagnerflo
2024-04-05 17:54 ` wagnerflo
2024-04-07 10:22 ` wagnerflo
2024-04-07 19:53 ` wagnerflo
2024-04-10 13:23 ` wagnerflo
2024-04-10 13:30 ` wagnerflo
2024-04-10 13:46 ` wagnerflo
2024-04-10 13:52 ` wagnerflo
2024-04-10 16:13 ` wagnerflo
2024-04-11 9:53 ` wagnerflo
2024-04-28 13:13 ` wagnerflo
2024-04-28 13:14 ` wagnerflo
2024-05-01 8:14 ` wagnerflo
2024-05-01 8:16 ` wagnerflo
2024-05-01 10:53 ` wagnerflo
2024-05-23 12:30 ` wagnerflo
2024-05-23 12:33 ` wagnerflo
2024-07-23 14:40 ` [PR PATCH] [Closed]: " classabbyamp
2024-07-23 14:40 ` classabbyamp
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=20240405170322.24814213BD@inbox.vuxu.org \
--to=wagnerflo@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).