0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-12 04:23:25 +00:00
Files
termux-packages/disabled-packages/aptitude/0003-fix-FTBFS-1011681.patch
Ted Stein 47f0921d9e rmpkg(main/aptitude): Remove redundant/broken apt alternative
`aptitude`'s unique functionality is a TUI alternative to `apt`. It
hardcodes the belief that you must be root to change packages, and
attempting to make any changes prompts you to become root, which
obviously won't work for most users. I didn't try, but if it did work,
it would obviously do something bad.

Its `apt`-alike non-interactive use (`aptitude install`, etc) appears to
work fine without root, but looks to be basically identical to `apt`
proper.
2025-04-01 18:24:15 +08:00

16 lines
376 B
Diff

Description: Fix FTBFS due missing unistd.h include
Probably caused by a more recent C/C++ compiler
Bug-Debian: https://bugs.debian.org/1011681
Author: Axel Beckert <abe@debian.org>
--- a/src/generic/apt/dpkg.cc
+++ b/src/generic/apt/dpkg.cc
@@ -35,6 +35,7 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <fcntl.h>
+#include <unistd.h>
using namespace std;