Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376089 - sci-mathematics/octave 3.4.{0,2} fails to build with USE=curl (net-misc/curl-7.21.7-r2)
Summary: sci-mathematics/octave 3.4.{0,2} fails to build with USE=curl (net-misc/curl-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: curl-7.21.7
  Show dependency tree
 
Reported: 2011-07-23 12:01 UTC by Sergey Kvachonok
Modified: 2011-08-02 14:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Kvachonok 2011-07-23 12:01:03 UTC
Building with USE=curl (net-misc/curl-7.21.7-r2) gives 

DLD-FUNCTIONS/urlwrite.cc:55:24: fatal error: curl/types.h: No such file or directory

This is an upstream bug http://savannah.gnu.org/bugs/?33697

Please integrate the fix provided as a patch into 3.4.0 and 3.4.2 ebuilds.
I've confirmed it's working with octave-3.4.2.
Comment 1 Sander Sweers 2011-07-24 10:38:52 UTC
Adding the below to the ebuild should do the trick.

--- /usr/portage/sci-mathematics/octave/octave-3.4.0-r2.ebuild	2011-07-12 22:52:00.000000000 +0200
+++ /usr/local/mine/sci-mathematics/octave/octave-3.4.0-r2.ebuild	2011-07-24 12:33:40.539997046 +0200
@@ -48,6 +48,8 @@
 
 src_prepare() {
 	epatch "${FILESDIR}"/${P}-{gcc46,pkgbuilddir,fltk,help,fftshift}.patch
+	#Fix bug 376089
+	sed -i '/#include <curl\/types.h>/d' ${S}/src/DLD-FUNCTIONS/urlwrite.cc || die "sed failed"
 	eautoreconf
 }
Comment 2 Christoph Mende (RETIRED) gentoo-dev 2011-07-25 10:13:11 UTC
Fixed via a patch so this can be upstreamed.
I haven't sent it upstream yet, can anyone from the sci-math herd please do so?
Comment 3 Rafael Martins (RETIRED) gentoo-dev 2011-08-02 14:54:01 UTC
Upstream already fixed this in hg.