diff --git a/x11-packages/synaptic/build.sh b/x11-packages/synaptic/build.sh index b97620b14d910d..8b8a9182cb0a74 100644 --- a/x11-packages/synaptic/build.sh +++ b/x11-packages/synaptic/build.sh @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://www.nongnu.org/synaptic/ TERMUX_PKG_DESCRIPTION="Synaptic is a graphical package management tool based on GTK+ and APT." TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@Yisus7u7" -TERMUX_PKG_VERSION="0.91.5" +TERMUX_PKG_VERSION="0.91.7" TERMUX_PKG_SRCURL=https://github.com/mvo5/synaptic/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=edd000d988d774faa7075221cda423f955182de476c5bce345d329148a4442a0 +TERMUX_PKG_SHA256=6da82e1ff9f0bd00b34db02ea7d291caeeb546303ba639a8e32ebac8a5db6ccf TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag" TERMUX_PKG_DEPENDS="apt, dpkg, gdk-pixbuf, glib, gtk3, libc++, libvte, pango" diff --git a/x11-packages/synaptic/common-rconfiguration.cc.patch b/x11-packages/synaptic/common-rconfiguration.cc.patch index a9d66bee861fa0..88ed411ce34a35 100644 --- a/x11-packages/synaptic/common-rconfiguration.cc.patch +++ b/x11-packages/synaptic/common-rconfiguration.cc.patch @@ -1,5 +1,5 @@ ---- a/common/rconfiguration.cc -+++ b/common/rconfiguration.cc +--- ./common/rconfiguration.cc.orig 2025-05-26 23:06:42.466781607 +0530 ++++ ./common/rconfiguration.cc 2025-05-26 23:08:32.688094520 +0530 @@ -88,24 +88,22 @@ // store option 'consider recommended packages as dependencies' @@ -39,34 +39,16 @@ // and backup Install-Recommends to config of synaptic _config->Set("Synaptic::Install-Recommends", _config->FindB("APT::Install-Recommends", -@@ -137,14 +135,14 @@ - struct stat stbuf; - struct passwd *pwd; +@@ -150,7 +148,7 @@ -- pwd = getpwuid(getuid()); -+ /* pwd = getpwuid(getuid()); - if (!pwd) { - return _error->Errno("getpwuid", - _ - ("ERROR: Could not get password entry for superuser")); - } -- path = string(pwd->pw_dir) + "/.synaptic"; -- //path = "/etc/synaptic"; -+ path = string(pwd->pw_dir) + "/.synaptic";*/ -+ path = "@TERMUX_PREFIX@/etc/synaptic"; + home_dir = string(pwd->pw_dir); + xdg_data_dir = home_dir + "/.config"; +- old_path = home_dir + "/.synaptic"; ++ old_path = "@TERMUX_PREFIX@/etc/synaptic"; + buf = getenv("XDG_CONFIG_HOME"); - if (stat(path.c_str(), &stbuf) < 0) { - if (mkdir(path.c_str(), 0700) < 0) { -@@ -187,7 +185,7 @@ - string RTmpDir() - { - struct stat stbuf; -- static string tmpDir = RConfDir() + string("/tmp/"); -+ static string tmpDir = RConfDir() + string("@TERMUX_PREFIX@/tmp/"); - if (stat(tmpDir.c_str(), &stbuf) < 0) { - if (mkdir(tmpDir.c_str(), 0700) < 0) { - _error->Errno("mkdir", -@@ -243,17 +241,10 @@ + if (buf) { +@@ -285,17 +283,10 @@ // read Install-Recommends, preferably from APT:: if we run as root // or from Synaptic:: otherwise @@ -88,3 +70,4 @@ return true; } +