Merge lp:~kalikiana/midori/portablePenguin into lp:midori

Proposed by Cris Dywan
Status: Work in progress
Proposed branch: lp:~kalikiana/midori/portablePenguin
Merge into: lp:midori
Diff against target: 44 lines (+29/-0)
2 files modified
CMakeLists.txt (+4/-0)
tools/deb2portable (+25/-0)
To merge this branch: bzr merge lp:~kalikiana/midori/portablePenguin
Reviewer Review Type Date Requested Status
Midori Devs Pending
Review via email: mp+199372@code.launchpad.net

Commit message

Add deb2portable script and add compatibility compiler flags

To post a comment you must log in.

Unmerged revisions

6522. By Cris Dywan

 Add deb2portable script and add compatibility compiler flags

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2013-11-28 17:46:14 +0000
3+++ CMakeLists.txt 2013-12-17 23:56:28 +0000
4@@ -265,6 +265,10 @@
5
6 set(LIBMIDORI "${CMAKE_PROJECT_NAME}-core")
7
8+set(PORTABLE_CFLAGS "-Wl,--as-needed -static-libgcc -Wl,--hash-style=both -fno-stack-protector -U_FORTIFY_SOURCE")
9+set(CFLAGS "${CFLAGS} ${PORTABLE_CFLAGS}")
10+set(VALA_CFLAGS "${VALA_CFLAGS} ${PORTABLE_CFLAGS}")
11+
12 # CMake provides no uninstall target by design
13 add_custom_target (uninstall
14 COMMAND "xargs" "rm" "-v" "<" "install_manifest.txt")
15
16=== added file 'tools/deb2portable'
17--- tools/deb2portable 1970-01-01 00:00:00 +0000
18+++ tools/deb2portable 2013-12-17 23:56:28 +0000
19@@ -0,0 +1,25 @@
20+#! /bin/sh
21+
22+# Copyright (C) 2013 Christian Dywan <christian@twotoasts.de>
23+#
24+# This library is free software; you can redistribute it and/or
25+# modify it under the terms of the GNU Lesser General Public
26+# License as published by the Free Software Foundation; either
27+# version 2.1 of the License, or (at your option) any later version.
28+#
29+# See the file COPYING for the full license text.
30+
31+FILE=$1
32+if [ ! $1 ]; then
33+ echo Usage: $(basename $0) FILENAME
34+ echo ' Extracts the specified .deb into a folder and adds a launch script.'
35+ exit 1
36+fi
37+DEST=$PWD/$(echo $FILE | sed 's@.deb@@g')
38+mkdir -p "$DEST" || exit 1
39+ar p "$FILE" data.tar.gz | tar xz -C $DEST || exit 1
40+EXE="$DEST/usr/bin/midori"
41+mv $EXE "$EXE.bin" || exit 1
42+echo "#! /bin/sh" > "$EXE" || exit 1
43+echo "env LD_LIBRARY_PATH=../lib TEXTDOMAINDIR=../share/locale ./midori.bin \$*" >> "$EXE" || exit 1
44+chmod +x $EXE || exit 1

Subscribers

People subscribed via source and target branches

to all changes: