Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620954 - =media-sound/ardour-4.7-r1 fixes to compile after upgrade to gcc-5
Summary: =media-sound/ardour-4.7-r1 fixes to compile after upgrade to gcc-5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-06-05 21:15 UTC by Mark Dominik Bürkle
Modified: 2017-06-08 16:44 UTC (History)
1 user (show)

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


Attachments
/etc/portage/patches/media-sound/ardour/ patches, 1 of 5 (libs-gtkmm2ext-actions-cc.patch,326 bytes, patch)
2017-06-05 21:15 UTC, Mark Dominik Bürkle
Details | Diff
/etc/portage/patches/media-sound/ardour/ patches, 2 of 5 (libs-gtkmm2ext-fastmeter-cc.patch,328 bytes, patch)
2017-06-05 21:16 UTC, Mark Dominik Bürkle
Details | Diff
/etc/portage/patches/media-sound/ardour/ patches, 3 of 5 (gtk2_ardour-editor-cc.patch,830 bytes, patch)
2017-06-05 21:16 UTC, Mark Dominik Bürkle
Details | Diff
/etc/portage/patches/media-sound/ardour/ patches, 4 of 5 (gtk2_ardour-fft_graph-cc.patch,513 bytes, patch)
2017-06-05 21:16 UTC, Mark Dominik Bürkle
Details | Diff
/etc/portage/patches/media-sound/ardour/ patches, 5 of 5 (gtk2_ardour-startup-cc.patch,1.05 KB, patch)
2017-06-05 21:17 UTC, Mark Dominik Bürkle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Dominik Bürkle 2017-06-05 21:15:43 UTC
Created attachment 475300 [details, diff]
/etc/portage/patches/media-sound/ardour/ patches, 1 of 5

After updating to gcc-5, ardour-4.7 no longer compiles.

There were some "== 0" and "!= 0" comparisons of pointers which gcc-5 does not seem to understand any more. (?? WTF ??)
I created a bunch of user-patches and modified the ebuild file (include epatch_user) as a workaround.

The patches make implicit type casts where "== 0" was tested and remove "!= 0" in the other cases.


to patch ardour-4.7-r1.ebuild:
--- media-sound/ardour/ardour-4.7-r1.ebuild.old	2017-06-05 07:06:10.417275997 +0200
+++ media-sound/ardour/ardour-4.7-r1.ebuild	2017-06-05 04:26:44.930812407 +0200
@@ -107,6 +107,7 @@
 	append-flags "-lboost_system"
 	python_fix_shebang "${S}"/wscript
 	python_fix_shebang "${S}"/waf
+	epatch_user
 }
 
 src_configure() {
Comment 1 Mark Dominik Bürkle 2017-06-05 21:16:07 UTC
Created attachment 475302 [details, diff]
/etc/portage/patches/media-sound/ardour/ patches, 2 of 5
Comment 2 Mark Dominik Bürkle 2017-06-05 21:16:28 UTC
Created attachment 475304 [details, diff]
/etc/portage/patches/media-sound/ardour/ patches, 3 of 5
Comment 3 Mark Dominik Bürkle 2017-06-05 21:16:49 UTC
Created attachment 475306 [details, diff]
/etc/portage/patches/media-sound/ardour/ patches, 4 of 5
Comment 4 Mark Dominik Bürkle 2017-06-05 21:17:17 UTC
Created attachment 475308 [details, diff]
/etc/portage/patches/media-sound/ardour/ patches, 5 of 5
Comment 5 Jonas Stein gentoo-dev 2017-06-06 15:21:25 UTC
Thank you.
Comment 6 Andreas Schürch gentoo-dev 2017-06-08 16:44:34 UTC
Thank you very much Mark! This is highly appreciated! :-)
I combined the patches into one file and committed it in an -r2 version.