Re: [SPARC64] glib2-2.4.8-1.fc3.src.rpm

"Christian Joensson" <[email protected]> Tue, 23 May 2006 20:12:34 +0200
Newsgroups gmane.linux.aurora.devel
Message-ID <[email protected]>
On 5/23/06, Christian Joensson <[email protected]> wrote:
> On 5/23/06, Christian Joensson <[email protected]> wrote:
> > On 5/23/06, Christian Joensson <[email protected]> wrote:
> > > [Maybe a bit off topic here, let me know if I should drop this(these?)
> > > thread(threads), for now, I hope you can accept the information herein
> > > as memory support for me and others interested until the foot is set
> > > down on what the Aurora project wants with sparc64 variants...]
> > >
> > > well, I get a failure...
> > >
> > > first of all, I try to build glib2 like this:
> > >
> > > CC='gcc -m64' CXX='g++ -m64' rpmbuild --rebuild
> > > glib2-2.4.8-1.fc3.src.rpm --target=sparc64
> > >
> > > then, I get a test failure like this:
> > >
> > > make[4]: Leaving directory `/usr/src/redhat/BUILD/glib-2.4.8/tests'
> > > make  check-TESTS
> > > make[4]: Entering directory `/usr/src/redhat/BUILD/glib-2.4.8/tests'
> > >
> > > ** ERROR **: file atomic-test.c: line 53 (main): assertion failed:
> > > (g_atomic_pointer_compare_and_exchange (&atomic_pointer, NULL,
> > > biggest_pointer))
> > > aborting...
> > > /bin/sh: line 1: 13880 Aborted                 srcdir=.
> > > LIBCHARSET_ALIAS_DIR=../glib/libcharset ${dir}$tst
> > > FAIL: atomic-test
> > >
> > > and thus
> > >
> > > =====================================================================
> > > 1 of 37 tests failed
> > > Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=glib
> > > =====================================================================
> > > make[4]: *** [check-TESTS] Error 1
> > > make[4]: Leaving directory `/usr/src/redhat/BUILD/glib-2.4.8/tests'
> > > make[3]: *** [check-am] Error 2
> > > make[3]: Leaving directory `/usr/src/redhat/BUILD/glib-2.4.8/tests'
> > > make[2]: *** [check-recursive] Error 1
> > > make[2]: Leaving directory `/usr/src/redhat/BUILD/glib-2.4.8/tests'
> > > make[1]: *** [check-recursive] Error 1
> > > make[1]: Leaving directory `/usr/src/redhat/BUILD/glib-2.4.8'
> > > make: *** [check] Error 2
> > > error: Bad exit status from /var/tmp/rpm-tmp.86 (%build)
> > >
> > >
> > > RPM build errors:
> > >     Bad exit status from /var/tmp/rpm-tmp.86 (%build)
> > >
> > > so, I rest here for now...
> >
> >
> > this is now filed as http://bugzilla.gnome.org/show_bug.cgi?id=342666
> >
> > --
> > Cheers,
> >
> > /ChJ
> >
>
> well, bug report showed that this is resolved as
> http://bugzilla.gnome.org/show_bug.cgi?id=167572#c2
>

so, rebuilt now

rpmbuild -ba /usr/src/redhat/SPECS/glib2.spec --target=sparc64

sparc32 rpmbuild --rebuild
/usr/src/redhat/SRPMS/glib2-2.4.8-2.fc3.src.rpm --target=sparc

with the two attachments...



-- 
Cheers,

/ChJ

_______________________________________________
Aurora-sparc-devel mailing list
[email protected]
http://lists.auroralinux.org/mailman/listinfo/aurora-sparc-devel
Aurora FAQ: http://www.ecs.soton.ac.uk/~mas01r/aurorafaq.html
glib2.spec.patch (application/octet-stream, 984 B)
--- /usr/src/redhat/SPECS/glib2.spec	2004-12-06 15:35:01.000000000 +0100
+++ glib2.spec	2006-05-23 19:29:25.000000000 +0200
@@ -1,12 +1,13 @@
 Summary: A library of handy utility functions.
 Name: glib2
 Version: 2.4.8
-Release: 1.fc3
+Release: 2.fc3
 License: LGPL
 Group: System Environment/Libraries
 Source: glib-%{version}.tar.bz2
 Source2: glib2.sh
 Source3: glib2.csh
+Patch0: glib2-2.4.8-gatomic.patch
 Conflicts: libgnomeui <= 2.2.0
 BuildRoot: %{_tmppath}/glib-%{PACKAGE_VERSION}-root
 BuildRequires: pkgconfig >= 0.8
@@ -37,6 +38,8 @@
 %prep
 %setup -q -n glib-%{version}
 
+%patch0 -p0 -b .gatomic
+
 %build
 
 for i in config.guess config.sub ; do
@@ -97,6 +100,10 @@
 %{_mandir}/man1/*
 
 %changelog
+* Tue May 23 2006 Christian Joensson <[email protected]>
+- Add patch for 64 bit issue with atomic test, from
+  http://bugzilla.gnome.org/attachment.cgi?id=46611
+
 * Mon Dec 06 2004 Matthias Clasen <[email protected]> - 2.4.8-1.fc3
 - Upgrade to 2.4.8
glib2-2.4.8-gatomic.patch (application/octet-stream, 416 B)
--- glib/gatomic.c.orig	2006-05-23 19:26:41.000000000 +0200
+++ glib/gatomic.c	2006-05-23 19:28:04.000000000 +0200
@@ -119,7 +119,7 @@
                     : "=r" (result), "=m" (*a)
                     : "r" (oldval), "m" (*a), "r" (a),
                       "0" (newval));
-  return result != 0;
+  return result == oldval;
 }
 #  else /* What's that */
 #    error "Your system has an unsupported pointer size"