Re: Build error only on ppc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Roland Wolters wrote:
My problem is that I'm not familiar with fixes in such cases - how can I change that behaviour? I checked the Makefile but there was nothing like that mentioned.


Well, you need to make a patch.  So,

$ cp ktorrent-2.0.3/configure ktorrent-2.0.3/configure.orig

- Edit ktorrent-2.0.3/configure and change the LDFLAGS line to :
LDFLAGS="$LDFLAGS -Wl,-z,now"

$ diff -u ktorrent-2.0.3/configure.orig ktorrent-2.0.3/configure > ktorrent-2.0.3-znow.patch

It should look like:

--- ktorrent-2.0.3/configure.orig       2006-10-13 14:32:26.000000000 -0600
+++ ktorrent-2.0.3/configure    2006-10-13 14:34:23.000000000 -0600
@@ -31299,7 +31299,7 @@

 #MIN_CONFIG(3.3)
 CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS $USE_EXCEPTIONS $USE_RTTI"
-LDFLAGS="$LDFLAGS -Wl -z now"
+LDFLAGS="$LDFLAGS -Wl,-z,now"


 # Check whether --enable-largefile or --disable-largefile was given.


- Edit ktorrent.spec and add the patch:

+++ ktorrent.spec       13 Oct 2006 20:43:49 -0000
@@ -8,6 +8,7 @@
 License:        GPL
 URL:            http://ktorrent.pwsp.net/
 Source0:        http://ktorrent.org/downloads/2.0.3/ktorrent-2.0.3.tar.gz
+Patch0:         ktorrent-2.0.3-znow.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: qt-devel kdelibs-devel desktop-file-utils gettext gmp-devel
@@ -22,6 +23,7 @@

 %prep
 %setup -q
+%patch -p1 -b .znow

 %build
 %configure     --disable-rpath
- Add your patch to cvs:

$ cvs add ktorrent-2.0.3-znow.patch
$ cvs ci

- Try it out. If it still fails on ppc, edit configure again and change the LDFLAGS line again to:

case $host in
ppc*) ;;
   *) LDFLAGS="$LDFLAGS -Wl,-z,now";;
esac

- Update your patch:

$ diff -u ktorrent-2.0.3/configure.znow ktorrent-2.0.3/configure > ktorrent-2.0.3-znow.patch
$ cvs ci


Submit whatever patch works upstream. They'll need to apply it to configure.in or something else, but they should be able to figure that out.

--
Orion Poplawski
System Administrator                  303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion@xxxxxxxxxxxxx
Boulder, CO 80301              http://www.cora.nwra.com

--
Fedora-maintainers mailing list
Fedora-maintainers@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers

--
Fedora-maintainers-readonly mailing list
Fedora-maintainers-readonly@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers-readonly

[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux