From 7fa0d7cfc855e81438350095dfd3da7abe919efd Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 8 Feb 2015 19:16:34 +0100 Subject: [PATCH] - updated pld_man,man_fixes patches - added rpm5 patch (adjust for rpm5 API) - added includes patch (missing includes required by recent gcc/glibc) - added format patch (fixes build with -Werror=format-security) --- apt-format.patch | 20 +++++++ apt-includes.patch | 40 +++++++++++++ apt-man_fixes.patch | 117 ------------------------------------- apt-pld_man.patch | 13 ----- apt-rpm5.patch | 137 ++++++++++++++++++++++++++++++++++++++++++++ apt.spec | 127 +++++++++++++++++++++++++++------------- 6 files changed, 284 insertions(+), 170 deletions(-) create mode 100644 apt-format.patch create mode 100644 apt-includes.patch create mode 100644 apt-rpm5.patch diff --git a/apt-format.patch b/apt-format.patch new file mode 100644 index 0000000..3746193 --- /dev/null +++ b/apt-format.patch @@ -0,0 +1,20 @@ +--- apt-0.5.15lorg3.94a/methods/gpg.cc.orig 2008-01-12 10:45:07.000000000 +0100 ++++ apt-0.5.15lorg3.94a/methods/gpg.cc 2015-02-08 16:39:02.051118648 +0100 +@@ -369,7 +369,7 @@ + if (msg != NULL) + { + removeTmpDir(TempDir, SigCount); +- return _error->Error(msg); ++ return _error->Error("%s", msg); + } + } + else +@@ -393,7 +393,7 @@ + if (msg != NULL) + { + removeTmpDir(TempDir, SigCount); +- return _error->Error(msg); ++ return _error->Error("%s", msg); + } + if (KeyList.empty()) + KeyList = KeyID; diff --git a/apt-includes.patch b/apt-includes.patch new file mode 100644 index 0000000..fe6c429 --- /dev/null +++ b/apt-includes.patch @@ -0,0 +1,40 @@ +--- apt-0.5.15lorg3.94a/apt-pkg/pkgcache.h.orig 2008-01-12 10:45:07.000000000 +0100 ++++ apt-0.5.15lorg3.94a/apt-pkg/pkgcache.h 2015-02-05 21:12:53.014640035 +0100 +@@ -25,6 +25,7 @@ + + #include + #include ++#include + #include + + using std::string; +--- apt-0.5.15lorg3.94a/apt-pkg/contrib/progress.h.orig 2008-01-12 10:45:07.000000000 +0100 ++++ apt-0.5.15lorg3.94a/apt-pkg/contrib/progress.h 2015-02-05 21:18:21.347959589 +0100 +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + + using std::string; + using std::map; +--- apt-0.5.15lorg3.94a/apt-pkg/srcrecords.h.orig 2008-01-12 10:45:07.000000000 +0100 ++++ apt-0.5.15lorg3.94a/apt-pkg/srcrecords.h 2015-02-08 16:17:47.344505476 +0100 +@@ -19,6 +19,7 @@ + + #include + #include ++#include + + using std::string; + using std::vector; +--- apt-0.5.15lorg3.94a/methods/http.cc.orig 2015-02-08 17:06:09.701050343 +0100 ++++ apt-0.5.15lorg3.94a/methods/http.cc 2015-02-08 17:06:11.574383597 +0100 +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + #include + #include + diff --git a/apt-man_fixes.patch b/apt-man_fixes.patch index 42d7437..e89699e 100644 --- a/apt-man_fixes.patch +++ b/apt-man_fixes.patch @@ -1,120 +1,3 @@ -diff -Nur apt-0.5.4cnc7.orig/doc/apt-cdrom.8.sgml apt-0.5.4cnc7/doc/apt-cdrom.8.sgml ---- apt-0.5.4cnc7.orig/doc/apt-cdrom.8.sgml Tue Jul 23 19:54:52 2002 -+++ apt-0.5.4cnc7/doc/apt-cdrom.8.sgml Tue Dec 10 16:43:13 2002 -@@ -54,7 +54,7 @@ - add - - .disk/ directory you will be prompted for a descriptive - title. -@@ -101,7 +101,7 @@ - - -@@ -120,7 +120,7 @@ - - -@@ -286,7 +286,7 @@ - -