ulatencyd: remove package
Upstream is abandoned, build is currently broken, and service files depend on ConsoleKit2, which has also been removed. Fixes #21482
This commit is contained in:
parent
16473cc6cd
commit
ea68221032
|
@ -1,3 +0,0 @@
|
|||
# subtle
|
||||
|
||||
subtle user.ui
|
|
@ -1,30 +0,0 @@
|
|||
--[[
|
||||
Copyright 2010,2011,2012 ulatencyd developers
|
||||
|
||||
This file is part of ulatencyd.
|
||||
|
||||
License: GNU General Public License 3 or later
|
||||
]]--
|
||||
|
||||
SubtleWM = {
|
||||
name = "SubtleWM",
|
||||
re_basename = "subtle",
|
||||
check = function(self, proc)
|
||||
local flag = ulatency.new_flag{name="user.ui"}
|
||||
proc:add_flag(flag)
|
||||
proc:set_oom_score(-400)
|
||||
rv = ulatency.filter_rv(ulatency.FILTER_STOP)
|
||||
return rv
|
||||
end
|
||||
}
|
||||
|
||||
SubtleFix = RunnerFix.new("SubtleWM", {"subtle"})
|
||||
|
||||
-- on start we have to fix all processes that have descented from kde
|
||||
local function cleanup_awesome_mess()
|
||||
cleanup_desktop_mess({"subtle"})
|
||||
return false
|
||||
end
|
||||
|
||||
ulatency.add_timeout(cleanup_awesome_mess, 1000)
|
||||
ulatency.register_filter(SubtleWM)
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
sv check consolekit >/dev/null || exit 1
|
||||
exec ulatencyd 1>&2
|
|
@ -1,26 +0,0 @@
|
|||
From eb036c64a2a999de0eebb6f0b285dcd67e3366b1 Mon Sep 17 00:00:00 2001
|
||||
From: Andrea Brancaleoni <miwaxe@gmail.com>
|
||||
Date: Fri, 21 Aug 2015 11:30:36 +0200
|
||||
Subject: [PATCH 7/7] FindProcps.cmake: find package with pkg-config
|
||||
|
||||
---
|
||||
cmake/Modules/FindProcps.cmake | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/cmake/Modules/FindProcps.cmake b/cmake/Modules/FindProcps.cmake
|
||||
index 93747fd..f1c3a43 100644
|
||||
--- a/cmake/Modules/FindProcps.cmake
|
||||
+++ b/cmake/Modules/FindProcps.cmake
|
||||
@@ -627,8 +627,7 @@ if(found_lib)
|
||||
unset(PROCPS_${libtype}_VERSION_STRING CACHE) # check eachtime
|
||||
|
||||
execute_process(
|
||||
- COMMAND "strings" "${PROCPS_${libtype}_LIBRARY}"
|
||||
- COMMAND "sed" "-n" "${ver_rexp}"
|
||||
+ COMMAND "pkg-config" "--modversion" "libprocps"
|
||||
OUTPUT_VARIABLE PROCPS_${libtype}_VERSION_STRING
|
||||
ERROR_QUIET )
|
||||
|
||||
--
|
||||
2.5.0
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
From f39b6bae2aec5ef624061c9b579db8ed8b29afce Mon Sep 17 00:00:00 2001
|
||||
From: Andrea Brancaleoni <miwaxe@gmail.com>
|
||||
Date: Fri, 21 Aug 2015 10:27:25 +0200
|
||||
Subject: [PATCH 2/2] ulatency.h: remove PROC_FILLWCHAN
|
||||
|
||||
---
|
||||
src/ulatency.h | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/ulatency.h b/src/ulatency.h
|
||||
index 64ff88f..38749a7 100644
|
||||
--- a/src/ulatency.h
|
||||
+++ b/src/ulatency.h
|
||||
@@ -63,8 +63,7 @@ extern gint U_log_level; //!< Current log level
|
||||
//FIXME enable PROC_FILLSUPGRP once adapted to the new libprocps
|
||||
|
||||
#define OPENPROC_FLAGS (PROC_FILLMEM | \
|
||||
- PROC_FILLUSR | PROC_FILLGRP | PROC_FILLSTATUS | PROC_FILLSTAT | \
|
||||
- PROC_FILLWCHAN /*| PROC_FILLSUPGRP*/)
|
||||
+ PROC_FILLUSR | PROC_FILLGRP | PROC_FILLSTATUS | PROC_FILLSTAT)
|
||||
|
||||
#define OPENPROC_FLAGS_MINIMAL (PROC_FILLSTATUS)
|
||||
|
||||
--
|
||||
2.5.0
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
From de041265241f12304969546a0f6becf7e3edf78c Mon Sep 17 00:00:00 2001
|
||||
From: Andrea Brancaleoni <miwaxe@gmail.com>
|
||||
Date: Sat, 22 Aug 2015 00:40:45 +0200
|
||||
Subject: [PATCH 3/4] {ulatencyd,lua_binding}.c: removed unused headers
|
||||
|
||||
---
|
||||
src/lua_binding.c | 1 -
|
||||
src/ulatencyd.c | 2 --
|
||||
2 files changed, 3 deletions(-)
|
||||
|
||||
diff --git a/src/lua_binding.c b/src/lua_binding.c
|
||||
index aab118e..a8fb882 100644
|
||||
--- a/src/lua_binding.c
|
||||
+++ b/src/lua_binding.c
|
||||
@@ -34,7 +34,6 @@
|
||||
#include <glib.h>
|
||||
#include <signal.h>
|
||||
#include <time.h>
|
||||
-#include <bits/signum.h>
|
||||
//#include <errno.h>
|
||||
#include <sched.h>
|
||||
#include <linux/sched.h>
|
||||
diff --git a/src/ulatencyd.c b/src/ulatencyd.c
|
||||
index ff8972b..1966d94 100644
|
||||
--- a/src/ulatencyd.c
|
||||
+++ b/src/ulatencyd.c
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
-#include <errno.h>
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -51,7 +50,6 @@ DBusGConnection *U_dbus_connection_system;
|
||||
#include <proc/sysinfo.h>
|
||||
#include <proc/readproc.h>
|
||||
#include <sys/mman.h>
|
||||
-#include <error.h>
|
||||
|
||||
static gchar *config_file = QUOTEME(CONFIG_PATH)"/ulatencyd.conf";
|
||||
static gchar *rules_directory = QUOTEME(RULES_DIRECTORY);
|
||||
--
|
||||
2.5.0
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -1,83 +0,0 @@
|
|||
# Template file for 'ulatencyd'
|
||||
pkgname=ulatencyd
|
||||
version=0.6.0
|
||||
revision=7
|
||||
_subrelease=alpha.2.1
|
||||
wrksrc="${pkgname}-${version}-${_subrelease}"
|
||||
build_style=cmake
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="procps-ng-devel glib-devel dbus-glib-devel lua51-devel libxcb-devel"
|
||||
depends="luaposix51"
|
||||
short_desc="Daemon to minimize latency on a linux system using cgroups"
|
||||
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
||||
license="GPL-3"
|
||||
homepage="https://github.com/poelzi/${pkgname}"
|
||||
distfiles="${homepage}/archive/${version}-${_subrelease}.tar.gz"
|
||||
checksum=efaf0cf814ef36b9d63f6a588482a2f1ac435163ff5e9d8d20ce07de58efbf2e
|
||||
python_version=2 #unverified
|
||||
broken="missing symbols in procps-ng (user_from_uid, group_from_gid)"
|
||||
nopie=yes
|
||||
|
||||
LDFLAGS+=" -Wl,-Bdynamic -lm -ldl"
|
||||
|
||||
configure_args="-DDEVELOP_MODE=false -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSYSTEMD_DIR=''"
|
||||
conf_files="
|
||||
/etc/dbus-1/system.d/org.quamquam.ulatencyd.conf
|
||||
/etc/ulatencyd/simple.conf
|
||||
/etc/ulatencyd/cgroups.conf
|
||||
/etc/ulatencyd/scheduler/20-desktop.lua
|
||||
/etc/ulatencyd/scheduler/30-single-task.lua
|
||||
/etc/ulatencyd/scheduler/30-game.lua
|
||||
/etc/ulatencyd/scheduler/50-video_playback.lua
|
||||
/etc/ulatencyd/scheduler/99-cleanup.lua
|
||||
/etc/ulatencyd/scheduler/00-common.lua
|
||||
/etc/ulatencyd/scheduler/20-one-seat-desktop.lua
|
||||
/etc/ulatencyd/rules/subtle.lua
|
||||
/etc/ulatencyd/rules/zz_isolate.lua
|
||||
/etc/ulatencyd/rules/protectors.lua
|
||||
/etc/ulatencyd/rules/awesome.lua
|
||||
/etc/ulatencyd/rules/desktop.lua
|
||||
/etc/ulatencyd/rules/gnome.lua
|
||||
/etc/ulatencyd/rules/00-fixers.lua
|
||||
/etc/ulatencyd/rules/lxde.lua
|
||||
/etc/ulatencyd/rules/zz_fixers.lua
|
||||
/etc/ulatencyd/rules/system.lua
|
||||
/etc/ulatencyd/rules/kde.lua
|
||||
/etc/ulatencyd/rules/scheduler.lua
|
||||
/etc/ulatencyd/rules/xfce.lua
|
||||
/etc/ulatencyd/rules/io.lua
|
||||
/etc/ulatencyd/ulatencyd.conf
|
||||
/etc/ulatencyd/simple.d/subtle.conf
|
||||
/etc/ulatencyd/simple.d/isolate.conf
|
||||
/etc/ulatencyd/simple.d/games.conf
|
||||
/etc/ulatencyd/simple.d/lxde.conf
|
||||
/etc/ulatencyd/simple.d/applications.conf
|
||||
/etc/ulatencyd/simple.d/audio.conf
|
||||
/etc/ulatencyd/simple.d/idle.conf
|
||||
/etc/ulatencyd/simple.d/sessions.conf
|
||||
/etc/ulatencyd/simple.d/dbus.conf
|
||||
/etc/ulatencyd/simple.d/xfce.conf
|
||||
/etc/ulatencyd/simple.d/cinnamon.conf
|
||||
/etc/ulatencyd/simple.d/screencasters.conf
|
||||
/etc/ulatencyd/simple.d/ui.conf
|
||||
/etc/ulatencyd/simple.d/pantheon.conf
|
||||
/etc/ulatencyd/simple.d/portage.conf
|
||||
/etc/ulatencyd/simple.d/fixes.conf
|
||||
/etc/ulatencyd/simple.d/ubuntu.conf
|
||||
/etc/ulatencyd/simple.d/bittorrent.conf
|
||||
/etc/ulatencyd/simple.d/video.conf
|
||||
/etc/ulatencyd/simple.d/unity.conf
|
||||
/etc/ulatencyd/simple.d/media.conf"
|
||||
|
||||
patch_args='-Np1'
|
||||
|
||||
post_install() {
|
||||
vsv ulatencyd
|
||||
|
||||
vinstall ${FILESDIR}/subtle.lua 644 etc/ulatencyd/rules
|
||||
vinstall ${FILESDIR}/subtle.conf 644 etc/ulatencyd/simple.d
|
||||
|
||||
vmkdir usr/share
|
||||
mv ${DESTDIR}/usr/man ${DESTDIR}/usr/share
|
||||
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
|
||||
}
|
Loading…
Reference in New Issue