Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: LACT-0.5.4
@ 2024-04-25  2:37 Calandracas606
  2024-04-25  2:43 ` [PR REVIEW] " Calandracas606
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Calandracas606 @ 2024-04-25  2:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1247 bytes --]

There is a new pull request by Calandracas606 against master on the void-packages repository

https://github.com/Calandracas606/void-packages LACT-new
https://github.com/void-linux/void-packages/pull/50027

New package: LACT-0.5.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- 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-glibc
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - aarch64 (cross)
  - aarch64-musl (cross)



A patch file from https://github.com/void-linux/void-packages/pull/50027.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-LACT-new-50027.patch --]
[-- Type: text/x-diff, Size: 2962 bytes --]

From 85c963fc0de286e5fd7a8816ce18f188f6e4d60d Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Wed, 24 Apr 2024 22:32:37 -0400
Subject: [PATCH] New package: LACT-0.5.4

---
 srcpkgs/LACT/files/lact/run            |  3 +++
 srcpkgs/LACT/patches/malloc_trim.patch | 17 +++++++++++++++
 srcpkgs/LACT/template                  | 29 ++++++++++++++++++++++++++
 3 files changed, 49 insertions(+)
 create mode 100755 srcpkgs/LACT/files/lact/run
 create mode 100644 srcpkgs/LACT/patches/malloc_trim.patch
 create mode 100644 srcpkgs/LACT/template

diff --git a/srcpkgs/LACT/files/lact/run b/srcpkgs/LACT/files/lact/run
new file mode 100755
index 00000000000000..74e0a5ebbd8539
--- /dev/null
+++ b/srcpkgs/LACT/files/lact/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -n -10 lact daemon
diff --git a/srcpkgs/LACT/patches/malloc_trim.patch b/srcpkgs/LACT/patches/malloc_trim.patch
new file mode 100644
index 00000000000000..020683ea3749a7
--- /dev/null
+++ b/srcpkgs/LACT/patches/malloc_trim.patch
@@ -0,0 +1,17 @@
+diff --git a/lact-daemon/src/server/handler.rs b/lact-daemon/src/server/handler.rs
+index 93dc86c..0ef85fd 100644
+--- a/lact-daemon/src/server/handler.rs
++++ b/lact-daemon/src/server/handler.rs
+@@ -107,12 +107,6 @@ impl<'a> Handler {
+         };
+         handler.apply_current_config().await;
+ 
+-        // Eagerly release memory
+-        // `load_controllers` allocates and deallocates the entire PCI ID database,
+-        // this tells the os to release it right away, lowering measured memory usage (the actual usage is low regardless as it was already deallocated)
+-        unsafe {
+-            libc::malloc_trim(0);
+-        }
+ 
+         Ok(handler)
+     }
diff --git a/srcpkgs/LACT/template b/srcpkgs/LACT/template
new file mode 100644
index 00000000000000..52ca8d05742abe
--- /dev/null
+++ b/srcpkgs/LACT/template
@@ -0,0 +1,29 @@
+# Template file for 'LACT'
+pkgname=LACT
+version=0.5.4
+revision=1
+archs="x86_64* aarch64*"
+build_style=cargo
+configure_args="--features=adw"
+hostmakedepends="pkg-config blueprint-compiler libadwaita-devel"
+makedepends="libadwaita-devel"
+short_desc="Linux AMDGPU Control Application"
+maintainer="Daniel Martinez <danielmartinez@cock.li>"
+license="MIT"
+homepage="https://github.com/ilya-zlobintsev/LACT"
+distfiles="https://github.com/ilya-zlobintsev/LACT/archive/refs/tags/v${version}.tar.gz"
+checksum=ce55f19dab2cb3616b404fc53feb381ee1e10e948bed65c7c33dc3b361685891
+
+do_install() {
+
+	vsv lact
+
+	vbin target/$RUST_TARGET/release/lact
+
+	vinstall res/lactd.service                644 usr/lib/systemd/system/lactd.service
+	vinstall res/io.github.lact-linux.desktop 644 usr/share/applications/io.github.lact-linux.desktop
+	vinstall res/io.github.lact-linux.png     644 usr/share/pixmaps/io.github.lact-linux.png
+	vinstall res/io.github.lact-linux.svg     644 usr/share/icons/hicolor/scalable/apps/io.github.lact-linux.svg
+
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-10-31 18:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-25  2:37 [PR PATCH] New package: LACT-0.5.4 Calandracas606
2024-04-25  2:43 ` [PR REVIEW] " Calandracas606
2024-04-25  2:43 ` Calandracas606
2024-04-25  2:43 ` Calandracas606
2024-04-25  3:05 ` [PR PATCH] [Updated] " Calandracas606
2024-04-25  6:38 ` [PR REVIEW] " meator
2024-04-30 22:31 ` [PR PATCH] [Updated] " Calandracas606
2024-07-30  1:51 ` github-actions
2024-07-30  3:42 ` Calandracas606
2024-10-29  2:00 ` github-actions
2024-10-29 11:55 ` Calandracas606
2024-10-31 18:02 ` [PR PATCH] [Updated] " Calandracas606

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).