Source: packagekit
Version: 1.0.8-1
Severity: important
Control: tag -1 sid stretch

Dear Maintainer,

During a rebuild of your package against APT 1.1 from experimental, which
we intend to upload to unstable soon, your package failed to build from
source.

I attached a patch that makes it compile further, but it's not complete
yet, as pkgAcqFileSane needs to be changed or replaced.

If you have questions, join #debian-apt on OFTC or send us
a mail to de...@lists.debian.org


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (100, 'experimental'), (1, 
'buildd-experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Be friendly, do not top-post, and follow RFC 1855 "Netiquette".
    - If you don't I might ignore you.
diff -Nru packagekit-1.0.8/debian/changelog packagekit-1.0.8/debian/changelog
--- packagekit-1.0.8/debian/changelog	2015-08-28 18:03:08.000000000 +0200
+++ packagekit-1.0.8/debian/changelog	2015-09-11 21:56:58.000000000 +0200
@@ -1,3 +1,9 @@
+packagekit (1.0.8-2) UNRELEASED; urgency=medium
+
+  * Add support for APT 1.1
+
+ -- Julian Andres Klode <j...@debian.org>  Fri, 11 Sep 2015 21:56:51 +0200
+
 packagekit (1.0.8-1) unstable; urgency=medium
 
   * New upstream release: 1.0.8
diff -Nru packagekit-1.0.8/debian/patches/99_apt_1.1.patch packagekit-1.0.8/debian/patches/99_apt_1.1.patch
--- packagekit-1.0.8/debian/patches/99_apt_1.1.patch	1970-01-01 01:00:00.000000000 +0100
+++ packagekit-1.0.8/debian/patches/99_apt_1.1.patch	2015-09-11 22:03:25.000000000 +0200
@@ -0,0 +1,72 @@
+--- a/backends/aptcc/deb-file.cpp
++++ b/backends/aptcc/deb-file.cpp
+@@ -38,8 +38,6 @@ DebFile::DebFile(const string &filename)
+     } else {
+         m_isValid = true;
+     }
+-
+-    m_controlData = m_extractor->Section;
+ }
+ 
+ bool DebFile::isValid() const
+@@ -54,27 +52,27 @@ string DebFile::filePath() const
+ 
+ string DebFile::packageName() const
+ {
+-    return m_controlData.FindS("Package");
++    return m_extractor->Section.FindS("Package");
+ }
+ 
+ string DebFile::sourcePackage() const
+ {
+-    return m_controlData.FindS("Source");
++    return m_extractor->Section.FindS("Source");
+ }
+ 
+ string DebFile::version() const
+ {
+-    return m_controlData.FindS("Version");
++    return m_extractor->Section.FindS("Version");
+ }
+ 
+ string DebFile::architecture() const
+ {
+-    return m_controlData.FindS("Architecture");
++    return m_extractor->Section.FindS("Architecture");
+ }
+ 
+ string DebFile::conflicts() const
+ {
+-    return m_controlData.FindS("Conflicts");
++    return m_extractor->Section.FindS("Conflicts");
+ }
+ 
+ string DebFile::summary() const
+@@ -87,7 +85,7 @@ string DebFile::summary() const
+ 
+ string DebFile::description() const
+ {
+-    return m_controlData.FindS("Description");
++    return m_extractor->Section.FindS("Description");
+ }
+ 
+ bool DebFile::check()
+--- a/backends/aptcc/deb-file.h
++++ b/backends/aptcc/deb-file.h
+@@ -23,6 +23,8 @@
+ #ifndef DEB_FILE_H
+ #define DEB_FILE_H
+ 
++// FIXME: Hack for APT 1.1 pre-releases, remove
++#include <stdint.h>
+ #include <apt-pkg/debfile.h>
+ 
+ using std::string;
+@@ -50,7 +52,6 @@ public:
+ private:
+     string m_filePath;
+     debDebFile::MemControlExtract *m_extractor;
+-    pkgTagSection m_controlData;
+     string m_errorMsg;
+     bool m_isValid;
+ };
diff -Nru packagekit-1.0.8/debian/patches/series packagekit-1.0.8/debian/patches/series
--- packagekit-1.0.8/debian/patches/series	2015-08-28 18:03:08.000000000 +0200
+++ packagekit-1.0.8/debian/patches/series	2015-09-11 21:56:16.000000000 +0200
@@ -4,3 +4,4 @@
 02_add-vapi-metadata.patch
 03_critical-warnings.patch
 04_dont-assume-time_t-is-long.patch
+99_apt_1.1.patch

Reply via email to