| View previous topic :: View next topic |
| Author |
Message |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27771 Location: 56N 3W
|
Posted: Sat Jun 24, 2006 6:51 pm Post subject: Balsa Breakage |
|
|
Hi,
My system is all ~x86, so thats GNOME 2.14.1 and Balsa 2.3.8 built with glibc-2.4 and gcc-4.1.1
A recent update to Gnome has broken balsa rather badly. 2.3.8 crashes ever few minutes an will no longer build as it contains depreciated symbols.
Google says the fix is in Balsa 2.3.11, which I can't find but 2.3.12 is out there.
Having bumped the balsa-2.3.8 ebuild in my overlay, and ripped out the crypto flag to get it to link, what comes out the end is no better.
It still crashes. Theres no error message - even running it from an xterm. Removing threading support doesn't help.
Google suggests that the mimimum verisons of some required packages are later than those in portage, so I've added them to my overlay and fixed the balsa ebuild to require them. No change.
Any ideas for making progress ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
Gergan Penkov Veteran


Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Sat Jun 24, 2006 8:30 pm Post subject: |
|
|
hm I always wanted to try balsa, but it never worked for me, either not starting or just crashing.
I've tried to compile 2.3.12, but it has problem with gpgme and threads, patching the ebuild from 2.3.8 to 2.3.12:
| Code: | diff -Nua /usr/portage/mail-client/balsa/balsa-2.3.8.ebuild /usr/local/overlays/portage/mail-client/balsa/balsa-2.3.12.ebuild
--- /usr/portage/mail-client/balsa/balsa-2.3.8.ebuild 2006-01-21 22:26:53.000000000 +0100
+++ /usr/local/overlays/portage/mail-client/balsa/balsa-2.3.12.ebuild 2006-06-24 22:01:59.000000000 +0200
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-client/balsa/balsa-2.3.8.ebuild,v 1.1 2006/01/21 21:26:53 compnerd Exp $
-inherit gnome2
+inherit gnome2 autotools eutils
DESCRIPTION="Email client for GNOME"
HOMEPAGE="http://balsa.gnome.org"
@@ -48,6 +48,13 @@
DOCS="AUTHORS COPYING ChangeLog HACKING INSTALL NEWS README TODO docs/*"
USE_DESTDIR="1"
+src_unpack (){
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/pthreads.patch
+ eautoreconf || die
+}
+
pkg_setup() {
if use crypt ; then
G2CONF="${G2CONF} --with-gpgme=gpgme-config"
|
and using this quick patch:
| Code: | cat /usr/local/overlays/portage/mail-client/balsa/files/pthreads.patch
--- configure.in.orig 2006-06-24 21:25:45.000000000 +0200
+++ configure.in 2006-06-24 21:25:53.000000000 +0200
@@ -313,7 +313,7 @@
AC_DEFINE(HAVE_GPGME,1,[Defined when gpgme is available.])
BALSA_CFLAGS="$BALSA_CFLAGS `$gpgmecfg --cflags`"
if test x"$use_threads" = xyes; then
- BALSA_LIBS="$BALSA_LIBS `$gpgmecfg --thread=pthread --libs`"
+ BALSA_LIBS="$BALSA_LIBS `$gpgmecfg --thread=pth --libs`"
else
BALSA_LIBS="$BALSA_LIBS `$gpgmecfg --libs`"
|
I was able to emerge it - note that I use gpgme-1.1.2-r1
it segfaults on start and in gdb shows problems for gpgme with pthreads, I've also tried to switch building with gtkhml-3 (just for fun), but this does not make any difference.
On the other hand most of the gnome dependacies are cvs-versions here (I mean installed from recent cvs), I probably should try to build the balsa cvs version and see if it is better
In fact I use sylpheed-claws and am rather happy with it, although the portage support is also lacking  _________________ "I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27771 Location: 56N 3W
|
Posted: Sat Jun 24, 2006 10:49 pm Post subject: |
|
|
Gergan Penkov,
I can't make your configure.in patch apply - not even by hand
The cinfigure.in.rej file is correct - it has both the before and afer versons.
Hmm - Bug buddy shows 'system-supplied DSO ar 0xffffe000 has disappeared.
That addess is rather worrying - its the start of the BIOS in protected mode. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Last edited by NeddySeagoon on Sat Jun 24, 2006 11:00 pm; edited 1 time in total |
|
| Back to top |
|
 |
Gergan Penkov Veteran


Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Sat Jun 24, 2006 10:59 pm Post subject: |
|
|
hm strange,
the problem was that gpgme-config does not take --thread=pthread but --thread=pth
now if you could not apply the patch probably it could be the cat-line in the beginning, but you could easily recreate it:
ebuild /xxx/yyy/mail-client/balsa/balsa-2.3.12.ebuild unpack
cd /var/tmp/portage/balsa-2.3.12/work/balsa-2.3.12/
cp configure.in configure.in.orig
edit configure.in
find and change
BALSA_LIBS="$BALSA_LIBS `$gpgmecfg --thread=pthread --libs`"
to
BALSA_LIBS="$BALSA_LIBS `$gpgmecfg --thread=pth --libs`"
diff -Nua /var/tmp/portage/balsa-2.3.12/work/balsa-2.3.12/configure.in.orig /var/tmp/portage/balsa-2.3.12/work/balsa-2.3.12/configure.in > /xxx/yyy/mail-client/balsa/files/pthreads.patch
redigest and emerge it should work
edit:
oh my bad the diff header could break in this way, better use
cd /var/tmp/portage/balsa-2.3.12/work/balsa-2.3.12/
diff -Nua configure.in.orig configure.in > /xxx/yyy/mail-client/balsa/files/pthreads.patch _________________ "I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27771 Location: 56N 3W
|
Posted: Sat Jun 24, 2006 11:36 pm Post subject: |
|
|
Gergan Penkov,
Your original patch has a line of context missing from the end - I spotted that but miscounted and added 2 lines.
Having recreated the patch, its happy.
Well, it compiles and launches but it only runs for a few seconds then crashes again.
It will open and stay open as long as the user interface isn't used. Turning off threads doesn't help either. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
Gergan Penkov Veteran


Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Sat Jun 24, 2006 11:45 pm Post subject: |
|
|
I will try and look if the cvs-version works better, but at least now it could be compiled with all the use-flags here
And if you see the gui you are a little bit luckier than I am, as it dies directly and does not show anything  _________________ "I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27771 Location: 56N 3W
|
Posted: Sun Jun 25, 2006 10:28 am Post subject: |
|
|
Gergan Penkov,
I think the problem is outside of Balsa now.
I can make another Gnome program crash with the same backtrace in BugBuddy. Thats Bugbuddy itself.
It follows that if its a single point of failure, its something they both use.
Edit to add fix
mail-client/balsa-2.3.12 and gtk+-2.8.19 are broken together.
Your patch for the ebuild works on ~x86 but you must downgrade gtk+ to 2.8.18 _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
genterminl Apprentice


Joined: 12 Feb 2005 Posts: 283 Location: Connecticut, USA
|
Posted: Tue Aug 08, 2006 12:16 pm Post subject: |
|
|
I've been using balsa 2.3.8 without problems for many months. However, I tried to re-emerge and got a failure
main.c: In function 'balsa_init':
main.c:252: erreur: 'GNOME_PARAM_POPT_TABLE' undeclared (first use in this function)
(This has been reported as bug 137922 )
As said above and in the bug, something balsa depends on has apparently upgraded and depracated some symbols. My previously emerged version remains perfectly stable, although I seem to be missing a few icons. However, 2.3.8 is the latest in portage (and 2.0.15-r2 is the latest not ~x86). How hard would it be to modify the ebuilld for 2.3.8 to change one of the RDEPEND lines to roll back the offending package to an earlier version? I know this probably would not work for someone who runs all ~x86, but I run mostly stable, with only a few packages ~x86. |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27771 Location: 56N 3W
|
Posted: Tue Aug 08, 2006 12:25 pm Post subject: |
|
|
genterminl,
I don't know - mail-client/balsa has a lot of dependancies and yes, 2.3.8 continues to work, providing they are satified.
You can no longer buld it though.
I don't see how going back is useful - thats partly why upstream issued the updates.
I can provide ebuilds for 2.3.12 and 2.3.13 if that helps - you will need to run an overlay.
I need to do more testing before I let them out though. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
genterminl Apprentice


Joined: 12 Feb 2005 Posts: 283 Location: Connecticut, USA
|
Posted: Tue Aug 08, 2006 1:02 pm Post subject: |
|
|
NeddySeagoon,
Thanks for the offer. 2.3.8 continues to work fine for me, so I'm not in any rush, and I haven't used overlays at all yet. I suppose this is as good a time as any to learn, so I'll keep an eye out here and be willing to test when you are willing to release.
However, I'd argue a little about whether fixing 2.3.8 so it compiles would be going back. It's the highest version in portage, and it looke to me like it wouldn't compile on a new install. In my mind, this means that releasing the upgraded depndency without fixing balsa broke something. I know the developers can't test everything, but ... I suppose getting a newer balsa into portage is really the right thing to do. Hope I can help, at least with some testing.
genterminl |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27771 Location: 56N 3W
|
Posted: Tue Aug 08, 2006 2:24 pm Post subject: |
|
|
genterminl,
You can get my overlay.
You need at least the mail-client branch.
The 2.6.12 ebiuld is now broken for me, at least, the configure fails, so I've abandoned it.
2.6.13 builds and runs OK as long as you don;'t have USE="crypt" set.
It tells you now, instead of just ignoring the setting, which was OK for me but not the wider world.
There is a diff file, showing changes from the 2.6.8 to 2.6.13 ebuilds. A line starting with a - is removed, a line starting with a + is added.
Based on information from Linux From Scratch, I've updated minimum versions required for some packages, I did not test with the original 2.3.8 ebuild versions. You may wish to revert these and try for yourself.
In /etc/make.conf set your PORTDIR_OVERLAY=/usr/local/portage makedir /usr/local/portage and copy everything you need from my overlay there, maintainging the directory struture. If all is well, when you | Code: | | emerge mail-client/basla -av | It will offer you version 2.6.13. Since you are running a stable box, it may want other testing packages. You have two options. Add them or revert the versions in the ebuild, following the diff file.
If you do edit the ebuild, you must run | Code: | | ebuild /full/path/to/ebuild manifest | to recreate the manifest. emerge will remind you if you forget.
I'm often on irc.freenode.net #gentoo-uk - don't be afradid to ping me.
As you say, it appears the the rest of Gnome, or at least, balsas' dependancies, have moved on so balsa should be updated too. You may have issues with gtk+ versions too.
If you wish to save balsa-2.3.8 so you can go back quickly, run Later you will be able to | Code: | | emerge -K =balsa-2.3.8 | to reinstall from the saved binary tarball. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Last edited by NeddySeagoon on Sun Sep 03, 2006 3:27 pm; edited 1 time in total |
|
| Back to top |
|
 |
genterminl Apprentice


Joined: 12 Feb 2005 Posts: 283 Location: Connecticut, USA
|
Posted: Sun Sep 03, 2006 3:26 pm Post subject: |
|
|
| Thanks for all the info and support. I created an overlay and copied your ebuild, but I used all the original dependencies from 2.3.8. Compiled with gcc-3.4.6 (with crypt and without threads USE flags) it compiles and runs fine. I'm in process of recompiling everything due to gcc upgrade to 4.1, so I'll see how that goes, and maybe try turning on threads to see if it still breaks. |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27771 Location: 56N 3W
|
Posted: Sun Sep 03, 2006 3:31 pm Post subject: |
|
|
genterminl,
I use gcc-4.1.1 with threads and without crypto. Works for me. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|