Bug#708812: [Aptitude-devel] Bug#708812: [aptitude] aptitude segfaults upon being called.

2013-08-22 Thread Axel Beckert
Hi Andi,

Andreas Barth wrote on Sat, 17 Aug 2013 17:24:51 +0200:
> > > > > can you please upload a new aptitude version? Or should I just NMU
> > > > > aptitude with the required patches for gcc-4.8?
> > > > 
> > > > You are aware of that it needs more than just the patches for gcc-4.8
> > > > to get aptitude build again properly?
> > > 
> > > I built (and installed and run) aptitude successfully on mipsel prior
> > > to my NMU of google-mock. Might be that I had luck or whatever - I
> > > will try this built now in a current chroot and see what happens.
> > 
> > Just rebuilt and it works fine. I will make proper packages from that,
> > plus provide the patches I used somewhere, so you could review what I
> > did.
> 
> Works. I put up the source package for inspection on
> http://alius.ayous.org/~aba/.aptitude/
> 
> If wanted, I could upload the full package into unstable (or if I
> don't get a no, I will upload it in a week).

Ok for me. Helps the porters.

I though haven't heard anything from Daniel about this so far.

> The relevant patch is below.
[...]
> diff -Nru aptitude-0.6.8.2/debian/patches/aptitude-0.6.8.2-1.1 
> aptitude-0.6.8.2/debian/patches/aptitude-0.6.8.2-1.1
> --- aptitude-0.6.8.2/debian/patches/aptitude-0.6.8.2-1.1  1970-01-01 
> 00:00:00.0 +
> +++ aptitude-0.6.8.2/debian/patches/aptitude-0.6.8.2-1.1  2013-08-17 
> 11:39:40.0 +
> @@ -0,0 +1,63 @@
> +Description: necessary change to make aptitude buildable in sid again
> +   * cherrypick from git:
> + + 794b91 fix FTBFS with g++-4.8
> + + c142a7 task_list is not extern
> +Author: Andreas Barth 

I'd have put the two cherry-picked commits into separated and less
vacuously named patches. And I also wouldn't have attributed the
patches to myself but to the actual author(s) of the two commits.

But as the NMU probably won't be part of the next maintainer-upload
and because it is only there to bridge the gap to the next upload for
the mipsel porters, it shouldn't be such an issue.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#708812: [Aptitude-devel] Bug#708812: [aptitude] aptitude segfaults upon being called.

2013-08-17 Thread Andreas Barth
* Andreas Barth (a...@ayous.org) [130816 15:11]:
> * Andreas Barth (a...@ayous.org) [130816 11:27]:
> > * Axel Beckert (a...@debian.org) [130815 17:55]:
> > > Andreas Barth wrote:
> > > > * Andreas Barth (a...@ayous.org) [130815 13:18]:
> > > > > As google-mock is now uploaded (and should be built on all
> > > > > architectures within the next hours - already built on most), could
> > > > > you please upload a new version of aptitude to unstable soon (the
> > > > > current version plus the gcc-4.8-patches worked for me, and produced a
> > > > > working aptitude on mipsel)?
> > > > 
> > > > can you please upload a new aptitude version? Or should I just NMU
> > > > aptitude with the required patches for gcc-4.8?
> > > 
> > > You are aware of that it needs more than just the patches for gcc-4.8
> > > to get aptitude build again properly?
> > 
> > I built (and installed and run) aptitude successfully on mipsel prior
> > to my NMU of google-mock. Might be that I had luck or whatever - I
> > will try this built now in a current chroot and see what happens.
> 
> Just rebuilt and it works fine. I will make proper packages from that,
> plus provide the patches I used somewhere, so you could review what I
> did.

Works. I put up the source package for inspection on
http://alius.ayous.org/~aba/.aptitude/

If wanted, I could upload the full package into unstable (or if I
don't get a no, I will upload it in a week).

The relevant patch is below.


Andi



diff -Nru aptitude-0.6.8.2/debian/changelog aptitude-0.6.8.2/debian/changelog
--- aptitude-0.6.8.2/debian/changelog   2012-11-05 01:52:16.0 +
+++ aptitude-0.6.8.2/debian/changelog   2013-08-16 13:25:14.0 +
@@ -1,3 +1,13 @@
+aptitude (0.6.8.2-1.1) unstable; urgency=low
+
+  * cherrypick from git:
++ 794b91 fix FTBFS with g++-4.8
++ c142a7 task_list is not extern
+  * re-upload to unstable to have again a working package on mips*.
+Closes: #708812, #714186
+
+ -- Andreas Barth   Fri, 16 Aug 2013 13:19:40 +
+
 aptitude (0.6.8.2-1) unstable; urgency=low
 
   * [all]: Support for matching architectures using specification
diff -Nru aptitude-0.6.8.2/debian/patches/aptitude-0.6.8.2-1.1 
aptitude-0.6.8.2/debian/patches/aptitude-0.6.8.2-1.1
--- aptitude-0.6.8.2/debian/patches/aptitude-0.6.8.2-1.11970-01-01 
00:00:00.0 +
+++ aptitude-0.6.8.2/debian/patches/aptitude-0.6.8.2-1.12013-08-17 
11:39:40.0 +
@@ -0,0 +1,63 @@
+Description: necessary change to make aptitude buildable in sid again
+   * cherrypick from git:
+ + 794b91 fix FTBFS with g++-4.8
+ + c142a7 task_list is not extern
+Author: Andreas Barth 
+Bug-Debian: http://bugs.debian.org/708812
+Bug-Debian: http://bugs.debian.org/714186
+
+--- aptitude-0.6.8.2.orig/src/generic/apt/aptitude_resolver_universe.cc
 aptitude-0.6.8.2/src/generic/apt/aptitude_resolver_universe.cc
+@@ -822,7 +822,6 @@ std::ostream &operator<<(std::ostream &o
+ 
+ cfg_level aptitude_universe::parse_level(const std::string &s)
+ {
+-  typedef generic_problem_resolver aptitude_resolver;
+   if(s == "maximum")
+ return cfg_level::make_level(cost_limits::maximum_level);
+   else if(s == "minimum" || s == "")
+--- aptitude-0.6.8.2.orig/src/generic/apt/resolver_manager.cc
 aptitude-0.6.8.2/src/generic/apt/resolver_manager.cc
+@@ -384,7 +384,7 @@ void resolver_manager::write_test_contro
+ 
+   typedef generic_choice_set choice_set;
+   typedef generic_choice choice;
+-  typedef aptitude_resolver_package package;
++  // typedef aptitude_resolver_package package;
+   typedef aptitude_resolver_version version;
+   typedef aptitude_resolver_dep dep;
+   const choice_set &choices = sol.get_choices();
+--- aptitude-0.6.8.2.orig/src/generic/apt/tasks.h
 aptitude-0.6.8.2/src/generic/apt/tasks.h
+@@ -63,9 +63,6 @@ public:
+   int relevance;
+ };
+ 
+-// Stores the various tasks.
+-extern std::map *task_list;
+-
+ task *find_task(const std::string &name);
+ 
+ /** \brief Get the set of tasks associated with the given package.
+--- aptitude-0.6.8.2.orig/src/generic/problemresolver/choice.h
 aptitude-0.6.8.2/src/generic/problemresolver/choice.h
+@@ -405,8 +405,6 @@ struct generic_compare_choices_by_effect
+ {
+   int operator()(const generic_choice &c1, const 
generic_choice &c2) const
+   {
+-typedef typename PackageUniverse::version version;
+-typedef typename PackageUniverse::dep dep;
+ using aptitude::util::compare3;
+ 
+ if(c1.get_type() < c2.get_type())
+--- aptitude-0.6.8.2.orig/src/pkg_grouppolicy.cc
 aptitude-0.6.8.2/src/pkg_grouppolicy.cc
+@@ -1096,8 +1096,6 @@ public:
+ void pkg_grouppolicy_task::add_package(const pkgCache::PkgIterator &pkg,
+  pkg_subtree *root)
+ {
+-  using aptitude::apt::task_list;
+-
+   set *tasks = aptitude::apt::get_tasks(pkg);
+ 
+   eassert(tasks);
diff -Nru aptitude-0.6.8.2/debian/patches/series 
aptitude-0.6.8.2/debian/patches/series
--- apti

Bug#708812: [Aptitude-devel] Bug#708812: [aptitude] aptitude segfaults upon being called.

2013-08-16 Thread Andreas Barth
* Andreas Barth (a...@ayous.org) [130816 11:27]:
> * Axel Beckert (a...@debian.org) [130815 17:55]:
> > Andreas Barth wrote:
> > > * Andreas Barth (a...@ayous.org) [130815 13:18]:
> > > > As google-mock is now uploaded (and should be built on all
> > > > architectures within the next hours - already built on most), could
> > > > you please upload a new version of aptitude to unstable soon (the
> > > > current version plus the gcc-4.8-patches worked for me, and produced a
> > > > working aptitude on mipsel)?
> > > 
> > > can you please upload a new aptitude version? Or should I just NMU
> > > aptitude with the required patches for gcc-4.8?
> > 
> > You are aware of that it needs more than just the patches for gcc-4.8
> > to get aptitude build again properly?
> 
> I built (and installed and run) aptitude successfully on mipsel prior
> to my NMU of google-mock. Might be that I had luck or whatever - I
> will try this built now in a current chroot and see what happens.

Just rebuilt and it works fine. I will make proper packages from that,
plus provide the patches I used somewhere, so you could review what I
did.


Andi


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#708812: [Aptitude-devel] Bug#708812: [aptitude] aptitude segfaults upon being called.

2013-08-16 Thread Andreas Barth
* Axel Beckert (a...@debian.org) [130815 17:55]:
> Hi Andi,
> 
> Andreas Barth wrote:
> > * Andreas Barth (a...@ayous.org) [130815 13:18]:
> > > As google-mock is now uploaded (and should be built on all
> > > architectures within the next hours - already built on most), could
> > > you please upload a new version of aptitude to unstable soon (the
> > > current version plus the gcc-4.8-patches worked for me, and produced a
> > > working aptitude on mipsel)?
> > 
> > can you please upload a new aptitude version? Or should I just NMU
> > aptitude with the required patches for gcc-4.8?
> 
> You are aware of that it needs more than just the patches for gcc-4.8
> to get aptitude build again properly?

I built (and installed and run) aptitude successfully on mipsel prior
to my NMU of google-mock. Might be that I had luck or whatever - I
will try this built now in a current chroot and see what happens.


Andi


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#708812: [Aptitude-devel] Bug#708812: [aptitude] aptitude segfaults upon being called.

2013-08-15 Thread Axel Beckert
Hi again,

Andreas Barth wrote earlier:
> As google-mock is now uploaded (and should be built on all
> architectures within the next hours - already built on most), could
> you please upload a new version of aptitude to unstable soon (the
> current version plus the gcc-4.8-patches worked for me, and produced a
> working aptitude on mipsel)?

Axel Beckert wrote:
> You are aware of that it needs more than just the patches for gcc-4.8
> to get aptitude build again properly?

Sorry, I missed your earlier mail. From just the state of the bug
reports it didn't look as if this would be possible.

So sorry for the noise.

Daniel: I'm available for testing and sponsoring until somewhen
Saturday and then probably again from Monday on.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#708812: [Aptitude-devel] Bug#708812: [aptitude] aptitude segfaults upon being called.

2013-08-15 Thread Axel Beckert
Hi Andi,

Andreas Barth wrote:
> * Andreas Barth (a...@ayous.org) [130815 13:18]:
> > As google-mock is now uploaded (and should be built on all
> > architectures within the next hours - already built on most), could
> > you please upload a new version of aptitude to unstable soon (the
> > current version plus the gcc-4.8-patches worked for me, and produced a
> > working aptitude on mipsel)?
> 
> can you please upload a new aptitude version? Or should I just NMU
> aptitude with the required patches for gcc-4.8?

You are aware of that it needs more than just the patches for gcc-4.8
to get aptitude build again properly?

There are more FTBFS issues than just gcc 4.8 IIRC.

E.g. http://bugs.debian.org/710211 blocks
http://bugs.debian.org/701243 and then there is
http://bugs.debian.org/710208

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#708812: [Aptitude-devel] Bug#708812: [aptitude] aptitude segfaults upon being called.

2013-06-18 Thread Javier Vasquez
On Tue, Jun 18, 2013 at 5:14 PM, Axel Beckert  wrote:
> ...
> Any chance to figure out which dependencies of aptitude were upgraded
> during that run? The backtrace wasn't as helpful as expected.
>
> (Yeah, I know it's late for that question, but maybe either
> aptitude's, apt's or dpkg's logs are still there and can answer that
> question.)

I'm afraid not, sorry...

There was one other person reporting the same issue, perhaps he might
be able to provide logs on that particular run.

--
Javier.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#708812: [Aptitude-devel] Bug#708812: [aptitude] aptitude segfaults upon being called.

2013-06-18 Thread Javier Vasquez
On Tue, Jun 18, 2013 at 5:22 PM, Axel Beckert  wrote:
> ...
> Was that "today's upgrade" on Wheezy or on Sid? (Or asked the other
> way round: Does this bug affect Stable or Unstable?)

On unstable (sid).

--
Javier.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#708812: [Aptitude-devel] Bug#708812: [aptitude] aptitude segfaults upon being called.

2013-06-18 Thread Axel Beckert
Hi Javier,

one more question:

Javier Vasquez wrote:
> Package: aptitude
> Version: 0.6.8.2-1
> Architecture: mipsel
> 
> After Today's (2013/05/18) "aptitude safe-upgrade", aptitude segfaults
> upon calling it.
[...]
> I'm running on mipsel architecture for on a loongson-2f mini-pc.

Was that "today's upgrade" on Wheezy or on Sid? (Or asked the other
way round: Does this bug affect Stable or Unstable?)

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#708812: [Aptitude-devel] Bug#708812: [aptitude] aptitude segfaults upon being called.

2013-06-18 Thread Axel Beckert
Hi Javier,

Javier Vasquez wrote:
> After Today's (2013/05/18) "aptitude safe-upgrade", aptitude segfaults
> upon calling it.

Any chance to figure out which dependencies of aptitude were upgraded
during that run? The backtrace wasn't as helpful as expected.

(Yeah, I know it's late for that question, but maybe either
aptitude's, apt's or dpkg's logs are still there and can answer that
question.)

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#708812: [Aptitude-devel] Bug#708812: [aptitude] aptitude segfaults upon being called.

2013-05-18 Thread Javier Vasquez
> What version of libapt-pkg4.12 and apt?

0.9.8.1

Pending still the other request...

--
Javier.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#708812: [Aptitude-devel] Bug#708812: [aptitude] aptitude segfaults upon being called.

2013-05-18 Thread Daniel Hartwig
On 19/05/2013 1:09 AM, "Javier Vasquez"  wrote:
>
> Package: aptitude
> Version: 0.6.8.2-1
> Architecture: mipsel
>
> After Today's (2013/05/18) "aptitude safe-upgrade", aptitude segfaults
> upon calling it.
>
> I'm attaching the strace log when calling aptitude.
>

Please install aptitude-dbg and send a stack trace from gdb.

What version of libapt-pkg4.12 and apt?

> Seems like apt-get still works, though aptitude ncurses UI is really
> missed, and I'm used to aptitude already, :-)
>
> I'm running on mipsel architecture for on a loongson-2f mini-pc.
>
> Thanks,
>
> --
> Javier.
>
> ___
> Aptitude-devel mailing list
> aptitude-de...@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/aptitude-devel