这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions x11-packages/synaptic/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
39 changes: 11 additions & 28 deletions x11-packages/synaptic/common-rconfiguration.cc.patch
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -88,3 +70,4 @@

return true;
}

Loading