aports/community/apt/fix-basename.patch
Celeste e771316e67 community/apt: upgrade to 2.9.3
add `dpkg` to makedepends, as `dpkg-architecture`
requires the `cputable` file that it contains.
2024-05-15 05:40:36 +00:00

13 lines
289 B
Diff

--- a/cmdline/apt-internal-solver.cc
+++ b/cmdline/apt-internal-solver.cc
@@ -38,6 +38,9 @@
#include <unistd.h>
#include <apti18n.h>
+
+#define basename(name) (strrchr((name),'/') ? strrchr((name),'/')+1 : (name))
+
/*}}}*/
static bool ShowHelp(CommandLine &) /*{{{*/