After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 641416 - [PATCH] Can't compile gnote on Fedora 15
[PATCH] Can't compile gnote on Fedora 15
Status: RESOLVED FIXED
Product: gnote
Classification: Applications
Component: build
git master
Other Linux
: Normal normal
: ---
Assigned To: Aurimas Černius
gnote-maint
Depends on:
Blocks:
 
 
Reported: 2011-02-03 23:42 UTC by Bastien Nocera
Modified: 2011-03-15 04:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to boost.m4 (739 bytes, patch)
2011-02-03 23:46 UTC, Bastien Nocera
none Details | Review
Update boost.m4 from upstream (21.04 KB, patch)
2011-02-03 23:47 UTC, Bastien Nocera
none Details | Review
Patch to fix the issue. (436 bytes, text/plain)
2011-02-27 19:49 UTC, Aurimas Černius
  Details
Bump required boost version to 1.36 (627 bytes, patch)
2011-03-03 16:46 UTC, Aurimas Černius
none Details | Review
Fix compile with boost 1.46 (2.80 KB, patch)
2011-03-03 16:47 UTC, Aurimas Černius
none Details | Review
Proposed fix (3.35 KB, patch)
2011-03-08 14:55 UTC, Debarshi Ray
none Details | Review
Removed a few more instances of Boost usage (9.62 KB, patch)
2011-03-15 04:38 UTC, Debarshi Ray
none Details | Review

Description Bastien Nocera 2011-02-03 23:42:24 UTC
I gave up after updating boost.m4 from the upstream repo, and adding the ability to detect GCC 4.6.
Comment 1 Bastien Nocera 2011-02-03 23:46:28 UTC
Created attachment 180031 [details] [review]
patch to boost.m4
Comment 2 Bastien Nocera 2011-02-03 23:47:02 UTC
Created attachment 180032 [details] [review]
Update boost.m4 from upstream
Comment 3 Bastien Nocera 2011-02-03 23:48:08 UTC
The build logs from Fedora showing it's unable to find the boost filesystem libraries:
http://koji.fedoraproject.org/koji/getfile?taskID=2759877&name=build.log
Comment 4 Aurimas Černius 2011-02-04 20:58:17 UTC
Thanks for reporting this. I'll take a look at this soon.
Comment 5 Bastien Nocera 2011-02-05 00:08:52 UTC
Petr Machata posted a patch to make this build on Fedora 15:
http://lists.fedoraproject.org/pipermail/devel/2011-February/148377.html

Looks like a lot of the work is in libsigc++ and boost.m4. Given that gnote ships boost.m4 though, I'll leave it to you to figure out how to upstream this.
Comment 6 Aurimas Černius 2011-02-27 19:49:13 UTC
Created attachment 182050 [details]
Patch to fix the issue.

Patch to latest boost.m4, fixing this bug.
Comment 7 Aurimas Černius 2011-02-27 19:55:41 UTC
My test on Fedora rawhide showed the following issues:
1. configure check for boost filesystem fails.
2. The API of boost filesystem changed, causing Gnote compilation errors.


No other issues, most likely they were solved outside Gnote and no changed in Gnote are required.

As for two issues above:
-I have attached a patch for boost.m4, that solves the first.
-The second issue for now can be solved by adding -DBOOST_FILESYSTEM_VERSION=2 to CFLAGS. I'll do necessairy code changes in Gnote soon to work with version 3.
Comment 8 Aurimas Černius 2011-03-03 16:46:38 UTC
Created attachment 182359 [details] [review]
Bump required boost version to 1.36

This patch bumps the minimum required version of boost to 1.36.
It doesn't seem to be worth to support older ones.
Comment 9 Aurimas Černius 2011-03-03 16:47:59 UTC
Created attachment 182360 [details] [review]
Fix compile with boost 1.46

Make Gnote aware of boost-filesystem version 3, used by default in boost 1.46.
Comment 10 Aurimas Černius 2011-03-03 16:50:00 UTC
Patches for boost.m4 from this bug have been accepted upstream.
I have pushed the newer boost.m4 to master, know only Gnote code related issues left to solve. Proposed solutions attached.
Comment 11 Debarshi Ray 2011-03-08 14:55:25 UTC
Created attachment 182827 [details] [review]
Proposed fix

I think it is easier to replace boost::filesystem::path with their Glib equivalents.
Comment 12 Debarshi Ray 2011-03-15 04:38:13 UTC
Created attachment 183401 [details] [review]
Removed a few more instances of Boost usage

Gnote should now build on Fedora 15 and Fedora 14.
Comment 13 Debarshi Ray 2011-03-15 04:38:38 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.