apt-pkg API differs from the one in Debian

Bug #163891 reported by Cameron Dale
8
Affects Status Importance Assigned to Milestone
apt (Debian)
Fix Released
Unknown
apt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: apt

The API for methods in the apt-pkg library differs from the one in Debian. This causes my new apt-transport-debtorrent method to FTBFS on Ubuntu, and would require me to maintain separate packages for Ubuntu and Debian, when they should be identical. There has already been a bug reported in Debian indicating this:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=452001

It seems the problem is mostly in the use of a SetFailExtraMsg() function on Debian, while Ubuntu's apt uses SetFailReason().

Revision history for this message
Cameron Dale (camrdale) wrote :

Attached is the diff between the acquire-method.h files in Debian and Ubuntu. As I said, the main difference is the use of SetFailExtraMsg/SetFailReason, but there are some other differences as well. I used 0.7.6 in Debian and 0.7.6ubuntu14.1 in Ubuntu, but using 0.7.9 in Debian gives similar results.

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I think it's the best to confirm this bug so the people responsible for apt will have a look at it.

Changed in apt:
status: New → Confirmed
Changed in apt:
status: Unknown → Won't Fix
Revision history for this message
Nigel Babu (nigelbabu) wrote :

I've removed the patch flag for the diff since its essentially something that is additional information for the bug.

Revision history for this message
Cameron Dale (camrdale) wrote :

This was fixed by updating the version in Debian to match the API to the version in Ubuntu. Version 0.8.0 uses the same API as the current version in Ubuntu.

Changed in apt (Ubuntu):
status: Confirmed → Invalid
Changed in apt (Debian):
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.