Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248351 - sci-electronics/gwave: fails with forced --as-needed
Summary: sci-electronics/gwave: fails with forced --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Soldering-Iron Brotherhood
URL: http://www.gentoo.org/proj/en/qa/asne...
Whiteboard:
Keywords:
Depends on: 305031
Blocks: as-needed
  Show dependency tree
 
Reported: 2008-11-23 15:42 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-05-30 15:15 UTC (History)
2 users (show)

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


Attachments
Build log (gwave-20080127:20081122-221708.log,19.55 KB, text/plain)
2008-11-23 15:42 UTC, Diego Elio Pettenò (RETIRED)
Details
adding patch to ebuild (gwave-20090213.diff,799 bytes, patch)
2010-02-06 17:40 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details | Diff
fixing as-needed issues (gwave2-20090213-as-needed.patch,1.06 KB, patch)
2010-02-06 17:40 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details | Diff
fixing as-needed issues (gwave-20090213-as-needed.patch,2.20 KB, patch)
2010-02-06 17:44 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details | Diff
build log (gwave-20090213:06022010.log,21.46 KB, text/plain)
2010-02-06 21:12 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details
emerge info (aiur.info,3.70 KB, text/plain)
2010-02-06 21:12 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-23 15:42:16 UTC
I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details).

Check the attached build log.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-23 15:42:45 UTC
Created attachment 172959 [details]
Build log
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-02 13:32:02 UTC
Looks like another candidate for punting given it uses glib and gtk 1.2 . Brotherhood any indication on this?
Comment 3 Denis Dupeyron (RETIRED) gentoo-dev 2009-06-02 14:01:45 UTC
I'd love to punt it but I have simply not found any other application that is able to draw analog waveforms. There are version of gwave that use gtk2 but I have never been able to compile them, and I'm not the only one. There is a newer version so I'll try again.

Denis.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-07-03 16:44:00 UTC
(In reply to comment #3)
> I'd love to punt it but I have simply not found any other application that is
> able to draw analog waveforms. There are version of gwave that use gtk2 but I
> have never been able to compile them, and I'm not the only one. There is a
> newer version so I'll try again.
> 
> Denis.
> 

So, it is useful. Roger, treecleaners out. ;)
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2009-10-28 00:50:41 UTC
(In reply to comment #3)
> I'd love to punt it but I have simply not found any other application that is
> able to draw analog waveforms. There are version of gwave that use gtk2 but I
> have never been able to compile them, and I'm not the only one. There is a
> newer version so I'll try again.
> 
> Denis.
> 

I started an ebuild and filed an issue upstream. Let's see what happens.

http://sourceforge.net/tracker/?func=detail&aid=2887329&group_id=211903&atid=1019623

Comment 6 Rafael Martins (RETIRED) gentoo-dev 2009-11-04 02:13:31 UTC
I am also working on it, without success. :(
Comment 7 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-02-06 17:40:34 UTC
Created attachment 218691 [details, diff]
adding patch to ebuild
Comment 8 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-02-06 17:40:49 UTC
Created attachment 218693 [details, diff]
fixing as-needed issues
Comment 9 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-02-06 17:44:06 UTC
Created attachment 218695 [details, diff]
fixing as-needed issues
Comment 10 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-02-06 21:12:21 UTC
Created attachment 218739 [details]
build log
Comment 11 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-02-06 21:12:53 UTC
Created attachment 218741 [details]
emerge info
Comment 12 Andreas K. Hüttel archtester gentoo-dev 2010-02-07 00:20:26 UTC
Just for reference the update to 20090213 was reported in bug 293397.

Nothing about --as-needed there though.
Comment 13 Rafael Martins (RETIRED) gentoo-dev 2010-02-14 01:45:41 UTC
I can't confirm this error with --as-needed. The package works fine here. I've fixed the unique --as-needed error of the version 20090213 with Denis, when we committed this version to the portage tree.
Comment 14 Rafael Martins (RETIRED) gentoo-dev 2010-02-14 01:56:46 UTC
BTW, I think that this bug is still open because the other versions in the portage tree still fails with forced --as-needed, but as they use gtk+-1, the better approach should be stabilize the last version ASAP and remove the oldest.
Comment 15 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-04-29 10:47:08 UTC
(In reply to comment #14)
> BTW, I think that this bug is still open because the other versions in the
> portage tree still fails with forced --as-needed
It's still open because __gwave-20090213__ fails with as-needed

Look at the linking order:
x86_64-pc-linux-gnu-gcc -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -O2 -march=k8 -pipe -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -Wl,--as-needed -o sp2sp sp2sp.o libspicefile.a

which translates to:

<CC> <bunch of -I> <CFLAGS> <LIBS> <LDFLAGS> -o sp2sp <OBJECT> libspicefile.a 

This is wrong, should be:

<CC> <bunch of -I> <CFLAGS> <LDFLAGS> <OBJECT> -o sp2sp libspicefile.a <LIBS>

Best regards,
Kacper Kowalik
Comment 16 Rafael Martins (RETIRED) gentoo-dev 2010-04-29 16:00:46 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > BTW, I think that this bug is still open because the other versions in the
> > portage tree still fails with forced --as-needed
> It's still open because __gwave-20090213__ fails with as-needed
> 
> Look at the linking order:
> x86_64-pc-linux-gnu-gcc -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng12   -O2 -march=k8 -pipe
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0
> -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0
> -lgmodule-2.0 -lglib-2.0   -Wl,--as-needed -o sp2sp sp2sp.o libspicefile.a
> 
> which translates to:
> 
> <CC> <bunch of -I> <CFLAGS> <LIBS> <LDFLAGS> -o sp2sp <OBJECT> libspicefile.a 
> 
> This is wrong, should be:
> 
> <CC> <bunch of -I> <CFLAGS> <LDFLAGS> <OBJECT> -o sp2sp libspicefile.a <LIBS>
> 
> Best regards,
> Kacper Kowalik
> 

I'll tests this later.

thanks,
Rafael
Comment 17 Thomas Beierlein gentoo-dev 2010-05-30 12:55:00 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > BTW, I think that this bug is still open because the other versions in the
> > portage tree still fails with forced --as-needed
> It's still open because __gwave-20090213__ fails with as-needed
> 
> Look at the linking order:
> x86_64-pc-linux-gnu-gcc -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng12   -O2 -march=k8 -pipe
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0
> -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0
> -lgmodule-2.0 -lglib-2.0   -Wl,--as-needed -o sp2sp sp2sp.o libspicefile.a
> 
> which translates to:
> 
> <CC> <bunch of -I> <CFLAGS> <LIBS> <LDFLAGS> -o sp2sp <OBJECT> libspicefile.a 
> 
> This is wrong, should be:
> 
> <CC> <bunch of -I> <CFLAGS> <LDFLAGS> <OBJECT> -o sp2sp libspicefile.a <LIBS>
> 
> Best regards,
> Kacper Kowalik
> 

Your provided patches works well and fixes the problem. Thanks.
Comment 18 Thomas Beierlein gentoo-dev 2010-05-30 15:15:45 UTC
Fixed in gwave-20090213-r1. Thanks Xarthisius.

+*gwave-20090213-r1 (30 May 2010)
+
+  30 May 2010; Thomas Beierlein <tomjbe@gentoo.org>
+  +gwave-20090213-r1.ebuild, +files/gwave-20090213-as-needed.patch:
+  Fix for bug #248351