Merge lp:~midori/midori/ubuntults-buildfixes into lp:midori

Proposed by Paweł Forysiuk
Status: Merged
Approved by: Cris Dywan
Approved revision: 6469
Merged at revision: 6469
Proposed branch: lp:~midori/midori/ubuntults-buildfixes
Merge into: lp:midori
Diff against target: 54 lines (+14/-8)
3 files modified
extensions/adblock.c (+3/-1)
midori/midori-view.c (+1/-1)
po/CMakeLists.txt (+10/-6)
To merge this branch: bzr merge lp:~midori/midori/ubuntults-buildfixes
Reviewer Review Type Date Requested Status
Cris Dywan Approve
Cody Garver (community) Approve
Review via email: mp+194634@code.launchpad.net

Commit message

Fix building on Ubuntu 12.04

To post a comment you must log in.
Revision history for this message
Cody Garver (codygarver) wrote :

Works on 14.04 and someone on bug report said it works on 12.04 as well. Still need to check the translation changes.

review: Approve
Revision history for this message
Cris Dywan (kalikiana) wrote :

There's two notable drawbacks to GETTEXT_CREATE_TRANSLATIONS, it doesn't handle LINGUAS which is more of a nicety than required for survival, and it forcibly updates all po files in the source tree which isn't harmful so much as annoying… having said that, it works and given that no dev hacks on such an old system I'd say it's acceptable - if there's more time one could write a GETTEXT_PROCESS_PO_FILES that works with the old cmake but I wouldn't expect it.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'extensions/adblock.c'
--- extensions/adblock.c 2013-11-04 20:55:58 +0000
+++ extensions/adblock.c 2013-11-10 09:56:20 +0000
@@ -1541,7 +1541,9 @@
15411541
1542 for (i = 0; i <= 15; i++)1542 for (i = 0; i <= 15; i++)
1543 {1543 {
1544 fgets (line, 2000, file);1544 if (!fgets (line, 2000, file))
1545 break;
1546
1545 if (strncmp ("! Expires", line, 9) == 0)1547 if (strncmp ("! Expires", line, 9) == 0)
1546 {1548 {
1547 gchar** parts = g_strsplit (line, " ", 4);1549 gchar** parts = g_strsplit (line, " ", 4);
15481550
=== modified file 'midori/midori-view.c'
--- midori/midori-view.c 2013-11-05 23:09:04 +0000
+++ midori/midori-view.c 2013-11-10 09:56:20 +0000
@@ -4942,7 +4942,7 @@
4942 #if WEBKIT_CHECK_VERSION (1, 9, 5)4942 #if WEBKIT_CHECK_VERSION (1, 9, 5)
4943 doc = webkit_web_frame_get_dom_document (frame);4943 doc = webkit_web_frame_get_dom_document (frame);
4944 #else4944 #else
4945 doc = webkit_web_view_get_dom_document (view->web_view);4945 doc = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (view->web_view));
4946 #endif4946 #endif
49474947
4948 WebKitDOMElement* root = webkit_dom_document_query_selector (doc, ":root", NULL);4948 WebKitDOMElement* root = webkit_dom_document_query_selector (doc, ":root", NULL);
49494949
=== modified file 'po/CMakeLists.txt'
--- po/CMakeLists.txt 2013-09-28 23:06:00 +0000
+++ po/CMakeLists.txt 2013-11-10 09:56:20 +0000
@@ -9,12 +9,16 @@
9 endif ()9 endif ()
10 message(STATUS "gettext found: ${LANGUAGES}")10 message(STATUS "gettext found: ${LANGUAGES}")
11 string(REPLACE " " ";" LANGUAGES ${LANGUAGES})11 string(REPLACE " " ";" LANGUAGES ${LANGUAGES})
12 foreach(LANG ${LANGUAGES})12 if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_LESS "2.8.8")
13 GETTEXT_PROCESS_PO_FILES(${LANG} ALL PO_FILES ${LANG}.po)13 GETTEXT_CREATE_TRANSLATIONS("${CMAKE_CURRENT_SOURCE_DIR}/midori.pot" ALL ${POTFILES})
14 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${LANG}.gmo"14 else()
15 DESTINATION "${CMAKE_INSTALL_FULL_LOCALEDIR}/${LANG}/LC_MESSAGES"15 foreach(LANG ${LANGUAGES})
16 RENAME "${GETTEXT_PACKAGE}.mo")16 GETTEXT_PROCESS_PO_FILES(${LANG} ALL PO_FILES ${LANG}.po)
17 endforeach ()17 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${LANG}.gmo"
18 DESTINATION "${CMAKE_INSTALL_FULL_LOCALEDIR}/${LANG}/LC_MESSAGES"
19 RENAME "${GETTEXT_PACKAGE}.mo")
20 endforeach ()
21 endif()
18else ()22else ()
19 message(STATUS "gettext not found")23 message(STATUS "gettext not found")
20endif ()24endif ()

Subscribers

People subscribed via source and target branches

to all changes: