0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-10 18:35:41 +00:00
Files
termux-packages/disabled-packages/aptitude/0005-fix-ftbfs-with-gcc-12.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

35 lines
971 B
Diff

From 3b135b1a8a575a3cf0718c697e546ea192dfb88d Mon Sep 17 00:00:00 2001
From: Paul Wise <pabs@debian.org>
Date: Sun, 24 Jul 2022 16:40:28 +0800
Subject: [PATCH] Declare operator<< functions used by cppunit before they are
used.
Solves a build failure with GCC 12 and clang.
Fixes: https://bugs.debian.org/1012895
---
tests/test_parsers.cc | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/test_parsers.cc b/tests/test_parsers.cc
index 1bcc8e31..afb046f6 100644
--- a/tests/test_parsers.cc
+++ b/tests/test_parsers.cc
@@ -20,6 +20,14 @@
#include <generic/util/parsers.h>
+// These are used by cppunit so they must be declared early.
+
+template<typename T>
+std::ostream &operator<<(std::ostream &out, const std::optional<T> &o);
+
+template<typename T>
+std::ostream &operator<<(std::ostream &out, const std::vector<T> &v);
+
#include <cppunit/extensions/HelperMacros.h>
#include <boost/fusion/container/generation/make_vector.hpp>
--
2.36.1