diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-30 22:15:13 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-30 22:16:10 +0100 |
commit | c0c657bd92911788b96d9670620eabf024453752 (patch) | |
tree | 774a5e2d966d6ee87da17cd063580d5970564d00 /meta-moblin | |
parent | e71a306f9cac8e30e689d607e2092e11a756ef5d (diff) | |
download | poky-c0c657bd92911788b96d9670620eabf024453752.tar.gz |
Split meta-extras and meta-moblin out of the main repository
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta-moblin')
225 files changed, 0 insertions, 10695 deletions
diff --git a/meta-moblin/classes/moblin-feed-incremental-bleeding.bbclass b/meta-moblin/classes/moblin-feed-incremental-bleeding.bbclass deleted file mode 100644 index 4865ee2638..0000000000 --- a/meta-moblin/classes/moblin-feed-incremental-bleeding.bbclass +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | FEEDNAMEPREFIX = "moblin-bleeding" | ||
2 | FEEDURIPREFIX = "output/moblin-incremental-bleeding/ipk/" | ||
3 | EXTRAOPKGCONFIG = "moblin-feed-config-opkg" | ||
diff --git a/meta-moblin/classes/moblin-image.bbclass b/meta-moblin/classes/moblin-image.bbclass deleted file mode 100644 index f9bab011b0..0000000000 --- a/meta-moblin/classes/moblin-image.bbclass +++ /dev/null | |||
@@ -1,99 +0,0 @@ | |||
1 | # Common for Moblin images | ||
2 | # | ||
3 | # Copyright (C) 2007 OpenedHand LTD | ||
4 | |||
5 | # IMAGE_FEATURES control content of images built with Poky. | ||
6 | # | ||
7 | # By default we install task-moblin-boot and task-base packages - this gives us | ||
8 | # working (console only) rootfs. | ||
9 | # | ||
10 | # Available IMAGE_FEATURES: | ||
11 | # | ||
12 | # - apps-console-core | ||
13 | # - x11-base - X11 server + minimal desktop | ||
14 | # - x11-sato - OpenedHand Sato environment | ||
15 | # - x11-netbook - Metacity based environment for netbooks | ||
16 | # - apps-x11-core - X Terminal, file manager, file editor | ||
17 | # - apps-x11-games | ||
18 | # - apps-x11-pimlico - OpenedHand Pimlico apps | ||
19 | # - tools-sdk - SDK | ||
20 | # - tools-debug - debugging tools | ||
21 | # - tools-profile - profiling tools | ||
22 | # - tools-testapps - tools usable to make some device tests | ||
23 | # - nfs-server - NFS server (exports / over NFS to everybody) | ||
24 | # - dev-pkgs - development packages | ||
25 | # - dbg-pkgs - debug packages | ||
26 | # | ||
27 | |||
28 | MOBLIN_BASE_INSTALL = '\ | ||
29 | task-moblin-boot \ | ||
30 | task-base-extended \ | ||
31 | ${@base_contains("IMAGE_FEATURES", "dbg-pkgs", "task-moblin-boot-dbg task-base-dbg", "",d)} \ | ||
32 | ${@base_contains("IMAGE_FEATURES", "dev-pkgs", "task-moblin-boot-dev task-base-dev", "",d)} \ | ||
33 | \ | ||
34 | ${@base_contains("IMAGE_FEATURES", "apps-console-core", "task-moblin-apps-console", "",d)} \ | ||
35 | ${@base_contains("IMAGE_FEATURES", ["apps-console-core", "dbg-pkgs"], "task-moblin-apps-console-dbg", "",d)} \ | ||
36 | ${@base_contains("IMAGE_FEATURES", ["apps-console-core", "dev-pkgs"], "task-moblin-apps-console-dev", "",d)} \ | ||
37 | \ | ||
38 | ${@base_contains("IMAGE_FEATURES", "x11-base", "task-moblin-x11-base", "",d)} \ | ||
39 | ${@base_contains("IMAGE_FEATURES", ["x11-base", "dbg-pkgs"], "task-moblin-x11-base-dbg", "",d)} \ | ||
40 | ${@base_contains("IMAGE_FEATURES", ["x11-base", "dev-pkgs"], "task-moblin-x11-base-dev", "",d)} \ | ||
41 | \ | ||
42 | ${@base_contains("IMAGE_FEATURES", "x11-sato", "task-moblin-x11-sato", "",d)} \ | ||
43 | ${@base_contains("IMAGE_FEATURES", ["x11-sato", "dbg-pkgs"], "task-moblin-x11-sato-dbg", "",d)} \ | ||
44 | ${@base_contains("IMAGE_FEATURES", ["x11-sato", "dev-pkgs"], "task-moblin-x11-sato-dev", "",d)} \ | ||
45 | \ | ||
46 | ${@base_contains("IMAGE_FEATURES", "x11-netbook", "task-moblin-x11-netbook", "", d)} \ | ||
47 | ${@base_contains("IMAGE_FEATURES", ["x11-netbook", "dbg-pkgs"], "task-moblin-x11-netbook-dbg", "", d)} \ | ||
48 | ${@base_contains("IMAGE_FEATURES", ["x11-netbook", "dev-pkgs"], "task-moblin-x11-netbook-dev", "", d)} \ | ||
49 | ${@base_contains("IMAGE_FEATURES", "apps-x11-core", "task-moblin-apps-x11-core", "",d)} \ | ||
50 | ${@base_contains("IMAGE_FEATURES", ["apps-x11-core", "dbg-pkgs"], "task-moblin-apps-x11-core-dbg", "",d)} \ | ||
51 | ${@base_contains("IMAGE_FEATURES", ["apps-x11-core", "dev-pkgs"], "task-moblin-apps-x11-core-dev", "",d)} \ | ||
52 | \ | ||
53 | ${@base_contains("IMAGE_FEATURES", "apps-x11-games", "task-moblin-apps-x11-games", "",d)} \ | ||
54 | ${@base_contains("IMAGE_FEATURES", ["apps-x11-games", "dbg-pkgs"], "task-moblin-apps-x11-games-dbg", "",d)} \ | ||
55 | ${@base_contains("IMAGE_FEATURES", ["apps-x11-games", "dev-pkgs"], "task-moblin-apps-x11-games-dev", "",d)} \ | ||
56 | \ | ||
57 | ${@base_contains("IMAGE_FEATURES", "apps-x11-pimlico", "task-moblin-apps-x11-pimlico", "",d)} \ | ||
58 | ${@base_contains("IMAGE_FEATURES", ["apps-x11-pimlico", "dbg-pkgs"], "task-moblin-apps-x11-pimlico-dbg", "",d)} \ | ||
59 | ${@base_contains("IMAGE_FEATURES", ["apps-x11-pimlico", "dev-pkgs"], "task-moblin-apps-x11-pimlico-dev", "",d)} \ | ||
60 | \ | ||
61 | ${@base_contains("IMAGE_FEATURES", "tools-debug", "task-moblin-tools-debug", "",d)} \ | ||
62 | ${@base_contains("IMAGE_FEATURES", ["tools-debug", "dbg-pkgs"], "task-moblin-tools-debug-dbg", "",d)} \ | ||
63 | ${@base_contains("IMAGE_FEATURES", ["tools-debug", "dev-pkgs"], "task-moblin-tools-debug-dev", "",d)} \ | ||
64 | \ | ||
65 | ${@base_contains("IMAGE_FEATURES", "tools-profile", "task-moblin-tools-profile", "",d)} \ | ||
66 | ${@base_contains("IMAGE_FEATURES", ["tools-profile", "dbg-pkgs"], "task-moblin-tools-profile-dbg", "",d)} \ | ||
67 | ${@base_contains("IMAGE_FEATURES", ["tools-profile", "dev-pkgs"], "task-moblin-tools-profile-dev", "",d)} \ | ||
68 | \ | ||
69 | ${@base_contains("IMAGE_FEATURES", "tools-testapps", "task-moblin-tools-testapps", "",d)} \ | ||
70 | ${@base_contains("IMAGE_FEATURES", ["tools-testapps", "dbg-pkgs"], "task-moblin-tools-testapps-dbg", "",d)} \ | ||
71 | ${@base_contains("IMAGE_FEATURES", ["tools-testapps", "dev-pkgs"], "task-moblin-tools-testapps-dev", "",d)} \ | ||
72 | \ | ||
73 | ${@base_contains("IMAGE_FEATURES", "tools-sdk", "task-moblin-sdk task-moblin-standalone-sdk-target", "",d)} \ | ||
74 | ${@base_contains("IMAGE_FEATURES", ["tools-sdk", "dbg-pkgs"], "task-moblin-sdk-dbg", "",d)} \ | ||
75 | ${@base_contains("IMAGE_FEATURES", ["tools-sdk", "dev-pkgs"], "task-moblin-sdk-dev", "",d)} \ | ||
76 | \ | ||
77 | ${@base_contains("IMAGE_FEATURES", "nfs-server", "task-moblin-nfs-server", "",d)} \ | ||
78 | ${@base_contains("IMAGE_FEATURES", ["nfs-server", "dbg-pkgs"], "task-moblin-nfs-server-dbg", "",d)} \ | ||
79 | |||
80 | ${@base_contains("IMAGE_FEATURES", ["nfs-server", "dev-pkgs"], "task-moblin-nfs-server-dev", "",d)} \ | ||
81 | \ | ||
82 | ${@base_contains("IMAGE_FEATURES", "package-management", "${ROOTFS_PKGMANAGE}", "",d)} \ | ||
83 | ${MOBLIN_EXTRA_INSTALL} \ | ||
84 | ' | ||
85 | |||
86 | MOBLIN_EXTRA_INSTALL ?= "" | ||
87 | |||
88 | IMAGE_INSTALL ?= "${MOBLIN_BASE_INSTALL}" | ||
89 | |||
90 | X11_IMAGE_FEATURES = "x11-base apps-x11-core package-management" | ||
91 | ENHANCED_IMAGE_FEATURES = "${X11_IMAGE_FEATURES} apps-x11-games apps-x11-pimlico package-management" | ||
92 | NETBOOK_IMAGE_FEATURES = "${ENHANCED_IMAGE_FEATURES} x11-netbook" | ||
93 | |||
94 | inherit image | ||
95 | |||
96 | # Create /etc/timestamp during image construction to give a reasonably sane default time setting | ||
97 | ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp ; " | ||
98 | |||
99 | ROOTFS_POSTINSTALL_COMMAND += "rootfs_trim_schemas ; " | ||
diff --git a/meta-moblin/classes/qt3e.bbclass b/meta-moblin/classes/qt3e.bbclass deleted file mode 100644 index 35958b34ab..0000000000 --- a/meta-moblin/classes/qt3e.bbclass +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # | ||
2 | # override variables set by qmake_base to compile Qt/X11 apps | ||
3 | # | ||
4 | export QTDIR="${STAGING_DIR_HOST}/qte3" | ||
5 | export QTEDIR="${STAGING_DIR_HOST}/qte3" | ||
6 | export OE_QMAKE_UIC="${STAGING_BINDIR_NATIVE}/uic3" | ||
7 | export OE_QMAKE_MOC="${STAGING_BINDIR_NATIVE}/moc3" | ||
8 | export OE_QMAKE_CXXFLAGS="${CXXFLAGS} " | ||
9 | export OE_QMAKE_INCDIR_QT="${QTEDIR}/include" | ||
10 | export OE_QMAKE_LIBDIR_QT="${QTEDIR}/lib" | ||
11 | export OE_QMAKE_LIBS_QT="qte" | ||
diff --git a/meta-moblin/classes/qt3x11.bbclass b/meta-moblin/classes/qt3x11.bbclass deleted file mode 100644 index 5408b7f342..0000000000 --- a/meta-moblin/classes/qt3x11.bbclass +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | DEPENDS_prepend = "${@["qt3x11 ", ""][(bb.data.getVar('PN', d, 1) == 'qt-x11-free')]}" | ||
2 | EXTRA_QMAKEVARS_POST += "CONFIG+=thread" | ||
3 | # | ||
4 | # override variables set by qmake_base to compile Qt/X11 apps | ||
5 | # | ||
6 | export QTDIR = "${STAGING_DIR_HOST}/qt3" | ||
7 | export OE_QMAKE_UIC = "${STAGING_BINDIR_NATIVE}/uic3" | ||
8 | export OE_QMAKE_MOC = "${STAGING_BINDIR_NATIVE}/moc3" | ||
9 | export OE_QMAKE_CXXFLAGS = "${CXXFLAGS} -DQT_NO_XIM" | ||
10 | export OE_QMAKE_INCDIR_QT = "${QTDIR}/include" | ||
11 | export OE_QMAKE_LIBDIR_QT = "${QTDIR}/lib" | ||
12 | export OE_QMAKE_LIBS_QT = "qt" | ||
13 | export OE_QMAKE_LIBS_X11 = "-lXext -lX11 -lm" | ||
14 | export OE_QMAKE_LIBS_OPENGL = "-lGLU -lGL -lXmu" | ||
15 | export OE_QMAKE_LIBS_OPENGL_QT = "-lGL -lXmu" | ||
diff --git a/meta-moblin/classes/qt4x11.bbclass b/meta-moblin/classes/qt4x11.bbclass deleted file mode 100644 index 76a45c33cb..0000000000 --- a/meta-moblin/classes/qt4x11.bbclass +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | DEPENDS_prepend = "${@["qt4x11 ", ""][(bb.data.getVar('PN', d, 1) == 'qt4-x11-free')]}" | ||
2 | |||
3 | inherit qmake2 | ||
diff --git a/meta-moblin/classes/qtopia4core.bbclass b/meta-moblin/classes/qtopia4core.bbclass deleted file mode 100644 index b5f10fa486..0000000000 --- a/meta-moblin/classes/qtopia4core.bbclass +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | DEPENDS_prepend = "${@["qtopia-core ", ""][(bb.data.getVar('PN', d, 1) == 'qtopia-core')]}" | ||
2 | inherit qmake2 | ||
3 | |||
4 | QT_DIR_NAME = "qtopia" | ||
5 | # | ||
6 | # override variables set by qmake-base to compile QtopiaCore apps | ||
7 | # | ||
8 | export OE_QMAKE_INCDIR_QT = "${STAGING_INCDIR}/qtopia" | ||
9 | export OE_QMAKE_LIBDIR_QT = "${STAGING_LIBDIR}" | ||
10 | export OE_QMAKE_LIBS_QT = "qt" | ||
11 | export OE_QMAKE_LIBS_X11 = "" | ||
12 | export OE_QMAKE_EXTRA_MODULES = "network" | ||
13 | EXTRA_QMAKEVARS_PRE += " QT_LIBINFIX=E " | ||
diff --git a/meta-moblin/conf/distro/include/meta-moblin-scm-revisions.inc b/meta-moblin/conf/distro/include/meta-moblin-scm-revisions.inc deleted file mode 100644 index 47a464e519..0000000000 --- a/meta-moblin/conf/distro/include/meta-moblin-scm-revisions.inc +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | SRCREV_pn-anerley ??= "20c6ceffda21595d8894293700006fe3a4cb33ba" | ||
2 | SRCREV_pn-bickley ??= "3cbd5ef693c117ad5c094ddd1678a1a04d0feae3" | ||
3 | SRCREV_pn-bisho ??= "53cc5951be36cee818bef3beb5770f10aabdc7f1" | ||
4 | SRCREV_pn-bognor-regis ??= "c52c7f7013b4b62d7c59d25fc809ce951a5556af" | ||
5 | SRCREV_pn-carrick ??= "9bd8f987b27d95694b1e63efe198b2dffbd4c5b0" | ||
6 | SRCREV_pn-clutter-imcontext ??= "2cb6f0ff153db639a489e58e36802e0e928b1968" | ||
7 | SRCREV_pn-dalston ??= "b4d03283cb8aa2b76014eeb20e78cd13c14012ae" | ||
8 | SRCREV_pn-gnet = "495" | ||
9 | SRCREV_pn-hornsey ??= "39cb0cd0ee3526cba27aeebcc3e28dee6add136a" | ||
10 | SRCREV_pn-json-glib ??= "7411cadc0fdd9ffc2bd7004c9980913ac857a495" | ||
11 | SRCREV_pn-libccss ??= "62697eb84fe190f9b8c65fcbaae10ec3d9edfffd" | ||
12 | SRCREV_pn-libjana ??= "9ec1da8a534e87a83a6d729b48a41ca7b9cfb7b7" | ||
13 | SRCREV_pn-librest ??= "fe5048c92199afc9a7e9aef0add7f0e2b004bb47" | ||
14 | SRCREV_pn-libsocialweb ??= "da8d57ea8dcd348d956715000ded39aa26c7f0f5" | ||
15 | SRCREV_pn-libsynthesis ??= "70f0065aa3b085bdf059830f95e5b5766eecb0bb" | ||
16 | SRCREV_pn-mobile-broadband-provider-info ?= "35ef359c591cccd99380225fa431855b16a12edc" | ||
17 | SRCREV_pn-moblin-app-installer ??= "bc65c884d3a1ae37e69431417888126b2a3ea021" | ||
18 | SRCREV_pn-moblin-gtk-engine ??= "dff58e5f1b6c111a6c06e2385624e40d687ebf4f" | ||
19 | SRCREV_pn-moblin-icon-theme ??= "36b7ac1e57ea6d95e6432779c4769c14fce24899" | ||
20 | SRCREV_pn-moblin-menus ??= "1edfdab8234ec0b4bbc83fb706a15e08aa8a957a" | ||
21 | SRCREV_pn-moblin-proto ??= "8f2cb524fe06555182c25b4ba3202d7b368ac0ce" | ||
22 | SRCREV_pn-moblin-user-skel ??= "356851e174085b874adb909e664aca321a047bcb" | ||
23 | SRCREV_pn-moblin-panel-applications ??= "ba6b5f353203bb02728addb08da3d249f26eedbe" | ||
24 | SRCREV_pn-moblin-panel-media ??= "4e93c6da0bbae8d1d0a5d3b1410761679aa7b83b" | ||
25 | SRCREV_pn-moblin-panel-myzone ??= "54d9bee3a40a7700a69582a76aba89e213410046" | ||
26 | SRCREV_pn-moblin-panel-pasteboard ??= "44411a4516e6ae22767662430fa37ed6a7d27a15" | ||
27 | SRCREV_pn-moblin-panel-people ??= "0766282d120587919718b3bcb91553af1a1a00da" | ||
28 | SRCREV_pn-moblin-panel-status ??= "fb10eaf16bbd064c12587ec8c734abe72a9841d3" | ||
29 | SRCREV_pn-moblin-web-browser ??= "78ddd155cc297811720e4c4835d468ac6c4d9666" | ||
30 | SRCREV_pn-mojito ??= "cfad50252a4ad60f28b12d21e2fdb35db56984f5" | ||
31 | SRCREV_pn-mutter-moblin ??= "7a23e0d63cc31c12dab9de517de04b0ecf41b28a" | ||
32 | SRCREV_pn-mx ??= "94934b5d03a31ce76c4f9eea8dcfb1d94b396906" | ||
33 | SRCREV_pn-nbtk ??= "635f9b4f1a2897aaa85ec1285e57dc5478517c2f" | ||
34 | SRCREV_pn-syncevolution ??= "29972357bf6582c318258b7bdf1feb13c0fef824" | ||
35 | SRCREV_pn-twitter-glib ??= "62b262bf7892b629f7de67498d58f549ffeb704e" | ||
36 | |||
diff --git a/meta-moblin/conf/distro/include/moblin-2.0-fixed-revisions.inc b/meta-moblin/conf/distro/include/moblin-2.0-fixed-revisions.inc deleted file mode 100644 index 5992ed91ce..0000000000 --- a/meta-moblin/conf/distro/include/moblin-2.0-fixed-revisions.inc +++ /dev/null | |||
@@ -1,87 +0,0 @@ | |||
1 | # | ||
2 | # Known good source dates/revisions/tags to use, *only* for where Moblin deviates | ||
3 | # from Poky (or to lock down SCM based packages): | ||
4 | # | ||
5 | PREFERRED_VERSION_eds-dbus ?= "2.20.0" | ||
6 | PREFERRED_VERSION_dbus ?= "1.2.14" | ||
7 | PREFERRED_VERSION_dbus-native ?= "1.2.14" | ||
8 | PREFERRED_VERSION_gtk+ ?= "2.16.4" | ||
9 | PREFERRED_VERSION_udev ?= "145" | ||
10 | |||
11 | PREFERRED_VERSION_mesa-dri ?= "7.5" | ||
12 | PREFERRED_VERSION_xf86-video-intel ?= "2.12.0" | ||
13 | PREFERRED_VERSION_xserver-xf86-dri-lite ?= "1.6.0" | ||
14 | PREFERRED_VERSION_libxcb ?= "1.3" | ||
15 | PREFERRED_VERSION_xcb-proto ?= "1.5" | ||
16 | PREFERRED_VERSION_libx11-trim ?= "1.2.1" | ||
17 | |||
18 | PREFERRED_VERSION_libdrm ?= "" | ||
19 | PREFERRED_VERSION_xf86-input-keyboard ?= "" | ||
20 | PREFERRED_VERSION_dri2proto ?= "" | ||
21 | SRCREV_pn-libdrm ?= "3f3c5be6f908272199ccf53f108b1124bfe0a00e" | ||
22 | SRCREV_pn-xf86-input-keyboard ?= "3e28d68b50d291938734e9684b8296ca864f3892" | ||
23 | SRCREV_pn-dri2proto ?= "66c56ab10d917e3f47f93178d7eac6430970d3c4" | ||
24 | |||
25 | SRCREV_pn-anerley ?= "0cb9ac6b82ff6658ae10d603bdfba04ef3df979e" | ||
26 | SRCREV_pn-bickley ?= "761816f24e2aeb329d4f7270a2af324f85b7be8f" | ||
27 | SRCREV_pn-bisho ?= "53cc5951be36cee818bef3beb5770f10aabdc7f1" | ||
28 | SRCREV_pn-bognor-regis ?= "6b6cce0cb90ea47a3cc4ac2804c8b5664530ca80" | ||
29 | SRCREV_pn-carrick ?= "0451a081309f11dd5e9b6e41778ab878d862cbd0" | ||
30 | |||
31 | |||
32 | SRCREV_pn-connman ?= "6af0b24817b8712c755ef24ed0ee4c5e84550657" | ||
33 | SRCREV_pn-connman-gnome ?= "857b149c7febe9b0ffd9790050a288f018644eda" | ||
34 | SRCREV_pn-contacts ?= "c8e6b16222d5bc9d8f60ae6594af4933613a4e25" | ||
35 | |||
36 | |||
37 | # Still tosort: | ||
38 | |||
39 | SRCREV_pn-clutter ?= "e860d939f9d9611dcf5b8c6e70272b6318a4ba94" | ||
40 | 1.0.0 | ||
41 | SRCREV_pn-clutter-1.0 ?= "420ed353b53bd624331bd249d7df98d14714b504" | ||
42 | 1.0.0 | ||
43 | SRCREV_pn-clutter-box2d ?= "2bcf5b836548dc4909e13b8ae7f60dc64c93d559" | ||
44 | clutter-box2d-0.9~20090609 | ||
45 | SRCREV_pn-clutter-gst ?= "db9bcf9d6f3a7d0f34747bed0f3ab28d7eb8f6ab" | ||
46 | gst-0.10~20090729 | ||
47 | SRCREV_pn-clutter-gtk ?= "5dfc07761adf3ab3d1c9ee97b92bc4a65473db36" | ||
48 | 0.10.2 | ||
49 | SRCREV_pn-clutter-imcontext ?= "2cb6f0ff153db639a489e58e36802e0e928b1968" | ||
50 | 0.1 | ||
51 | SRCREV_pn-clutter-mozembed ?= "5a5329425aec7fe7749e97fd8c430457259f6165" | ||
52 | 0.0~20090731 | ||
53 | |||
54 | |||
55 | SRCREV_pn-dalston ?= "b4d03283cb8aa2b76014eeb20e78cd13c14012ae" | ||
56 | SRCREV_pn-dates ?= "966969063535da0786b7483c1bcd427df8a0d87d" | ||
57 | SRCREV_pn-gconnman ?= "3d951640146d08249e0219cbae6a4c2da787a878" | ||
58 | SRCREV_pn-hornsey ?= "39cb0cd0ee3526cba27aeebcc3e28dee6add136a" | ||
59 | SRCREV_pn-json-glib ?= "7411cadc0fdd9ffc2bd7004c9980913ac857a495" | ||
60 | SRCREV_pn-libccss ?= "62697eb84fe190f9b8c65fcbaae10ec3d9edfffd" | ||
61 | SRCREV_pn-librest ?= "ff4561e2a8c38f49127f6e3b2ce7c238a29e1571" | ||
62 | SRCREV_pn-libsynthesis ?= "70f0065aa3b085bdf059830f95e5b5766eecb0bb" | ||
63 | SRCREV_pn-moblin-gtk-engine ?= "dff58e5f1b6c111a6c06e2385624e40d687ebf4f" | ||
64 | SRCREV_pn-moblin-icon-theme ?= "36b7ac1e57ea6d95e6432779c4769c14fce24899" | ||
65 | SRCREV_pn-moblin-menus ?= "1edfdab8234ec0b4bbc83fb706a15e08aa8a957a" | ||
66 | SRCREV_pn-moblin-proto ?= "8f2cb524fe06555182c25b4ba3202d7b368ac0ce" | ||
67 | SRCREV_pn-moblin-user-skel ?= "356851e174085b874adb909e664aca321a047bcb" | ||
68 | SRCREV_pn-moblin-panel-applications ?= "ba6b5f353203bb02728addb08da3d249f26eedbe" | ||
69 | SRCREV_pn-moblin-panel-media ?= "4e93c6da0bbae8d1d0a5d3b1410761679aa7b83b" | ||
70 | SRCREV_pn-moblin-panel-myzone ?= "54d9bee3a40a7700a69582a76aba89e213410046" | ||
71 | SRCREV_pn-moblin-panel-pasteboard ?= "44411a4516e6ae22767662430fa37ed6a7d27a15" | ||
72 | SRCREV_pn-moblin-panel-people ?= "0766282d120587919718b3bcb91553af1a1a00da" | ||
73 | SRCREV_pn-moblin-panel-status ?= "fb10eaf16bbd064c12587ec8c734abe72a9841d3" | ||
74 | SRCREV_pn-moblin-web-browser ?= "a3ea71159bef93dc03762195bd5404a51db5e4a6" | ||
75 | SRCREV_pn-mojito ?= "cfad50252a4ad60f28b12d21e2fdb35db56984f5" | ||
76 | SRCREV_pn-mozilla-headless-services ?= "9091da493c679c546ec7312b653e63f9701d5c8f" | ||
77 | SRCREV_pn-mutter ?= "c96345dd81176f171c2d15dd9d5c5b20f334f842" | ||
78 | SRCREV_pn-mutter-moblin ?= "7a23e0d63cc31c12dab9de517de04b0ecf41b28a" | ||
79 | SRCREV_pn-mux ?= "72460e890dbb15edbf7dc193116be0dcf9794a8b" | ||
80 | SRCREV_pn-nbtk ?= "635f9b4f1a2897aaa85ec1285e57dc5478517c2f" | ||
81 | SRCREV_pn-mtpfs = "17" | ||
82 | SRCREV_pn-qemugl ?= "d888bbc723c00d197d34a39b5b7448660ec1b1c0" | ||
83 | SRCREV_pn-syncevolution ?= "29972357bf6582c318258b7bdf1feb13c0fef824" | ||
84 | SRCREV_pn-tasks ?= "a3c6109973c2f39190f554b49dacda7ec5231ef4" | ||
85 | SRCREV_pn-twitter-glib ?= "9dfca7cf38e3dddbda6dc82d0164f65814b8783e" | ||
86 | |||
87 | SRCREVMOZILLAHEADLESS ?= "1a622cb7c384" | ||
diff --git a/meta-moblin/conf/distro/include/moblin-fixed-revisions.inc b/meta-moblin/conf/distro/include/moblin-fixed-revisions.inc deleted file mode 100644 index 6cbc8d8aa3..0000000000 --- a/meta-moblin/conf/distro/include/moblin-fixed-revisions.inc +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | # | ||
2 | # Known good source dates/revisions/tags to use, *only* for where Moblin deviates | ||
3 | # from Poky (or to lock down SCM based packages): | ||
4 | # | ||
5 | PREFERRED_VERSION_eds-dbus ?= "2.20.0" | ||
6 | PREFERRED_VERSION_udev ?= "145" | ||
7 | |||
8 | PREFERRED_VERSION_mesa-dri ?= "7.8.2" | ||
9 | PREFERRED_VERSION_xf86-video-intel ?= "2.12.0" | ||
10 | PREFERRED_VERSION_xserver-xf86-dri-lite ?= "1.7.99.2" | ||
11 | PREFERRED_VERSION_libxcb ?= "1.3" | ||
12 | PREFERRED_VERSION_xcb-proto ?= "1.5" | ||
13 | PREFERRED_VERSION_libx11-trim ?= "1.3" | ||
14 | |||
15 | PREFERRED_VERSION_libdrm ?= "2.4.17" | ||
16 | PREFERRED_VERSION_xf86-input-keyboard ?= "" | ||
17 | PREFERRED_VERSION_dri2proto ?= "" | ||
18 | |||
19 | |||
20 | PREFERRED_VERSION_anerley ?= "0.1.7" | ||
21 | PREFERRED_VERSION_bickley ?= "0.4" | ||
22 | PREFERRED_VERSION_bisho ?= "0.17.1" | ||
23 | PREFERRED_VERSION_bognor-regis ?= "0.5.0" | ||
24 | PREFERRED_VERSION_carrick ?= "1.1.13" | ||
25 | PREFERRED_VERSION_dalston ?= "0.1.12" | ||
26 | PREFERRED_VERSION_gupnp-av ?= "0.4" | ||
27 | PREFERRED_VERSION_hornsey ?= "1.0" | ||
28 | PREFERRED_VERSION_mojito ?= "0.21.7" | ||
29 | PREFERRED_VERSION_nbtk ?= "1.2.3" | ||
30 | PREFERRED_VERSION_moblin-panel-applications ?= "0.1.2" | ||
31 | PREFERRED_VERSION_moblin-panel-media ?= "0.0.7" | ||
32 | PREFERRED_VERSION_moblin-panel-myzone ?= "0.0.12" | ||
33 | PREFERRED_VERSION_moblin-panel-pasteboard ?= "0.0.2" | ||
34 | PREFERRED_VERSION_moblin-panel-people ?= "0.0.9" | ||
35 | PREFERRED_VERSION_moblin-panel-status ?= "0.0.9" | ||
36 | PREFERRED_VERSION_mutter ?= "2.28.1" | ||
37 | PREFERRED_VERSION_mutter-moblin ?= "0.43.8" | ||
38 | |||
diff --git a/meta-moblin/conf/distro/include/moblin-floating-revisions.inc b/meta-moblin/conf/distro/include/moblin-floating-revisions.inc deleted file mode 100644 index 1634c03886..0000000000 --- a/meta-moblin/conf/distro/include/moblin-floating-revisions.inc +++ /dev/null | |||
@@ -1,99 +0,0 @@ | |||
1 | SRCREV_pn-libccss ?= "62697eb84fe190f9b8c65fcbaae10ec3d9edfffd" | ||
2 | SRCREV_pn-clutter-gtk ?= "5dfc07761adf3ab3d1c9ee97b92bc4a65473db36" | ||
3 | SRCREV_pn-clutter-gst ?= "24c84abf0cdd24b6f4696c5a920673a55218cfd4" | ||
4 | SRCREV_pn-bisho ?= "7b97cf8a9e2ef228be71e549e622df5d59869b39" | ||
5 | |||
6 | SRCREV_pn-ashford ?= "${AUTOREV}" | ||
7 | SRCREV_pn-anerley ?= "${AUTOREV}" | ||
8 | PREFERRED_VERSION_anerley ?= "0.1.7+git%" | ||
9 | SRCREV_pn-bickley ?= "${AUTOREV}" | ||
10 | PREFERRED_VERSION_bickley ?= "0.4+git%" | ||
11 | SRCREV_pn-bisho ?= "${AUTOREV}" | ||
12 | PREFERRED_VERSION_bisho ?= "0.17.1+git%" | ||
13 | SRCREV_pn-bognor-regis ?= "${AUTOREV}" | ||
14 | PREFERRED_VERSION_bognor-regis ?= "0.5.0+git%" | ||
15 | SRCREV_pn-carrick ?= "${AUTOREV}" | ||
16 | PREFERRED_VERSION_carrick ?= "1.2.0+git%" | ||
17 | SRCREV_pn-clutter ?= "${AUTOREV}" | ||
18 | SRCREV_pn-clutter-1.0 ?= "${AUTOREV}" | ||
19 | SRCREV_pn-clutter-gtk ?= "${AUTOREV}" | ||
20 | SRCREV_pn-clutter-gst ?= "${AUTOREV}" | ||
21 | SRCREV_pn-clutter-imcontext ?= "${AUTOREV}" | ||
22 | SRCREV_pn-clutter-mozembed ?= "${AUTOREV}" | ||
23 | SRCREV_pn-connman ?= "${AUTOREV}" | ||
24 | SRCREV_pn-connman-gnome ?= "${AUTOREV}" | ||
25 | SRCREV_pn-contacts ?= "${AUTOREV}" | ||
26 | SRCREV_pn-dalston ?= "${AUTOREV}" | ||
27 | PREFERRED_VERSION_dalston ?= "0.1.12+git%" | ||
28 | SRCREV_pn-dates ?= "${AUTOREV}" | ||
29 | SRCREV_pn-eds-dbus ?= "${AUTOREV}" | ||
30 | SRCREV_pn-gconnman ?= "${AUTOREV}" | ||
31 | PREFERRED_VERSION_gupnp-av ?= "0.5.2" | ||
32 | SRCREV_pn-hornsey ?= "${AUTOREV}" | ||
33 | PREFERRED_VERSION_hornsey ?= "1.0+git%" | ||
34 | SRCREV_pn-json-glib ?= "${AUTOREV}" | ||
35 | SRCREV_pn-libccss ?= "${AUTOREV}" | ||
36 | SRCREV_pn-libjana ?= "${AUTOREV}" | ||
37 | SRCREV_pn-librest ?= "${AUTOREV}" | ||
38 | SRCREV_pn-libsocialweb ?= "${AUTOREV}" | ||
39 | PREFERRED_VERSION_libsocialweb ?= "0.0+git%" | ||
40 | SRCREV_pn-libsynthesis ?= "${AUTOREV}" | ||
41 | SRCREV_pn-linux-moblin ?= "${AUTOREV}" | ||
42 | SRCREV_pn-mobile-broadband-provider-info ?= "${AUTOREV}" | ||
43 | SRCREV_pn-moblin-app-installer ?= "${AUTOREV}" | ||
44 | SRCREV_pn-moblin-gtk-engine ?= "${AUTOREV}" | ||
45 | SRCREV_pn-moblin-menus ?= "${AUTOREV}" | ||
46 | SRCREV_pn-moblin-web-browser ?= "${AUTOREV}" | ||
47 | SRCREV_pn-moblin-icon-theme ?= "${AUTOREV}" | ||
48 | SRCREV_pn-moblin-user-skel ?= "${AUTOREV}" | ||
49 | SRCREV_pn-moblin-panel-applications ?= "${AUTOREV}" | ||
50 | PREFERRED_VERSION_moblin-panel-applications ?= "0.1.2+git%" | ||
51 | SRCREV_pn-moblin-panel-media ?= "${AUTOREV}" | ||
52 | PREFERRED_VERSION_moblin-panel-media ?= "0.0.7+git%" | ||
53 | SRCREV_pn-moblin-panel-myzone ?= "${AUTOREV}" | ||
54 | PREFERRED_VERSION_moblin-panel-myzone ?= "0.0.12+git%" | ||
55 | SRCREV_pn-moblin-panel-pasteboard ?= "${AUTOREV}" | ||
56 | PREFERRED_VERSION_moblin-panel-pasteboard ?= "0.0.2+git%" | ||
57 | SRCREV_pn-moblin-panel-people ?= "${AUTOREV}" | ||
58 | PREFERRED_VERSION_moblin-panel-people ?= "0.0.9+git%" | ||
59 | SRCREV_pn-moblin-panel-status ?= "${AUTOREV}" | ||
60 | PREFERRED_VERSION_moblin-panel-status ?= "0.0.9+git%" | ||
61 | SRCREV_pn-mojito ?= "${AUTOREV}" | ||
62 | PREFERRED_VERSION_mojito ?= "0.21.7+git%" | ||
63 | SRCREV_pn-mozilla-headless ?= "${AUTOREV}" | ||
64 | SRCREV_pn-mozilla-headless-services ?= "${AUTOREV}" | ||
65 | SRCREV_pn-mutter ?= "${AUTOREV}" | ||
66 | PREFERRED_VERSION_mutter ?= "2.28.1+git%" | ||
67 | SRCREV_pn-mutter-moblin ?= "${AUTOREV}" | ||
68 | PREFERRED_VERSION_mutter-moblin ?= "0.43.8+git%" | ||
69 | SRCREV_pn-nbtk ?= "${AUTOREV}" | ||
70 | PREFERRED_VERSION_nbtk ?= "1.2.3+git%" | ||
71 | SRCREV_pn-mx ?= "${AUTOREV}" | ||
72 | SRCREV_pn-qemugl ?= "${AUTOREV}" | ||
73 | SRCREV_pn-sample-media ?= "${AUTOREV}" | ||
74 | SRCREV_pn-syncevolution ?= "${AUTOREV}" | ||
75 | SRCREV_pn-tasks ?= "${AUTOREV}" | ||
76 | SRCREV_pn-twitter-glib ?= "${AUTOREV}" | ||
77 | SRCREV_pn-xf86-video-gma500 ?= "${AUTOREV}" | ||
78 | |||
79 | SRCREV_pn-libdrm ?= "${AUTOREV}" | ||
80 | PREFERRED_VERSION_libdrm ?= "2.4.15+git%" | ||
81 | SRCREV_pn-mesa-dri ?= "${AUTOREV}" | ||
82 | PREFERRED_VERSION_mesa-dri ?= "7.5+git%" | ||
83 | SRCREV_pn-xf86-video-intel ?= "${AUTOREV}" | ||
84 | PREFERRED_VERSION_xf86-video-intel ?= "2.10.0+git%" | ||
85 | SRCREV_pn-xserver-xf86-dri-lite ?= "${AUTOREV}" | ||
86 | PREFERRED_VERSION_xserver-xf86-dri-lite ?= "1.6.0+git%" | ||
87 | SRCREV_pn-xf86-input-keyboard ?= "${AUTOREV}" | ||
88 | PREFERRED_VERSION_xf86-input-keyboard ?= "1.3.2+git%" | ||
89 | SRCREV_pn-dri2proto ?= "${AUTOREV}" | ||
90 | PREFERRED_VERSION_dri2proto ?= "1.99.3+git%" | ||
91 | SRCREV_pn-libx11-trim ?= "${AUTOREV}" | ||
92 | PREFERRED_VERSION_libx11-trim ?= "1.2.1+git%" | ||
93 | |||
94 | PREFERRED_VERSION_libxcb ?= "1.3" | ||
95 | PREFERRED_VERSION_xcb-proto ?= "1.5" | ||
96 | |||
97 | MOBLINBROWSERBRANCH = "mx" | ||
98 | # Set to no browser in images for now to allow image builds | ||
99 | MOBLINBROWSER = "" | ||
diff --git a/meta-moblin/conf/distro/moblin-bleeding.conf b/meta-moblin/conf/distro/moblin-bleeding.conf deleted file mode 100644 index 822958258e..0000000000 --- a/meta-moblin/conf/distro/moblin-bleeding.conf +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | require conf/distro/include/moblin-floating-revisions.inc | ||
2 | require conf/distro/moblin.conf | ||
diff --git a/meta-moblin/conf/distro/moblin.conf b/meta-moblin/conf/distro/moblin.conf deleted file mode 100644 index a0d5af7393..0000000000 --- a/meta-moblin/conf/distro/moblin.conf +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | require conf/distro/poky.conf | ||
2 | |||
3 | DISTRO = "moblin" | ||
4 | DISTRO_NAME = "Moblin (Poky Powered)" | ||
5 | DISTRO_VERSION = "1.99+snapshot-${DATE}" | ||
6 | |||
7 | require conf/distro/include/moblin-fixed-revisions.inc | ||
8 | |||
9 | POKY_EXTRA_RDEPENDS = "task-moblin-boot" | ||
10 | |||
11 | TOOLCHAIN_TARGET_SDKTASK ?= "task-moblin-standalone-sdk-target" | ||
12 | #No debug info for now " task-moblin-standalone-sdk-target-dbg" | ||
13 | |||
diff --git a/meta-moblin/conf/layer.conf b/meta-moblin/conf/layer.conf deleted file mode 100644 index b5daea69ed..0000000000 --- a/meta-moblin/conf/layer.conf +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | # We have a conf and classes directory, add to BBPATH | ||
2 | BBPATH := "${BBPATH}:${LAYERDIR}" | ||
3 | |||
4 | # We have a packages directory, add to BBFILES | ||
5 | BBFILES := "${BBFILES} ${LAYERDIR}/packages/*/*.bb" | ||
6 | |||
7 | BBFILE_COLLECTIONS += "moblin" | ||
8 | BBFILE_PATTERN_moblin := "^${LAYERDIR}/" | ||
9 | BBFILE_PRIORITY_moblin = "5" | ||
10 | |||
11 | require conf/distro/include/meta-moblin-scm-revisions.inc | ||
diff --git a/meta-moblin/packages/anerley/anerley.inc b/meta-moblin/packages/anerley/anerley.inc deleted file mode 100644 index c18c9b2553..0000000000 --- a/meta-moblin/packages/anerley/anerley.inc +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | DESCRIPTION = "People widgets for Moblin User Experience" | ||
2 | SRC_URI = "http://download.moblin.org/sources/anerley/0.1/anerley-${PV}.tar.bz2" | ||
3 | LICENSE = "LGPLv2.1" | ||
4 | DEPENDS = "telepathy-glib glib-2.0 telepathy-mission-control nbtk eds-dbus" | ||
5 | |||
6 | inherit autotools | ||
diff --git a/meta-moblin/packages/anerley/anerley_0.1.7.bb b/meta-moblin/packages/anerley/anerley_0.1.7.bb deleted file mode 100644 index a2d491bffe..0000000000 --- a/meta-moblin/packages/anerley/anerley_0.1.7.bb +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | require anerley.inc | ||
2 | |||
3 | PR = "r0" | ||
diff --git a/meta-moblin/packages/anerley/anerley_git.bb b/meta-moblin/packages/anerley/anerley_git.bb deleted file mode 100644 index a656d424ff..0000000000 --- a/meta-moblin/packages/anerley/anerley_git.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | require anerley.inc | ||
2 | |||
3 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
4 | PV = "0.1.7+git${SRCPV}" | ||
5 | PR = "r0" | ||
6 | |||
7 | S = "${WORKDIR}/git" | ||
diff --git a/meta-moblin/packages/bickley/bickley.inc b/meta-moblin/packages/bickley/bickley.inc deleted file mode 100644 index f386b862e3..0000000000 --- a/meta-moblin/packages/bickley/bickley.inc +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | DESCRIPTION = "A meta data manager API and framework (including Media)" | ||
2 | SRC_URI = "http://download.moblin.org/sources/bickley/0.4/bickley-0.4_20091124.tar.bz2" | ||
3 | |||
4 | DEPENDS = "gtk+ dbus-glib clutter-gst-0.10 libexif taglib gupnp gupnp-av samba" | ||
5 | RDEPENDS = "xdg-user-dirs" | ||
6 | |||
7 | FILES_${PN} =+ "${datadir}/dbus-1/services/" | ||
8 | |||
9 | inherit autotools | ||
diff --git a/meta-moblin/packages/bickley/bickley_0.4.bb b/meta-moblin/packages/bickley/bickley_0.4.bb deleted file mode 100644 index 9a8de22619..0000000000 --- a/meta-moblin/packages/bickley/bickley_0.4.bb +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | require bickley.inc | ||
2 | |||
3 | S = "${WORKDIR}/${PN}-${PV}_20091124" | ||
4 | PR = "r1" | ||
diff --git a/meta-moblin/packages/bickley/bickley_git.bb b/meta-moblin/packages/bickley/bickley_git.bb deleted file mode 100644 index a02d610ddc..0000000000 --- a/meta-moblin/packages/bickley/bickley_git.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require bickley.inc | ||
2 | |||
3 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
4 | PV = "0.4+git${SRCPV}" | ||
5 | S = "${WORKDIR}/git" | ||
diff --git a/meta-moblin/packages/bisho/bisho.inc b/meta-moblin/packages/bisho/bisho.inc deleted file mode 100644 index 5ff9b9e35a..0000000000 --- a/meta-moblin/packages/bisho/bisho.inc +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | DESCRIPTION = "Web Services Settings" | ||
2 | SRC_URI = "http://download.moblin.org/sources/bisho/0.17/bisho-0.17.1.tar.bz2" | ||
3 | LICENSE = "GPLv2" | ||
4 | |||
5 | DEPENDS = "gtk+ mojito nbtk" | ||
6 | |||
7 | inherit autotools | ||
8 | |||
9 | FILES_${PN} += "${datadir}/icons/" | ||
diff --git a/meta-moblin/packages/bisho/bisho_0.17.1.bb b/meta-moblin/packages/bisho/bisho_0.17.1.bb deleted file mode 100644 index e483da5d79..0000000000 --- a/meta-moblin/packages/bisho/bisho_0.17.1.bb +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | require bisho.inc | ||
diff --git a/meta-moblin/packages/bisho/bisho_git.bb b/meta-moblin/packages/bisho/bisho_git.bb deleted file mode 100644 index 21a2e7afc7..0000000000 --- a/meta-moblin/packages/bisho/bisho_git.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require bisho.inc | ||
2 | |||
3 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
4 | PV = "0.17.1+git${SRCPV}" | ||
5 | S = "${WORKDIR}/git" | ||
diff --git a/meta-moblin/packages/bognor-regis/bognor-regis.inc b/meta-moblin/packages/bognor-regis/bognor-regis.inc deleted file mode 100644 index 34563548f2..0000000000 --- a/meta-moblin/packages/bognor-regis/bognor-regis.inc +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | DESCRIPTION = "Media deamon and play queue manager" | ||
2 | SRC_URI = "http://download.moblin.org/sources/bognor-regis/0.5/bognor-regis-0.5.0_20091116.tar.bz2" | ||
3 | LICENSE = "GPLv2" | ||
4 | |||
5 | DEPENDS = "glib-2.0 dbus-glib gtk+ libnotify gupnp gupnp-av bickley" | ||
6 | |||
7 | FILES_${PN} += "${datadir}/dbus-1/services" | ||
8 | |||
9 | inherit autotools | ||
diff --git a/meta-moblin/packages/bognor-regis/bognor-regis_0.5.0.bb b/meta-moblin/packages/bognor-regis/bognor-regis_0.5.0.bb deleted file mode 100644 index 5bec1aa388..0000000000 --- a/meta-moblin/packages/bognor-regis/bognor-regis_0.5.0.bb +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | require bognor-regis.inc | ||
2 | |||
3 | S = "${WORKDIR}/${PN}-${PV}_20091116" | ||
diff --git a/meta-moblin/packages/bognor-regis/bognor-regis_git.bb b/meta-moblin/packages/bognor-regis/bognor-regis_git.bb deleted file mode 100644 index 6bc69d8dee..0000000000 --- a/meta-moblin/packages/bognor-regis/bognor-regis_git.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require bognor-regis.inc | ||
2 | |||
3 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
4 | PV = "0.5.0+git${SRCPV}" | ||
5 | S = "${WORKDIR}/git" | ||
diff --git a/meta-moblin/packages/carrick/carrick.inc b/meta-moblin/packages/carrick/carrick.inc deleted file mode 100644 index 1924e9cbfe..0000000000 --- a/meta-moblin/packages/carrick/carrick.inc +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | DESCIPTION = "Connection Management Panel Applet" | ||
2 | SRC_URI = "http://download.moblin.org/sources/carrick/1.1/carrick-${PV}.tar.bz2" | ||
3 | LICENSE = "GPLv2" | ||
4 | |||
5 | DEPENDS = "nbtk mutter-moblin librest libnotify mobile-broadband-provider-info" | ||
6 | RDEPENDS = "connman" | ||
7 | |||
8 | FILES_${PN} += "${datadir}/icons/hicolor" | ||
9 | |||
10 | inherit autotools | ||
11 | |||
12 | do_configure_prepend () { | ||
13 | mkdir -p ${S}/build/autotools | ||
14 | } | ||
diff --git a/meta-moblin/packages/carrick/carrick_1.1.13.bb b/meta-moblin/packages/carrick/carrick_1.1.13.bb deleted file mode 100644 index f7ec5c017b..0000000000 --- a/meta-moblin/packages/carrick/carrick_1.1.13.bb +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | include carrick.inc | ||
diff --git a/meta-moblin/packages/carrick/carrick_git.bb b/meta-moblin/packages/carrick/carrick_git.bb deleted file mode 100644 index 3258e052b7..0000000000 --- a/meta-moblin/packages/carrick/carrick_git.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | include carrick.inc | ||
2 | |||
3 | SRC_URI = "git://git.moblin.org/${PN}-ng.git;protocol=git" | ||
4 | PV = "1.2.0+git${SRCPV}" | ||
5 | S = "${WORKDIR}/git" | ||
diff --git a/meta-moblin/packages/clutter-imcontext/clutter-imcontext_git.bb b/meta-moblin/packages/clutter-imcontext/clutter-imcontext_git.bb deleted file mode 100644 index ead537d664..0000000000 --- a/meta-moblin/packages/clutter-imcontext/clutter-imcontext_git.bb +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
2 | LICENSE = "GPLv2" | ||
3 | PV = "0.0+git${SRCPV}" | ||
4 | PR = "r7" | ||
5 | DEPENDS = "clutter-1.0 glib-2.0" | ||
6 | S = "${WORKDIR}/git" | ||
7 | |||
8 | inherit autotools | ||
9 | |||
10 | do_configure_prepend () { | ||
11 | echo "EXTRA_DIST=" > ${S}/gtk-doc.make | ||
12 | echo "CLEANFILES=" >> ${S}/gtk-doc.make | ||
13 | } \ No newline at end of file | ||
diff --git a/meta-moblin/packages/clutter/clutter-mozembed.inc b/meta-moblin/packages/clutter/clutter-mozembed.inc deleted file mode 100644 index 72c9412d04..0000000000 --- a/meta-moblin/packages/clutter/clutter-mozembed.inc +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | DESCRIPTION = "Clutter Mozilla Embedded" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPL" | ||
4 | |||
5 | DEPENDS = "mozilla-headless mozilla-headless-services clutter-1.0" | ||
6 | |||
7 | FILESPATH = "${FILE_DIRNAME}/clutter-mozembed" | ||
8 | |||
9 | FILES_${PN} =+ "${datadir}/cluttermozembed/chrome/" | ||
10 | |||
11 | EXTRA_OECONF = "--enable-plugins" | ||
12 | |||
13 | inherit autotools pkgconfig gtk-doc | ||
14 | |||
diff --git a/meta-moblin/packages/clutter/clutter-mozembed/link-with-g++-da7632f3e2c8d1a70ab01cc7adb63760d8718b41.patch b/meta-moblin/packages/clutter/clutter-mozembed/link-with-g++-da7632f3e2c8d1a70ab01cc7adb63760d8718b41.patch deleted file mode 100644 index 135b9e79f0..0000000000 --- a/meta-moblin/packages/clutter/clutter-mozembed/link-with-g++-da7632f3e2c8d1a70ab01cc7adb63760d8718b41.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: git/cluttermozembed/Makefile.am | ||
2 | =================================================================== | ||
3 | --- git.orig/cluttermozembed/Makefile.am 2009-06-10 15:04:54.000000000 +0100 | ||
4 | +++ git/cluttermozembed/Makefile.am 2009-06-10 15:10:12.000000000 +0100 | ||
5 | @@ -61,7 +61,7 @@ | ||
6 | clutter-mozembed-private.h | ||
7 | source_c = \ | ||
8 | clutter-mozembed.c \ | ||
9 | - clutter-mozembed-download.c | ||
10 | + clutter-mozembed-download.c dummy.cpp | ||
11 | |||
12 | bin_PROGRAMS = clutter-mozheadless | ||
13 | |||
diff --git a/meta-moblin/packages/clutter/clutter-mozembed/link-with-g++.patch b/meta-moblin/packages/clutter/clutter-mozembed/link-with-g++.patch deleted file mode 100644 index cc9d43a674..0000000000 --- a/meta-moblin/packages/clutter/clutter-mozembed/link-with-g++.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: git/cluttermozembed/Makefile.am | ||
2 | =================================================================== | ||
3 | --- git.orig/clutter-mozembed/Makefile.am 2009-07-24 16:58:24.000000000 +0100 | ||
4 | +++ git/clutter-mozembed/Makefile.am 2009-07-24 17:00:53.000000000 +0100 | ||
5 | @@ -66,7 +66,7 @@ | ||
6 | clutter-mozembed.c \ | ||
7 | clutter-mozembed-comms.c \ | ||
8 | clutter-mozembed-comms.h \ | ||
9 | - clutter-mozembed-download.c | ||
10 | + clutter-mozembed-download.c dummy.cpp | ||
11 | |||
12 | bin_PROGRAMS = clutter-mozheadless | ||
13 | |||
diff --git a/meta-moblin/packages/clutter/clutter-mozembed_git.bb b/meta-moblin/packages/clutter/clutter-mozembed_git.bb deleted file mode 100644 index e2da2d6a7d..0000000000 --- a/meta-moblin/packages/clutter/clutter-mozembed_git.bb +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | require clutter-mozembed.inc | ||
2 | |||
3 | PV = "0.8.0+git${SRCPV}" | ||
4 | PR = "r7" | ||
5 | |||
6 | SRC_URI = "git://git.clutter-project.org/clutter-mozembed.git;protocol=git \ | ||
7 | file://link-with-g++-da7632f3e2c8d1a70ab01cc7adb63760d8718b41.patch;patch=1;rev=da7632f3e2c8d1a70ab01cc7adb63760d8718b41 \ | ||
8 | file://link-with-g++.patch;patch=1;notrev=da7632f3e2c8d1a70ab01cc7adb63760d8718b41" | ||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | do_configure_prepend () { | ||
12 | touch ${S}/clutter-mozembed/dummy.cpp | ||
13 | touch ${S}/clutter-mozembed/dummy2.cpp | ||
14 | } | ||
diff --git a/meta-moblin/packages/consolekit/consolekit_0.3.0.bb b/meta-moblin/packages/consolekit/consolekit_0.3.0.bb deleted file mode 100644 index fcd735d7ad..0000000000 --- a/meta-moblin/packages/consolekit/consolekit_0.3.0.bb +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | DESCRIPTION = "ConsoleKit is a framework for defining and tracking users, login sessions, and seats." | ||
2 | LICENSE = "GPLv2" | ||
3 | DEPENDS = "dbus" | ||
4 | |||
5 | inherit gnome | ||
6 | |||
7 | SRC_URI = "http://people.freedesktop.org/~mccann/dist/ConsoleKit-${PV}.tar.bz2 \ | ||
8 | file://nopolkit.patch;patch=1" | ||
9 | S = "${WORKDIR}/ConsoleKit-${PV}" | ||
10 | |||
11 | FILES_${PN} += "${libdir}/ConsoleKit ${datadir}/dbus-1 ${datadir}/PolicyKit" | ||
12 | |||
13 | |||
14 | |||
15 | |||
diff --git a/meta-moblin/packages/consolekit/files/nopolkit.patch b/meta-moblin/packages/consolekit/files/nopolkit.patch deleted file mode 100644 index bebbcaffff..0000000000 --- a/meta-moblin/packages/consolekit/files/nopolkit.patch +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | Index: ConsoleKit-0.3.0/configure.ac | ||
2 | =================================================================== | ||
3 | --- ConsoleKit-0.3.0.orig/configure.ac 2009-05-22 12:53:27.000000000 +0100 | ||
4 | +++ ConsoleKit-0.3.0/configure.ac 2009-05-22 12:53:56.000000000 +0100 | ||
5 | @@ -55,10 +55,7 @@ | ||
6 | gthread-2.0 >= $GLIB_REQUIRED_VERSION | ||
7 | ) | ||
8 | |||
9 | -PKG_CHECK_MODULES(POLKIT, | ||
10 | - polkit >= $POLKIT_REQUIRED_VERSION, | ||
11 | - have_polkit=yes, | ||
12 | - have_polkit=no) | ||
13 | +have_polkit=no | ||
14 | if test "x$have_polkit" = "xyes" ; then | ||
15 | AC_DEFINE(HAVE_POLKIT, [], [Define if we have polkit]) | ||
16 | fi | ||
diff --git a/meta-moblin/packages/dalston/dalston.inc b/meta-moblin/packages/dalston/dalston.inc deleted file mode 100644 index 204bccd697..0000000000 --- a/meta-moblin/packages/dalston/dalston.inc +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | DESCRIPTION = "System Information Icons" | ||
2 | SRC_URI = "http://download.moblin.org/sources/dalston/0.1/dalston-0.1.12.tar.bz2" | ||
3 | LICENSE = "LGPLv2.1" | ||
4 | |||
5 | DEPENDS = "glib-2.0 gtk+ pulseaudio libcanberra libnotify nbtk mutter-moblin" | ||
6 | |||
7 | inherit autotools | ||
diff --git a/meta-moblin/packages/dalston/dalston_0.1.12.bb b/meta-moblin/packages/dalston/dalston_0.1.12.bb deleted file mode 100644 index 4af8ebeb21..0000000000 --- a/meta-moblin/packages/dalston/dalston_0.1.12.bb +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | require dalston.inc | ||
diff --git a/meta-moblin/packages/dalston/dalston_git.bb b/meta-moblin/packages/dalston/dalston_git.bb deleted file mode 100644 index c61cb2b772..0000000000 --- a/meta-moblin/packages/dalston/dalston_git.bb +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | require dalston.inc | ||
2 | |||
3 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
4 | PV = "0.1.12+git${SRCPV}" | ||
5 | S = "${WORKDIR}/git" | ||
6 | |||
diff --git a/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-fontconfig.conf b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-fontconfig.conf deleted file mode 100644 index 6e08254bda..0000000000 --- a/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-fontconfig.conf +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> | ||
3 | <fontconfig> | ||
4 | <alias> | ||
5 | <family>sans-serif</family> | ||
6 | <prefer> | ||
7 | <family>Droid Sans</family> | ||
8 | </prefer> | ||
9 | </alias> | ||
10 | <alias> | ||
11 | <family>Droid Sans</family> | ||
12 | <default> | ||
13 | <family>sans-serif</family> | ||
14 | </default> | ||
15 | </alias> | ||
16 | <match target="scan"> | ||
17 | <test name="family"> | ||
18 | <string>Droid Sans Fallback</string> | ||
19 | </test> | ||
20 | <edit name="family"> | ||
21 | <string>Droid Sans</string> | ||
22 | </edit> | ||
23 | </match> | ||
24 | </fontconfig> | ||
diff --git a/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-mono-fontconfig.conf b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-mono-fontconfig.conf deleted file mode 100644 index 5c7f475419..0000000000 --- a/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-mono-fontconfig.conf +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> | ||
3 | <fontconfig> | ||
4 | <alias> | ||
5 | <family>monospace</family> | ||
6 | <prefer> | ||
7 | <family>Droid Sans Mono</family> | ||
8 | </prefer> | ||
9 | </alias> | ||
10 | <alias> | ||
11 | <family>Droid Sans Mono</family> | ||
12 | <default> | ||
13 | <family>monospace</family> | ||
14 | </default> | ||
15 | </alias> | ||
16 | </fontconfig> | ||
diff --git a/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-serif-fontconfig.conf b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-serif-fontconfig.conf deleted file mode 100644 index 30c15015fc..0000000000 --- a/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-serif-fontconfig.conf +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> | ||
3 | <fontconfig> | ||
4 | <alias> | ||
5 | <family>serif</family> | ||
6 | <prefer> | ||
7 | <family>Droid Serif</family> | ||
8 | </prefer> | ||
9 | </alias> | ||
10 | <alias> | ||
11 | <family>Droid Serif</family> | ||
12 | <default> | ||
13 | <family>serif</family> | ||
14 | </default> | ||
15 | </alias> | ||
16 | </fontconfig> | ||
diff --git a/meta-moblin/packages/droid-fonts/droid-fonts_1.0.112.bb b/meta-moblin/packages/droid-fonts/droid-fonts_1.0.112.bb deleted file mode 100644 index 19ef6f1420..0000000000 --- a/meta-moblin/packages/droid-fonts/droid-fonts_1.0.112.bb +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | HOMEPAGE = "http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts" | ||
2 | |||
3 | DESCRIPTION = "The Droid typeface family was designed in the fall of 2006 by Ascender's \ | ||
4 | Steve Matteson, as a commission from Google to create a set of system fonts \ | ||
5 | for its Android platform. The goal was to provide optimal quality and comfort \ | ||
6 | on a mobile handset when rendered in application menus, web browsers and for \ | ||
7 | other screen text." | ||
8 | |||
9 | SRC_URI = "http://pokylinux.org/sources/droid-fonts-1.0.112.tar.gz \ | ||
10 | file://droid-fonts-sans-fontconfig.conf \ | ||
11 | file://droid-fonts-sans-mono-fontconfig.conf \ | ||
12 | file://droid-fonts-serif-fontconfig.conf " | ||
13 | |||
14 | LICENSE = "Apache License, Version 2.0" | ||
15 | SECTION = "x11/fonts" | ||
16 | RDEPENDS = "fontconfig-utils" | ||
17 | PACKAGES = "${PN}" | ||
18 | FILES_${PN} += "${sysconfdir} ${datadir}" | ||
19 | |||
20 | do_install () { | ||
21 | install -d ${D}${datadir}/fonts/ttf/ | ||
22 | for i in *.ttf; do | ||
23 | install -m 0644 $i ${D}${prefix}/share/fonts/ttf/${i} | ||
24 | done | ||
25 | |||
26 | install -d ${D}${sysconfdir}/fonts/conf.d/ | ||
27 | install -m 0644 ${WORKDIR}/*.conf ${D}${sysconfdir}/fonts/conf.d/ | ||
28 | |||
29 | install -d ${D}${prefix}/share/doc/${PN}/ | ||
30 | install -m 0644 README.txt ${D}${datadir}/doc/${PN}/ | ||
31 | install -m 0644 NOTICE ${D}${datadir}/doc/${PN}/ | ||
32 | } | ||
33 | |||
34 | pkg_postinst () { | ||
35 | #!/bin/sh | ||
36 | fc-cache | ||
37 | } | ||
38 | |||
diff --git a/meta-moblin/packages/gmime/gmime/iconv-detect.h b/meta-moblin/packages/gmime/gmime/iconv-detect.h deleted file mode 100644 index 714cb5aa9d..0000000000 --- a/meta-moblin/packages/gmime/gmime/iconv-detect.h +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | /* This is an auto-generated header, DO NOT EDIT! */ | ||
2 | |||
3 | #define ICONV_ISO_INT_FORMAT "iso-%u-%u" | ||
4 | #define ICONV_ISO_STR_FORMAT "iso-%u-%s" | ||
5 | #define ICONV_10646 "iso-10646" | ||
diff --git a/meta-moblin/packages/gmime/gmime/nodolt.patch b/meta-moblin/packages/gmime/gmime/nodolt.patch deleted file mode 100644 index e4d5259c7b..0000000000 --- a/meta-moblin/packages/gmime/gmime/nodolt.patch +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | Index: gmime-2.4.10/configure.in | ||
2 | =================================================================== | ||
3 | --- gmime-2.4.10.orig/configure.in | ||
4 | +++ gmime-2.4.10/configure.in | ||
5 | @@ -80,7 +80,6 @@ AC_PATH_PROG(TAR, tar, /bin/tar) | ||
6 | |||
7 | AC_EXEEXT | ||
8 | AC_PROG_LIBTOOL | ||
9 | -DOLT | ||
10 | |||
11 | AM_MAINTAINER_MODE | ||
12 | |||
diff --git a/meta-moblin/packages/gmime/gmime_2.4.10.bb b/meta-moblin/packages/gmime/gmime_2.4.10.bb deleted file mode 100644 index 3b9327a931..0000000000 --- a/meta-moblin/packages/gmime/gmime_2.4.10.bb +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | LICENSE = "LGPL" | ||
2 | DESCRIPTION = "Runtime libraries for parsing and creating MIME mail" | ||
3 | SECTION = "libs" | ||
4 | PRIORITY = "optional" | ||
5 | DEPENDS = "glib-2.0 zlib" | ||
6 | |||
7 | inherit gnome autotools lib_package binconfig | ||
8 | |||
9 | SRC_URI += "file://iconv-detect.h \ | ||
10 | file://nodolt.patch;patch=1" | ||
11 | |||
12 | EXTRA_OECONF += "--disable-mono" | ||
13 | |||
14 | export ac_cv_have_iconv_detect_h=yes | ||
15 | do_configure_append = "cp ${WORKDIR}/iconv-detect.h ${S}" | ||
16 | |||
17 | # we do not need GNOME 1 gnome-config support | ||
18 | do_install_append () { | ||
19 | rm -f ${D}${libdir}/gmimeConf.sh | ||
20 | } | ||
diff --git a/meta-moblin/packages/gnet/files/buildfix.patch b/meta-moblin/packages/gnet/files/buildfix.patch deleted file mode 100644 index 8067620264..0000000000 --- a/meta-moblin/packages/gnet/files/buildfix.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: gnet/examples/Makefile.am | ||
2 | =================================================================== | ||
3 | --- gnet.orig/examples/Makefile.am | ||
4 | +++ gnet/examples/Makefile.am | ||
5 | @@ -2,7 +2,7 @@ | ||
6 | |||
7 | @SET_MAKE@ | ||
8 | |||
9 | -SUBDIRS = xmlrpc | ||
10 | +SUBDIRS = | ||
11 | |||
12 | if OS_WIN32 | ||
13 | noinst_PROGRAMS = echoclient echoserver \ | ||
diff --git a/meta-moblin/packages/gnet/files/configure_fix.patch b/meta-moblin/packages/gnet/files/configure_fix.patch deleted file mode 100644 index e6aadcc6a9..0000000000 --- a/meta-moblin/packages/gnet/files/configure_fix.patch +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | Index: trunk/configure.ac | ||
2 | =================================================================== | ||
3 | --- trunk.orig/configure.ac | ||
4 | +++ trunk/configure.ac | ||
5 | @@ -332,53 +332,6 @@ AC_DEFINE_UNQUOTED(GNET_SOCKADDR_FAMILY_ | ||
6 | [$gnet_sockaddr_family_field_name], | ||
7 | [Name of sockaddr_storage family field]) | ||
8 | |||
9 | -dnl ####################################### | ||
10 | -dnl Check if abstract sockets are supported | ||
11 | -dnl ####################################### | ||
12 | - | ||
13 | -AC_LANG_PUSH(C) | ||
14 | -AC_CACHE_CHECK([for abstract socket namespace availability], | ||
15 | - ac_cv_gnet_have_abstract_sockets, | ||
16 | - [AC_RUN_IFELSE([AC_LANG_PROGRAM( | ||
17 | -[[ | ||
18 | -#include <sys/types.h> | ||
19 | -#include <stdlib.h> | ||
20 | -#include <string.h> | ||
21 | -#include <stdio.h> | ||
22 | -#include <sys/socket.h> | ||
23 | -#include <sys/un.h> | ||
24 | -#include <errno.h> | ||
25 | -]], | ||
26 | -[[ | ||
27 | - int listen_fd, len; | ||
28 | - struct sockaddr_un addr; | ||
29 | - | ||
30 | - listen_fd = socket (PF_UNIX, SOCK_STREAM, 0); | ||
31 | - if (listen_fd < 0) { | ||
32 | - perror ("socket() failed: "); | ||
33 | - exit (1); | ||
34 | - } | ||
35 | - memset (&addr, '\0', sizeof (addr)); | ||
36 | - addr.sun_family = AF_UNIX; | ||
37 | - strcpy (addr.sun_path, "X/tmp/gnet-fake-socket-path-used-in-configure-test"); | ||
38 | - len = SUN_LEN (&addr); /* calculate size before adding the \0 */ | ||
39 | - addr.sun_path[0] = '\0'; /* this is what makes it abstract */ | ||
40 | - | ||
41 | - if (bind (listen_fd, (struct sockaddr*) &addr, len) < 0) { | ||
42 | - perror ("Abstract socket namespace bind() failed: "); | ||
43 | - exit (1); | ||
44 | - } | ||
45 | - exit (0); | ||
46 | -]])], | ||
47 | - [ac_cv_gnet_have_abstract_sockets=yes], | ||
48 | - [ac_cv_gnet_have_abstract_sockets=no] | ||
49 | -)]) | ||
50 | -AC_LANG_POP(C) | ||
51 | - | ||
52 | -if test x$ac_cv_gnet_have_abstract_sockets = xyes ; then | ||
53 | - AC_DEFINE(HAVE_ABSTRACT_SOCKETS,1,[Have abstract socket namespace]) | ||
54 | -fi | ||
55 | - | ||
56 | ############################### | ||
57 | # Compiler characteristics | ||
58 | AC_C_CONST | ||
diff --git a/meta-moblin/packages/gnet/files/pkgconfig_fix.patch b/meta-moblin/packages/gnet/files/pkgconfig_fix.patch deleted file mode 100644 index a4a433f1ce..0000000000 --- a/meta-moblin/packages/gnet/files/pkgconfig_fix.patch +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | Index: trunk/gnet-2.0.pc.in | ||
2 | =================================================================== | ||
3 | --- trunk.orig/gnet-2.0.pc.in 2008-11-06 16:41:25.000000000 +0000 | ||
4 | +++ trunk/gnet-2.0.pc.in 2008-11-06 16:42:23.000000000 +0000 | ||
5 | @@ -6,5 +6,6 @@ | ||
6 | Name: Gnet | ||
7 | Description: A network compatibility layer library | ||
8 | Version: @VERSION@ | ||
9 | +Requires: glib-2.0 gthread-2.0 | ||
10 | Libs: -L${libdir} -lgnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ @GLIB_LIBS@ @GTHREAD_LIBS@ | ||
11 | -Cflags: -I${includedir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ -I${libdir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@/include/ @GLIB_CFLAGS@ @GTHREAD_CFLAGS@ | ||
12 | +Cflags: -I${includedir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ -I${libdir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@/include/ | ||
diff --git a/meta-moblin/packages/gnet/gnet_svn.bb b/meta-moblin/packages/gnet/gnet_svn.bb deleted file mode 100644 index fde58f0f32..0000000000 --- a/meta-moblin/packages/gnet/gnet_svn.bb +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | DESCRIPTION = "GNet is a simple network library. It is written in C, object-oriented, and built upon GLib." | ||
2 | LICENSE = "LGPL" | ||
3 | SECTION = "libs/network" | ||
4 | HOMEPAGE = "http://www.gnetlibrary.org" | ||
5 | DEPENDS = "glib-2.0" | ||
6 | PV = "2.0.7+svnr${SRCREV}" | ||
7 | PR = "r1" | ||
8 | |||
9 | SRC_URI = "svn://svn.gnome.org/svn/${PN}/;module=trunk;proto=http \ | ||
10 | file://buildfix.patch;patch=1 \ | ||
11 | file://configure_fix.patch;patch=1 \ | ||
12 | file://pkgconfig_fix.patch;patch=1 " | ||
13 | |||
14 | S = "${WORKDIR}/trunk" | ||
15 | |||
16 | EXTRA_OECONF = "--disable-pthreads" | ||
17 | |||
18 | FILES_${PN}-dev += "${libdir}/gnet-2.0" | ||
19 | |||
20 | inherit autotools pkgconfig | ||
diff --git a/meta-moblin/packages/gnome/gnome-menus_2.24.1.bb b/meta-moblin/packages/gnome/gnome-menus_2.24.1.bb deleted file mode 100644 index c36b3ef50b..0000000000 --- a/meta-moblin/packages/gnome/gnome-menus_2.24.1.bb +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | DEPENDS = "python gnome-vfs libxml2 gconf popt gtk+" | ||
2 | LICENSE = "GPL" | ||
3 | |||
4 | inherit gnome pkgconfig | ||
5 | |||
6 | DEPENDS += "intltool" | ||
7 | |||
8 | PACKAGES += "${PN}-python" | ||
9 | FILES_${PN} += "${datadir}/desktop-directories/" | ||
10 | FILES_${PN}-python = "${libdir}/python*" | ||
11 | FILES_${PN}-dbg += "${libdir}/python*/site-packages/*/.debug \ | ||
12 | ${libdir}/python*/site-packages/.debug" | ||
13 | |||
diff --git a/meta-moblin/packages/gnome/gvfs_1.0.2.bb b/meta-moblin/packages/gnome/gvfs_1.0.2.bb deleted file mode 100644 index da071c4a64..0000000000 --- a/meta-moblin/packages/gnome/gvfs_1.0.2.bb +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | DESCRIPTION = "gvfs is a userspace virtual filesystem" | ||
2 | LICENSE = "LGPL" | ||
3 | DEPENDS = "glib-2.0 fuse gnome-keyring" | ||
4 | PR = "r1" | ||
5 | |||
6 | inherit gnome | ||
7 | EXTRA_OECONF = "--disable-samba --disable-archive" | ||
8 | |||
9 | PACKAGES =+ "gvfsd-ftp gvfsd-sftp gvfsd-trash" | ||
10 | |||
11 | FILES_${PN} += "${datadir}/dbus-1/services/* ${libdir}/gio/modules/*.so" | ||
12 | FILES_${PN}-dbg += "${libdir}/gio/modules/.debug/*" | ||
13 | FILES_${PN}-dev += "${libdir}/gio/modules/*.la" | ||
14 | |||
15 | FILES_gvfsd-ftp = "${libexecdir}/gvfsd-ftp ${sysconfdir}/gvfs/mounts/ftp.mount" | ||
16 | FILES_gvfsd-sftp = "${libexecdir}/gvfsd-sftp ${sysconfdir}/gvfs/mounts/sftp.mount" | ||
17 | FILES_gvfsd-trash = "${libexecdir}/gvfsd-trash ${sysconfdir}/gvfs/mounts/trash.mount" | ||
diff --git a/meta-moblin/packages/gnome/mobile-broadband-provider-info/fixpkgconfig.patch b/meta-moblin/packages/gnome/mobile-broadband-provider-info/fixpkgconfig.patch deleted file mode 100644 index 1a0caadad1..0000000000 --- a/meta-moblin/packages/gnome/mobile-broadband-provider-info/fixpkgconfig.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: git/Makefile.am | ||
2 | =================================================================== | ||
3 | --- git.orig/Makefile.am 2009-10-12 17:26:59.000000000 +0100 | ||
4 | +++ git/Makefile.am 2009-10-12 17:27:08.000000000 +0100 | ||
5 | @@ -6,7 +6,7 @@ | ||
6 | |||
7 | EXTRA_DIST = mobile-broadband-provider-info.pc.in | ||
8 | |||
9 | -pkgconfigdir = $(datadir)/pkgconfig | ||
10 | +pkgconfigdir = $(libdir)/pkgconfig | ||
11 | pkgconfig_DATA = mobile-broadband-provider-info.pc | ||
12 | |||
13 | check-local: | ||
diff --git a/meta-moblin/packages/gnome/mobile-broadband-provider-info_git.bb b/meta-moblin/packages/gnome/mobile-broadband-provider-info_git.bb deleted file mode 100644 index 56df4ff5c8..0000000000 --- a/meta-moblin/packages/gnome/mobile-broadband-provider-info_git.bb +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | |||
2 | inherit gnome pkgconfig | ||
3 | |||
4 | SRC_URI = "git://git.gnome.org/mobile-broadband-provider-info;protocol=git \ | ||
5 | file://fixpkgconfig.patch;patch=1" | ||
6 | |||
7 | S = "${WORKDIR}/git" | ||
8 | |||
9 | PV = "0.0+git${SRCPV}" | ||
diff --git a/meta-moblin/packages/hornsey/Makefile.am b/meta-moblin/packages/hornsey/Makefile.am deleted file mode 100644 index bce92c4060..0000000000 --- a/meta-moblin/packages/hornsey/Makefile.am +++ /dev/null | |||
@@ -1,662 +0,0 @@ | |||
1 | ## Process this file with automake to create Makefile.in. | ||
2 | |||
3 | # We set GPATH here; this gives us semantics for GNU make | ||
4 | # which are more like other make's VPATH. | ||
5 | GPATH = $(srcdir) | ||
6 | |||
7 | if HAVE_FREETYPE | ||
8 | OPENTYPE_SUBDIR=opentype | ||
9 | endif | ||
10 | |||
11 | EXTRA_DIST = | ||
12 | BUILT_GIRSOURCES = | ||
13 | |||
14 | FRIBIDI_SUBDIR=mini-fribidi | ||
15 | |||
16 | SUBDIRS = $(OPENTYPE_SUBDIR) $(FRIBIDI_SUBDIR) | ||
17 | |||
18 | DIST_SUBDIRS = mini-fribidi opentype | ||
19 | |||
20 | INCLUDES = \ | ||
21 | -DG_LOG_DOMAIN=\"Pango\" \ | ||
22 | -DPANGO_ENABLE_BACKEND \ | ||
23 | -DPANGO_ENABLE_ENGINE \ | ||
24 | -DSYSCONFDIR=\"$(sysconfdir)\" \ | ||
25 | -DLIBDIR=\"$(libdir)\" \ | ||
26 | -I$(top_srcdir) \ | ||
27 | $(PANGO_DEBUG_FLAGS) \ | ||
28 | $(GLIB_CFLAGS) \ | ||
29 | $(XFT_CFLAGS) \ | ||
30 | $(CAIRO_CFLAGS) \ | ||
31 | $(FREETYPE_CFLAGS) \ | ||
32 | $(X_CFLAGS) | ||
33 | |||
34 | BUILT_SOURCES = pango-enum-types.h pango-enum-types.c pango-features.h | ||
35 | |||
36 | pangoincludedir=$(includedir)/pango-1.0/pango | ||
37 | |||
38 | if OS_WIN32 | ||
39 | else | ||
40 | libm = -lm | ||
41 | endif | ||
42 | |||
43 | # ------------------- libpango ------------------- | ||
44 | |||
45 | lib_LTLIBRARIES = libpango-1.0.la | ||
46 | BUILT_GIRSOURCES += Pango-1.0.gir | ||
47 | |||
48 | libpango_1_0_la_LDFLAGS = $(LIBRARY_LIBTOOL_OPTIONS) | ||
49 | libpango_1_0_la_LIBADD = \ | ||
50 | $(GLIB_LIBS) \ | ||
51 | $(libm) \ | ||
52 | $(INCLUDED_LANG_MODULES) | ||
53 | libpango_1_0_la_DEPENDENCIES = \ | ||
54 | $(INCLUDED_LANG_MODULES) | ||
55 | |||
56 | libpango_1_0_la_LIBADD += mini-fribidi/libmini-fribidi.la | ||
57 | libpango_1_0_la_DEPENDENCIES += mini-fribidi/libmini-fribidi.la | ||
58 | |||
59 | if PLATFORM_WIN32 | ||
60 | libpango_1_0_la_LDFLAGS += -export-symbols $(srcdir)/pango.def -Wl,pango-win32-res.o | ||
61 | libpango_1_0_la_DEPENDENCIES += pango-win32-res.o pango.def | ||
62 | endif | ||
63 | pango-win32-res.o: pango.rc | ||
64 | $(AM_V_GEN) $(WINDRES) $< $@ | ||
65 | |||
66 | libpango_1_0_la_SOURCES = \ | ||
67 | break.c \ | ||
68 | ellipsize.c \ | ||
69 | fonts.c \ | ||
70 | glyphstring.c \ | ||
71 | modules.c \ | ||
72 | pango-attributes.c \ | ||
73 | pango-bidi-type.c \ | ||
74 | pango-color.c \ | ||
75 | pango-color-table.h \ | ||
76 | pango-context.c \ | ||
77 | pango-coverage.c \ | ||
78 | pango-engine.c \ | ||
79 | pango-engine-private.h \ | ||
80 | pango-fontmap.c \ | ||
81 | pango-fontset.c \ | ||
82 | pango-glyph-item.c \ | ||
83 | pango-gravity.c \ | ||
84 | pango-impl-utils.h \ | ||
85 | pango-item.c \ | ||
86 | pango-language.c \ | ||
87 | pango-language-sample-table.h \ | ||
88 | pango-layout.c \ | ||
89 | pango-layout-private.h \ | ||
90 | pango-markup.c \ | ||
91 | pango-matrix.c \ | ||
92 | pango-renderer.c \ | ||
93 | pango-script.c \ | ||
94 | pango-script-lang-table.h \ | ||
95 | pango-script-private.h \ | ||
96 | pango-tabs.c \ | ||
97 | pango-utils.c \ | ||
98 | reorder-items.c \ | ||
99 | shape.c \ | ||
100 | pango-enum-types.c \ | ||
101 | module-defs-lang.c | ||
102 | |||
103 | pango_headers = \ | ||
104 | pango.h \ | ||
105 | pango-attributes.h \ | ||
106 | pango-bidi-type.h \ | ||
107 | pango-break.h \ | ||
108 | pango-context.h \ | ||
109 | pango-coverage.h \ | ||
110 | pango-engine.h \ | ||
111 | pango-font.h \ | ||
112 | pango-fontmap.h \ | ||
113 | pango-fontset.h \ | ||
114 | pango-glyph.h \ | ||
115 | pango-glyph-item.h \ | ||
116 | pango-gravity.h \ | ||
117 | pango-item.h \ | ||
118 | pango-language.h \ | ||
119 | pango-layout.h \ | ||
120 | pango-matrix.h \ | ||
121 | pango-modules.h \ | ||
122 | pango-renderer.h \ | ||
123 | pango-script.h \ | ||
124 | pango-tabs.h \ | ||
125 | pango-types.h \ | ||
126 | pango-utils.h | ||
127 | |||
128 | pangoinclude_HEADERS = \ | ||
129 | $(pango_headers) \ | ||
130 | pango-features.h \ | ||
131 | pango-enum-types.h | ||
132 | |||
133 | pango-enum-types.h: s-enum-types-h | ||
134 | $(AM_V_GEN) true | ||
135 | s-enum-types-h: @REBUILD@ $(pango_headers) Makefile | ||
136 | $(AM_V_GEN) ( cd $(srcdir) && glib-mkenums \ | ||
137 | --fhead "#ifndef __PANGO_ENUM_TYPES_H__\n#define __PANGO_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \ | ||
138 | --fprod "/* enumerations from \"@filename@\" */\n" \ | ||
139 | --vhead "GType @enum_name@_get_type (void);\n#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ | ||
140 | --ftail "G_END_DECLS\n\n#endif /* __PANGO_ENUM_TYPES_H__ */" \ | ||
141 | $(pango_headers) ) > tmp-pango-enum-types.h \ | ||
142 | && (cmp -s tmp-pango-enum-types.h pango-enum-types.h || cp tmp-pango-enum-types.h pango-enum-types.h ) \ | ||
143 | && rm -f tmp-pango-enum-types.h \ | ||
144 | && echo timestamp > $(@F) | ||
145 | |||
146 | pango-enum-types.c: s-enum-types-c | ||
147 | $(AM_V_GEN) true | ||
148 | s-enum-types-c: @REBUILD@ $(pango_headers) Makefile | ||
149 | $(AM_V_GEN) ( cd $(srcdir) && glib-mkenums \ | ||
150 | --fhead "#include <pango.h>" \ | ||
151 | --fprod "\n/* enumerations from \"@filename@\" */" \ | ||
152 | --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ | ||
153 | --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ | ||
154 | --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n }\n return etype;\n}\n" \ | ||
155 | $(pango_headers) ) > tmp-pango-enum-types.c \ | ||
156 | && (cmp -s tmp-pango-enum-types.c pango-enum-types.c || cp tmp-pango-enum-types.c pango-enum-types.c ) \ | ||
157 | && rm -f tmp-pango-enum-types.c \ | ||
158 | && echo timestamp > $(@F) | ||
159 | |||
160 | pango-features.h: | ||
161 | $(AM_V_GEN) cd $(top_builddir) && ./config.status pango/pango-features.h | ||
162 | |||
163 | Pango-1.0.gir: $(libpango_1_0_la_SOURCES) | ||
164 | Pango-1.0.gir: $(pango_headers) | ||
165 | Pango-1.0.gir: libpango-1.0.la | ||
166 | Pango-1.0.gir: $(G_IR_SCANNER) Makefile | ||
167 | $(AM_V_GEN) $(G_IR_SCANNER) -v --namespace Pango --nsversion=1.0 \ | ||
168 | --add-include-path=$(srcdir) --add-include-path=. \ | ||
169 | --include=GObject-2.0 \ | ||
170 | --include=cairo-1.0 \ | ||
171 | --library=libpango-1.0.la \ | ||
172 | --libtool="$(LIBTOOL)" \ | ||
173 | --output $@ \ | ||
174 | --pkg gobject-2.0 \ | ||
175 | --pkg cairo \ | ||
176 | --pkg freetype2 \ | ||
177 | -I$(top_srcdir) \ | ||
178 | $(PANGO_CFLAGS) \ | ||
179 | $(libpango_1_0_la_SOURCES) \ | ||
180 | $(pango_headers) \ | ||
181 | pango-enum-types.h | ||
182 | |||
183 | # ------------------- libpangox ------------------- | ||
184 | |||
185 | if HAVE_X | ||
186 | pangoinclude_HEADERS += $(pangox_headers) | ||
187 | lib_LTLIBRARIES += libpangox-1.0.la | ||
188 | aliasdir = $(sysconfdir)/pango | ||
189 | alias_DATA = pangox.aliases | ||
190 | endif | ||
191 | |||
192 | pangox_headers = pangox.h | ||
193 | pangox_public_sources = pangox.c | ||
194 | |||
195 | libpangox_1_0_la_LDFLAGS = $(LIBRARY_LIBTOOL_OPTIONS) | ||
196 | libpangox_1_0_la_LIBADD = \ | ||
197 | libpango-$(PANGO_API_VERSION).la \ | ||
198 | $(INCLUDED_X_MODULES) \ | ||
199 | $(GLIB_LIBS) \ | ||
200 | $(X_LIBS) \ | ||
201 | $(X_EXTRA_LIBS) | ||
202 | libpangox_1_0_la_DEPENDENCIES = \ | ||
203 | libpango-$(PANGO_API_VERSION).la \ | ||
204 | $(INCLUDED_X_MODULES) | ||
205 | |||
206 | if PLATFORM_WIN32 | ||
207 | libpangox_1_0_la_LDFLAGS += -export-symbols $(srcdir)/pangox.def -Wl,pangox-win32-res.o | ||
208 | libpangox_1_0_la_DEPENDENCIES += pangox-win32-res.o pangox.def | ||
209 | endif | ||
210 | |||
211 | pangox-win32-res.o: pangox.rc | ||
212 | $(WINDRES) $< $@ | ||
213 | |||
214 | libpangox_1_0_la_SOURCES = \ | ||
215 | $(pangox_public_sources) \ | ||
216 | modules.h \ | ||
217 | module-defs-x.c \ | ||
218 | pangox-private.h \ | ||
219 | pangox-fontcache.c \ | ||
220 | pangox-fontmap.c | ||
221 | |||
222 | # ------------------- libpangoft2 ------------------- | ||
223 | |||
224 | if HAVE_FREETYPE | ||
225 | pangoinclude_HEADERS += $(pangoft2_headers) | ||
226 | lib_LTLIBRARIES += libpangoft2-1.0.la | ||
227 | BUILT_GIRSOURCES += PangoFT2-1.0.gir | ||
228 | endif | ||
229 | |||
230 | pangoft2_headers = \ | ||
231 | pango-ot.h \ | ||
232 | pangofc-font.h \ | ||
233 | pangofc-fontmap.h \ | ||
234 | pangofc-decoder.h \ | ||
235 | pangoft2.h | ||
236 | |||
237 | pangoft2_public_sources = \ | ||
238 | pangofc-font.c \ | ||
239 | pangofc-fontmap.c \ | ||
240 | pangofc-decoder.c \ | ||
241 | pangoft2.c | ||
242 | |||
243 | libpangoft2_1_0_la_LDFLAGS = $(LIBRARY_LIBTOOL_OPTIONS) | ||
244 | libpangoft2_1_0_la_LIBADD = \ | ||
245 | opentype/libharfbuzz.la \ | ||
246 | libpango-$(PANGO_API_VERSION).la \ | ||
247 | $(INCLUDED_FC_MODULES) \ | ||
248 | $(GLIB_LIBS) \ | ||
249 | $(FREETYPE_LIBS) \ | ||
250 | $(libm) | ||
251 | libpangoft2_1_0_la_DEPENDENCIES = \ | ||
252 | opentype/libharfbuzz.la \ | ||
253 | libpango-$(PANGO_API_VERSION).la \ | ||
254 | $(INCLUDED_FC_MODULES) | ||
255 | libpangoft2_1_0_la_SOURCES = \ | ||
256 | $(pangoft2_public_sources) \ | ||
257 | modules.h \ | ||
258 | module-defs-fc.c \ | ||
259 | pangofc-private.h \ | ||
260 | pangoft2.h \ | ||
261 | pangoft2-private.h \ | ||
262 | pangoft2-fontmap.c \ | ||
263 | pangoft2-render.c \ | ||
264 | pango-ot-private.h \ | ||
265 | pango-ot-buffer.c \ | ||
266 | pango-ot-info.c \ | ||
267 | pango-ot-ruleset.c \ | ||
268 | pango-ot-tag.c | ||
269 | |||
270 | |||
271 | if PLATFORM_WIN32 | ||
272 | libpangoft2_1_0_la_LDFLAGS += -export-symbols $(srcdir)/pangoft2.def -Wl,pangoft2-win32-res.o | ||
273 | libpangoft2_1_0_la_DEPENDENCIES += pangoft2-win32-res.o pangoft2.def | ||
274 | endif | ||
275 | pangoft2-win32-res.o: pangoft2.rc | ||
276 | $(AM_V_GEN) $(WINDRES) $< $@ | ||
277 | |||
278 | PangoFT2-1.0.gir: $(pangoft2_headers) | ||
279 | PangoFT2-1.0.gir: $(libpangoft2_1_0_la_SOURCES) | ||
280 | PangoFT2-1.0.gir: libpangoft2-1.0.la | ||
281 | PangoFT2-1.0.gir: Pango-1.0.gir $(G_IR_SCANNER) Makefile | ||
282 | $(AM_V_GEN) $(G_IR_SCANNER) -v --namespace PangoFT2 --nsversion=1.0 \ | ||
283 | --add-include-path=$(srcdir) --add-include-path=. \ | ||
284 | --include=GObject-2.0 \ | ||
285 | --include=Pango-1.0 \ | ||
286 | --include=freetype2-2.0 \ | ||
287 | --include=fontconfig-2.0 \ | ||
288 | --library=libpangoft2-1.0.la \ | ||
289 | --libtool="$(LIBTOOL)" \ | ||
290 | --output $@ \ | ||
291 | --pkg gobject-2.0 \ | ||
292 | --pkg freetype2 \ | ||
293 | --pkg pangoft2 \ | ||
294 | -I$(top_srcdir) \ | ||
295 | $(pangoft2_headers) \ | ||
296 | $(pangoft2_public_sources) | ||
297 | |||
298 | # ------------------- libpangoxft ------------------- | ||
299 | |||
300 | if HAVE_XFT | ||
301 | pangoinclude_HEADERS += $(pangoxft_headers) | ||
302 | lib_LTLIBRARIES += libpangoxft-1.0.la | ||
303 | BUILT_GIRSOURCES += PangoXft-1.0.gir | ||
304 | endif | ||
305 | |||
306 | pangoxft_headers = pangoxft.h pangoxft-render.h | ||
307 | |||
308 | libpangoxft_1_0_la_LDFLAGS = $(LIBRARY_LIBTOOL_OPTIONS) | ||
309 | libpangoxft_1_0_la_LIBADD = \ | ||
310 | libpangoft2-$(PANGO_API_VERSION).la \ | ||
311 | libpango-$(PANGO_API_VERSION).la \ | ||
312 | $(GLIB_LIBS) \ | ||
313 | $(X_LIBS) \ | ||
314 | $(XFT_LIBS) \ | ||
315 | $(FREETYPE_LIBS) \ | ||
316 | $(libm) | ||
317 | libpangoxft_1_0_la_DEPENDENCIES = \ | ||
318 | libpangoft2-$(PANGO_API_VERSION).la \ | ||
319 | libpango-$(PANGO_API_VERSION).la | ||
320 | |||
321 | if PLATFORM_WIN32 | ||
322 | libpangoxft_1_0_la_LDFLAGS += -export-symbols $(srcdir)/pangoxft.def -Wl,pangoxft-win32-res.o | ||
323 | libpangoxft_1_0_la_DEPENDENCIES += pangoxft-win32-res.o pangoxft.def | ||
324 | endif | ||
325 | pangoxft-win32-res.o: pangoxft.rc | ||
326 | $(AM_V_GEN) $(WINDRES) $< $@ | ||
327 | |||
328 | libpangoxft_1_0_la_SOURCES = \ | ||
329 | pangoxft-font.c \ | ||
330 | pangoxft-fontmap.c \ | ||
331 | pangoxft-private.h \ | ||
332 | pangoxft-render.c | ||
333 | |||
334 | |||
335 | PangoXft-1.0.gir: $(pangoxft_headers) | ||
336 | PangoXft-1.0.gir: $(libpangoxft_1_0_la_SOURCES) | ||
337 | PangoXft-1.0.gir: libpangoxft-1.0.la | ||
338 | PangoXft-1.0.gir: Pango-1.0.gir PangoFT2-1.0.gir $(G_IR_SCANNER) Makefile | ||
339 | $(AM_V_GEN) $(G_IR_SCANNER) -v --namespace PangoXft --nsversion=1.0 \ | ||
340 | --add-include-path=$(srcdir) --add-include-path=. \ | ||
341 | --include=GObject-2.0 \ | ||
342 | --include=xft-2.0 \ | ||
343 | --include=xlib-2.0 \ | ||
344 | --include=PangoFT2-1.0 \ | ||
345 | --library=libpangoxft-1.0.la \ | ||
346 | --libtool="$(LIBTOOL)" \ | ||
347 | --output $@ \ | ||
348 | --pkg gobject-2.0 \ | ||
349 | --pkg freetype2 \ | ||
350 | -I$(top_srcdir) \ | ||
351 | $(PANGO_CFLAGS) \ | ||
352 | $(pangoxft_headers) \ | ||
353 | $(libpangoxft_1_0_la_SOURCES) | ||
354 | |||
355 | # ------------------- libpangocairo ------------------- | ||
356 | |||
357 | if HAVE_CAIRO | ||
358 | pangoinclude_HEADERS += $(pangocairo_headers) | ||
359 | lib_LTLIBRARIES += libpangocairo-1.0.la | ||
360 | BUILT_GIRSOURCES += PangoCairo-1.0.gir | ||
361 | endif | ||
362 | |||
363 | pangocairo_headers = pangocairo.h | ||
364 | |||
365 | libpangocairo_1_0_la_LDFLAGS = $(LIBRARY_LIBTOOL_OPTIONS) | ||
366 | libpangocairo_1_0_la_LIBADD = \ | ||
367 | libpango-$(PANGO_API_VERSION).la \ | ||
368 | $(GLIB_LIBS) \ | ||
369 | $(CAIRO_LIBS) \ | ||
370 | $(libm) | ||
371 | libpangocairo_1_0_la_DEPENDENCIES = \ | ||
372 | libpango-$(PANGO_API_VERSION).la | ||
373 | libpangocairo_1_0_la_SOURCES = \ | ||
374 | pangocairo-context.c \ | ||
375 | pangocairo-font.c \ | ||
376 | pangocairo-fontmap.c \ | ||
377 | pangocairo-render.c \ | ||
378 | pangocairo-private.h | ||
379 | |||
380 | if HAVE_CAIRO_WIN32 | ||
381 | if PLATFORM_WIN32 | ||
382 | libpangocairo_1_0_la_LDFLAGS += -export-symbols $(srcdir)/pangocairo.def | ||
383 | libpangocairo_1_0_la_DEPENDENCIES += pangocairo.def | ||
384 | endif | ||
385 | |||
386 | libpangocairo_1_0_la_LIBADD += libpangowin32-$(PANGO_API_VERSION).la $(WIN32_LIBS) | ||
387 | libpangocairo_1_0_la_DEPENDENCIES += libpangowin32-$(PANGO_API_VERSION).la | ||
388 | |||
389 | libpangocairo_1_0_la_SOURCES += pangocairo-win32font.c pangocairo-win32fontmap.c pangocairo-win32.h | ||
390 | endif | ||
391 | |||
392 | if HAVE_CAIRO_FREETYPE | ||
393 | libpangocairo_1_0_la_LIBADD += libpangoft2-$(PANGO_API_VERSION).la $(FREETYPE_LIBS) | ||
394 | libpangocairo_1_0_la_DEPENDENCIES += libpangoft2-$(PANGO_API_VERSION).la | ||
395 | PANGOCAIRO_FONT_BACKEND_GI_MODULE = PangoFT2-1.0 | ||
396 | |||
397 | libpangocairo_1_0_la_SOURCES += \ | ||
398 | pangocairo-fcfont.c \ | ||
399 | pangocairo-fcfontmap.c \ | ||
400 | pangocairo-fc.h | ||
401 | endif | ||
402 | |||
403 | if HAVE_CAIRO_ATSUI | ||
404 | libpangocairo_1_0_la_SOURCES += \ | ||
405 | modules.h \ | ||
406 | module-defs-atsui.c \ | ||
407 | pangoatsui.h \ | ||
408 | pangoatsui.c \ | ||
409 | pangoatsui-private.h \ | ||
410 | pangoatsui-fontmap.c \ | ||
411 | pangocairo-atsui.h \ | ||
412 | pangocairo-atsuifont.c \ | ||
413 | pangocairo-atsuifont.h \ | ||
414 | pangocairo-atsuifontmap.c | ||
415 | pangoinclude_HEADERS += pangoatsui.h | ||
416 | |||
417 | libpangocairo_1_0_la_CFLAGS = -xobjective-c | ||
418 | libpangocairo_1_0_la_LDFLAGS += -framework CoreFoundation -framework Carbon -framework Cocoa | ||
419 | libpangocairo_1_0_la_LIBADD += $(INCLUDED_ATSUI_MODULES) | ||
420 | # We don't have an ATSUI GIR right now, so this is just hypothetical | ||
421 | PANGOCAIRO_FONT_BACKEND_GI_MODULE = PangoATSUI-1.0 | ||
422 | endif | ||
423 | |||
424 | PangoCairo-1.0.gir: $(libpangocairo_1_0_la_SOURCES) | ||
425 | PangoCairo-1.0.gir: $(pangocairo_headers) | ||
426 | PangoCairo-1.0.gir: libpangocairo-1.0.la | ||
427 | PangoCairo-1.0.gir: Pango-1.0.gir $(PANGOCAIRO_FONT_BACKEND_GI_MODULE).gir $(G_IR_SCANNER) Makefile | ||
428 | $(AM_V_GEN) $(G_IR_SCANNER) -v --namespace PangoCairo --nsversion=1.0 \ | ||
429 | --add-include-path=$(srcdir) --add-include-path=. \ | ||
430 | --include=GObject-2.0 \ | ||
431 | --include=cairo-1.0 \ | ||
432 | --include=Pango-1.0 \ | ||
433 | --add-include-path=. \ | ||
434 | --include=$(PANGOCAIRO_FONT_BACKEND_GI_MODULE) \ | ||
435 | --library=libpangocairo-1.0.la \ | ||
436 | --libtool="$(LIBTOOL)" \ | ||
437 | --output $@ \ | ||
438 | --pkg gobject-2.0 \ | ||
439 | --pkg cairo \ | ||
440 | -I$(top_srcdir) \ | ||
441 | $(PANGO_CFLAGS) \ | ||
442 | $(libpangocairo_1_0_la_SOURCES) \ | ||
443 | $(pangocairo_headers) | ||
444 | |||
445 | # ------------------- libpangowin32 ------------------- | ||
446 | |||
447 | if HAVE_WIN32 | ||
448 | pangoinclude_HEADERS += pangowin32.h | ||
449 | lib_LTLIBRARIES += libpangowin32-1.0.la | ||
450 | endif | ||
451 | |||
452 | libpangowin32_1_0_la_LDFLAGS = $(LIBRARY_LIBTOOL_OPTIONS) | ||
453 | libpangowin32_1_0_la_LIBADD = \ | ||
454 | libpango-$(PANGO_API_VERSION).la \ | ||
455 | $(INCLUDED_WIN32_MODULES) \ | ||
456 | $(GLIB_LIBS) \ | ||
457 | $(WIN32_LIBS) | ||
458 | libpangowin32_1_0_la_DEPENDENCIES = \ | ||
459 | libpango-$(PANGO_API_VERSION).la \ | ||
460 | $(INCLUDED_WIN32_MODULES) | ||
461 | libpangowin32_1_0_la_SOURCES = \ | ||
462 | modules.h \ | ||
463 | module-defs-win32.c \ | ||
464 | pangowin32.h \ | ||
465 | pangowin32.c \ | ||
466 | pangowin32-private.h \ | ||
467 | pangowin32-fontcache.c \ | ||
468 | pangowin32-fontmap.c | ||
469 | |||
470 | if PLATFORM_WIN32 | ||
471 | libpangowin32_1_0_la_LDFLAGS += -export-symbols $(srcdir)/pangowin32.def -Wl,pangowin32-win32-res.o | ||
472 | libpangowin32_1_0_la_DEPENDENCIES += pangowin32-win32-res.o pangowin32.def | ||
473 | endif | ||
474 | pangowin32-win32-res.o: pangowin32.rc | ||
475 | $(AM_V_GEN) $(WINDRES) $< $@ | ||
476 | |||
477 | |||
478 | # ------------------- win32 build stuff ------------------- | ||
479 | |||
480 | if OS_WIN32 | ||
481 | install-def-files: | ||
482 | $(AM_V_GEN) mkdir -p $(DESTDIR)$(libdir) && \ | ||
483 | $(INSTALL) $(srcdir)/pango.def $(DESTDIR)$(libdir)/pango-$(PANGO_API_VERSION).def | ||
484 | if HAVE_FREETYPE | ||
485 | $(INSTALL) $(srcdir)/pangoft2.def $(DESTDIR)$(libdir)/pangoft2-$(PANGO_API_VERSION).def | ||
486 | endif | ||
487 | $(INSTALL) $(srcdir)/pangowin32.def $(DESTDIR)$(libdir)/pangowin32-$(PANGO_API_VERSION).def | ||
488 | $(INSTALL) $(srcdir)/pangocairo.def $(DESTDIR)$(libdir)/pangocairo-$(PANGO_API_VERSION).def | ||
489 | if HAVE_X | ||
490 | $(INSTALL) $(srcdir)/pangox.def $(DESTDIR)$(libdir)/pangox-$(PANGO_API_VERSION).def | ||
491 | $(INSTALL) $(srcdir)/pangoxft.def $(DESTDIR)$(libdir)/pangoxft-$(PANGO_API_VERSION).def | ||
492 | endif | ||
493 | uninstall-def-files: | ||
494 | -rm $(DESTDIR)$(libdir)/pango$(PANGO_API_VERSION).def | ||
495 | if HAVE_FREETYPE | ||
496 | -rm $(DESTDIR)$(libdir)/pangoft2-$(PANGO_API_VERSION).def | ||
497 | endif | ||
498 | -rm $(DESTDIR)$(libdir)/pangowin32-$(PANGO_API_VERSION).def | ||
499 | -rm $(DESTDIR)$(libdir)/pangocairo-$(PANGO_API_VERSION).def | ||
500 | if HAVE_X | ||
501 | -rm $(DESTDIR)$(libdir)/pangox-$(PANGO_API_VERSION).def | ||
502 | -rm $(DESTDIR)$(libdir)/pangoxft-$(PANGO_API_VERSION).def | ||
503 | endif | ||
504 | else | ||
505 | install-def-files: | ||
506 | uninstall-def-files: | ||
507 | |||
508 | endif | ||
509 | |||
510 | if MS_LIB_AVAILABLE | ||
511 | MS_LIB_FILES = pango-$(PANGO_API_VERSION).lib pangowin32-$(PANGO_API_VERSION).lib pangocairo-$(PANGO_API_VERSION).lib | ||
512 | |||
513 | if HAVE_FREETYPE | ||
514 | MS_LIB_FILES += pangoft2-$(PANGO_API_VERSION).lib | ||
515 | endif | ||
516 | |||
517 | noinst_DATA = $(MS_LIB_FILES) | ||
518 | |||
519 | install-ms-lib: $(MS_LIB_FILES) | ||
520 | $(INSTALL) pango-$(PANGO_API_VERSION).lib $(DESTDIR)$(libdir) | ||
521 | if HAVE_FREETYPE | ||
522 | $(INSTALL) pangoft2-$(PANGO_API_VERSION).lib $(DESTDIR)$(libdir) | ||
523 | endif | ||
524 | $(INSTALL) pangowin32-$(PANGO_API_VERSION).lib $(DESTDIR)$(libdir) | ||
525 | $(INSTALL) pangocairo-$(PANGO_API_VERSION).lib $(DESTDIR)$(libdir) | ||
526 | |||
527 | uninstall-ms-lib: | ||
528 | -rm $(DESTDIR)$(libdir)/pango-$(PANGO_API_VERSION).lib | ||
529 | -rm $(DESTDIR)$(libdir)/pangoft2-$(PANGO_API_VERSION).lib | ||
530 | -rm $(DESTDIR)$(libdir)/pangowin32-$(PANGO_API_VERSION).lib | ||
531 | -rm $(DESTDIR)$(libdir)/pangocairo-$(PANGO_API_VERSION).lib | ||
532 | else | ||
533 | install-ms-lib: | ||
534 | uninstall-ms-lib: | ||
535 | endif | ||
536 | |||
537 | pango-$(PANGO_API_VERSION).lib: libpango-$(PANGO_API_VERSION).la $(srcdir)/pango.def | ||
538 | $(AM_V_GEN) lib -machine:$(LIB_EXE_MACHINE_FLAG) -name:libpango-$(PANGO_API_VERSION)-$(PANGO_CURRENT_MINUS_AGE).dll -def:$(srcdir)/pango.def -out:$@ | ||
539 | |||
540 | pangoft2-$(PANGO_API_VERSION).lib: libpangoft2-$(PANGO_API_VERSION).la $(srcdir)/pangoft2.def | ||
541 | $(AM_V_GEN) lib -machine:$(LIB_EXE_MACHINE_FLAG) -name:libpangoft2-$(PANGO_API_VERSION)-$(PANGO_CURRENT_MINUS_AGE).dll -def:$(srcdir)/pangoft2.def -out:$@ | ||
542 | |||
543 | pangowin32-$(PANGO_API_VERSION).lib: libpangowin32-$(PANGO_API_VERSION).la $(srcdir)/pangowin32.def | ||
544 | $(AM_V_GEN) lib -machine:$(LIB_EXE_MACHINE_FLAG) -name:libpangowin32-$(PANGO_API_VERSION)-$(PANGO_CURRENT_MINUS_AGE).dll -def:$(srcdir)/pangowin32.def -out:$@ | ||
545 | |||
546 | pangocairo-$(PANGO_API_VERSION).lib: libpangocairo-$(PANGO_API_VERSION).la $(srcdir)/pangocairo.def | ||
547 | $(AM_V_GEN) lib -machine:$(LIB_EXE_MACHINE_FLAG) -name:libpangocairo-$(PANGO_API_VERSION)-$(PANGO_CURRENT_MINUS_AGE).dll -def:$(srcdir)/pangocairo.def -out:$@ | ||
548 | |||
549 | |||
550 | # ------------------- introspection ------------------- | ||
551 | |||
552 | if HAVE_INTROSPECTION | ||
553 | |||
554 | girdir = $(GIRDIR) | ||
555 | gir_DATA = $(BUILT_GIRSOURCES) | ||
556 | |||
557 | typelibsdir = $(TYPELIBDIR) | ||
558 | typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) | ||
559 | |||
560 | %.typelib: %.gir $(G_IR_COMPILER) | ||
561 | $(AM_V_GEN) LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. $(G_IR_COMPILER) --includedir=$(srcdir) --includedir=. $(G_IR_COMPILER_OPTS) $< -o $(builddir)/$(@F) | ||
562 | |||
563 | endif # HAVE_INTROSPECTION | ||
564 | |||
565 | # ------------------- pango-querymodules ------------------- | ||
566 | |||
567 | bin_PROGRAMS = pango-querymodules | ||
568 | |||
569 | # | ||
570 | # As a temporary hack, we pull in libpangox here so that we can link | ||
571 | # | ||
572 | pango_querymodules_SOURCES = \ | ||
573 | querymodules.c | ||
574 | |||
575 | pango_querymodules_LDADD = | ||
576 | if HAVE_X | ||
577 | pango_querymodules_LDADD += libpangox-$(PANGO_API_VERSION).la | ||
578 | endif | ||
579 | if HAVE_XFT | ||
580 | pango_querymodules_LDADD += libpangoxft-$(PANGO_API_VERSION).la | ||
581 | endif | ||
582 | if HAVE_FREETYPE | ||
583 | pango_querymodules_LDADD += libpangoft2-$(PANGO_API_VERSION).la | ||
584 | endif | ||
585 | if HAVE_WIN32 | ||
586 | pango_querymodules_LDADD += libpangowin32-$(PANGO_API_VERSION).la | ||
587 | endif | ||
588 | pango_querymodules_LDADD += libpango-$(PANGO_API_VERSION).la $(GLIB_LIBS) | ||
589 | |||
590 | EXTRA_DIST += \ | ||
591 | pango-enum-types.h \ | ||
592 | module-defs.h \ | ||
593 | module-defs-fc.c.win32 \ | ||
594 | module-defs-win32.c.win32 \ | ||
595 | pango.def \ | ||
596 | pangocairo.def \ | ||
597 | pangowin32.def \ | ||
598 | pangoft2.def \ | ||
599 | makefile.msc \ | ||
600 | pango.rc \ | ||
601 | pango.rc.in \ | ||
602 | pangox.aliases \ | ||
603 | pangoft2.rc \ | ||
604 | pangoft2.rc.in \ | ||
605 | pangowin32.rc \ | ||
606 | pangowin32.rc.in \ | ||
607 | pangox.rc \ | ||
608 | pangox.rc.in \ | ||
609 | pangoxft.rc \ | ||
610 | pangoxft.rc.in \ | ||
611 | check.defs | ||
612 | |||
613 | |||
614 | if HAVE_INCLUDED_MODULES | ||
615 | included-modules: | ||
616 | $(AM_V_GEN) cd $(top_builddir)/modules && $(MAKE) $(AM_MAKEFLAGS) included-modules | ||
617 | |||
618 | $(INCLUDED_LANG_MODULES) $(INCLUDED_X_MODULES) $(INCLUDED_FC_MODULES) $(INCLUDED_WIN32_MODULES) $(INCLUDED_ATSUI_MODULES): included-modules | ||
619 | $(AM_V_GEN) true | ||
620 | |||
621 | .PHONY: included-modules | ||
622 | endif | ||
623 | |||
624 | MODULE_DEF_FILES = \ | ||
625 | module-defs.h \ | ||
626 | module-defs-lang.c \ | ||
627 | module-defs-x.c \ | ||
628 | module-defs-fc.c \ | ||
629 | module-defs-win32.c \ | ||
630 | module-defs-atsui.c | ||
631 | |||
632 | $(MODULE_DEF_FILES): $(top_builddir)/config.status | ||
633 | $(AM_V_GEN) cd $(top_builddir) && $(SHELL) ./config.status pango/$@ | ||
634 | |||
635 | CLEANFILES = \ | ||
636 | pango-enum-types.h \ | ||
637 | s-enum-types-h \ | ||
638 | pango-enum-types.c \ | ||
639 | s-enum-types-c | ||
640 | |||
641 | MOSTLYCLEANFILES = \ | ||
642 | *.list \ | ||
643 | *.expected | ||
644 | |||
645 | DISTCLEANFILES = \ | ||
646 | pango-features.h \ | ||
647 | $(MODULE_DEF_FILES) | ||
648 | |||
649 | install-data-local: install-ms-lib install-def-files | ||
650 | |||
651 | install-exec-hook: | ||
652 | if DISABLE_EXPLICIT_DEPS | ||
653 | -for i in libpangoft2-$(PANGO_API_VERSION).la libpangoxft-$(PANGO_API_VERSION).la libpangox-$(PANGO_API_VERSION).la libpangowin32-$(PANGO_API_VERSION).la; do \ | ||
654 | test -f $(DESTDIR)$(libdir)/$$i && $(SHELL) $(top_srcdir)/sanitize-la.sh $(DESTDIR)$(libdir)/$$i ; \ | ||
655 | done | ||
656 | endif | ||
657 | |||
658 | uninstall-local: uninstall-ms-lib uninstall-def-files | ||
659 | |||
660 | TESTS = check.defs | ||
661 | |||
662 | -include $(top_srcdir)/git.mk | ||
diff --git a/meta-moblin/packages/hornsey/hornsey.inc b/meta-moblin/packages/hornsey/hornsey.inc deleted file mode 100644 index c9d9631a78..0000000000 --- a/meta-moblin/packages/hornsey/hornsey.inc +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | DESCRIPTION = "The Moblin Media Player" | ||
2 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
3 | LICENSE = "LGPLv2.1" | ||
4 | |||
5 | SRC_URI = "http://download.moblin.org/sources/hornsey/1.0/hornsey-1.0_20091116.tar.bz2" | ||
6 | |||
7 | DEPENDS = "clutter-1.0 clutter-gtk-0.10 clutter-gst-1.0 bickley bognor-regis mx startup-notification libunique xtst tracker" | ||
8 | |||
9 | EXTRA_OECONF = "--disable-shave" | ||
10 | |||
11 | FILES_${PN} += "${datadir}/icons" | ||
12 | |||
13 | inherit autotools | ||
diff --git a/meta-moblin/packages/hornsey/hornsey_1.0.bb b/meta-moblin/packages/hornsey/hornsey_1.0.bb deleted file mode 100644 index 5ac2852743..0000000000 --- a/meta-moblin/packages/hornsey/hornsey_1.0.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require hornsey.inc | ||
2 | |||
3 | DEPENDS = "clutter-1.0 clutter-gtk-0.10 clutter-gst-0.10 bickley bognor-regis nbtk startup-notification libunique xtst" | ||
4 | |||
5 | S = "${WORKDIR}/${PN}-${PV}_20091116" | ||
diff --git a/meta-moblin/packages/hornsey/hornsey_git.bb b/meta-moblin/packages/hornsey/hornsey_git.bb deleted file mode 100644 index df01150017..0000000000 --- a/meta-moblin/packages/hornsey/hornsey_git.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require hornsey.inc | ||
2 | |||
3 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
4 | PV = "1.0+git${SRCPV}" | ||
5 | S = "${WORKDIR}/git" | ||
diff --git a/meta-moblin/packages/images/moblin-image-directdisk.inc b/meta-moblin/packages/images/moblin-image-directdisk.inc deleted file mode 100644 index bcce9d5389..0000000000 --- a/meta-moblin/packages/images/moblin-image-directdisk.inc +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | inherit boot-directdisk | ||
2 | |||
3 | do_bootdirectdisk_prepend () { | ||
4 | import bb | ||
5 | fstypes = bb.data.getVar('IMAGE_FSTYPES', d, True) | ||
6 | if 'ext3' not in fstypes: | ||
7 | bb.msg.fatal(bb.msg.domain.Build, "ext3 not in IMAGE_FSTYPES") | ||
8 | } | ||
diff --git a/meta-moblin/packages/images/moblin-image-live.inc b/meta-moblin/packages/images/moblin-image-live.inc deleted file mode 100644 index 453bc527c8..0000000000 --- a/meta-moblin/packages/images/moblin-image-live.inc +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | AUTO_SYSLINUXCFG = "1" | ||
6 | INITRD = "${DEPLOY_DIR_IMAGE}/moblin-image-minimal-initramfs-${MACHINE}.cpio.gz" | ||
7 | APPEND += "root=/dev/ram0 " | ||
8 | TIMEOUT = "10" | ||
9 | |||
10 | EXCLUDE_FROM_WORLD = "1" | ||
11 | |||
12 | LABELS += "boot install" | ||
13 | |||
14 | do_bootimg[depends] += "moblin-image-minimal-initramfs:do_rootfs" | ||
15 | |||
16 | inherit bootimg | ||
17 | |||
18 | do_bootimg_prepend () { | ||
19 | import bb | ||
20 | fstypes = bb.data.getVar('IMAGE_FSTYPES', d, True) | ||
21 | if 'ext3' not in fstypes: | ||
22 | bb.msg.fatal(bb.msg.domain.Build, "ext3 not in IMAGE_FSTYPES") | ||
23 | } | ||
24 | |||
25 | ROOTFS = "${DEPLOY_DIR_IMAGE}/${MOBLIN_LIVE_IMAGENAME}-${MACHINE}.ext3" | ||
26 | |||
27 | do_bootimg[depends] += "${MOBLIN_LIVE_IMAGENAME}:do_rootfs" | ||
diff --git a/meta-moblin/packages/images/moblin-image-minimal-initramfs.bb b/meta-moblin/packages/images/moblin-image-minimal-initramfs.bb deleted file mode 100644 index 6d0254fd0b..0000000000 --- a/meta-moblin/packages/images/moblin-image-minimal-initramfs.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Simple initramfs image. Mostly used for live images." | ||
6 | |||
7 | IMAGE_INSTALL = "initramfs-live-boot initramfs-live-install busybox udev base-passwd" | ||
8 | |||
9 | export IMAGE_BASENAME = "moblin-image-minimal-initramfs" | ||
10 | IMAGE_LINGUAS = "" | ||
11 | |||
12 | inherit moblin-image | ||
diff --git a/meta-moblin/packages/images/moblin-image-minimal-live.bb b/meta-moblin/packages/images/moblin-image-minimal-live.bb deleted file mode 100644 index 9d7f789fa3..0000000000 --- a/meta-moblin/packages/images/moblin-image-minimal-live.bb +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Minimal Bootable Live Image" | ||
6 | MOBLIN_LIVE_IMAGENAME = "moblin-image-minimal" | ||
7 | |||
8 | require moblin-image-live.inc | ||
9 | |||
diff --git a/meta-moblin/packages/images/moblin-image-minimal.bb b/meta-moblin/packages/images/moblin-image-minimal.bb deleted file mode 100644 index 3178fff07f..0000000000 --- a/meta-moblin/packages/images/moblin-image-minimal.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | IMAGE_INSTALL = "task-moblin-boot ${ROOTFS_PKGMANAGE}" | ||
6 | |||
7 | IMAGE_LINGUAS = " " | ||
8 | |||
9 | inherit moblin-image | ||
10 | |||
11 | # remove not needed ipkg informations | ||
12 | ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files" | ||
diff --git a/meta-moblin/packages/images/moblin-image-netbook-directdisk.bb b/meta-moblin/packages/images/moblin-image-netbook-directdisk.bb deleted file mode 100644 index 3de2944c80..0000000000 --- a/meta-moblin/packages/images/moblin-image-netbook-directdisk.bb +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2010 Intel Corporation. | ||
3 | # | ||
4 | require moblin-image-directdisk.inc | ||
5 | |||
6 | DESCRIPTION = "Moblin Direct Disk Image" | ||
7 | |||
8 | ROOTFS = "${DEPLOY_DIR_IMAGE}/moblin-image-netbook-${MACHINE}.ext3" | ||
9 | |||
10 | do_bootdirectdisk[depends] += "moblin-image-netbook:do_rootfs" | ||
diff --git a/meta-moblin/packages/images/moblin-image-netbook-live.bb b/meta-moblin/packages/images/moblin-image-netbook-live.bb deleted file mode 100644 index 78b579f779..0000000000 --- a/meta-moblin/packages/images/moblin-image-netbook-live.bb +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Netbook Bootable Live Image" | ||
6 | MOBLIN_LIVE_IMAGENAME = "moblin-image-netbook" | ||
7 | |||
8 | require moblin-image-live.inc | ||
9 | |||
diff --git a/meta-moblin/packages/images/moblin-image-netbook.bb b/meta-moblin/packages/images/moblin-image-netbook.bb deleted file mode 100644 index 8cbcf2a5e2..0000000000 --- a/meta-moblin/packages/images/moblin-image-netbook.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | IMAGE_FEATURES += "apps-console-core ${NETBOOK_IMAGE_FEATURES}" | ||
6 | |||
7 | inherit moblin-image | ||
diff --git a/meta-moblin/packages/images/moblin-image-sdk-live.bb b/meta-moblin/packages/images/moblin-image-sdk-live.bb deleted file mode 100644 index 8301d97ad1..0000000000 --- a/meta-moblin/packages/images/moblin-image-sdk-live.bb +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Bootable Live SDK Image" | ||
6 | MOBLIN_LIVE_IMAGENAME = "moblin-image-sdk" | ||
7 | |||
8 | require moblin-image-live.inc | ||
9 | |||
10 | |||
diff --git a/meta-moblin/packages/images/moblin-image-sdk.bb b/meta-moblin/packages/images/moblin-image-sdk.bb deleted file mode 100644 index ddb352ca9d..0000000000 --- a/meta-moblin/packages/images/moblin-image-sdk.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | IMAGE_FEATURES += "apps-console-core ${NETBOOK_IMAGE_FEATURES} tools-debug tools-profile tools-sdk dev-pkgs" | ||
6 | |||
7 | inherit moblin-image | ||
diff --git a/meta-moblin/packages/json-glib/json-glib_0.6.2.bb b/meta-moblin/packages/json-glib/json-glib_0.6.2.bb deleted file mode 100644 index d96f8b3e19..0000000000 --- a/meta-moblin/packages/json-glib/json-glib_0.6.2.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | |||
2 | SRC_URI = "http://folks.o-hand.com/~ebassi/sources/json-glib-0.6.2.tar.gz" | ||
3 | PR = "r0" | ||
4 | |||
5 | DEPENDS = "glib-2.0" | ||
6 | |||
7 | inherit autotools | ||
diff --git a/meta-moblin/packages/json-glib/json-glib_git.bb b/meta-moblin/packages/json-glib/json-glib_git.bb deleted file mode 100644 index 0b32e3ae34..0000000000 --- a/meta-moblin/packages/json-glib/json-glib_git.bb +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | HOMEPAGE = "http://live.gnome.org/JsonGlib" | ||
2 | SRC_URI = "git://github.com/ebassi/${PN}.git;protocol=git" | ||
3 | PV = "0.7.2+git${SRCPV}" | ||
4 | PR = "r1" | ||
5 | |||
6 | S = "${WORKDIR}/git" | ||
7 | |||
8 | DEPENDS = "glib-2.0" | ||
9 | |||
10 | inherit autotools | ||
11 | |||
12 | EXTRA_OECONF = "--disable-introspection" | ||
13 | |||
14 | acpaths = "-I ${S}/build/autotools " | ||
15 | |||
16 | do_configure_prepend () { | ||
17 | echo "EXTRA_DIST = " > ${S}/gtk-doc.make | ||
18 | } | ||
19 | |||
diff --git a/meta-moblin/packages/libccss/libccss_git.bb b/meta-moblin/packages/libccss/libccss_git.bb deleted file mode 100644 index 8bd93c940f..0000000000 --- a/meta-moblin/packages/libccss/libccss_git.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | SRC_URI = "git://anongit.freedesktop.org/git/ccss.git;protocol=git" | ||
2 | PV = "0.1+git${SRCPV}" | ||
3 | PR = "r2" | ||
4 | DEPENDS = "glib-2.0 cairo librsvg libsoup-2.4" | ||
5 | S = "${WORKDIR}/git" | ||
6 | |||
7 | inherit autotools | ||
8 | |||
9 | do_configure_prepend () { | ||
10 | echo "EXTRA_DIST=" > ${S}/gtk-doc.make | ||
11 | echo "CLEANFILES=" >> ${S}/gtk-doc.make | ||
12 | } | ||
diff --git a/meta-moblin/packages/libidl/libidl_0.8.12.bb b/meta-moblin/packages/libidl/libidl_0.8.12.bb deleted file mode 100644 index 9cc9ea2ed8..0000000000 --- a/meta-moblin/packages/libidl/libidl_0.8.12.bb +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | LICENSE = "LGPL" | ||
2 | DESCRIPTION = "Library for parsing CORBA IDL files" | ||
3 | SECTION = "gnome/libs" | ||
4 | DEPENDS = "glib-2.0 flex" | ||
5 | PR = "r4" | ||
6 | |||
7 | SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/libIDL/0.8/libIDL-${PV}.tar.bz2" | ||
8 | S = "${WORKDIR}/libIDL-${PV}" | ||
9 | |||
10 | BINCONFIG_GLOB = "*-config-2" | ||
11 | inherit autotools pkgconfig binconfig | ||
12 | |||
13 | FILES_${PN} = "${libdir}/*.so.*" | ||
14 | FILES_${PN}-dev += " ${bindir}" | ||
15 | |||
16 | BBCLASSEXTEND = "native" | ||
diff --git a/meta-moblin/packages/libjana/libjana/clockpatch.patch b/meta-moblin/packages/libjana/libjana/clockpatch.patch deleted file mode 100644 index 7b20222239..0000000000 --- a/meta-moblin/packages/libjana/libjana/clockpatch.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | Index: jana/libjana-gtk/jana-gtk-clock.c | ||
2 | =================================================================== | ||
3 | --- jana.orig/libjana-gtk/jana-gtk-clock.c | ||
4 | +++ jana/libjana-gtk/jana-gtk-clock.c | ||
5 | @@ -695,7 +695,7 @@ draw_digital_clock (JanaGtkClock *clock, | ||
6 | cairo_fill (cr); | ||
7 | |||
8 | /* Draw dark outline frame */ | ||
9 | - thickness = width/20; | ||
10 | + thickness = width/40; | ||
11 | cairo_new_path (cr); | ||
12 | cairo_rectangle (cr, thickness/2, thickness/2, | ||
13 | width - thickness, height - thickness); | ||
14 | @@ -703,7 +703,7 @@ draw_digital_clock (JanaGtkClock *clock, | ||
15 | cairo_set_source_rgb (cr, base_color[0]/2, | ||
16 | base_color[1]/2, base_color[2]/2); | ||
17 | cairo_stroke (cr); | ||
18 | - | ||
19 | +#if 0 | ||
20 | /* Draw main outline frame */ | ||
21 | cairo_new_path (cr); | ||
22 | cairo_rectangle (cr, thickness, thickness, | ||
23 | @@ -728,7 +728,7 @@ draw_digital_clock (JanaGtkClock *clock, | ||
24 | base_color[1]/1.5, base_color[2]/1.5); | ||
25 | cairo_set_line_width (cr, thickness/2); | ||
26 | cairo_stroke (cr); | ||
27 | - | ||
28 | +#endif | ||
29 | cairo_identity_matrix (cr); | ||
30 | } | ||
31 | |||
diff --git a/meta-moblin/packages/libjana/libjana_git.bb b/meta-moblin/packages/libjana/libjana_git.bb deleted file mode 100644 index 7797580ca5..0000000000 --- a/meta-moblin/packages/libjana/libjana_git.bb +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | DESCRIPTION = "O-Hand Jana Library" | ||
2 | DEPENDS = "gtk+ eds-dbus gconf" | ||
3 | PV = "0.4.4+git${SRCPV}" | ||
4 | PR = "r0" | ||
5 | |||
6 | inherit autotools pkgconfig lib_package | ||
7 | |||
8 | SRC_URI = "git://git.gnome.org/jana;protocol=git" | ||
9 | S = "${WORKDIR}/git/" | ||
10 | |||
11 | EXTRA_OECONF = "--enable-examples " | ||
12 | |||
13 | do_configure_prepend() { | ||
14 | touch gtk-doc.make | ||
15 | } | ||
16 | |||
17 | PACKAGES =+ "libjana-ecal libjana-ecal-dbg \ | ||
18 | libjana-gtk libjana-gtk-dbg \ | ||
19 | " | ||
20 | |||
21 | LEAD_SONAME = "libjana.so" | ||
22 | |||
23 | FILES_libjana-ecal = "${libdir}/libjana-ecal.so.*" | ||
24 | FILES_libjana-ecal-dbg += "${libdir}/.debug/libjana-ecal*" | ||
25 | FILES_libjana-gtk = "${libdir}/libjana-gtk.so.* ${datadir}/jana/landwater.vmf" | ||
26 | FILES_libjana-gtk-dbg += "${libdir}/.debug/libjana-gtk.so.*" | ||
27 | FILES_libjana-bin_append = " ${datadir}/jana/flag-uk.png " | ||
diff --git a/meta-moblin/packages/libnotify/libnotify_0.4.4.bb b/meta-moblin/packages/libnotify/libnotify_0.4.4.bb deleted file mode 100644 index a3f622e84d..0000000000 --- a/meta-moblin/packages/libnotify/libnotify_0.4.4.bb +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | DESCRIPTION = "Send desktop notifications to a notification daemon" | ||
2 | HOMEPAGE = "http://www.galago-project.org/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "LGPL" | ||
5 | DEPENDS = "dbus gtk+ dbus-glib" | ||
6 | PR = "r0" | ||
7 | |||
8 | SRC_URI = "http://www.galago-project.org/files/releases/source/${PN}/${PN}-${PV}.tar.gz" | ||
9 | |||
10 | inherit autotools pkgconfig | ||
diff --git a/meta-moblin/packages/librest/librest_git.bb b/meta-moblin/packages/librest/librest_git.bb deleted file mode 100644 index 33e714d6cf..0000000000 --- a/meta-moblin/packages/librest/librest_git.bb +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | |||
2 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
3 | PV = "0.6.1+git${SRCPV}" | ||
4 | PR = "r0" | ||
5 | |||
6 | DEPENDS = "libsoup-2.4" | ||
7 | |||
8 | S = "${WORKDIR}/git" | ||
9 | |||
10 | inherit autotools | ||
11 | |||
12 | do_configure_prepend () { | ||
13 | echo "EXTRA_DIST=" > ${S}/gtk-doc.make | ||
14 | } | ||
diff --git a/meta-moblin/packages/libsamplerate/libsamplerate0_0.1.2.bb b/meta-moblin/packages/libsamplerate/libsamplerate0_0.1.2.bb deleted file mode 100644 index 10923404d0..0000000000 --- a/meta-moblin/packages/libsamplerate/libsamplerate0_0.1.2.bb +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | DESCRIPTION = "An audio Sample Rate Conversion library" | ||
2 | SECTION = "libs" | ||
3 | LICENSE = "GPL libsamplerate" | ||
4 | DEPENDS = "flac" | ||
5 | PR = "r3" | ||
6 | |||
7 | SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz" | ||
8 | S = "${WORKDIR}/libsamplerate-${PV}" | ||
9 | |||
10 | inherit autotools pkgconfig | ||
diff --git a/meta-moblin/packages/libsexy/files/libsexy-pkgconfig-fixes.patch b/meta-moblin/packages/libsexy/files/libsexy-pkgconfig-fixes.patch deleted file mode 100644 index 61da9474df..0000000000 --- a/meta-moblin/packages/libsexy/files/libsexy-pkgconfig-fixes.patch +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | Index: libsexy-0.1.11/libsexy.pc.in | ||
2 | =================================================================== | ||
3 | --- libsexy-0.1.11.orig/libsexy.pc.in 2005-11-10 10:21:18.000000000 +0000 | ||
4 | +++ libsexy-0.1.11/libsexy.pc.in 2008-03-05 14:36:39.000000000 +0000 | ||
5 | @@ -6,7 +6,8 @@ | ||
6 | Name: libsexy | ||
7 | Description: Doing naughty things to good widgets | ||
8 | Version: @VERSION@ | ||
9 | -Libs: -L${libdir} -lsexy @PACKAGE_LIBS@ | ||
10 | -Cflags: -I${includedir} @PACKAGE_CFLAGS@ | ||
11 | |||
12 | +Requires: pango glib-2.0 gtk+-2.0 libxml-2.0 | ||
13 | +Libs: -L${libdir} -lsexy | ||
14 | +Cflags: -I${includedir} | ||
15 | |||
diff --git a/meta-moblin/packages/libsexy/libsexy.inc b/meta-moblin/packages/libsexy/libsexy.inc deleted file mode 100644 index ff68c6d5e6..0000000000 --- a/meta-moblin/packages/libsexy/libsexy.inc +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | DESCRIPTION = "Libsexy is a collection of GTK+ widgets that extend the functionality of such standard widgets as GtkEntry and GtkLabel" | ||
2 | HOMEPAGE = "http://wiki.chipx86.com/wiki/Libsexy" | ||
3 | AUTHOR = "Christian Hammond <chipx86@chipx86.com>" | ||
4 | SECTION = "x11/libs" | ||
5 | |||
6 | DEPENDS = "gtk+ enchant libxml2" | ||
7 | |||
8 | SRC_URI = "http://releases.chipx86.com/libsexy/${PN}/${PN}-${PV}.tar.gz \ | ||
9 | file://libsexy-pkgconfig-fixes.patch;patch=1" | ||
10 | |||
11 | inherit autotools pkgconfig | ||
12 | |||
13 | |||
diff --git a/meta-moblin/packages/libsexy/libsexy_0.1.11.bb b/meta-moblin/packages/libsexy/libsexy_0.1.11.bb deleted file mode 100644 index 91784ffb49..0000000000 --- a/meta-moblin/packages/libsexy/libsexy_0.1.11.bb +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | require libsexy.inc | ||
2 | PR = "r1" | ||
diff --git a/meta-moblin/packages/libsndfile/libsndfile1/acincludefix.patch b/meta-moblin/packages/libsndfile/libsndfile1/acincludefix.patch deleted file mode 100644 index 46a21c19be..0000000000 --- a/meta-moblin/packages/libsndfile/libsndfile1/acincludefix.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | Fix m4 quoting to avoid an infinite loop in m4 with recent autoconf/automake | ||
2 | |||
3 | RP 1/2/10 | ||
4 | |||
5 | Index: libsndfile-1.0.17/acinclude.m4 | ||
6 | =================================================================== | ||
7 | --- libsndfile-1.0.17.orig/acinclude.m4 2010-02-01 14:53:35.517826746 +0000 | ||
8 | +++ libsndfile-1.0.17/acinclude.m4 2010-02-01 14:53:51.409122706 +0000 | ||
9 | @@ -255,7 +255,7 @@ | ||
10 | |||
11 | ) | ||
12 | ] | ||
13 | - | ||
14 | +[ | ||
15 | if test $ac_cv_c_byte_order = big ; then | ||
16 | ac_cv_c_big_endian=1 | ||
17 | ac_cv_c_little_endian=0 | ||
18 | @@ -272,7 +272,7 @@ | ||
19 | AC_MSG_WARN([[*** src/config.h may need to be hand editied. ]]) | ||
20 | AC_MSG_WARN([[*****************************************************************]]) | ||
21 | fi | ||
22 | - | ||
23 | +] | ||
24 | )# AC_C_FIND_ENDIAN | ||
25 | |||
26 | |||
diff --git a/meta-moblin/packages/libsndfile/libsndfile1/add-cxx.patch b/meta-moblin/packages/libsndfile/libsndfile1/add-cxx.patch deleted file mode 100644 index da0c4010e6..0000000000 --- a/meta-moblin/packages/libsndfile/libsndfile1/add-cxx.patch +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | --- | ||
2 | configure.ac | 1 + | ||
3 | 1 file changed, 1 insertion(+) | ||
4 | |||
5 | --- libsndfile-1.0.17.orig/configure.ac | ||
6 | +++ libsndfile-1.0.17/configure.ac | ||
7 | @@ -29,10 +29,11 @@ AC_LANG([C]) | ||
8 | # to 0. | ||
9 | |||
10 | SHARED_VERSION_INFO="1:17:0" | ||
11 | |||
12 | AC_PROG_CC | ||
13 | +AC_PROG_CXX | ||
14 | AM_PROG_LIBTOOL | ||
15 | |||
16 | AC_CHECK_PROG(autogen, autogen, yes, no) | ||
17 | |||
18 | AC_PROG_INSTALL | ||
diff --git a/meta-moblin/packages/libsndfile/libsndfile1_1.0.17.bb b/meta-moblin/packages/libsndfile/libsndfile1_1.0.17.bb deleted file mode 100644 index e46e3e15c0..0000000000 --- a/meta-moblin/packages/libsndfile/libsndfile1_1.0.17.bb +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | DESCRIPTION = "An audio format Conversion library" | ||
2 | HOMEPAGE = "http://www.mega-nerd.com/libsndfile" | ||
3 | AUTHOR = "Erik de Castro Lopo" | ||
4 | DEPENDS = "sqlite3" | ||
5 | SECTION = "libs/multimedia" | ||
6 | LICENSE = "LGPL" | ||
7 | PR = "r4" | ||
8 | |||
9 | SRC_URI = "http://www.mega-nerd.com/libsndfile/libsndfile-${PV}.tar.gz \ | ||
10 | file://acincludefix.patch;patch=1 \ | ||
11 | file://add-cxx.patch;patch=1" | ||
12 | |||
13 | S = "${WORKDIR}/libsndfile-${PV}" | ||
14 | |||
15 | inherit autotools lib_package pkgconfig | ||
16 | |||
17 | do_configure_prepend_arm() { | ||
18 | export ac_cv_sys_largefile_source=1 | ||
19 | export ac_cv_sys_file_offset_bits=64 | ||
20 | ac_cv_sizeof_off_t=8 | ||
21 | } | ||
22 | |||
diff --git a/meta-moblin/packages/libsocialweb/libsocialweb.inc b/meta-moblin/packages/libsocialweb/libsocialweb.inc deleted file mode 100644 index 9238125a74..0000000000 --- a/meta-moblin/packages/libsocialweb/libsocialweb.inc +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | SRC_URI = "http://download.moblin.org/sources/${PN}/0.0/${PN}-0.0.tar.bz2" | ||
2 | |||
3 | DEPENDS = "libsoup-2.4 gconf-dbus librest glib-2.0 twitter-glib gnome-keyring" | ||
4 | RDEPENDS_${PN} = "connman" | ||
5 | |||
6 | inherit autotools | ||
7 | |||
8 | FILES_${PN} += "${datadir}/dbus-1/services" | ||
9 | FILES_${PN}-dbg += "${libdir}/libsocialweb/sources/.debug/* ${libdir}/libsocialweb/services/.debug/" | ||
10 | |||
11 | PARALLEL_MAKE = "" | ||
12 | |||
13 | EXTRA_OECONF = "--with-online=connman --disable-shave" | ||
diff --git a/meta-moblin/packages/libsocialweb/libsocialweb_git.bb b/meta-moblin/packages/libsocialweb/libsocialweb_git.bb deleted file mode 100644 index 3a72a5e5d7..0000000000 --- a/meta-moblin/packages/libsocialweb/libsocialweb_git.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require libsocialweb.inc | ||
2 | |||
3 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
4 | PV = "0.0+git${SRCPV}" | ||
5 | S = "${WORKDIR}/git" | ||
diff --git a/meta-moblin/packages/libsynthesis/libsynthesis_git.bb b/meta-moblin/packages/libsynthesis/libsynthesis_git.bb deleted file mode 100644 index dfe3bdaa6b..0000000000 --- a/meta-moblin/packages/libsynthesis/libsynthesis_git.bb +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | DESCRIPTION = "Synthesis SyncML Engine" | ||
2 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git;branch=syncevolution-0-9-x" | ||
3 | LICENSE = "LGPLv2.1" | ||
4 | PV = "0.0+git${SRCPV}" | ||
5 | PR = "r2" | ||
6 | |||
7 | DEPENDS = "libpcre sqlite3 zlib" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | inherit autotools | ||
12 | |||
13 | do_configure_prepend () { | ||
14 | cd ${S}/src | ||
15 | ${S}/src/gen-makefile-am.sh | ||
16 | cd ${S} | ||
17 | } | ||
18 | |||
diff --git a/meta-moblin/packages/libunique/libunique_1.0.6.bb b/meta-moblin/packages/libunique/libunique_1.0.6.bb deleted file mode 100644 index 55c3417f72..0000000000 --- a/meta-moblin/packages/libunique/libunique_1.0.6.bb +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/libunique/1.0/libunique-1.0.6.tar.bz2" | ||
2 | PR = "r0" | ||
3 | |||
4 | DEPENDS = "glib-2.0 gtk+ dbus" | ||
5 | |||
6 | S = "${WORKDIR}/unique-${PV}" | ||
7 | |||
8 | inherit autotools | ||
diff --git a/meta-moblin/packages/matchbox-netbook-session/matchbox-session-netbook/session b/meta-moblin/packages/matchbox-netbook-session/matchbox-session-netbook/session deleted file mode 100644 index f72b130e88..0000000000 --- a/meta-moblin/packages/matchbox-netbook-session/matchbox-session-netbook/session +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | export LIBGL_ALWAYS_INDIRECT=1 | ||
4 | export CLUTTER_DISABLE_MIPMAPPED_TEXT=1 | ||
5 | exec /usr/bin/mutter --mutter-plugins=moblin-netbook | ||
diff --git a/meta-moblin/packages/matchbox-netbook-session/matchbox-session-netbook_0.1.bb b/meta-moblin/packages/matchbox-netbook-session/matchbox-session-netbook_0.1.bb deleted file mode 100644 index 2a5827642d..0000000000 --- a/meta-moblin/packages/matchbox-netbook-session/matchbox-session-netbook_0.1.bb +++ /dev/null | |||
@@ -1,223 +0,0 @@ | |||
1 | DESCRIPTION = "Custom MB session files for poky" | ||
2 | LICENSE = "GPL" | ||
3 | SECTION = "x11" | ||
4 | RDEPENDS = "formfactor gtk-engines initscripts matchbox-session" | ||
5 | PR = "r19" | ||
6 | |||
7 | # This package is architecture specific because the session script is modified | ||
8 | # based on the machine architecture. | ||
9 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
10 | |||
11 | SRC_URI = "file://session" | ||
12 | S = "${WORKDIR}" | ||
13 | |||
14 | do_install() { | ||
15 | install -d ${D}/${sysconfdir}/matchbox | ||
16 | install ${S}/session ${D}/${sysconfdir}/matchbox/session | ||
17 | chmod +x ${D}/${sysconfdir}/matchbox/session | ||
18 | } | ||
19 | |||
20 | pkg_postinst_${PN} () { | ||
21 | #!/bin/sh -e | ||
22 | if [ "x$D" != "x" ]; then | ||
23 | exit 1 | ||
24 | fi | ||
25 | |||
26 | . ${sysconfdir}/init.d/functions | ||
27 | |||
28 | |||
29 | # Theme | ||
30 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
31 | --direct --type string -s \ | ||
32 | /apps/metacity/general/theme "Moblin-Netbook" | ||
33 | |||
34 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
35 | --direct --type string -s \ | ||
36 | /apps/metacity/general/button_layout ":close" | ||
37 | |||
38 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
39 | --direct --type string -s \ | ||
40 | /desktop/gnome/interface/gtk_theme "Moblin-Netbook" | ||
41 | |||
42 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
43 | --direct --type string -s \ | ||
44 | /desktop/gnome/interface/icon_theme "moblin" | ||
45 | |||
46 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
47 | --direct --type string -s \ | ||
48 | /desktop/gnome/peripherals/mouse/cursor_theme "moblin" | ||
49 | |||
50 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
51 | --direct --type string -s \ | ||
52 | /desktop/gnome/interface/toolbar_style "icons" | ||
53 | |||
54 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
55 | --direct --type bool -s \ | ||
56 | /desktop/gnome/interface/menus_have_icons false | ||
57 | |||
58 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
59 | --direct --type bool -s \ | ||
60 | /desktop/gnome/interface/buttons_have_icons false | ||
61 | |||
62 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
63 | --direct --type string -s \ | ||
64 | /desktop/gnome/sound/theme_name moblin | ||
65 | |||
66 | # Screen shot | ||
67 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
68 | --direct --type string -s \ | ||
69 | /apps/metacity/global_keybindings/run_command_screenshot \ | ||
70 | "Print" | ||
71 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
72 | --direct --type string -s \ | ||
73 | /apps/metacity/keybinding_commands/command_screenshot \ | ||
74 | "gnome-screenshot" | ||
75 | |||
76 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
77 | --direct --type string -s \ | ||
78 | /apps/metacity/global_keybindings/run_command_window_screenshot \ | ||
79 | "<Alt>Print" | ||
80 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
81 | --direct --type string -s \ | ||
82 | /apps/metacity/keybinding_commands/command_window_screenshot \ | ||
83 | "gnome-screenshot --window" | ||
84 | |||
85 | # Window Actions | ||
86 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
87 | --direct --type string -s \ | ||
88 | /apps/metacity/general/action_double_click_titlebar "none" | ||
89 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
90 | --direct --type string -s \ | ||
91 | /apps/metacity/general/action_middle_click_titlebar "none" | ||
92 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
93 | --direct --type string -s \ | ||
94 | /apps/metacity/general/action_right_click_titlebar "none" | ||
95 | |||
96 | |||
97 | # UX Shell | ||
98 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
99 | --direct --type bool -s \ | ||
100 | /apps/mutter/general/clutter_disabled false | ||
101 | |||
102 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
103 | --direct --type list --list-type string -s \ | ||
104 | /apps/mutter/general/clutter_plugins '[moblin-netbook]' | ||
105 | |||
106 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
107 | --direct --type string -s \ | ||
108 | /desktop/gnome/url-handlers/http/command 'moblin-web-browser %s' | ||
109 | |||
110 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
111 | --direct --type string -s \ | ||
112 | /desktop/gnome/url-handlers/https/command 'moblin-web-browser %s' | ||
113 | |||
114 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
115 | --direct --type string -s \ | ||
116 | /desktop/gnome/background/picture_filename \ | ||
117 | '/usr/share/mutter-moblin/theme/moblin-panel-myzone/toys.jpg' | ||
118 | |||
119 | # Fonts | ||
120 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
121 | --direct --type string -s \ | ||
122 | /desktop/gnome/interface/document_font_name \ | ||
123 | 'Liberation Sans 10' | ||
124 | |||
125 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
126 | --direct --type string -s \ | ||
127 | /desktop/gnome/interface/font_name \ | ||
128 | 'Liberation Sans 10' | ||
129 | |||
130 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
131 | --direct --type string -s \ | ||
132 | /desktop/gnome/interface/monospace_font_name \ | ||
133 | 'Liberation Mono 10' | ||
134 | |||
135 | # Nautilus | ||
136 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
137 | --direct --type bool -s \ | ||
138 | /apps/nautilus/preferences/always_use_browser true | ||
139 | |||
140 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
141 | --direct --type bool -s \ | ||
142 | /apps/nautilus/preferences/exit_with_last_window false | ||
143 | |||
144 | # Do not automount, this is done by g-s-d plugin | ||
145 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
146 | --direct --type bool -s \ | ||
147 | /apps/nautilus/preferences/media_automount false | ||
148 | |||
149 | # And should not open new window whenever media mounted | ||
150 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
151 | --direct --type bool -s \ | ||
152 | /apps/nautilus/preferences/media_automount_open false | ||
153 | |||
154 | |||
155 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
156 | --direct --type bool -s \ | ||
157 | /apps/nautilus/icon_view/labels_beside_icons false | ||
158 | |||
159 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
160 | --direct --type string -s \ | ||
161 | /apps/nautilus/icon_view/default_zoom_level standard | ||
162 | |||
163 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
164 | --direct --type string -s \ | ||
165 | /apps/gnome_settings_daemon/keybindings/power "" | ||
166 | |||
167 | # General | ||
168 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
169 | --direct --type float -s \ | ||
170 | /desktop/gnome/peripherals/mouse/mouse_acceleration 0.8 | ||
171 | |||
172 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults \ | ||
173 | --direct --type int -s \ | ||
174 | /desktop/gnome/peripherals/mouse/mouse_threshold 2 | ||
175 | |||
176 | # | ||
177 | # The interesting bit - we convert to run the system as the user "pokyuser" | ||
178 | # and setup this user account as needed | ||
179 | # | ||
180 | if [ ! -d /home/pokyuser ]; then | ||
181 | adduser --disabled-password --ingroup users pokyuser | ||
182 | |||
183 | # Setup any .skel files | ||
184 | if [ -d ${sysconfdir}/skel ]; then | ||
185 | cp -pPR ${sysconfdir}/skel/.[a-zA-Z0-9]* /home/pokyuser/ || /bin/true | ||
186 | cp -pPR ${sysconfdir}/skel/* /home/pokyuser/ || /bin/true | ||
187 | fi | ||
188 | |||
189 | # Move any sample media into this user | ||
190 | if [ -d ${sysconfdir}/skel-media ]; then | ||
191 | mv ${sysconfdir}/skel-media/* /home/pokyuser/ || /bin/true | ||
192 | fi | ||
193 | |||
194 | chown pokyuser.users -R /home/pokyuser/* || /bin/true | ||
195 | chown pokyuser.users -R /home/pokyuser/.[a-zA-Z0-9]* || /bin/true | ||
196 | |||
197 | # Make sure Xorg is suid | ||
198 | chmod a+s /usr/bin/Xorg | ||
199 | |||
200 | # Tell X to run as this user | ||
201 | mkdir -p ${sysconfdir}/X11/ | ||
202 | echo "pokyuser" > ${sysconfdir}/X11/Xusername | ||
203 | |||
204 | # Add pokyuser to the audio group | ||
205 | audiousers=`grep ^audio < /etc/group | cut -d ':' -f 4` | ||
206 | if [ "x$audiousers" == "x" ]; then | ||
207 | audiousers=pokyuser | ||
208 | else | ||
209 | audiousers=$audiousers,pokyuser | ||
210 | fi | ||
211 | sed -i -e "s/audio:\(.*\):\(.*\):\(.*\)/audio:\1:\2:$audiousers/" /etc/group | ||
212 | |||
213 | # Add pokyuser to the video group | ||
214 | videousers=`grep ^video < /etc/group | cut -d ':' -f 4` | ||
215 | if [ "x$videousers" == "x" ]; then | ||
216 | videousers=pokyuser | ||
217 | else | ||
218 | videousers=$videousers,pokyuser | ||
219 | fi | ||
220 | sed -i -e "s/video:\(.*\):\(.*\):\(.*\)/video:\1:\2:$videousers/" /etc/group | ||
221 | fi | ||
222 | |||
223 | } | ||
diff --git a/meta-moblin/packages/moblin-app-installer/moblin-app-installer/opkg-7f7d50079c8bcc63874fd60a61f23d849e025445.patch b/meta-moblin/packages/moblin-app-installer/moblin-app-installer/opkg-7f7d50079c8bcc63874fd60a61f23d849e025445.patch deleted file mode 100644 index 1b57ffe32a..0000000000 --- a/meta-moblin/packages/moblin-app-installer/moblin-app-installer/opkg-7f7d50079c8bcc63874fd60a61f23d849e025445.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | Index: git/configure.ac | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.ac 2009-10-05 17:05:14.000000000 +0100 | ||
4 | +++ git/configure.ac 2009-10-05 21:02:48.000000000 +0100 | ||
5 | @@ -34,7 +34,7 @@ | ||
6 | gtk+-2.0 | ||
7 | packagekit-glib >= 0.4 | ||
8 | packagekit-glib < 0.5 | ||
9 | - rpm >= 4.6' | ||
10 | + libopkg' | ||
11 | |||
12 | AC_MSG_CHECKING([for available nbtk version]) | ||
13 | PKG_CHECK_EXISTS(nbtk-1.2, | ||
14 | Index: git/src/mai-package.c | ||
15 | =================================================================== | ||
16 | --- git.orig/src/mai-package.c 2009-10-05 17:05:06.000000000 +0100 | ||
17 | +++ git/src/mai-package.c 2009-10-05 21:01:57.000000000 +0100 | ||
18 | @@ -23,7 +23,7 @@ | ||
19 | #include <gtk/gtk.h> | ||
20 | |||
21 | /* FIXME make conditional. */ | ||
22 | -#include <rpm/rpmlib.h> | ||
23 | +#include <libopkg/opkg.h> | ||
24 | |||
25 | #include "mai-model-priv.h" | ||
26 | #include "mai-package.h" | ||
27 | @@ -191,7 +191,7 @@ | ||
28 | |||
29 | if (priv->package_id && | ||
30 | priv->version && | ||
31 | - rpmvercmp (version, priv->version) < 0) | ||
32 | + opkg_compare_versions (version, priv->version) < 0) | ||
33 | { | ||
34 | g_debug (" skipping '%s'", version); | ||
35 | return; | ||
36 | @@ -955,7 +955,7 @@ | ||
37 | return -1; | ||
38 | |||
39 | /* FIXME support deb. */ | ||
40 | - return rpmvercmp (priv->version, version); | ||
41 | + return opkg_compare_versions (priv->version, version); | ||
42 | } | ||
43 | |||
44 | gboolean | ||
diff --git a/meta-moblin/packages/moblin-app-installer/moblin-app-installer/opkg.patch b/meta-moblin/packages/moblin-app-installer/moblin-app-installer/opkg.patch deleted file mode 100644 index 3496c22bf5..0000000000 --- a/meta-moblin/packages/moblin-app-installer/moblin-app-installer/opkg.patch +++ /dev/null | |||
@@ -1,75 +0,0 @@ | |||
1 | Index: git/configure.ac | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.ac 2009-12-10 21:37:39.000000000 +0000 | ||
4 | +++ git/configure.ac 2009-12-10 21:39:05.000000000 +0000 | ||
5 | @@ -34,7 +34,7 @@ | ||
6 | clutter-1.0 | ||
7 | clutter-gtk-0.10 | ||
8 | gtk+-2.0 | ||
9 | - rpm >= 4.6' | ||
10 | + libopkg' | ||
11 | |||
12 | AC_MSG_CHECKING([for available nbtk version]) | ||
13 | PKG_CHECK_EXISTS(nbtk-1.2, | ||
14 | Index: git/src/pk-glib/mai-package.c | ||
15 | =================================================================== | ||
16 | --- git.orig/src/pk-glib/mai-package.c 2009-12-10 21:42:24.000000000 +0000 | ||
17 | +++ git/src/pk-glib/mai-package.c 2009-12-10 21:43:48.000000000 +0000 | ||
18 | @@ -23,7 +23,7 @@ | ||
19 | #include <gtk/gtk.h> | ||
20 | |||
21 | /* FIXME make conditional. */ | ||
22 | -#include <rpm/rpmlib.h> | ||
23 | +#include <libopkg/opkg.h> | ||
24 | |||
25 | #include "mai-model-priv.h" | ||
26 | #include "mai-package.h" | ||
27 | @@ -230,7 +230,7 @@ | ||
28 | |||
29 | if (priv->package_id && | ||
30 | priv->version && | ||
31 | - rpmvercmp (version, priv->version) < 0) | ||
32 | + opkg_compare_versions (version, priv->version) < 0) | ||
33 | { | ||
34 | g_debug (" skipping '%s'", version); | ||
35 | return; | ||
36 | @@ -998,7 +998,7 @@ | ||
37 | return -1; | ||
38 | |||
39 | /* FIXME support deb. */ | ||
40 | - return rpmvercmp (priv->version, version); | ||
41 | + return opkg_compare_versions (priv->version, version); | ||
42 | } | ||
43 | |||
44 | gboolean | ||
45 | Index: git/src/pk-glib2/mai-package.c | ||
46 | =================================================================== | ||
47 | --- git.orig/src/pk-glib2/mai-package.c 2009-12-10 21:41:01.000000000 +0000 | ||
48 | +++ git/src/pk-glib2/mai-package.c 2009-12-10 21:42:08.000000000 +0000 | ||
49 | @@ -23,7 +23,7 @@ | ||
50 | #include <gtk/gtk.h> | ||
51 | |||
52 | /* FIXME make conditional. */ | ||
53 | -#include <rpm/rpmlib.h> | ||
54 | +#include <libopkg/opkg.h> | ||
55 | |||
56 | #include "mai-model-priv.h" | ||
57 | #include "mai-package.h" | ||
58 | @@ -737,7 +737,7 @@ | ||
59 | return -1; | ||
60 | |||
61 | /* FIXME support deb. */ | ||
62 | - return rpmvercmp (priv->version, version); | ||
63 | + return opkg_compare_versions (priv->version, version); | ||
64 | } | ||
65 | |||
66 | static void | ||
67 | @@ -820,7 +820,7 @@ | ||
68 | gchar **id = pk_package_id_split (package_id); | ||
69 | |||
70 | if (!priv->version || | ||
71 | - rpmvercmp (id[PK_PACKAGE_ID_VERSION], priv->version) > 0) | ||
72 | + opkg_compare_versions (id[PK_PACKAGE_ID_VERSION], priv->version) > 0) | ||
73 | { | ||
74 | PkInfoEnum package_info; | ||
75 | |||
diff --git a/meta-moblin/packages/moblin-app-installer/moblin-app-installer_git.bb b/meta-moblin/packages/moblin-app-installer/moblin-app-installer_git.bb deleted file mode 100644 index 1f388a3b44..0000000000 --- a/meta-moblin/packages/moblin-app-installer/moblin-app-installer_git.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | DESCRIPTION = "Moblin Appliction Installer" | ||
2 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git \ | ||
3 | file://opkg-7f7d50079c8bcc63874fd60a61f23d849e025445.patch;patch=1;rev=7f7d50079c8bcc63874fd60a61f23d849e025445 \ | ||
4 | file://opkg.patch;patch=1;notrev=7f7d50079c8bcc63874fd60a61f23d849e025445" | ||
5 | LICENSE = "GPLv2" | ||
6 | PV = "0.0+git${SRCPV}" | ||
7 | PR = "r0" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | DEPENDS = "clutter-1.0 glib-2.0 nbtk libxml2 gtk+ gnome-packagekit opkg" | ||
11 | |||
12 | inherit autotools | ||
diff --git a/meta-moblin/packages/moblin-cursor-theme/moblin-cursor-theme-0.1/moblin-cursor-theme-0.1.tar.bz2 b/meta-moblin/packages/moblin-cursor-theme/moblin-cursor-theme-0.1/moblin-cursor-theme-0.1.tar.bz2 deleted file mode 100644 index 47c3d7e8f8..0000000000 --- a/meta-moblin/packages/moblin-cursor-theme/moblin-cursor-theme-0.1/moblin-cursor-theme-0.1.tar.bz2 +++ /dev/null | |||
Binary files differ | |||
diff --git a/meta-moblin/packages/moblin-cursor-theme/moblin-cursor-theme_0.1.bb b/meta-moblin/packages/moblin-cursor-theme/moblin-cursor-theme_0.1.bb deleted file mode 100644 index af3f447083..0000000000 --- a/meta-moblin/packages/moblin-cursor-theme/moblin-cursor-theme_0.1.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | |||
2 | SRC_URI = "file://${PN}-${PV}.tar.bz2" | ||
3 | PR = "r0" | ||
4 | |||
5 | FILES_${PN} =+ "${datadir}/icons/moblin" | ||
6 | DEPENDS = "icon-naming-utils-native" | ||
7 | |||
8 | |||
9 | do_install () { | ||
10 | install -d ${D}${datadir}/icons/moblin/ | ||
11 | cp -r ${S}/cursors ${D}${datadir}/icons/moblin/ | ||
12 | } | ||
diff --git a/meta-moblin/packages/moblin-feeds/moblin-feed-config-opkg_1.0.bb b/meta-moblin/packages/moblin-feeds/moblin-feed-config-opkg_1.0.bb deleted file mode 100644 index 8d4b29c8c3..0000000000 --- a/meta-moblin/packages/moblin-feeds/moblin-feed-config-opkg_1.0.bb +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | DESCRIPTION = "Moblin feed configuration files (Online package repositories)" | ||
2 | |||
3 | PR = "r2" | ||
4 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
5 | |||
6 | FEEDNAMEPREFIX ?= "INVALID" | ||
7 | FEEDURIPREFIX ?= "INVALID" | ||
8 | |||
9 | do_compile() { | ||
10 | mkdir -p ${S}/${sysconfdir}/opkg/ | ||
11 | |||
12 | ipkgarchs="${PACKAGE_ARCHS}" | ||
13 | |||
14 | basefeedconf=${S}/${sysconfdir}/opkg/base-feeds.conf | ||
15 | |||
16 | rm -f $basefeedconf | ||
17 | |||
18 | for arch in $ipkgarchs; do | ||
19 | echo "src/gz ${FEEDNAMEPREFIX}-$arch http://pokylinux.org/${FEEDURIPREFIX}$arch" >> $basefeedconf | ||
20 | done | ||
21 | } | ||
22 | |||
23 | |||
24 | do_install () { | ||
25 | install -d ${D}${sysconfdir}/opkg | ||
26 | install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/ | ||
27 | } | ||
28 | |||
29 | FILES_${PN} = "${sysconfdir}/opkg/ " | ||
30 | |||
31 | CONFFILES_${PN} += "${sysconfdir}/opkg/base-feeds.conf" | ||
diff --git a/meta-moblin/packages/moblin-gtk-engine/moblin-gtk-engine_git.bb b/meta-moblin/packages/moblin-gtk-engine/moblin-gtk-engine_git.bb deleted file mode 100644 index e68a8541a7..0000000000 --- a/meta-moblin/packages/moblin-gtk-engine/moblin-gtk-engine_git.bb +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | |||
2 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
3 | LICENSE = "LGPLv2.1" | ||
4 | PV = "0.0+git${SRCPV}" | ||
5 | PR = "r1" | ||
6 | |||
7 | DEPENDS = "gtk+" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | inherit autotools | ||
12 | |||
13 | FILES_${PN} = "${libdir}/gtk-2.0/*/engines/*.so ${datadir}/icons ${datadir}/themes" | ||
14 | FILES_${PN}-dev = "${libdir}/gtk-2.0/*/engines/*" | ||
15 | FILES_${PN}-dbg = "${libdir}/gtk-2.0/*/engines/.debug" | ||
diff --git a/meta-moblin/packages/moblin-icon-theme/moblin-icon-theme-0.7/moblin-icon-theme-0.7.tar.gz b/meta-moblin/packages/moblin-icon-theme/moblin-icon-theme-0.7/moblin-icon-theme-0.7.tar.gz deleted file mode 100644 index 361e19f4e2..0000000000 --- a/meta-moblin/packages/moblin-icon-theme/moblin-icon-theme-0.7/moblin-icon-theme-0.7.tar.gz +++ /dev/null | |||
Binary files differ | |||
diff --git a/meta-moblin/packages/moblin-icon-theme/moblin-icon-theme_0.7.bb b/meta-moblin/packages/moblin-icon-theme/moblin-icon-theme_0.7.bb deleted file mode 100644 index 4544603e75..0000000000 --- a/meta-moblin/packages/moblin-icon-theme/moblin-icon-theme_0.7.bb +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | |||
2 | SRC_URI = "file://${PN}-${PV}.tar.gz" | ||
3 | PR = "r1" | ||
4 | |||
5 | DEPENDS = "icon-naming-utils-native" | ||
6 | |||
7 | FILES_${PN} += "${datadir}/icons/" | ||
8 | |||
9 | inherit autotools | ||
10 | |||
11 | do_install_append () { | ||
12 | ln -s ../apps/gnome-aisleriot.png ${D}${datadir}/icons/moblin/48x48/categories/applications-games.png | ||
13 | } | ||
diff --git a/meta-moblin/packages/moblin-icon-theme/moblin-icon-theme_git.bb b/meta-moblin/packages/moblin-icon-theme/moblin-icon-theme_git.bb deleted file mode 100644 index b73e8d32d8..0000000000 --- a/meta-moblin/packages/moblin-icon-theme/moblin-icon-theme_git.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | |||
2 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
3 | PV = "0.0+git${SRCPV}" | ||
4 | PR = "r0" | ||
5 | |||
6 | DEFAULT_PREFERENCE = "-1" | ||
7 | |||
8 | BROKEN = "1" | ||
9 | |||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | inherit autotools | ||
diff --git a/meta-moblin/packages/moblin-menus/moblin-menus/configurefix.patch b/meta-moblin/packages/moblin-menus/moblin-menus/configurefix.patch deleted file mode 100644 index 288746aa66..0000000000 --- a/meta-moblin/packages/moblin-menus/moblin-menus/configurefix.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: git/configure.in | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.in 2009-01-17 18:57:24.000000000 +0000 | ||
4 | +++ git/configure.in 2009-01-17 18:57:29.000000000 +0000 | ||
5 | @@ -11,8 +11,6 @@ | ||
6 | |||
7 | AM_MAINTAINER_MODE | ||
8 | |||
9 | -AM_DISABLE_STATIC | ||
10 | - | ||
11 | changequote(,)dnl | ||
12 | if test "x$GCC" = "xyes"; then | ||
13 | case " $CFLAGS " in | ||
diff --git a/meta-moblin/packages/moblin-menus/moblin-menus_git.bb b/meta-moblin/packages/moblin-menus/moblin-menus_git.bb deleted file mode 100644 index 2d6cb27d04..0000000000 --- a/meta-moblin/packages/moblin-menus/moblin-menus_git.bb +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | |||
2 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git \ | ||
3 | file://configurefix.patch;patch=1;rev=e1d63681739dd16195d005b3cf15752df294bd3c" | ||
4 | DEPENDS = "glib-2.0" | ||
5 | |||
6 | PV = "0.1+git${SRCPV}" | ||
7 | PR = "r1" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | FILES_${PN} += "${datadir}/desktop-directories/*" | ||
12 | |||
13 | inherit autotools | ||
diff --git a/meta-moblin/packages/moblin-sound-theme/moblin-sound-theme-0.1/moblin-sound-theme-0.1.tar.bz2 b/meta-moblin/packages/moblin-sound-theme/moblin-sound-theme-0.1/moblin-sound-theme-0.1.tar.bz2 deleted file mode 100644 index 34dcc6a1cd..0000000000 --- a/meta-moblin/packages/moblin-sound-theme/moblin-sound-theme-0.1/moblin-sound-theme-0.1.tar.bz2 +++ /dev/null | |||
Binary files differ | |||
diff --git a/meta-moblin/packages/moblin-sound-theme/moblin-sound-theme_0.1.bb b/meta-moblin/packages/moblin-sound-theme/moblin-sound-theme_0.1.bb deleted file mode 100644 index 7d122dd4c1..0000000000 --- a/meta-moblin/packages/moblin-sound-theme/moblin-sound-theme_0.1.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | |||
2 | SRC_URI = "file://${PN}-${PV}.tar.bz2" | ||
3 | PR = "r0" | ||
4 | |||
5 | inherit autotools | ||
6 | |||
7 | #FILES_${PN} =+ "${datadir}/icons/moblin" | ||
diff --git a/meta-moblin/packages/moblin-user-skel/moblin-user-skel_git.bb b/meta-moblin/packages/moblin-user-skel/moblin-user-skel_git.bb deleted file mode 100644 index ff71b5f92b..0000000000 --- a/meta-moblin/packages/moblin-user-skel/moblin-user-skel_git.bb +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
2 | PV = "0.0+git${SRCPV}" | ||
3 | PR = "r0" | ||
4 | |||
5 | S = "${WORKDIR}/git" | ||
6 | |||
7 | do_compile () { | ||
8 | : | ||
9 | } | ||
10 | |||
11 | do_install () { | ||
12 | install -d ${D}${sysconfdir}/skel/.bkl-thumbnails/ | ||
13 | cp -pPR ${S}/.bkl-thumbnails/* ${D}${sysconfdir}/skel/.bkl-thumbnails/ | ||
14 | |||
15 | install -d ${D}${sysconfdir}/skel/.kozo/ | ||
16 | cp -pPR ${S}/.kozo/* ${D}${sysconfdir}/skel/.kozo/ | ||
17 | |||
18 | install -d ${D}${sysconfdir}/skel/.local/ | ||
19 | cp -pPR ${S}/.local/* ${D}${sysconfdir}/skel/.local/ | ||
20 | } | ||
diff --git a/meta-moblin/packages/moblin-web-browser/moblin-web-browser/xpidl-78ddd155cc297811720e4c4835d468ac6c4d9666.patch b/meta-moblin/packages/moblin-web-browser/moblin-web-browser/xpidl-78ddd155cc297811720e4c4835d468ac6c4d9666.patch deleted file mode 100644 index d4785eaddf..0000000000 --- a/meta-moblin/packages/moblin-web-browser/moblin-web-browser/xpidl-78ddd155cc297811720e4c4835d468ac6c4d9666.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | Index: git/configure.ac | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.ac 2010-01-13 14:57:52.000000000 +0000 | ||
4 | +++ git/configure.ac 2010-01-13 15:01:35.000000000 +0000 | ||
5 | @@ -57,6 +57,13 @@ | ||
6 | NBTKDATADIR=`${PKG_CONFIG} --variable=prefix nbtk-1.2`"/share/nbtk" | ||
7 | AC_SUBST(NBTKDATADIR) | ||
8 | |||
9 | +IDLPREFIX= | ||
10 | +AC_ARG_WITH(idl-prefix, AC_HELP_STRING([--with-idl-prefix=DIR],[prefix to add to access to the idl files]), with_idl_prefix=${withval}) | ||
11 | +if test x"${with_idl_prefix}" != x ; then | ||
12 | + IDLPREFIX=${with_idl_prefix} | ||
13 | +fi | ||
14 | +AC_SUBST([IDLPREFIX]) | ||
15 | + | ||
16 | if test "x$build_browser" = "xyes"; then | ||
17 | PKG_CHECK_MODULES(MWB, | ||
18 | clutter-1.0 | ||
19 | Index: git/libmwbpages/Makefile.am | ||
20 | =================================================================== | ||
21 | --- git.orig/libmwbpages/Makefile.am 2010-01-13 14:57:52.000000000 +0000 | ||
22 | +++ git/libmwbpages/Makefile.am 2010-01-13 15:02:20.000000000 +0000 | ||
23 | @@ -26,10 +26,10 @@ | ||
24 | mwb-pages-service.lo : MwbIPagesService.h | ||
25 | |||
26 | .idl.h : | ||
27 | - $(MOZHOME)/xpidl -I $(MOZIDLDIR) -m header $< | ||
28 | + xpidl -I $(IDLPREFIX)$(MOZIDLDIR) -m header $< | ||
29 | |||
30 | .idl.xpt : | ||
31 | - $(MOZHOME)/xpidl -I $(MOZIDLDIR) -m typelib $< | ||
32 | + xpidl -I $(IDLPREFIX)$(MOZIDLDIR) -m typelib $< | ||
33 | |||
34 | xpt_DATA = MwbIPagesService.xpt | ||
35 | xptdir = $(pkgdatadir)/components | ||
diff --git a/meta-moblin/packages/moblin-web-browser/moblin-web-browser/xpidl-88f69b3d3242b7106a22721e73fbb15904a24b2f.patch b/meta-moblin/packages/moblin-web-browser/moblin-web-browser/xpidl-88f69b3d3242b7106a22721e73fbb15904a24b2f.patch deleted file mode 100644 index d4785eaddf..0000000000 --- a/meta-moblin/packages/moblin-web-browser/moblin-web-browser/xpidl-88f69b3d3242b7106a22721e73fbb15904a24b2f.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | Index: git/configure.ac | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.ac 2010-01-13 14:57:52.000000000 +0000 | ||
4 | +++ git/configure.ac 2010-01-13 15:01:35.000000000 +0000 | ||
5 | @@ -57,6 +57,13 @@ | ||
6 | NBTKDATADIR=`${PKG_CONFIG} --variable=prefix nbtk-1.2`"/share/nbtk" | ||
7 | AC_SUBST(NBTKDATADIR) | ||
8 | |||
9 | +IDLPREFIX= | ||
10 | +AC_ARG_WITH(idl-prefix, AC_HELP_STRING([--with-idl-prefix=DIR],[prefix to add to access to the idl files]), with_idl_prefix=${withval}) | ||
11 | +if test x"${with_idl_prefix}" != x ; then | ||
12 | + IDLPREFIX=${with_idl_prefix} | ||
13 | +fi | ||
14 | +AC_SUBST([IDLPREFIX]) | ||
15 | + | ||
16 | if test "x$build_browser" = "xyes"; then | ||
17 | PKG_CHECK_MODULES(MWB, | ||
18 | clutter-1.0 | ||
19 | Index: git/libmwbpages/Makefile.am | ||
20 | =================================================================== | ||
21 | --- git.orig/libmwbpages/Makefile.am 2010-01-13 14:57:52.000000000 +0000 | ||
22 | +++ git/libmwbpages/Makefile.am 2010-01-13 15:02:20.000000000 +0000 | ||
23 | @@ -26,10 +26,10 @@ | ||
24 | mwb-pages-service.lo : MwbIPagesService.h | ||
25 | |||
26 | .idl.h : | ||
27 | - $(MOZHOME)/xpidl -I $(MOZIDLDIR) -m header $< | ||
28 | + xpidl -I $(IDLPREFIX)$(MOZIDLDIR) -m header $< | ||
29 | |||
30 | .idl.xpt : | ||
31 | - $(MOZHOME)/xpidl -I $(MOZIDLDIR) -m typelib $< | ||
32 | + xpidl -I $(IDLPREFIX)$(MOZIDLDIR) -m typelib $< | ||
33 | |||
34 | xpt_DATA = MwbIPagesService.xpt | ||
35 | xptdir = $(pkgdatadir)/components | ||
diff --git a/meta-moblin/packages/moblin-web-browser/moblin-web-browser/xpidl-a3ea71159bef93dc03762195bd5404a51db5e4a6.patch b/meta-moblin/packages/moblin-web-browser/moblin-web-browser/xpidl-a3ea71159bef93dc03762195bd5404a51db5e4a6.patch deleted file mode 100644 index e920b50eeb..0000000000 --- a/meta-moblin/packages/moblin-web-browser/moblin-web-browser/xpidl-a3ea71159bef93dc03762195bd5404a51db5e4a6.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | Index: git/configure.ac | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.ac 2009-06-23 17:46:31.000000000 +0100 | ||
4 | +++ git/configure.ac 2009-06-23 17:46:48.000000000 +0100 | ||
5 | @@ -44,6 +44,13 @@ | ||
6 | MOZIDLDIR=`${PKG_CONFIG} --variable=idldir libxul`"" | ||
7 | AC_SUBST([MOZIDLDIR]) | ||
8 | |||
9 | +IDLPREFIX= | ||
10 | +AC_ARG_WITH(idl-prefix, AC_HELP_STRING([--with-idl-prefix=DIR],[prefix to add to access to the idl files]), with_idl_prefix=${withval}) | ||
11 | +if test x"${with_idl_prefix}" != x ; then | ||
12 | + IDLPREFIX=${with_idl_prefix} | ||
13 | +fi | ||
14 | +AC_SUBST([IDLPREFIX]) | ||
15 | + | ||
16 | AC_PATH_PROG(DBUSBINDINGTOOL, dbus-binding-tool) | ||
17 | |||
18 | AC_OUTPUT([ | ||
19 | Index: git/libmwbpages/Makefile.am | ||
20 | =================================================================== | ||
21 | --- git.orig/libmwbpages/Makefile.am 2009-06-23 17:46:31.000000000 +0100 | ||
22 | +++ git/libmwbpages/Makefile.am 2009-06-23 17:47:46.000000000 +0100 | ||
23 | @@ -27,10 +27,10 @@ | ||
24 | mwb-gettext.lo : MwbIGettext.h | ||
25 | |||
26 | .idl.h : | ||
27 | - $(MOZHOME)/xpidl -I $(MOZIDLDIR) -m header $< | ||
28 | + xpidl -I $(IDLPREFIX)$(MOZIDLDIR) -m header $< | ||
29 | |||
30 | .idl.xpt : | ||
31 | - $(MOZHOME)/xpidl -I $(MOZIDLDIR) -m typelib $< | ||
32 | + xpidl -I $(IDLPREFIX)$(MOZIDLDIR) -m typelib $< | ||
33 | |||
34 | dist_xpt_DATA = MwbIStartPage.xpt MwbIGettext.xpt | ||
35 | xptdir = $(MOZHOME)/components | ||
diff --git a/meta-moblin/packages/moblin-web-browser/moblin-web-browser/xpidl.patch b/meta-moblin/packages/moblin-web-browser/moblin-web-browser/xpidl.patch deleted file mode 100644 index 86aeae4248..0000000000 --- a/meta-moblin/packages/moblin-web-browser/moblin-web-browser/xpidl.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | Index: git/configure.ac | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.ac 2009-12-10 17:14:58.000000000 +0000 | ||
4 | +++ git/configure.ac 2009-12-10 17:15:01.000000000 +0000 | ||
5 | @@ -63,6 +63,13 @@ | ||
6 | NBTKDATADIR=`${PKG_CONFIG} --variable=prefix nbtk-1.2`"/share/nbtk" | ||
7 | AC_SUBST(NBTKDATADIR) | ||
8 | |||
9 | +IDLPREFIX= | ||
10 | +AC_ARG_WITH(idl-prefix, AC_HELP_STRING([--with-idl-prefix=DIR],[prefix to add to access to the idl files]), with_idl_prefix=${withval}) | ||
11 | +if test x"${with_idl_prefix}" != x ; then | ||
12 | + IDLPREFIX=${with_idl_prefix} | ||
13 | +fi | ||
14 | +AC_SUBST([IDLPREFIX]) | ||
15 | + | ||
16 | if test "x$build_browser" = "xyes"; then | ||
17 | PKG_CHECK_MODULES(MWB, | ||
18 | clutter-1.0 | ||
19 | Index: git/libmwbpages/Makefile.am | ||
20 | =================================================================== | ||
21 | --- git.orig/libmwbpages/Makefile.am 2009-12-10 17:15:08.000000000 +0000 | ||
22 | +++ git/libmwbpages/Makefile.am 2009-12-10 17:15:15.000000000 +0000 | ||
23 | @@ -28,10 +28,10 @@ | ||
24 | mwb-pages-service.lo : MwbIPagesService.h | ||
25 | |||
26 | .idl.h : | ||
27 | - $(AM_V_GEN)$(MOZHOME)/xpidl -I $(MOZIDLDIR) -m header $< | ||
28 | + xpidl -I $(IDLPREFIX)$(MOZIDLDIR) -m header $< | ||
29 | |||
30 | .idl.xpt : | ||
31 | - $(AM_V_GEN)$(MOZHOME)/xpidl -I $(MOZIDLDIR) -m typelib $< | ||
32 | + xpidl -I $(IDLPREFIX)$(MOZIDLDIR) -m typelib $< | ||
33 | |||
34 | xpt_DATA = MwbIPagesService.xpt | ||
35 | xptdir = $(pkgdatadir)/components | ||
diff --git a/meta-moblin/packages/moblin-web-browser/moblin-web-browser_git.bb b/meta-moblin/packages/moblin-web-browser/moblin-web-browser_git.bb deleted file mode 100644 index 53c8a3531b..0000000000 --- a/meta-moblin/packages/moblin-web-browser/moblin-web-browser_git.bb +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | DESCRIPTION = "Moblin web browser (based on clutter + mozilla-headless/mozilla-offscreen)" | ||
2 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git;branch=${MOBLINBROWSERBRANCH} \ | ||
3 | file://xpidl-a3ea71159bef93dc03762195bd5404a51db5e4a6.patch;patch=1;rev=a3ea71159bef93dc03762195bd5404a51db5e4a6;notrev=78ddd155cc297811720e4c4835d468ac6c4d9666 \ | ||
4 | file://xpidl-78ddd155cc297811720e4c4835d468ac6c4d9666.patch;patch=1;rev=78ddd155cc297811720e4c4835d468ac6c4d9666;notrev=a3ea71159bef93dc03762195bd5404a51db5e4a6 \ | ||
5 | file://xpidl.patch;patch=1;notrev=a3ea71159bef93dc03762195bd5404a51db5e4a6;notrev=78ddd155cc297811720e4c4835d468ac6c4d9666" | ||
6 | LICENSE = "LGPLv2.1" | ||
7 | PV = "0.0+git${SRCPV}" | ||
8 | PR = "r11" | ||
9 | |||
10 | DEPENDS = "clutter-1.0 clutter-mozembed clutter-gtk-0.10 libunique mozilla-headless-services libccss nbtk mozilla-headless mutter-moblin" | ||
11 | |||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | MOBLINBROWSERBRANCH ?= "master" | ||
15 | |||
16 | EXTRA_OECONF = "--with-idl-prefix=${STAGING_DIR_TARGET}/" | ||
17 | |||
18 | FILES_${PN} += "${datadir}/moblin-web-browser/chrome/* ${libdir}/xulrunner-*/chrome/* ${datadir}/dbus-1/services/*" | ||
19 | FILES_${PN} += "${datadir}/moblin-web-browser/components/* ${libdir}/xulrunner-*/components/*" | ||
20 | FILES_${PN}-dbg += "${datadir}/moblin-web-browser/components/.debug/* ${libdir}/xulrunner-*/components/.debug/*" | ||
21 | |||
22 | |||
23 | |||
24 | inherit autotools | ||
diff --git a/meta-moblin/packages/mojito/mojito.inc b/meta-moblin/packages/mojito/mojito.inc deleted file mode 100644 index f823e7437d..0000000000 --- a/meta-moblin/packages/mojito/mojito.inc +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | SRC_URI = "http://download.moblin.org/sources/mojito/0.21/mojito-0.21.7.tar.bz2" | ||
2 | |||
3 | DEPENDS = "libsoup-2.4 gconf-dbus librest glib-2.0 twitter-glib gnome-keyring" | ||
4 | RDEPENDS_${PN} = "connman" | ||
5 | |||
6 | inherit autotools | ||
7 | |||
8 | FILES_${PN} += "${datadir}/dbus-1/services" | ||
9 | FILES_${PN}-dbg += "${libdir}/mojito/sources/.debug/* ${libdir}/mojito/services/.debug/" | ||
10 | |||
11 | PARALLEL_MAKE = "" | ||
12 | |||
13 | EXTRA_OECONF = "--with-online=connman --disable-shave" | ||
diff --git a/meta-moblin/packages/mojito/mojito_0.21.7.bb b/meta-moblin/packages/mojito/mojito_0.21.7.bb deleted file mode 100644 index 9f880e72da..0000000000 --- a/meta-moblin/packages/mojito/mojito_0.21.7.bb +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | require mojito.inc | ||
diff --git a/meta-moblin/packages/mojito/mojito_git.bb b/meta-moblin/packages/mojito/mojito_git.bb deleted file mode 100644 index ddaf688bfa..0000000000 --- a/meta-moblin/packages/mojito/mojito_git.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require mojito.inc | ||
2 | |||
3 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
4 | PV = "0.21.7+git${SRCPV}" | ||
5 | S = "${WORKDIR}/git" | ||
diff --git a/meta-moblin/packages/monit/monit-4.10.1/init b/meta-moblin/packages/monit/monit-4.10.1/init deleted file mode 100644 index 325a552b28..0000000000 --- a/meta-moblin/packages/monit/monit-4.10.1/init +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # | ||
3 | # This is an init script for openembedded | ||
4 | # Copy it to /etc/init.d/monit and type | ||
5 | # > update-rc.d monit defaults 99 | ||
6 | # | ||
7 | monit=/usr/bin/monit | ||
8 | pidfile=/var/run/monit.pid | ||
9 | monit_args="-c /etc/monitrc" | ||
10 | |||
11 | test -x "$monit" || exit 0 | ||
12 | |||
13 | case "$1" in | ||
14 | start) | ||
15 | echo -n "Starting Monit" | ||
16 | start-stop-daemon --start --quiet --exec $monit -- $monit_args | ||
17 | RETVAL=$? | ||
18 | echo "." | ||
19 | ;; | ||
20 | stop) | ||
21 | echo -n "Stopping Monit" | ||
22 | start-stop-daemon --stop --quiet --pidfile $pidfile | ||
23 | RETVAL=$? | ||
24 | echo "." | ||
25 | ;; | ||
26 | restart) | ||
27 | $0 stop | ||
28 | $0 start | ||
29 | RETVAL=$? | ||
30 | ;; | ||
31 | status) | ||
32 | $monit $monit_args status | ||
33 | RETVAL=$? | ||
34 | echo "." | ||
35 | ;; | ||
36 | *) | ||
37 | echo "Usage: $0 {start|stop|restart|status}" | ||
38 | exit 1 | ||
39 | esac | ||
40 | |||
41 | exit $RETVAL | ||
42 | |||
diff --git a/meta-moblin/packages/monit/monit-4.10.1/nostrip.patch b/meta-moblin/packages/monit/monit-4.10.1/nostrip.patch deleted file mode 100644 index 95e7eb0f10..0000000000 --- a/meta-moblin/packages/monit/monit-4.10.1/nostrip.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: monit-4.10.1/Makefile.in | ||
2 | =================================================================== | ||
3 | --- monit-4.10.1.orig/Makefile.in 2009-05-24 15:49:03.000000000 +0100 | ||
4 | +++ monit-4.10.1/Makefile.in 2009-05-24 15:49:12.000000000 +0100 | ||
5 | @@ -39,7 +39,7 @@ | ||
6 | MODE_DIRS = 755 | ||
7 | |||
8 | INSTALL = @INSTALL@ | ||
9 | -INSTALL_PROG = $(INSTALL) -m $(MODE_PROGS) -s | ||
10 | +INSTALL_PROG = $(INSTALL) -m $(MODE_PROGS) | ||
11 | INSTALL_FILE = $(INSTALL) -m $(MODE_FILES) | ||
12 | INSTALL_DIR = $(INSTALL) -m $(MODE_DIRS) -d | ||
13 | |||
diff --git a/meta-moblin/packages/monit/monit_4.10.1.bb b/meta-moblin/packages/monit/monit_4.10.1.bb deleted file mode 100644 index 84a6231a2a..0000000000 --- a/meta-moblin/packages/monit/monit_4.10.1.bb +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | LICENSE = "GPL" | ||
2 | DEPENDS = "openssl" | ||
3 | |||
4 | SRC_URI = "http://www.tildeslash.com/monit/dist/monit-${PV}.tar.gz \ | ||
5 | file://nostrip.patch;patch=1 \ | ||
6 | file://init" | ||
7 | |||
8 | PR = "r1" | ||
9 | |||
10 | INITSCRIPT_NAME = "monit" | ||
11 | INITSCRIPT_PARAMS = "defaults 99" | ||
12 | |||
13 | inherit autotools update-rc.d | ||
14 | |||
15 | EXTRA_OECONF = "--with-ssl-lib-dir=${STAGING_LIBDIR} --with-ssl-incl-dir=${STAGING_INCDIR}" | ||
16 | |||
17 | do_install_append() { | ||
18 | install -d ${D}${sysconfdir}/init.d/ | ||
19 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/monit | ||
20 | sed -i 's:# set daemon 120:set daemon 120:' ${S}/monitrc | ||
21 | sed -i 's:include /etc/monit.d/:include /${sysconfdir}/monit.d/:' ${S}/monitrc | ||
22 | install -m 600 ${S}/monitrc ${D}${sysconfdir}/monitrc | ||
23 | install -m 700 -d ${D}${sysconfdir}/monit.d/ | ||
24 | } | ||
25 | |||
26 | CONFFILES_${PN} += "${sysconfdir}/monitrc" | ||
27 | |||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless-services/confighack.patch b/meta-moblin/packages/mozilla-headless/mozilla-headless-services/confighack.patch deleted file mode 100644 index dcfe11e0ff..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless-services/confighack.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: places-glib/configure.ac | ||
2 | =================================================================== | ||
3 | --- places-glib.orig/configure.ac 2009-04-17 10:29:15.000000000 +0100 | ||
4 | +++ places-glib/configure.ac 2009-04-17 10:29:44.000000000 +0100 | ||
5 | @@ -99,6 +99,8 @@ | ||
6 | PKG_CHECK_MODULES(GLIB, [glib-2.0]) | ||
7 | PKG_CHECK_MODULES(DBUS, [dbus-glib-1]) | ||
8 | |||
9 | +XUL_LIBS="$XUL_LIBS -lmozjs" | ||
10 | + | ||
11 | MOZHOME=`${PKG_CONFIG} --variable=prefix mozilla-headless`"/lib/xulrunner-"`${PKG_CONFIG} --modversion mozilla-headless` | ||
12 | AC_SUBST([MOZHOME]) | ||
13 | |||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless-services_git.bb b/meta-moblin/packages/mozilla-headless/mozilla-headless-services_git.bb deleted file mode 100644 index 14d64fa8c3..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless-services_git.bb +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | SRC_URI = "git://git.moblin.org/mozilla-headless-services.git;protocol=git \ | ||
2 | file://confighack.patch;patch=1" | ||
3 | PV = "0.1+git${SRCPV}" | ||
4 | PR = "r1" | ||
5 | |||
6 | DEPENDS = "glib-2.0 dbus mozilla-headless json-glib" | ||
7 | |||
8 | EXTRA_OECONF = "--enable-gnome-proxy" | ||
9 | |||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | FILES_${PN} += "${datadir}/dbus-1/services" | ||
13 | |||
14 | inherit autotools | ||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/0001-Adds-initial-Gtk-clipboard-support-to-moz-headless.patch b/meta-moblin/packages/mozilla-headless/mozilla-headless/0001-Adds-initial-Gtk-clipboard-support-to-moz-headless.patch deleted file mode 100644 index db9e147990..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/0001-Adds-initial-Gtk-clipboard-support-to-moz-headless.patch +++ /dev/null | |||
@@ -1,1478 +0,0 @@ | |||
1 | From fb41f028badb4dfddfc47fb2a1a68c1aa90dcef5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Bragg <robert@linux.intel.com> | ||
3 | Date: Fri, 8 May 2009 13:57:22 +0100 | ||
4 | Subject: [PATCH] Adds initial Gtk clipboard support to moz-headless | ||
5 | |||
6 | If build with MOZ_X11 enabled then this now builds the clipboard code taken | ||
7 | from the gtk2 backend. This doesn't provide any embedding API yet to expose | ||
8 | the clipboard. | ||
9 | --- | ||
10 | widget/src/headless/Makefile.in | 6 + | ||
11 | widget/src/headless/nsClipboard.cpp | 948 +++++++++++++++++++++++++++++++ | ||
12 | widget/src/headless/nsClipboard.h | 93 +++ | ||
13 | widget/src/headless/nsIImageToPixbuf.h | 62 ++ | ||
14 | widget/src/headless/nsImageToPixbuf.cpp | 196 +++++++ | ||
15 | widget/src/headless/nsImageToPixbuf.h | 71 +++ | ||
16 | widget/src/headless/nsWidgetFactory.cpp | 18 + | ||
17 | 7 files changed, 1394 insertions(+), 0 deletions(-) | ||
18 | create mode 100644 widget/src/headless/nsClipboard.cpp | ||
19 | create mode 100644 widget/src/headless/nsClipboard.h | ||
20 | create mode 100644 widget/src/headless/nsIImageToPixbuf.h | ||
21 | create mode 100644 widget/src/headless/nsImageToPixbuf.cpp | ||
22 | create mode 100644 widget/src/headless/nsImageToPixbuf.h | ||
23 | |||
24 | Index: offscreen/widget/src/headless/Makefile.in | ||
25 | =================================================================== | ||
26 | --- offscreen.orig/widget/src/headless/Makefile.in 2009-05-16 18:23:25.000000000 +0100 | ||
27 | +++ offscreen/widget/src/headless/Makefile.in 2009-06-12 14:14:05.000000000 +0100 | ||
28 | @@ -95,6 +95,12 @@ | ||
29 | nsScreenManagerHeadless.cpp \ | ||
30 | $(NULL) | ||
31 | |||
32 | +ifdef MOZ_X11 | ||
33 | +CPPSRCS += nsClipboard.cpp \ | ||
34 | + nsImageToPixbuf.cpp \ | ||
35 | + $(NULL) | ||
36 | +endif | ||
37 | + | ||
38 | # build our subdirs, too | ||
39 | SHARED_LIBRARY_LIBS = ../xpwidgets/libxpwidgets_s.a | ||
40 | |||
41 | Index: offscreen/widget/src/headless/nsClipboard.cpp | ||
42 | =================================================================== | ||
43 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
44 | +++ offscreen/widget/src/headless/nsClipboard.cpp 2009-06-12 14:14:05.000000000 +0100 | ||
45 | @@ -0,0 +1,948 @@ | ||
46 | +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | ||
47 | +/* vim:expandtab:shiftwidth=4:tabstop=4: | ||
48 | + */ | ||
49 | +/* ***** BEGIN LICENSE BLOCK ***** | ||
50 | + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | ||
51 | + * | ||
52 | + * The contents of this file are subject to the Mozilla Public License Version | ||
53 | + * 1.1 (the "License"); you may not use this file except in compliance with | ||
54 | + * the License. You may obtain a copy of the License at | ||
55 | + * http://www.mozilla.org/MPL/ | ||
56 | + * | ||
57 | + * Software distributed under the License is distributed on an "AS IS" basis, | ||
58 | + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | ||
59 | + * for the specific language governing rights and limitations under the | ||
60 | + * License. | ||
61 | + * | ||
62 | + * The Original Code is mozilla.org code. | ||
63 | + * | ||
64 | + * The Initial Developer of the Original Code is Christopher Blizzard | ||
65 | + * <blizzard@mozilla.org>. Portions created by the Initial Developer | ||
66 | + * are Copyright (C) 2001 the Initial Developer. All Rights Reserved. | ||
67 | + * | ||
68 | + * Contributor(s): | ||
69 | + * | ||
70 | + * Alternatively, the contents of this file may be used under the terms of | ||
71 | + * either the GNU General Public License Version 2 or later (the "GPL"), or | ||
72 | + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | ||
73 | + * in which case the provisions of the GPL or the LGPL are applicable instead | ||
74 | + * of those above. If you wish to allow use of your version of this file only | ||
75 | + * under the terms of either the GPL or the LGPL, and not to allow others to | ||
76 | + * use your version of this file under the terms of the MPL, indicate your | ||
77 | + * decision by deleting the provisions above and replace them with the notice | ||
78 | + * and other provisions required by the GPL or the LGPL. If you do not delete | ||
79 | + * the provisions above, a recipient may use your version of this file under | ||
80 | + * the terms of any one of the MPL, the GPL or the LGPL. | ||
81 | + * | ||
82 | + * ***** END LICENSE BLOCK ***** */ | ||
83 | + | ||
84 | +#include "nsClipboard.h" | ||
85 | +#include "nsSupportsPrimitives.h" | ||
86 | +#include "nsString.h" | ||
87 | +#include "nsReadableUtils.h" | ||
88 | +#include "nsXPIDLString.h" | ||
89 | +#include "nsPrimitiveHelpers.h" | ||
90 | +#include "nsICharsetConverterManager.h" | ||
91 | +#include "nsIServiceManager.h" | ||
92 | +#include "nsIImage.h" | ||
93 | +#include "nsImageToPixbuf.h" | ||
94 | +#include "nsStringStream.h" | ||
95 | + | ||
96 | +#include <gtk/gtk.h> | ||
97 | + | ||
98 | +// For manipulation of the X event queue | ||
99 | +#include <X11/Xlib.h> | ||
100 | +#include <gdk/gdkx.h> | ||
101 | +#include <sys/time.h> | ||
102 | +#include <sys/types.h> | ||
103 | +#include <unistd.h> | ||
104 | + | ||
105 | +#ifdef POLL_WITH_XCONNECTIONNUMBER | ||
106 | +#include <poll.h> | ||
107 | +#endif | ||
108 | + | ||
109 | +// Callback when someone asks us for the selection | ||
110 | +void | ||
111 | +invisible_selection_get_cb (GtkWidget *aWidget, | ||
112 | + GtkSelectionData *aSelectionData, | ||
113 | + guint aTime, | ||
114 | + guint aInfo, | ||
115 | + nsClipboard *aClipboard); | ||
116 | + | ||
117 | +gboolean | ||
118 | +selection_clear_event_cb (GtkWidget *aWidget, | ||
119 | + GdkEventSelection *aEvent, | ||
120 | + nsClipboard *aClipboard); | ||
121 | + | ||
122 | +static void | ||
123 | +ConvertHTMLtoUCS2 (guchar *data, | ||
124 | + PRInt32 dataLength, | ||
125 | + PRUnichar **unicodeData, | ||
126 | + PRInt32 &outUnicodeLen); | ||
127 | + | ||
128 | +static void | ||
129 | +GetHTMLCharset (guchar * data, PRInt32 dataLength, nsCString& str); | ||
130 | + | ||
131 | + | ||
132 | +// Our own versions of gtk_clipboard_wait_for_contents and | ||
133 | +// gtk_clipboard_wait_for_text, which don't run the event loop while | ||
134 | +// waiting for the data. This prevents a lot of problems related to | ||
135 | +// dispatching events at unexpected times. | ||
136 | + | ||
137 | +static GtkSelectionData * | ||
138 | +wait_for_contents (GtkClipboard *clipboard, GdkAtom target); | ||
139 | + | ||
140 | +static gchar * | ||
141 | +wait_for_text (GtkClipboard *clipboard); | ||
142 | + | ||
143 | +static Bool | ||
144 | +checkEventProc(Display *display, XEvent *event, XPointer arg); | ||
145 | + | ||
146 | +struct retrieval_context | ||
147 | +{ | ||
148 | + PRBool completed; | ||
149 | + void *data; | ||
150 | + | ||
151 | + retrieval_context() : completed(PR_FALSE), data(nsnull) { } | ||
152 | +}; | ||
153 | + | ||
154 | +static void | ||
155 | +wait_for_retrieval(GtkClipboard *clipboard, retrieval_context *transferData); | ||
156 | + | ||
157 | +static void | ||
158 | +clipboard_contents_received(GtkClipboard *clipboard, | ||
159 | + GtkSelectionData *selection_data, | ||
160 | + gpointer data); | ||
161 | + | ||
162 | +static void | ||
163 | +clipboard_text_received(GtkClipboard *clipboard, | ||
164 | + const gchar *text, | ||
165 | + gpointer data); | ||
166 | + | ||
167 | +nsClipboard::nsClipboard() | ||
168 | +{ | ||
169 | + mWidget = nsnull; | ||
170 | +} | ||
171 | + | ||
172 | +nsClipboard::~nsClipboard() | ||
173 | +{ | ||
174 | + if (mWidget) | ||
175 | + gtk_widget_destroy(mWidget); | ||
176 | +} | ||
177 | + | ||
178 | +NS_IMPL_ISUPPORTS1(nsClipboard, nsIClipboard) | ||
179 | + | ||
180 | +nsresult | ||
181 | +nsClipboard::Init(void) | ||
182 | +{ | ||
183 | + mWidget = gtk_invisible_new(); | ||
184 | + if (!mWidget) | ||
185 | + return NS_ERROR_FAILURE; | ||
186 | + | ||
187 | + g_signal_connect(G_OBJECT(mWidget), "selection_get", | ||
188 | + G_CALLBACK(invisible_selection_get_cb), this); | ||
189 | + | ||
190 | + g_signal_connect(G_OBJECT(mWidget), "selection_clear_event", | ||
191 | + G_CALLBACK(selection_clear_event_cb), this); | ||
192 | + | ||
193 | + // XXX make sure to set up the selection_clear event | ||
194 | + | ||
195 | + return NS_OK; | ||
196 | +} | ||
197 | + | ||
198 | +NS_IMETHODIMP | ||
199 | +nsClipboard::SetData(nsITransferable *aTransferable, | ||
200 | + nsIClipboardOwner *aOwner, PRInt32 aWhichClipboard) | ||
201 | +{ | ||
202 | + // See if we can short cut | ||
203 | + if ((aWhichClipboard == kGlobalClipboard && | ||
204 | + aTransferable == mGlobalTransferable.get() && | ||
205 | + aOwner == mGlobalOwner.get()) || | ||
206 | + (aWhichClipboard == kSelectionClipboard && | ||
207 | + aTransferable == mSelectionTransferable.get() && | ||
208 | + aOwner == mSelectionOwner.get())) { | ||
209 | + return NS_OK; | ||
210 | + } | ||
211 | + | ||
212 | + nsresult rv; | ||
213 | + if (!mPrivacyHandler) { | ||
214 | + rv = NS_NewClipboardPrivacyHandler(getter_AddRefs(mPrivacyHandler)); | ||
215 | + NS_ENSURE_SUCCESS(rv, rv); | ||
216 | + } | ||
217 | + rv = mPrivacyHandler->PrepareDataForClipboard(aTransferable); | ||
218 | + NS_ENSURE_SUCCESS(rv, rv); | ||
219 | + | ||
220 | + // Clear out the clipboard in order to set the new data | ||
221 | + EmptyClipboard(aWhichClipboard); | ||
222 | + | ||
223 | + if (aWhichClipboard == kSelectionClipboard) { | ||
224 | + mSelectionOwner = aOwner; | ||
225 | + mSelectionTransferable = aTransferable; | ||
226 | + } | ||
227 | + else { | ||
228 | + mGlobalOwner = aOwner; | ||
229 | + mGlobalTransferable = aTransferable; | ||
230 | + } | ||
231 | + | ||
232 | + // Which selection are we about to claim, CLIPBOARD or PRIMARY? | ||
233 | + GdkAtom selectionAtom = GetSelectionAtom(aWhichClipboard); | ||
234 | + | ||
235 | + // Make ourselves the owner. If we fail to, return. | ||
236 | + if (!gtk_selection_owner_set(mWidget, selectionAtom, GDK_CURRENT_TIME)) | ||
237 | + return NS_ERROR_FAILURE; | ||
238 | + | ||
239 | + // Clear the old selection target list. | ||
240 | + gtk_selection_clear_targets(mWidget, selectionAtom); | ||
241 | + | ||
242 | + // Get the types of supported flavors | ||
243 | + nsCOMPtr<nsISupportsArray> flavors; | ||
244 | + | ||
245 | + rv = aTransferable->FlavorsTransferableCanExport(getter_AddRefs(flavors)); | ||
246 | + if (!flavors || NS_FAILED(rv)) | ||
247 | + return NS_ERROR_FAILURE; | ||
248 | + | ||
249 | + // Add all the flavors to this widget's supported type. | ||
250 | + PRUint32 count; | ||
251 | + flavors->Count(&count); | ||
252 | + for (PRUint32 i=0; i < count; i++) { | ||
253 | + nsCOMPtr<nsISupports> tastesLike; | ||
254 | + flavors->GetElementAt(i, getter_AddRefs(tastesLike)); | ||
255 | + nsCOMPtr<nsISupportsCString> flavor = do_QueryInterface(tastesLike); | ||
256 | + | ||
257 | + if (flavor) { | ||
258 | + nsXPIDLCString flavorStr; | ||
259 | + flavor->ToString(getter_Copies(flavorStr)); | ||
260 | + | ||
261 | + // special case text/unicode since we can handle all of | ||
262 | + // the string types | ||
263 | + if (!strcmp(flavorStr, kUnicodeMime)) { | ||
264 | + AddTarget(gdk_atom_intern("UTF8_STRING", FALSE), | ||
265 | + selectionAtom); | ||
266 | + AddTarget(gdk_atom_intern("COMPOUND_TEXT", FALSE), | ||
267 | + selectionAtom); | ||
268 | + AddTarget(gdk_atom_intern("TEXT", FALSE), selectionAtom); | ||
269 | + AddTarget(GDK_SELECTION_TYPE_STRING, selectionAtom); | ||
270 | + // next loop iteration | ||
271 | + continue; | ||
272 | + } | ||
273 | + | ||
274 | + // very special case for this one. since our selection mechanism doesn't work for images, | ||
275 | + // we must use GTK's clipboard utility functions | ||
276 | + if (!strcmp(flavorStr, kNativeImageMime) || !strcmp(flavorStr, kPNGImageMime) || | ||
277 | + !strcmp(flavorStr, kJPEGImageMime) || !strcmp(flavorStr, kGIFImageMime)) { | ||
278 | + nsCOMPtr<nsISupports> item; | ||
279 | + PRUint32 len; | ||
280 | + rv = aTransferable->GetTransferData(flavorStr, getter_AddRefs(item), &len); | ||
281 | + nsCOMPtr<nsISupportsInterfacePointer> ptrPrimitive(do_QueryInterface(item)); | ||
282 | + if (!ptrPrimitive) | ||
283 | + continue; | ||
284 | + | ||
285 | + nsCOMPtr<nsISupports> primitiveData; | ||
286 | + ptrPrimitive->GetData(getter_AddRefs(primitiveData)); | ||
287 | + nsCOMPtr<nsIImage> image(do_QueryInterface(primitiveData)); | ||
288 | + if (!image) // Not getting an image for an image mime type!? | ||
289 | + continue; | ||
290 | + | ||
291 | + if (NS_FAILED(image->LockImagePixels(PR_FALSE))) | ||
292 | + continue; | ||
293 | + GdkPixbuf* pixbuf = nsImageToPixbuf::ImageToPixbuf(image); | ||
294 | + if (!pixbuf) { | ||
295 | + image->UnlockImagePixels(PR_FALSE); | ||
296 | + continue; | ||
297 | + } | ||
298 | + | ||
299 | + GtkClipboard *aClipboard = gtk_clipboard_get(GetSelectionAtom(aWhichClipboard)); | ||
300 | + gtk_clipboard_set_image(aClipboard, pixbuf); | ||
301 | + g_object_unref(pixbuf); | ||
302 | + image->UnlockImagePixels(PR_FALSE); | ||
303 | + continue; | ||
304 | + } | ||
305 | + | ||
306 | + // Add this to our list of valid targets | ||
307 | + GdkAtom atom = gdk_atom_intern(flavorStr, FALSE); | ||
308 | + AddTarget(atom, selectionAtom); | ||
309 | + } | ||
310 | + } | ||
311 | + | ||
312 | + return NS_OK; | ||
313 | +} | ||
314 | + | ||
315 | +NS_IMETHODIMP | ||
316 | +nsClipboard::GetData(nsITransferable *aTransferable, PRInt32 aWhichClipboard) | ||
317 | +{ | ||
318 | + if (!aTransferable) | ||
319 | + return NS_ERROR_FAILURE; | ||
320 | + | ||
321 | + GtkClipboard *clipboard; | ||
322 | + clipboard = gtk_clipboard_get(GetSelectionAtom(aWhichClipboard)); | ||
323 | + | ||
324 | + guchar *data = NULL; | ||
325 | + gint length = 0; | ||
326 | + PRBool foundData = PR_FALSE; | ||
327 | + nsCAutoString foundFlavor; | ||
328 | + | ||
329 | + // Get a list of flavors this transferable can import | ||
330 | + nsCOMPtr<nsISupportsArray> flavors; | ||
331 | + nsresult rv; | ||
332 | + rv = aTransferable->FlavorsTransferableCanImport(getter_AddRefs(flavors)); | ||
333 | + if (!flavors || NS_FAILED(rv)) | ||
334 | + return NS_ERROR_FAILURE; | ||
335 | + | ||
336 | + PRUint32 count; | ||
337 | + flavors->Count(&count); | ||
338 | + for (PRUint32 i=0; i < count; i++) { | ||
339 | + nsCOMPtr<nsISupports> genericFlavor; | ||
340 | + flavors->GetElementAt(i, getter_AddRefs(genericFlavor)); | ||
341 | + | ||
342 | + nsCOMPtr<nsISupportsCString> currentFlavor; | ||
343 | + currentFlavor = do_QueryInterface(genericFlavor); | ||
344 | + | ||
345 | + if (currentFlavor) { | ||
346 | + nsXPIDLCString flavorStr; | ||
347 | + currentFlavor->ToString(getter_Copies(flavorStr)); | ||
348 | + | ||
349 | + // Special case text/unicode since we can convert any | ||
350 | + // string into text/unicode | ||
351 | + if (!strcmp(flavorStr, kUnicodeMime)) { | ||
352 | + gchar* new_text = wait_for_text(clipboard); | ||
353 | + if (new_text) { | ||
354 | + // Convert utf-8 into our unicode format. | ||
355 | + NS_ConvertUTF8toUTF16 ucs2string(new_text); | ||
356 | + data = (guchar *)ToNewUnicode(ucs2string); | ||
357 | + length = ucs2string.Length() * 2; | ||
358 | + g_free(new_text); | ||
359 | + foundData = PR_TRUE; | ||
360 | + foundFlavor = kUnicodeMime; | ||
361 | + break; | ||
362 | + } | ||
363 | + // If the type was text/unicode and we couldn't get | ||
364 | + // text off the clipboard, run the next loop | ||
365 | + // iteration. | ||
366 | + continue; | ||
367 | + } | ||
368 | + | ||
369 | + // For images, we must wrap the data in an nsIInputStream then return instead of break, | ||
370 | + // because that code below won't help us. | ||
371 | + if (!strcmp(flavorStr, kJPEGImageMime) || !strcmp(flavorStr, kPNGImageMime) || !strcmp(flavorStr, kGIFImageMime)) { | ||
372 | + GdkAtom atom; | ||
373 | + if (!strcmp(flavorStr, kJPEGImageMime)) // This is image/jpg, but X only understands image/jpeg | ||
374 | + atom = gdk_atom_intern("image/jpeg", FALSE); | ||
375 | + else | ||
376 | + atom = gdk_atom_intern(flavorStr, FALSE); | ||
377 | + | ||
378 | + GtkSelectionData *selectionData = wait_for_contents(clipboard, atom); | ||
379 | + if (!selectionData) | ||
380 | + continue; | ||
381 | + | ||
382 | + nsCOMPtr<nsIInputStream> byteStream; | ||
383 | + NS_NewByteInputStream(getter_AddRefs(byteStream), (const char*)selectionData->data, | ||
384 | + selectionData->length, NS_ASSIGNMENT_COPY); | ||
385 | + aTransferable->SetTransferData(flavorStr, byteStream, sizeof(nsIInputStream*)); | ||
386 | + gtk_selection_data_free(selectionData); | ||
387 | + return NS_OK; | ||
388 | + } | ||
389 | + | ||
390 | + // Get the atom for this type and try to request it off | ||
391 | + // the clipboard. | ||
392 | + GdkAtom atom = gdk_atom_intern(flavorStr, FALSE); | ||
393 | + GtkSelectionData *selectionData; | ||
394 | + selectionData = wait_for_contents(clipboard, atom); | ||
395 | + if (selectionData) { | ||
396 | + length = selectionData->length; | ||
397 | + // Special case text/html since we can convert into UCS2 | ||
398 | + if (!strcmp(flavorStr, kHTMLMime)) { | ||
399 | + PRUnichar* htmlBody= nsnull; | ||
400 | + PRInt32 htmlBodyLen = 0; | ||
401 | + // Convert text/html into our unicode format | ||
402 | + ConvertHTMLtoUCS2((guchar *)selectionData->data, length, | ||
403 | + &htmlBody, htmlBodyLen); | ||
404 | + if (!htmlBodyLen) | ||
405 | + break; | ||
406 | + data = (guchar *)htmlBody; | ||
407 | + length = htmlBodyLen * 2; | ||
408 | + } else { | ||
409 | + data = (guchar *)nsMemory::Alloc(length); | ||
410 | + if (!data) | ||
411 | + break; | ||
412 | + memcpy(data, selectionData->data, length); | ||
413 | + } | ||
414 | + foundData = PR_TRUE; | ||
415 | + foundFlavor = flavorStr; | ||
416 | + break; | ||
417 | + } | ||
418 | + } | ||
419 | + } | ||
420 | + | ||
421 | + if (foundData) { | ||
422 | + nsCOMPtr<nsISupports> wrapper; | ||
423 | + nsPrimitiveHelpers::CreatePrimitiveForData(foundFlavor.get(), | ||
424 | + data, length, | ||
425 | + getter_AddRefs(wrapper)); | ||
426 | + aTransferable->SetTransferData(foundFlavor.get(), | ||
427 | + wrapper, length); | ||
428 | + } | ||
429 | + | ||
430 | + if (data) | ||
431 | + nsMemory::Free(data); | ||
432 | + | ||
433 | + return NS_OK; | ||
434 | +} | ||
435 | + | ||
436 | +NS_IMETHODIMP | ||
437 | +nsClipboard::EmptyClipboard(PRInt32 aWhichClipboard) | ||
438 | +{ | ||
439 | + if (aWhichClipboard == kSelectionClipboard) { | ||
440 | + if (mSelectionOwner) { | ||
441 | + mSelectionOwner->LosingOwnership(mSelectionTransferable); | ||
442 | + mSelectionOwner = nsnull; | ||
443 | + } | ||
444 | + mSelectionTransferable = nsnull; | ||
445 | + } | ||
446 | + else { | ||
447 | + if (mGlobalOwner) { | ||
448 | + mGlobalOwner->LosingOwnership(mGlobalTransferable); | ||
449 | + mGlobalOwner = nsnull; | ||
450 | + } | ||
451 | + mGlobalTransferable = nsnull; | ||
452 | + } | ||
453 | + | ||
454 | + return NS_OK; | ||
455 | +} | ||
456 | + | ||
457 | +NS_IMETHODIMP | ||
458 | +nsClipboard::HasDataMatchingFlavors(const char** aFlavorList, PRUint32 aLength, | ||
459 | + PRInt32 aWhichClipboard, PRBool *_retval) | ||
460 | +{ | ||
461 | + if (!aFlavorList || !_retval) | ||
462 | + return NS_ERROR_NULL_POINTER; | ||
463 | + | ||
464 | + *_retval = PR_FALSE; | ||
465 | + | ||
466 | + GtkSelectionData *selection_data = | ||
467 | + GetTargets(GetSelectionAtom(aWhichClipboard)); | ||
468 | + if (!selection_data) | ||
469 | + return NS_OK; | ||
470 | + | ||
471 | + gint n_targets = 0; | ||
472 | + GdkAtom *targets = NULL; | ||
473 | + | ||
474 | + if (!gtk_selection_data_get_targets(selection_data, | ||
475 | + &targets, &n_targets) || | ||
476 | + !n_targets) | ||
477 | + return NS_OK; | ||
478 | + | ||
479 | + // Walk through the provided types and try to match it to a | ||
480 | + // provided type. | ||
481 | + for (PRUint32 i = 0; i < aLength && !*_retval; i++) { | ||
482 | + // We special case text/unicode here. | ||
483 | + if (!strcmp(aFlavorList[i], kUnicodeMime) && | ||
484 | + gtk_selection_data_targets_include_text(selection_data)) { | ||
485 | + *_retval = PR_TRUE; | ||
486 | + break; | ||
487 | + } | ||
488 | + | ||
489 | + for (PRInt32 j = 0; j < n_targets; j++) { | ||
490 | + gchar *atom_name = gdk_atom_name(targets[j]); | ||
491 | + if (!strcmp(atom_name, aFlavorList[i])) | ||
492 | + *_retval = PR_TRUE; | ||
493 | + | ||
494 | + // X clipboard wants image/jpeg, not image/jpg | ||
495 | + if (!strcmp(aFlavorList[i], kJPEGImageMime) && !strcmp(atom_name, "image/jpeg")) | ||
496 | + *_retval = PR_TRUE; | ||
497 | + | ||
498 | + g_free(atom_name); | ||
499 | + | ||
500 | + if (*_retval) | ||
501 | + break; | ||
502 | + } | ||
503 | + } | ||
504 | + gtk_selection_data_free(selection_data); | ||
505 | + g_free(targets); | ||
506 | + | ||
507 | + return NS_OK; | ||
508 | +} | ||
509 | + | ||
510 | +NS_IMETHODIMP | ||
511 | +nsClipboard::SupportsSelectionClipboard(PRBool *_retval) | ||
512 | +{ | ||
513 | + *_retval = PR_TRUE; // yeah, unix supports the selection clipboard | ||
514 | + return NS_OK; | ||
515 | +} | ||
516 | + | ||
517 | +/* static */ | ||
518 | +GdkAtom | ||
519 | +nsClipboard::GetSelectionAtom(PRInt32 aWhichClipboard) | ||
520 | +{ | ||
521 | + if (aWhichClipboard == kGlobalClipboard) | ||
522 | + return GDK_SELECTION_CLIPBOARD; | ||
523 | + | ||
524 | + return GDK_SELECTION_PRIMARY; | ||
525 | +} | ||
526 | + | ||
527 | +/* static */ | ||
528 | +GtkSelectionData * | ||
529 | +nsClipboard::GetTargets(GdkAtom aWhichClipboard) | ||
530 | +{ | ||
531 | + GtkClipboard *clipboard = gtk_clipboard_get(aWhichClipboard); | ||
532 | + return wait_for_contents(clipboard, gdk_atom_intern("TARGETS", FALSE)); | ||
533 | +} | ||
534 | + | ||
535 | +nsITransferable * | ||
536 | +nsClipboard::GetTransferable(PRInt32 aWhichClipboard) | ||
537 | +{ | ||
538 | + nsITransferable *retval; | ||
539 | + | ||
540 | + if (aWhichClipboard == kSelectionClipboard) | ||
541 | + retval = mSelectionTransferable.get(); | ||
542 | + else | ||
543 | + retval = mGlobalTransferable.get(); | ||
544 | + | ||
545 | + return retval; | ||
546 | +} | ||
547 | + | ||
548 | +void | ||
549 | +nsClipboard::AddTarget(GdkAtom aName, GdkAtom aClipboard) | ||
550 | +{ | ||
551 | + gtk_selection_add_target(mWidget, aClipboard, aName, 0); | ||
552 | +} | ||
553 | + | ||
554 | +void | ||
555 | +nsClipboard::SelectionGetEvent (GtkWidget *aWidget, | ||
556 | + GtkSelectionData *aSelectionData, | ||
557 | + guint aTime) | ||
558 | +{ | ||
559 | + // Someone has asked us to hand them something. The first thing | ||
560 | + // that we want to do is see if that something includes text. If | ||
561 | + // it does, try to give it text/unicode after converting it to | ||
562 | + // utf-8. | ||
563 | + | ||
564 | + PRInt32 whichClipboard; | ||
565 | + | ||
566 | + // which clipboard? | ||
567 | + if (aSelectionData->selection == GDK_SELECTION_PRIMARY) | ||
568 | + whichClipboard = kSelectionClipboard; | ||
569 | + else if (aSelectionData->selection == GDK_SELECTION_CLIPBOARD) | ||
570 | + whichClipboard = kGlobalClipboard; | ||
571 | + else | ||
572 | + return; // THAT AIN'T NO CLIPBOARD I EVER HEARD OF | ||
573 | + | ||
574 | + nsCOMPtr<nsITransferable> trans = GetTransferable(whichClipboard); | ||
575 | + | ||
576 | + nsresult rv; | ||
577 | + nsCOMPtr<nsISupports> item; | ||
578 | + PRUint32 len; | ||
579 | + | ||
580 | + // Check to see if the selection data includes any of the string | ||
581 | + // types that we support. | ||
582 | + if (aSelectionData->target == gdk_atom_intern ("STRING", FALSE) || | ||
583 | + aSelectionData->target == gdk_atom_intern ("TEXT", FALSE) || | ||
584 | + aSelectionData->target == gdk_atom_intern ("COMPOUND_TEXT", FALSE) || | ||
585 | + aSelectionData->target == gdk_atom_intern ("UTF8_STRING", FALSE)) { | ||
586 | + // Try to convert our internal type into a text string. Get | ||
587 | + // the transferable for this clipboard and try to get the | ||
588 | + // text/unicode type for it. | ||
589 | + rv = trans->GetTransferData("text/unicode", getter_AddRefs(item), | ||
590 | + &len); | ||
591 | + if (!item || NS_FAILED(rv)) | ||
592 | + return; | ||
593 | + | ||
594 | + nsCOMPtr<nsISupportsString> wideString; | ||
595 | + wideString = do_QueryInterface(item); | ||
596 | + if (!wideString) | ||
597 | + return; | ||
598 | + | ||
599 | + nsAutoString ucs2string; | ||
600 | + wideString->GetData(ucs2string); | ||
601 | + char *utf8string = ToNewUTF8String(ucs2string); | ||
602 | + if (!utf8string) | ||
603 | + return; | ||
604 | + | ||
605 | + gtk_selection_data_set_text (aSelectionData, utf8string, | ||
606 | + strlen(utf8string)); | ||
607 | + | ||
608 | + nsMemory::Free(utf8string); | ||
609 | + return; | ||
610 | + } | ||
611 | + | ||
612 | + // Try to match up the selection data target to something our | ||
613 | + // transferable provides. | ||
614 | + gchar *target_name = gdk_atom_name(aSelectionData->target); | ||
615 | + if (!target_name) | ||
616 | + return; | ||
617 | + | ||
618 | + rv = trans->GetTransferData(target_name, getter_AddRefs(item), &len); | ||
619 | + // nothing found? | ||
620 | + if (!item || NS_FAILED(rv)) { | ||
621 | + g_free(target_name); | ||
622 | + return; | ||
623 | + } | ||
624 | + | ||
625 | + void *primitive_data = nsnull; | ||
626 | + nsPrimitiveHelpers::CreateDataFromPrimitive(target_name, item, | ||
627 | + &primitive_data, len); | ||
628 | + | ||
629 | + if (primitive_data) { | ||
630 | + // Check to see if the selection data is text/html | ||
631 | + if (aSelectionData->target == gdk_atom_intern (kHTMLMime, FALSE)) { | ||
632 | + /* | ||
633 | + * "text/html" can be encoded UCS2. It is recommended that | ||
634 | + * documents transmitted as UCS2 always begin with a ZERO-WIDTH | ||
635 | + * NON-BREAKING SPACE character (hexadecimal FEFF, also called | ||
636 | + * Byte Order Mark (BOM)). Adding BOM can help other app to | ||
637 | + * detect mozilla use UCS2 encoding when copy-paste. | ||
638 | + */ | ||
639 | + guchar *buffer = (guchar *) | ||
640 | + nsMemory::Alloc((len * sizeof(guchar)) + sizeof(PRUnichar)); | ||
641 | + if (!buffer) | ||
642 | + return; | ||
643 | + PRUnichar prefix = 0xFEFF; | ||
644 | + memcpy(buffer, &prefix, sizeof(prefix)); | ||
645 | + memcpy(buffer + sizeof(prefix), primitive_data, len); | ||
646 | + nsMemory::Free((guchar *)primitive_data); | ||
647 | + primitive_data = (guchar *)buffer; | ||
648 | + len += sizeof(prefix); | ||
649 | + } | ||
650 | + | ||
651 | + gtk_selection_data_set(aSelectionData, aSelectionData->target, | ||
652 | + 8, /* 8 bits in a unit */ | ||
653 | + (const guchar *)primitive_data, len); | ||
654 | + nsMemory::Free(primitive_data); | ||
655 | + } | ||
656 | + | ||
657 | + g_free(target_name); | ||
658 | + | ||
659 | +} | ||
660 | + | ||
661 | +void | ||
662 | +nsClipboard::SelectionClearEvent (GtkWidget *aWidget, | ||
663 | + GdkEventSelection *aEvent) | ||
664 | +{ | ||
665 | + PRInt32 whichClipboard; | ||
666 | + | ||
667 | + // which clipboard? | ||
668 | + if (aEvent->selection == GDK_SELECTION_PRIMARY) | ||
669 | + whichClipboard = kSelectionClipboard; | ||
670 | + else if (aEvent->selection == GDK_SELECTION_CLIPBOARD) | ||
671 | + whichClipboard = kGlobalClipboard; | ||
672 | + else | ||
673 | + return; // THAT AIN'T NO CLIPBOARD I EVER HEARD OF | ||
674 | + | ||
675 | + EmptyClipboard(whichClipboard); | ||
676 | +} | ||
677 | + | ||
678 | +void | ||
679 | +invisible_selection_get_cb (GtkWidget *aWidget, | ||
680 | + GtkSelectionData *aSelectionData, | ||
681 | + guint aTime, | ||
682 | + guint aInfo, | ||
683 | + nsClipboard *aClipboard) | ||
684 | +{ | ||
685 | + aClipboard->SelectionGetEvent(aWidget, aSelectionData, aTime); | ||
686 | +} | ||
687 | + | ||
688 | +gboolean | ||
689 | +selection_clear_event_cb (GtkWidget *aWidget, | ||
690 | + GdkEventSelection *aEvent, | ||
691 | + nsClipboard *aClipboard) | ||
692 | +{ | ||
693 | + aClipboard->SelectionClearEvent(aWidget, aEvent); | ||
694 | + return TRUE; | ||
695 | +} | ||
696 | + | ||
697 | +/* | ||
698 | + * when copy-paste, mozilla wants data encoded using UCS2, | ||
699 | + * other app such as StarOffice use "text/html"(RFC2854). | ||
700 | + * This function convert data(got from GTK clipboard) | ||
701 | + * to data mozilla wanted. | ||
702 | + * | ||
703 | + * data from GTK clipboard can be 3 forms: | ||
704 | + * 1. From current mozilla | ||
705 | + * "text/html", charset = utf-16 | ||
706 | + * 2. From old version mozilla or mozilla-based app | ||
707 | + * content("body" only), charset = utf-16 | ||
708 | + * 3. From other app who use "text/html" when copy-paste | ||
709 | + * "text/html", has "charset" info | ||
710 | + * | ||
711 | + * data : got from GTK clipboard | ||
712 | + * dataLength: got from GTK clipboard | ||
713 | + * body : pass to Mozilla | ||
714 | + * bodyLength: pass to Mozilla | ||
715 | + */ | ||
716 | +void ConvertHTMLtoUCS2(guchar * data, PRInt32 dataLength, | ||
717 | + PRUnichar** unicodeData, PRInt32& outUnicodeLen) | ||
718 | +{ | ||
719 | + nsCAutoString charset; | ||
720 | + GetHTMLCharset(data, dataLength, charset);// get charset of HTML | ||
721 | + if (charset.EqualsLiteral("UTF-16")) {//current mozilla | ||
722 | + outUnicodeLen = (dataLength / 2) - 1; | ||
723 | + *unicodeData = reinterpret_cast<PRUnichar*> | ||
724 | + (nsMemory::Alloc((outUnicodeLen + sizeof('\0')) * | ||
725 | + sizeof(PRUnichar))); | ||
726 | + if (*unicodeData) { | ||
727 | + memcpy(*unicodeData, data + sizeof(PRUnichar), | ||
728 | + outUnicodeLen * sizeof(PRUnichar)); | ||
729 | + (*unicodeData)[outUnicodeLen] = '\0'; | ||
730 | + } | ||
731 | + } else if (charset.EqualsLiteral("UNKNOWN")) { | ||
732 | + outUnicodeLen = 0; | ||
733 | + return; | ||
734 | + } else { | ||
735 | + // app which use "text/html" to copy&paste | ||
736 | + nsCOMPtr<nsIUnicodeDecoder> decoder; | ||
737 | + nsresult rv; | ||
738 | + // get the decoder | ||
739 | + nsCOMPtr<nsICharsetConverterManager> ccm = | ||
740 | + do_GetService(NS_CHARSETCONVERTERMANAGER_CONTRACTID, &rv); | ||
741 | + if (NS_FAILED(rv)) { | ||
742 | +#ifdef DEBUG_CLIPBOARD | ||
743 | + g_print(" can't get CHARSET CONVERTER MANAGER service\n"); | ||
744 | +#endif | ||
745 | + outUnicodeLen = 0; | ||
746 | + return; | ||
747 | + } | ||
748 | + rv = ccm->GetUnicodeDecoder(charset.get(), getter_AddRefs(decoder)); | ||
749 | + if (NS_FAILED(rv)) { | ||
750 | +#ifdef DEBUG_CLIPBOARD | ||
751 | + g_print(" get unicode decoder error\n"); | ||
752 | +#endif | ||
753 | + outUnicodeLen = 0; | ||
754 | + return; | ||
755 | + } | ||
756 | + // converting | ||
757 | + decoder->GetMaxLength((const char *)data, dataLength, &outUnicodeLen); | ||
758 | + // |outUnicodeLen| is number of chars | ||
759 | + if (outUnicodeLen) { | ||
760 | + *unicodeData = reinterpret_cast<PRUnichar*> | ||
761 | + (nsMemory::Alloc((outUnicodeLen + sizeof('\0')) * | ||
762 | + sizeof(PRUnichar))); | ||
763 | + if (*unicodeData) { | ||
764 | + PRInt32 numberTmp = dataLength; | ||
765 | + decoder->Convert((const char *)data, &numberTmp, | ||
766 | + *unicodeData, &outUnicodeLen); | ||
767 | +#ifdef DEBUG_CLIPBOARD | ||
768 | + if (numberTmp != dataLength) | ||
769 | + printf("didn't consume all the bytes\n"); | ||
770 | +#endif | ||
771 | + // null terminate. Convert() doesn't do it for us | ||
772 | + (*unicodeData)[outUnicodeLen] = '\0'; | ||
773 | + } | ||
774 | + } // if valid length | ||
775 | + } | ||
776 | +} | ||
777 | + | ||
778 | +/* | ||
779 | + * get "charset" information from clipboard data | ||
780 | + * return value can be: | ||
781 | + * 1. "UTF-16": mozilla or "text/html" with "charset=utf-16" | ||
782 | + * 2. "UNKNOWN": mozilla can't detect what encode it use | ||
783 | + * 3. other: "text/html" with other charset than utf-16 | ||
784 | + */ | ||
785 | +void GetHTMLCharset(guchar * data, PRInt32 dataLength, nsCString& str) | ||
786 | +{ | ||
787 | + // if detect "FFFE" or "FEFF", assume UTF-16 | ||
788 | + PRUnichar* beginChar = (PRUnichar*)data; | ||
789 | + if ((beginChar[0] == 0xFFFE) || (beginChar[0] == 0xFEFF)) { | ||
790 | + str.AssignLiteral("UTF-16"); | ||
791 | + return; | ||
792 | + } | ||
793 | + // no "FFFE" and "FEFF", assume ASCII first to find "charset" info | ||
794 | + const nsDependentCString htmlStr((const char *)data, dataLength); | ||
795 | + nsACString::const_iterator start, end; | ||
796 | + htmlStr.BeginReading(start); | ||
797 | + htmlStr.EndReading(end); | ||
798 | + nsACString::const_iterator valueStart(start), valueEnd(start); | ||
799 | + | ||
800 | + if (CaseInsensitiveFindInReadable( | ||
801 | + NS_LITERAL_CSTRING("CONTENT=\"text/html;"), | ||
802 | + start, end)) { | ||
803 | + start = end; | ||
804 | + htmlStr.EndReading(end); | ||
805 | + | ||
806 | + if (CaseInsensitiveFindInReadable( | ||
807 | + NS_LITERAL_CSTRING("charset="), | ||
808 | + start, end)) { | ||
809 | + valueStart = end; | ||
810 | + start = end; | ||
811 | + htmlStr.EndReading(end); | ||
812 | + | ||
813 | + if (FindCharInReadable('"', start, end)) | ||
814 | + valueEnd = start; | ||
815 | + } | ||
816 | + } | ||
817 | + // find "charset" in HTML | ||
818 | + if (valueStart != valueEnd) { | ||
819 | + str = Substring(valueStart, valueEnd); | ||
820 | + ToUpperCase(str); | ||
821 | +#ifdef DEBUG_CLIPBOARD | ||
822 | + printf("Charset of HTML = %s\n", charsetUpperStr.get()); | ||
823 | +#endif | ||
824 | + return; | ||
825 | + } | ||
826 | + str.AssignLiteral("UNKNOWN"); | ||
827 | +} | ||
828 | + | ||
829 | +static void | ||
830 | +DispatchSelectionNotifyEvent(GtkWidget *widget, XEvent *xevent) | ||
831 | +{ | ||
832 | + GdkEvent event; | ||
833 | + event.selection.type = GDK_SELECTION_NOTIFY; | ||
834 | + event.selection.window = widget->window; | ||
835 | + event.selection.selection = gdk_x11_xatom_to_atom(xevent->xselection.selection); | ||
836 | + event.selection.target = gdk_x11_xatom_to_atom(xevent->xselection.target); | ||
837 | + event.selection.property = gdk_x11_xatom_to_atom(xevent->xselection.property); | ||
838 | + event.selection.time = xevent->xselection.time; | ||
839 | + | ||
840 | + gtk_widget_event(widget, &event); | ||
841 | +} | ||
842 | + | ||
843 | +static void | ||
844 | +DispatchPropertyNotifyEvent(GtkWidget *widget, XEvent *xevent) | ||
845 | +{ | ||
846 | + if (((GdkWindowObject *) widget->window)->event_mask & GDK_PROPERTY_CHANGE_MASK) { | ||
847 | + GdkEvent event; | ||
848 | + event.property.type = GDK_PROPERTY_NOTIFY; | ||
849 | + event.property.window = widget->window; | ||
850 | + event.property.atom = gdk_x11_xatom_to_atom(xevent->xproperty.atom); | ||
851 | + event.property.time = xevent->xproperty.time; | ||
852 | + event.property.state = xevent->xproperty.state; | ||
853 | + | ||
854 | + gtk_widget_event(widget, &event); | ||
855 | + } | ||
856 | +} | ||
857 | + | ||
858 | +struct checkEventContext | ||
859 | +{ | ||
860 | + GtkWidget *cbWidget; | ||
861 | + Atom selAtom; | ||
862 | +}; | ||
863 | + | ||
864 | +static Bool | ||
865 | +checkEventProc(Display *display, XEvent *event, XPointer arg) | ||
866 | +{ | ||
867 | + checkEventContext *context = (checkEventContext *) arg; | ||
868 | + | ||
869 | + if (event->xany.type == SelectionNotify || | ||
870 | + (event->xany.type == PropertyNotify && | ||
871 | + event->xproperty.atom == context->selAtom)) { | ||
872 | + | ||
873 | + GdkWindow *cbWindow = gdk_window_lookup(event->xany.window); | ||
874 | + if (cbWindow) { | ||
875 | + GtkWidget *cbWidget = NULL; | ||
876 | + gdk_window_get_user_data(cbWindow, (gpointer *)&cbWidget); | ||
877 | + if (cbWidget && GTK_IS_WIDGET(cbWidget)) { | ||
878 | + context->cbWidget = cbWidget; | ||
879 | + return True; | ||
880 | + } | ||
881 | + } | ||
882 | + } | ||
883 | + | ||
884 | + return False; | ||
885 | +} | ||
886 | + | ||
887 | +// Idle timeout for receiving selection and property notify events (microsec) | ||
888 | +static const int kClipboardTimeout = 500000; | ||
889 | + | ||
890 | +static void | ||
891 | +wait_for_retrieval(GtkClipboard *clipboard, retrieval_context *r_context) | ||
892 | +{ | ||
893 | + if (r_context->completed) // the request completed synchronously | ||
894 | + return; | ||
895 | + | ||
896 | + Display *xDisplay = GDK_DISPLAY(); | ||
897 | + checkEventContext context; | ||
898 | + context.cbWidget = NULL; | ||
899 | + context.selAtom = gdk_x11_atom_to_xatom(gdk_atom_intern("GDK_SELECTION", | ||
900 | + FALSE)); | ||
901 | + | ||
902 | + // Send X events which are relevant to the ongoing selection retrieval | ||
903 | + // to the clipboard widget. Wait until either the operation completes, or | ||
904 | + // we hit our timeout. All other X events remain queued. | ||
905 | + | ||
906 | + int select_result; | ||
907 | + | ||
908 | +#ifdef POLL_WITH_XCONNECTIONNUMBER | ||
909 | + struct pollfd fds[1]; | ||
910 | + fds[0].fd = XConnectionNumber(xDisplay); | ||
911 | + fds[0].events = POLLIN; | ||
912 | +#else | ||
913 | + int cnumber = ConnectionNumber(xDisplay); | ||
914 | + fd_set select_set; | ||
915 | + FD_ZERO(&select_set); | ||
916 | + FD_SET(cnumber, &select_set); | ||
917 | + ++cnumber; | ||
918 | + struct timeval tv; | ||
919 | +#endif | ||
920 | + | ||
921 | + do { | ||
922 | + XEvent xevent; | ||
923 | + | ||
924 | + while (XCheckIfEvent(xDisplay, &xevent, checkEventProc, | ||
925 | + (XPointer) &context)) { | ||
926 | + | ||
927 | + if (xevent.xany.type == SelectionNotify) | ||
928 | + DispatchSelectionNotifyEvent(context.cbWidget, &xevent); | ||
929 | + else | ||
930 | + DispatchPropertyNotifyEvent(context.cbWidget, &xevent); | ||
931 | + | ||
932 | + if (r_context->completed) | ||
933 | + return; | ||
934 | + } | ||
935 | + | ||
936 | +#ifdef POLL_WITH_XCONNECTIONNUMBER | ||
937 | + select_result = poll(fds, 1, kClipboardTimeout / 1000); | ||
938 | +#else | ||
939 | + tv.tv_sec = 0; | ||
940 | + tv.tv_usec = kClipboardTimeout; | ||
941 | + select_result = select(cnumber, &select_set, NULL, NULL, &tv); | ||
942 | +#endif | ||
943 | + } while (select_result == 1); | ||
944 | + | ||
945 | +#ifdef DEBUG_CLIPBOARD | ||
946 | + printf("exceeded clipboard timeout\n"); | ||
947 | +#endif | ||
948 | +} | ||
949 | + | ||
950 | +static void | ||
951 | +clipboard_contents_received(GtkClipboard *clipboard, | ||
952 | + GtkSelectionData *selection_data, | ||
953 | + gpointer data) | ||
954 | +{ | ||
955 | + retrieval_context *context = static_cast<retrieval_context *>(data); | ||
956 | + context->completed = PR_TRUE; | ||
957 | + | ||
958 | + if (selection_data->length >= 0) | ||
959 | + context->data = gtk_selection_data_copy(selection_data); | ||
960 | +} | ||
961 | + | ||
962 | + | ||
963 | +static GtkSelectionData * | ||
964 | +wait_for_contents(GtkClipboard *clipboard, GdkAtom target) | ||
965 | +{ | ||
966 | + retrieval_context context; | ||
967 | + gtk_clipboard_request_contents(clipboard, target, | ||
968 | + clipboard_contents_received, | ||
969 | + &context); | ||
970 | + | ||
971 | + wait_for_retrieval(clipboard, &context); | ||
972 | + return static_cast<GtkSelectionData *>(context.data); | ||
973 | +} | ||
974 | + | ||
975 | +static void | ||
976 | +clipboard_text_received(GtkClipboard *clipboard, | ||
977 | + const gchar *text, | ||
978 | + gpointer data) | ||
979 | +{ | ||
980 | + retrieval_context *context = static_cast<retrieval_context *>(data); | ||
981 | + context->completed = PR_TRUE; | ||
982 | + context->data = g_strdup(text); | ||
983 | +} | ||
984 | + | ||
985 | +static gchar * | ||
986 | +wait_for_text(GtkClipboard *clipboard) | ||
987 | +{ | ||
988 | + retrieval_context context; | ||
989 | + gtk_clipboard_request_text(clipboard, clipboard_text_received, &context); | ||
990 | + | ||
991 | + wait_for_retrieval(clipboard, &context); | ||
992 | + return static_cast<gchar *>(context.data); | ||
993 | +} | ||
994 | Index: offscreen/widget/src/headless/nsClipboard.h | ||
995 | =================================================================== | ||
996 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
997 | +++ offscreen/widget/src/headless/nsClipboard.h 2009-06-12 14:14:05.000000000 +0100 | ||
998 | @@ -0,0 +1,93 @@ | ||
999 | +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | ||
1000 | +/* vim:expandtab:shiftwidth=4:tabstop=4: | ||
1001 | + */ | ||
1002 | +/* ***** BEGIN LICENSE BLOCK ***** | ||
1003 | + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | ||
1004 | + * | ||
1005 | + * The contents of this file are subject to the Mozilla Public License Version | ||
1006 | + * 1.1 (the "License"); you may not use this file except in compliance with | ||
1007 | + * the License. You may obtain a copy of the License at | ||
1008 | + * http://www.mozilla.org/MPL/ | ||
1009 | + * | ||
1010 | + * Software distributed under the License is distributed on an "AS IS" basis, | ||
1011 | + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | ||
1012 | + * for the specific language governing rights and limitations under the | ||
1013 | + * License. | ||
1014 | + * | ||
1015 | + * The Original Code is mozilla.org code. | ||
1016 | + * | ||
1017 | + * The Initial Developer of the Original Code is Christopher Blizzard | ||
1018 | + * <blizzard@mozilla.org>. Portions created by the Initial Developer | ||
1019 | + * are Copyright (C) 2001 the Initial Developer. All Rights Reserved. | ||
1020 | + * | ||
1021 | + * Contributor(s): | ||
1022 | + * | ||
1023 | + * Alternatively, the contents of this file may be used under the terms of | ||
1024 | + * either the GNU General Public License Version 2 or later (the "GPL"), or | ||
1025 | + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | ||
1026 | + * in which case the provisions of the GPL or the LGPL are applicable instead | ||
1027 | + * of those above. If you wish to allow use of your version of this file only | ||
1028 | + * under the terms of either the GPL or the LGPL, and not to allow others to | ||
1029 | + * use your version of this file under the terms of the MPL, indicate your | ||
1030 | + * decision by deleting the provisions above and replace them with the notice | ||
1031 | + * and other provisions required by the GPL or the LGPL. If you do not delete | ||
1032 | + * the provisions above, a recipient may use your version of this file under | ||
1033 | + * the terms of any one of the MPL, the GPL or the LGPL. | ||
1034 | + * | ||
1035 | + * ***** END LICENSE BLOCK ***** */ | ||
1036 | + | ||
1037 | +#ifndef __nsClipboard_h_ | ||
1038 | +#define __nsClipboard_h_ | ||
1039 | + | ||
1040 | +#include "nsIClipboard.h" | ||
1041 | +#include "nsClipboardPrivacyHandler.h" | ||
1042 | +#include "nsAutoPtr.h" | ||
1043 | +#include <gtk/gtk.h> | ||
1044 | + | ||
1045 | +class nsClipboard : public nsIClipboard | ||
1046 | +{ | ||
1047 | +public: | ||
1048 | + nsClipboard(); | ||
1049 | + virtual ~nsClipboard(); | ||
1050 | + | ||
1051 | + NS_DECL_ISUPPORTS | ||
1052 | + | ||
1053 | + NS_DECL_NSICLIPBOARD | ||
1054 | + | ||
1055 | + // Make sure we are initialized, called from the factory | ||
1056 | + // constructor | ||
1057 | + nsresult Init (void); | ||
1058 | + // Someone requested the selection from the hidden widget | ||
1059 | + void SelectionGetEvent (GtkWidget *aWidget, | ||
1060 | + GtkSelectionData *aSelectionData, | ||
1061 | + guint aTime); | ||
1062 | + void SelectionClearEvent (GtkWidget *aWidget, | ||
1063 | + GdkEventSelection *aEvent); | ||
1064 | + | ||
1065 | + | ||
1066 | +private: | ||
1067 | + // Utility methods | ||
1068 | + static GdkAtom GetSelectionAtom (PRInt32 aWhichClipboard); | ||
1069 | + static GtkSelectionData *GetTargets (GdkAtom aWhichClipboard); | ||
1070 | + | ||
1071 | + // Get our hands on the correct transferable, given a specific | ||
1072 | + // clipboard | ||
1073 | + nsITransferable *GetTransferable (PRInt32 aWhichClipboard); | ||
1074 | + | ||
1075 | + // Add a target type to the hidden widget | ||
1076 | + void AddTarget (GdkAtom aName, | ||
1077 | + GdkAtom aClipboard); | ||
1078 | + | ||
1079 | + // The hidden widget where we do all of our operations | ||
1080 | + GtkWidget *mWidget; | ||
1081 | + // Hang on to our owners and transferables so we can transfer data | ||
1082 | + // when asked. | ||
1083 | + nsCOMPtr<nsIClipboardOwner> mSelectionOwner; | ||
1084 | + nsCOMPtr<nsIClipboardOwner> mGlobalOwner; | ||
1085 | + nsCOMPtr<nsITransferable> mSelectionTransferable; | ||
1086 | + nsCOMPtr<nsITransferable> mGlobalTransferable; | ||
1087 | + nsRefPtr<nsClipboardPrivacyHandler> mPrivacyHandler; | ||
1088 | + | ||
1089 | +}; | ||
1090 | + | ||
1091 | +#endif /* __nsClipboard_h_ */ | ||
1092 | Index: offscreen/widget/src/headless/nsIImageToPixbuf.h | ||
1093 | =================================================================== | ||
1094 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
1095 | +++ offscreen/widget/src/headless/nsIImageToPixbuf.h 2009-06-12 14:14:05.000000000 +0100 | ||
1096 | @@ -0,0 +1,62 @@ | ||
1097 | +/* ***** BEGIN LICENSE BLOCK ***** | ||
1098 | + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | ||
1099 | + * | ||
1100 | + * The contents of this file are subject to the Mozilla Public License Version | ||
1101 | + * 1.1 (the "License"); you may not use this file except in compliance with | ||
1102 | + * the License. You may obtain a copy of the License at | ||
1103 | + * http://www.mozilla.org/MPL/ | ||
1104 | + * | ||
1105 | + * Software distributed under the License is distributed on an "AS IS" basis, | ||
1106 | + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | ||
1107 | + * for the specific language governing rights and limitations under the | ||
1108 | + * License. | ||
1109 | + * | ||
1110 | + * The Original Code is mozilla.org widget code. | ||
1111 | + * | ||
1112 | + * The Initial Developer of the Original Code is | ||
1113 | + * Christian Biesinger <cbiesinger@web.de>. | ||
1114 | + * Portions created by the Initial Developer are Copyright (C) 2006 | ||
1115 | + * the Initial Developer. All Rights Reserved. | ||
1116 | + * | ||
1117 | + * Contributor(s): | ||
1118 | + * | ||
1119 | + * Alternatively, the contents of this file may be used under the terms of | ||
1120 | + * either the GNU General Public License Version 2 or later (the "GPL"), or | ||
1121 | + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | ||
1122 | + * in which case the provisions of the GPL or the LGPL are applicable instead | ||
1123 | + * of those above. If you wish to allow use of your version of this file only | ||
1124 | + * under the terms of either the GPL or the LGPL, and not to allow others to | ||
1125 | + * use your version of this file under the terms of the MPL, indicate your | ||
1126 | + * decision by deleting the provisions above and replace them with the notice | ||
1127 | + * and other provisions required by the GPL or the LGPL. If you do not delete | ||
1128 | + * the provisions above, a recipient may use your version of this file under | ||
1129 | + * the terms of any one of the MPL, the GPL or the LGPL. | ||
1130 | + * | ||
1131 | + * ***** END LICENSE BLOCK ***** */ | ||
1132 | + | ||
1133 | +#ifndef NSIIMAGETOPIXBUF_H_ | ||
1134 | +#define NSIIMAGETOPIXBUF_H_ | ||
1135 | + | ||
1136 | +#include "nsISupports.h" | ||
1137 | + | ||
1138 | +// dfa4ac93-83f2-4ab8-9b2a-0ff7022aebe2 | ||
1139 | +#define NSIIMAGETOPIXBUF_IID \ | ||
1140 | +{ 0xdfa4ac93, 0x83f2, 0x4ab8, \ | ||
1141 | + { 0x9b, 0x2a, 0x0f, 0xf7, 0x02, 0x2a, 0xeb, 0xe2 } } | ||
1142 | + | ||
1143 | +class nsIImage; | ||
1144 | +typedef struct _GdkPixbuf GdkPixbuf; | ||
1145 | + | ||
1146 | +/** | ||
1147 | + * An interface that allows converting an nsIImage to a GdkPixbuf*. | ||
1148 | + */ | ||
1149 | +class nsIImageToPixbuf : public nsISupports { | ||
1150 | + public: | ||
1151 | + NS_DECLARE_STATIC_IID_ACCESSOR(NSIIMAGETOPIXBUF_IID) | ||
1152 | + | ||
1153 | + NS_IMETHOD_(GdkPixbuf*) ConvertImageToPixbuf(nsIImage* aImage) = 0; | ||
1154 | +}; | ||
1155 | + | ||
1156 | +NS_DEFINE_STATIC_IID_ACCESSOR(nsIImageToPixbuf, NSIIMAGETOPIXBUF_IID) | ||
1157 | + | ||
1158 | +#endif | ||
1159 | Index: offscreen/widget/src/headless/nsImageToPixbuf.cpp | ||
1160 | =================================================================== | ||
1161 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
1162 | +++ offscreen/widget/src/headless/nsImageToPixbuf.cpp 2009-06-12 14:14:05.000000000 +0100 | ||
1163 | @@ -0,0 +1,196 @@ | ||
1164 | +/* vim:set sw=4 sts=4 et cin: */ | ||
1165 | +/* ***** BEGIN LICENSE BLOCK ***** | ||
1166 | + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | ||
1167 | + * | ||
1168 | + * The contents of this file are subject to the Mozilla Public License Version | ||
1169 | + * 1.1 (the "License"); you may not use this file except in compliance with | ||
1170 | + * the License. You may obtain a copy of the License at | ||
1171 | + * http://www.mozilla.org/MPL/ | ||
1172 | + * | ||
1173 | + * Software distributed under the License is distributed on an "AS IS" basis, | ||
1174 | + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | ||
1175 | + * for the specific language governing rights and limitations under the | ||
1176 | + * License. | ||
1177 | + * | ||
1178 | + * The Original Code is mozilla.org widget code. | ||
1179 | + * | ||
1180 | + * The Initial Developer of the Original Code is | ||
1181 | + * Christian Biesinger <cbiesinger@web.de>. | ||
1182 | + * Portions created by the Initial Developer are Copyright (C) 2006 | ||
1183 | + * the Initial Developer. All Rights Reserved. | ||
1184 | + * | ||
1185 | + * Contributor(s): | ||
1186 | + * | ||
1187 | + * Alternatively, the contents of this file may be used under the terms of | ||
1188 | + * either the GNU General Public License Version 2 or later (the "GPL"), or | ||
1189 | + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | ||
1190 | + * in which case the provisions of the GPL or the LGPL are applicable instead | ||
1191 | + * of those above. If you wish to allow use of your version of this file only | ||
1192 | + * under the terms of either the GPL or the LGPL, and not to allow others to | ||
1193 | + * use your version of this file under the terms of the MPL, indicate your | ||
1194 | + * decision by deleting the provisions above and replace them with the notice | ||
1195 | + * and other provisions required by the GPL or the LGPL. If you do not delete | ||
1196 | + * the provisions above, a recipient may use your version of this file under | ||
1197 | + * the terms of any one of the MPL, the GPL or the LGPL. | ||
1198 | + * | ||
1199 | + * ***** END LICENSE BLOCK ***** */ | ||
1200 | + | ||
1201 | +#include <gdk-pixbuf/gdk-pixbuf.h> | ||
1202 | + | ||
1203 | +#include "gfxASurface.h" | ||
1204 | +#include "gfxImageSurface.h" | ||
1205 | +#include "gfxContext.h" | ||
1206 | + | ||
1207 | +#include "nsIImage.h" | ||
1208 | + | ||
1209 | +#include "nsAutoPtr.h" | ||
1210 | + | ||
1211 | +#include "nsImageToPixbuf.h" | ||
1212 | + | ||
1213 | +NS_IMPL_ISUPPORTS1(nsImageToPixbuf, nsIImageToPixbuf) | ||
1214 | + | ||
1215 | +inline unsigned char | ||
1216 | +unpremultiply (unsigned char color, | ||
1217 | + unsigned char alpha) | ||
1218 | +{ | ||
1219 | + if (alpha == 0) | ||
1220 | + return 0; | ||
1221 | + // plus alpha/2 to round instead of truncate | ||
1222 | + return (color * 255 + alpha / 2) / alpha; | ||
1223 | +} | ||
1224 | + | ||
1225 | +NS_IMETHODIMP_(GdkPixbuf*) | ||
1226 | +nsImageToPixbuf::ConvertImageToPixbuf(nsIImage* aImage) | ||
1227 | +{ | ||
1228 | + return ImageToPixbuf(aImage); | ||
1229 | +} | ||
1230 | + | ||
1231 | +GdkPixbuf* | ||
1232 | +nsImageToPixbuf::ImageToPixbuf(nsIImage* aImage) | ||
1233 | +{ | ||
1234 | + PRInt32 width = aImage->GetWidth(), | ||
1235 | + height = aImage->GetHeight(); | ||
1236 | + | ||
1237 | + nsRefPtr<gfxPattern> pattern; | ||
1238 | + aImage->GetPattern(getter_AddRefs(pattern)); | ||
1239 | + | ||
1240 | + return PatternToPixbuf(pattern, width, height); | ||
1241 | +} | ||
1242 | + | ||
1243 | +GdkPixbuf* | ||
1244 | +nsImageToPixbuf::ImgSurfaceToPixbuf(gfxImageSurface* aImgSurface, PRInt32 aWidth, PRInt32 aHeight) | ||
1245 | +{ | ||
1246 | + GdkPixbuf* pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, PR_TRUE, 8, | ||
1247 | + aWidth, aHeight); | ||
1248 | + if (!pixbuf) | ||
1249 | + return nsnull; | ||
1250 | + | ||
1251 | + PRUint32 rowstride = gdk_pixbuf_get_rowstride (pixbuf); | ||
1252 | + guchar* pixels = gdk_pixbuf_get_pixels (pixbuf); | ||
1253 | + | ||
1254 | + long cairoStride = aImgSurface->Stride(); | ||
1255 | + unsigned char* cairoData = aImgSurface->Data(); | ||
1256 | + | ||
1257 | + gfxASurface::gfxImageFormat format = aImgSurface->Format(); | ||
1258 | + | ||
1259 | + for (PRInt32 row = 0; row < aHeight; ++row) { | ||
1260 | + for (PRInt32 col = 0; col < aWidth; ++col) { | ||
1261 | + guchar* pixel = pixels + row * rowstride + 4 * col; | ||
1262 | + | ||
1263 | + PRUint32* cairoPixel = reinterpret_cast<PRUint32*> | ||
1264 | + ((cairoData + row * cairoStride + 4 * col)); | ||
1265 | + | ||
1266 | + if (format == gfxASurface::ImageFormatARGB32) { | ||
1267 | + const PRUint8 a = (*cairoPixel >> 24) & 0xFF; | ||
1268 | + const PRUint8 r = unpremultiply((*cairoPixel >> 16) & 0xFF, a); | ||
1269 | + const PRUint8 g = unpremultiply((*cairoPixel >> 8) & 0xFF, a); | ||
1270 | + const PRUint8 b = unpremultiply((*cairoPixel >> 0) & 0xFF, a); | ||
1271 | + | ||
1272 | + *pixel++ = r; | ||
1273 | + *pixel++ = g; | ||
1274 | + *pixel++ = b; | ||
1275 | + *pixel++ = a; | ||
1276 | + } else { | ||
1277 | + NS_ASSERTION(format == gfxASurface::ImageFormatRGB24, | ||
1278 | + "unexpected format"); | ||
1279 | + const PRUint8 r = (*cairoPixel >> 16) & 0xFF; | ||
1280 | + const PRUint8 g = (*cairoPixel >> 8) & 0xFF; | ||
1281 | + const PRUint8 b = (*cairoPixel >> 0) & 0xFF; | ||
1282 | + | ||
1283 | + *pixel++ = r; | ||
1284 | + *pixel++ = g; | ||
1285 | + *pixel++ = b; | ||
1286 | + *pixel++ = 0xFF; // A | ||
1287 | + } | ||
1288 | + } | ||
1289 | + } | ||
1290 | + | ||
1291 | + return pixbuf; | ||
1292 | +} | ||
1293 | + | ||
1294 | +GdkPixbuf* | ||
1295 | +nsImageToPixbuf::SurfaceToPixbuf(gfxASurface* aSurface, PRInt32 aWidth, PRInt32 aHeight) | ||
1296 | +{ | ||
1297 | + if (aSurface->CairoStatus()) { | ||
1298 | + NS_ERROR("invalid surface"); | ||
1299 | + return nsnull; | ||
1300 | + } | ||
1301 | + | ||
1302 | + nsRefPtr<gfxImageSurface> imgSurface; | ||
1303 | + if (aSurface->GetType() == gfxASurface::SurfaceTypeImage) { | ||
1304 | + imgSurface = static_cast<gfxImageSurface*> | ||
1305 | + (static_cast<gfxASurface*>(aSurface)); | ||
1306 | + } else { | ||
1307 | + imgSurface = new gfxImageSurface(gfxIntSize(aWidth, aHeight), | ||
1308 | + gfxImageSurface::ImageFormatARGB32); | ||
1309 | + | ||
1310 | + if (!imgSurface) | ||
1311 | + return nsnull; | ||
1312 | + | ||
1313 | + nsRefPtr<gfxContext> context = new gfxContext(imgSurface); | ||
1314 | + if (!context) | ||
1315 | + return nsnull; | ||
1316 | + | ||
1317 | + context->SetOperator(gfxContext::OPERATOR_SOURCE); | ||
1318 | + context->SetSource(aSurface); | ||
1319 | + context->Paint(); | ||
1320 | + } | ||
1321 | + | ||
1322 | + return ImgSurfaceToPixbuf(imgSurface, aWidth, aHeight); | ||
1323 | +} | ||
1324 | + | ||
1325 | +GdkPixbuf* | ||
1326 | +nsImageToPixbuf::PatternToPixbuf(gfxPattern* aPattern, PRInt32 aWidth, PRInt32 aHeight) | ||
1327 | +{ | ||
1328 | + if (aPattern->CairoStatus()) { | ||
1329 | + NS_ERROR("invalid pattern"); | ||
1330 | + return nsnull; | ||
1331 | + } | ||
1332 | + | ||
1333 | + nsRefPtr<gfxImageSurface> imgSurface; | ||
1334 | + if (aPattern->GetType() == gfxPattern::PATTERN_SURFACE) { | ||
1335 | + nsRefPtr<gfxASurface> surface = aPattern->GetSurface(); | ||
1336 | + if (surface->GetType() == gfxASurface::SurfaceTypeImage) { | ||
1337 | + imgSurface = static_cast<gfxImageSurface*> | ||
1338 | + (static_cast<gfxASurface*>(surface.get())); | ||
1339 | + } | ||
1340 | + } | ||
1341 | + | ||
1342 | + if (!imgSurface) { | ||
1343 | + imgSurface = new gfxImageSurface(gfxIntSize(aWidth, aHeight), | ||
1344 | + gfxImageSurface::ImageFormatARGB32); | ||
1345 | + | ||
1346 | + if (!imgSurface) | ||
1347 | + return nsnull; | ||
1348 | + | ||
1349 | + nsRefPtr<gfxContext> context = new gfxContext(imgSurface); | ||
1350 | + if (!context) | ||
1351 | + return nsnull; | ||
1352 | + | ||
1353 | + context->SetOperator(gfxContext::OPERATOR_SOURCE); | ||
1354 | + context->SetPattern(aPattern); | ||
1355 | + context->Paint(); | ||
1356 | + } | ||
1357 | + | ||
1358 | + return ImgSurfaceToPixbuf(imgSurface, aWidth, aHeight); | ||
1359 | +} | ||
1360 | Index: offscreen/widget/src/headless/nsImageToPixbuf.h | ||
1361 | =================================================================== | ||
1362 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
1363 | +++ offscreen/widget/src/headless/nsImageToPixbuf.h 2009-06-12 14:14:05.000000000 +0100 | ||
1364 | @@ -0,0 +1,71 @@ | ||
1365 | +/* vim:set sw=4 sts=4 et cin: */ | ||
1366 | +/* ***** BEGIN LICENSE BLOCK ***** | ||
1367 | + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | ||
1368 | + * | ||
1369 | + * The contents of this file are subject to the Mozilla Public License Version | ||
1370 | + * 1.1 (the "License"); you may not use this file except in compliance with | ||
1371 | + * the License. You may obtain a copy of the License at | ||
1372 | + * http://www.mozilla.org/MPL/ | ||
1373 | + * | ||
1374 | + * Software distributed under the License is distributed on an "AS IS" basis, | ||
1375 | + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | ||
1376 | + * for the specific language governing rights and limitations under the | ||
1377 | + * License. | ||
1378 | + * | ||
1379 | + * The Original Code is mozilla.org widget code. | ||
1380 | + * | ||
1381 | + * The Initial Developer of the Original Code is | ||
1382 | + * Christian Biesinger <cbiesinger@web.de>. | ||
1383 | + * Portions created by the Initial Developer are Copyright (C) 2006 | ||
1384 | + * the Initial Developer. All Rights Reserved. | ||
1385 | + * | ||
1386 | + * Contributor(s): | ||
1387 | + * | ||
1388 | + * Alternatively, the contents of this file may be used under the terms of | ||
1389 | + * either the GNU General Public License Version 2 or later (the "GPL"), or | ||
1390 | + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | ||
1391 | + * in which case the provisions of the GPL or the LGPL are applicable instead | ||
1392 | + * of those above. If you wish to allow use of your version of this file only | ||
1393 | + * under the terms of either the GPL or the LGPL, and not to allow others to | ||
1394 | + * use your version of this file under the terms of the MPL, indicate your | ||
1395 | + * decision by deleting the provisions above and replace them with the notice | ||
1396 | + * and other provisions required by the GPL or the LGPL. If you do not delete | ||
1397 | + * the provisions above, a recipient may use your version of this file under | ||
1398 | + * the terms of any one of the MPL, the GPL or the LGPL. | ||
1399 | + * | ||
1400 | + * ***** END LICENSE BLOCK ***** */ | ||
1401 | + | ||
1402 | +#ifndef NSIMAGETOPIXBUF_H_ | ||
1403 | +#define NSIMAGETOPIXBUF_H_ | ||
1404 | + | ||
1405 | +#include "nsIImageToPixbuf.h" | ||
1406 | + | ||
1407 | +class gfxASurface; | ||
1408 | +class gfxPattern; | ||
1409 | +class gfxImageSurface; | ||
1410 | + | ||
1411 | +class nsImageToPixbuf : public nsIImageToPixbuf { | ||
1412 | + public: | ||
1413 | + NS_DECL_ISUPPORTS | ||
1414 | + NS_IMETHOD_(GdkPixbuf*) ConvertImageToPixbuf(nsIImage* aImage); | ||
1415 | + | ||
1416 | + // Friendlier version of ConvertImageToPixbuf for callers inside of | ||
1417 | + // widget | ||
1418 | + static GdkPixbuf* ImageToPixbuf(nsIImage* aImage); | ||
1419 | + static GdkPixbuf* SurfaceToPixbuf(gfxASurface* aSurface, | ||
1420 | + PRInt32 aWidth, PRInt32 aHeight); | ||
1421 | + static GdkPixbuf* PatternToPixbuf(gfxPattern* aPattern, | ||
1422 | + PRInt32 aWidth, PRInt32 aHeight); | ||
1423 | + private: | ||
1424 | + static GdkPixbuf* ImgSurfaceToPixbuf(gfxImageSurface* aImgSurface, | ||
1425 | + PRInt32 aWidth, PRInt32 aHeight); | ||
1426 | + ~nsImageToPixbuf() {} | ||
1427 | +}; | ||
1428 | + | ||
1429 | + | ||
1430 | +// fc2389b8-c650-4093-9e42-b05e5f0685b7 | ||
1431 | +#define NS_IMAGE_TO_PIXBUF_CID \ | ||
1432 | +{ 0xfc2389b8, 0xc650, 0x4093, \ | ||
1433 | + { 0x9e, 0x42, 0xb0, 0x5e, 0x5f, 0x06, 0x85, 0xb7 } } | ||
1434 | + | ||
1435 | +#endif | ||
1436 | Index: offscreen/widget/src/headless/nsWidgetFactory.cpp | ||
1437 | =================================================================== | ||
1438 | --- offscreen.orig/widget/src/headless/nsWidgetFactory.cpp 2009-06-12 14:08:56.000000000 +0100 | ||
1439 | +++ offscreen/widget/src/headless/nsWidgetFactory.cpp 2009-06-12 14:15:24.000000000 +0100 | ||
1440 | @@ -46,6 +46,10 @@ | ||
1441 | #include "nsWindow.h" | ||
1442 | #include "nsTransferable.h" | ||
1443 | #include "nsHTMLFormatConverter.h" | ||
1444 | +#ifdef MOZ_X11 | ||
1445 | +#include "nsClipboardHelper.h" | ||
1446 | +#include "nsClipboard.h" | ||
1447 | +#endif | ||
1448 | #include "nsSound.h" | ||
1449 | #include "nsBidiKeyboard.h" | ||
1450 | #include "nsScreenManagerHeadless.h" | ||
1451 | @@ -66,6 +70,10 @@ | ||
1452 | NS_GENERIC_FACTORY_CONSTRUCTOR(nsTransferable) | ||
1453 | NS_GENERIC_FACTORY_CONSTRUCTOR(nsBidiKeyboard) | ||
1454 | NS_GENERIC_FACTORY_CONSTRUCTOR(nsHTMLFormatConverter) | ||
1455 | +#ifdef MOZ_X11 | ||
1456 | +NS_GENERIC_FACTORY_CONSTRUCTOR(nsClipboardHelper) | ||
1457 | +NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsClipboard, Init) | ||
1458 | +#endif | ||
1459 | NS_GENERIC_FACTORY_CONSTRUCTOR(nsSound) | ||
1460 | NS_GENERIC_FACTORY_CONSTRUCTOR(nsScreenManagerHeadless) | ||
1461 | //NS_GENERIC_FACTORY_CONSTRUCTOR(nsImageToPixbuf) | ||
1462 | @@ -142,6 +150,16 @@ | ||
1463 | NS_TRANSFERABLE_CID, | ||
1464 | "@mozilla.org/widget/transferable;1", | ||
1465 | nsTransferableConstructor }, | ||
1466 | +#ifdef MOZ_X11 | ||
1467 | + { "Gtk Clipboard", | ||
1468 | + NS_CLIPBOARD_CID, | ||
1469 | + "@mozilla.org/widget/clipboard;1", | ||
1470 | + nsClipboardConstructor }, | ||
1471 | + { "Clipboard Helper", | ||
1472 | + NS_CLIPBOARDHELPER_CID, | ||
1473 | + "@mozilla.org/widget/clipboardhelper;1", | ||
1474 | + nsClipboardHelperConstructor }, | ||
1475 | +#endif | ||
1476 | { "HTML Format Converter", | ||
1477 | NS_HTMLFORMATCONVERTER_CID, | ||
1478 | "@mozilla.org/widget/htmlformatconverter;1", | ||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/autoconffix.patch b/meta-moblin/packages/mozilla-headless/mozilla-headless/autoconffix.patch deleted file mode 100644 index 2874b0d832..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/autoconffix.patch +++ /dev/null | |||
@@ -1,66 +0,0 @@ | |||
1 | Fixes to enable building with latest autoconf and automake | ||
2 | |||
3 | RP 2/2/10 | ||
4 | |||
5 | Index: offscreen/js/ctypes/libffi/configure.ac | ||
6 | =================================================================== | ||
7 | --- offscreen.orig/js/ctypes/libffi/configure.ac 2010-02-02 19:53:16.753906134 +0000 | ||
8 | +++ offscreen/js/ctypes/libffi/configure.ac 2010-02-02 19:53:21.895155509 +0000 | ||
9 | @@ -17,10 +17,10 @@ | ||
10 | # the wrong, non-multilib-adjusted value will be used in multilibs. | ||
11 | # As a side effect, we have to subst CFLAGS ourselves. | ||
12 | |||
13 | -m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS]) | ||
14 | +m4_rename_force([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS]) | ||
15 | m4_define([_AC_ARG_VAR_PRECIOUS],[]) | ||
16 | AC_PROG_CC | ||
17 | -m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS]) | ||
18 | +m4_rename_force([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS]) | ||
19 | |||
20 | AC_SUBST(CFLAGS) | ||
21 | |||
22 | Index: offscreen/modules/libpr0n/build/Makefile.in | ||
23 | =================================================================== | ||
24 | --- offscreen.orig/modules/libpr0n/build/Makefile.in 2010-02-02 19:53:16.783906873 +0000 | ||
25 | +++ offscreen/modules/libpr0n/build/Makefile.in 2010-02-02 19:53:21.895155509 +0000 | ||
26 | @@ -92,6 +92,7 @@ | ||
27 | |||
28 | export:: | ||
29 | @{ \ | ||
30 | + \ | ||
31 | $(foreach d,$(filter-out icon,$(MOZ_IMG_DECODERS)), \ | ||
32 | echo "#define IMG_BUILD_DECODER_${d}";) \ | ||
33 | $(foreach d,$(MOZ_IMG_ENCODERS), \ | ||
34 | Index: offscreen/configure.in | ||
35 | =================================================================== | ||
36 | --- offscreen.orig/configure.in 2010-02-02 19:53:28.493904163 +0000 | ||
37 | +++ offscreen/configure.in 2010-02-02 16:33:09.000000000 +0000 | ||
38 | @@ -3250,11 +3250,7 @@ | ||
39 | dnl ======================================================== | ||
40 | AC_CHECK_LIB(Xext, XShmCreateImage, _HAVE_XSHM_XEXT=1,, | ||
41 | $XLIBS $XEXT_LIBS) | ||
42 | - AC_CHECK_HEADER(X11/extensions/XShm.h) | ||
43 | - if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" && | ||
44 | - test -n "$_HAVE_XSHM_XEXT"; then | ||
45 | - AC_DEFINE(HAVE_XSHM) | ||
46 | - fi | ||
47 | + AC_DEFINE(HAVE_XSHM) | ||
48 | |||
49 | dnl ======================================================== | ||
50 | dnl = Check for XIE | ||
51 | @@ -8120,15 +8116,7 @@ | ||
52 | fi # COMPILE_ENVIRONMENT | ||
53 | |||
54 | if test "$USE_FC_FREETYPE"; then | ||
55 | - if test "$COMPILE_ENVIRONMENT"; then | ||
56 | - _SAVE_CPPFLAGS="$CPPFLAGS" | ||
57 | - CPPFLAGS="$CPPFLAGS $FT2_CFLAGS" | ||
58 | - AC_CHECK_HEADERS(fontconfig/fcfreetype.h, , | ||
59 | - [AC_MSG_ERROR(Can't find header fontconfig/fcfreetype.h.)]) | ||
60 | - CPPFLAGS="$_SAVE_CPPFLAGS" | ||
61 | - else | ||
62 | AC_DEFINE(HAVE_FONTCONFIG_FCFREETYPE_H) | ||
63 | - fi | ||
64 | fi | ||
65 | |||
66 | dnl Set various defines and substitutions | ||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/buildfixhack.patch b/meta-moblin/packages/mozilla-headless/mozilla-headless/buildfixhack.patch deleted file mode 100644 index 31fc40f28b..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/buildfixhack.patch +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | diff -r ad8be5166ccd layout/generic/nsFrame.h | ||
2 | --- a/layout/generic/nsFrame.h Tue Nov 17 19:24:56 2009 +0000 | ||
3 | +++ b/layout/generic/nsFrame.h Thu Nov 19 12:33:38 2009 +0000 | ||
4 | @@ -151,7 +151,7 @@ | ||
5 | // Left undefined; nsFrame objects are never allocated from the heap. | ||
6 | void* operator new(size_t sz) CPP_THROW_NEW; | ||
7 | |||
8 | -protected: | ||
9 | +public: | ||
10 | // Overridden to prevent the global delete from being called, since | ||
11 | // the memory came out of an arena instead of the heap. | ||
12 | // | ||
13 | |||
14 | |||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/configurefix-1a622cb7c384.patch b/meta-moblin/packages/mozilla-headless/mozilla-headless/configurefix-1a622cb7c384.patch deleted file mode 100644 index d31f91a42d..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/configurefix-1a622cb7c384.patch +++ /dev/null | |||
@@ -1,764 +0,0 @@ | |||
1 | Index: offscreen/configure.in | ||
2 | =================================================================== | ||
3 | --- offscreen.orig/configure.in 2009-06-12 14:15:55.000000000 +0100 | ||
4 | +++ offscreen/configure.in 2009-06-12 14:15:55.000000000 +0100 | ||
5 | @@ -62,7 +62,6 @@ | ||
6 | |||
7 | AC_PREREQ(2.13) | ||
8 | AC_INIT(config/config.mk) | ||
9 | -AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf) | ||
10 | AC_CANONICAL_SYSTEM | ||
11 | TARGET_CPU="${target_cpu}" | ||
12 | TARGET_VENDOR="${target_vendor}" | ||
13 | @@ -103,7 +102,6 @@ | ||
14 | _SUBDIR_HOST_CFLAGS="$HOST_CFLAGS" | ||
15 | _SUBDIR_HOST_CXXFLAGS="$HOST_CXXFLAGS" | ||
16 | _SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS" | ||
17 | -_SUBDIR_CONFIG_ARGS="$ac_configure_args" | ||
18 | |||
19 | dnl Set the version number of the libs included with mozilla | ||
20 | dnl ======================================================== | ||
21 | @@ -135,6 +133,9 @@ | ||
22 | |||
23 | MSMANIFEST_TOOL= | ||
24 | |||
25 | +ac_cv_have_usable_wchar_v2=no | ||
26 | +ac_cv_have_usable_wchar_option_v2=no | ||
27 | + | ||
28 | dnl Set various checks | ||
29 | dnl ======================================================== | ||
30 | MISSING_X= | ||
31 | @@ -285,7 +286,7 @@ | ||
32 | ;; | ||
33 | esac | ||
34 | |||
35 | -if test -n "$CROSS_COMPILE" && test "$target" != "$host"; then | ||
36 | + | ||
37 | echo "cross compiling from $host to $target" | ||
38 | cross_compiling=yes | ||
39 | |||
40 | @@ -323,7 +324,7 @@ | ||
41 | |||
42 | AC_MSG_CHECKING([whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works]) | ||
43 | AC_TRY_COMPILE([], [return(0);], | ||
44 | - [ac_cv_prog_hostcc_works=1 AC_MSG_RESULT([yes])], | ||
45 | + [ac_cv_prog_hostcc_works=1; AC_MSG_RESULT([yes])], | ||
46 | AC_MSG_ERROR([installation or configuration problem: host compiler $HOST_CC cannot create executables.]) ) | ||
47 | |||
48 | CC="$HOST_CXX" | ||
49 | @@ -331,7 +332,7 @@ | ||
50 | |||
51 | AC_MSG_CHECKING([whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works]) | ||
52 | AC_TRY_COMPILE([], [return(0);], | ||
53 | - [ac_cv_prog_hostcxx_works=1 AC_MSG_RESULT([yes])], | ||
54 | + [ac_cv_prog_hostcxx_works=1; AC_MSG_RESULT([yes])], | ||
55 | AC_MSG_ERROR([installation or configuration problem: host compiler $HOST_CXX cannot create executables.]) ) | ||
56 | |||
57 | CC=$_SAVE_CC | ||
58 | @@ -352,7 +353,7 @@ | ||
59 | ;; | ||
60 | esac | ||
61 | |||
62 | - AC_CHECK_PROGS(CC, $CC "${target_alias}-gcc" "${target}-gcc", :) | ||
63 | + CC="${target_alias}-gcc" | ||
64 | unset ac_cv_prog_CC | ||
65 | AC_PROG_CC | ||
66 | AC_CHECK_PROGS(CXX, $CXX "${target_alias}-g++" "${target}-g++", :) | ||
67 | @@ -376,37 +377,6 @@ | ||
68 | AC_CHECK_PROGS(STRIP, $STRIP "${target_alias}-strip" "${target}-strip", :) | ||
69 | AC_CHECK_PROGS(WINDRES, $WINDRES "${target_alias}-windres" "${target}-windres", :) | ||
70 | AC_DEFINE(CROSS_COMPILE) | ||
71 | -else | ||
72 | - AC_PROG_CC | ||
73 | - AC_PROG_CXX | ||
74 | - AC_PROG_RANLIB | ||
75 | - MOZ_PATH_PROGS(AS, $AS as, $CC) | ||
76 | - AC_CHECK_PROGS(AR, ar, :) | ||
77 | - AC_CHECK_PROGS(LD, ld, :) | ||
78 | - AC_CHECK_PROGS(STRIP, strip, :) | ||
79 | - AC_CHECK_PROGS(WINDRES, windres, :) | ||
80 | - if test -z "$HOST_CC"; then | ||
81 | - HOST_CC="$CC" | ||
82 | - fi | ||
83 | - if test -z "$HOST_CFLAGS"; then | ||
84 | - HOST_CFLAGS="$CFLAGS" | ||
85 | - fi | ||
86 | - if test -z "$HOST_CXX"; then | ||
87 | - HOST_CXX="$CXX" | ||
88 | - fi | ||
89 | - if test -z "$HOST_CXXFLAGS"; then | ||
90 | - HOST_CXXFLAGS="$CXXFLAGS" | ||
91 | - fi | ||
92 | - if test -z "$HOST_LDFLAGS"; then | ||
93 | - HOST_LDFLAGS="$LDFLAGS" | ||
94 | - fi | ||
95 | - if test -z "$HOST_RANLIB"; then | ||
96 | - HOST_RANLIB="$RANLIB" | ||
97 | - fi | ||
98 | - if test -z "$HOST_AR"; then | ||
99 | - HOST_AR="$AR" | ||
100 | - fi | ||
101 | -fi | ||
102 | |||
103 | GNU_AS= | ||
104 | GNU_LD= | ||
105 | @@ -1606,6 +1576,7 @@ | ||
106 | ' | ||
107 | |||
108 | dnl test that the macros actually work: | ||
109 | +ac_cv_static_assertion_macros_work="yes" | ||
110 | AC_MSG_CHECKING(that static assertion macros used in autoconf tests work) | ||
111 | AC_CACHE_VAL(ac_cv_static_assertion_macros_work, | ||
112 | [AC_LANG_SAVE | ||
113 | @@ -2767,9 +2738,13 @@ | ||
114 | AC_LANG_C | ||
115 | AC_HEADER_STDC | ||
116 | AC_C_CONST | ||
117 | +ac_cv_type_mode_t=yes | ||
118 | AC_TYPE_MODE_T | ||
119 | +ac_cv_type_off_t=yes | ||
120 | AC_TYPE_OFF_T | ||
121 | +ac_cv_type_pid_t=yes | ||
122 | AC_TYPE_PID_T | ||
123 | +ac_cv_type_size_t=yes | ||
124 | AC_TYPE_SIZE_T | ||
125 | AC_STRUCT_ST_BLKSIZE | ||
126 | AC_MSG_CHECKING(for siginfo_t) | ||
127 | @@ -3152,19 +3127,9 @@ | ||
128 | dnl We don't want to link against libm or libpthread on Darwin since | ||
129 | dnl they both are just symlinks to libSystem and explicitly linking | ||
130 | dnl against libSystem causes issues when debugging (see bug 299601). | ||
131 | -case $target in | ||
132 | -*-darwin*) | ||
133 | - ;; | ||
134 | -*-beos*) | ||
135 | - ;; | ||
136 | -*) | ||
137 | AC_CHECK_LIB(m, atan) | ||
138 | AC_CHECK_LIB(dl, dlopen, | ||
139 | - AC_CHECK_HEADER(dlfcn.h, | ||
140 | - LIBS="-ldl $LIBS" | ||
141 | - AC_DEFINE(HAVE_LIBDL))) | ||
142 | - ;; | ||
143 | -esac | ||
144 | + AC_DEFINE(HAVE_LIBDL)) | ||
145 | |||
146 | _SAVE_CFLAGS="$CFLAGS" | ||
147 | CFLAGS="$CFLAGS -D_GNU_SOURCE" | ||
148 | @@ -7007,18 +6972,13 @@ | ||
149 | |||
150 | # Demangle only for debug or trace-malloc builds | ||
151 | MOZ_DEMANGLE_SYMBOLS= | ||
152 | -if test "$HAVE_DEMANGLE" -a "$HAVE_GCC3_ABI" && test "$MOZ_DEBUG" -o "$NS_TRACE_MALLOC"; then | ||
153 | - MOZ_DEMANGLE_SYMBOLS=1 | ||
154 | - AC_DEFINE(MOZ_DEMANGLE_SYMBOLS) | ||
155 | -fi | ||
156 | + | ||
157 | AC_SUBST(MOZ_DEMANGLE_SYMBOLS) | ||
158 | |||
159 | dnl ======================================================== | ||
160 | dnl = Support for gcc stack unwinding (from gcc 3.3) | ||
161 | dnl ======================================================== | ||
162 | -if test "$HAVE_GCC3_ABI" && test -z "$SKIP_LIBRARY_CHECKS"; then | ||
163 | - AC_CHECK_HEADER(unwind.h, AC_CHECK_FUNCS(_Unwind_Backtrace)) | ||
164 | -fi | ||
165 | + | ||
166 | |||
167 | dnl ======================================================== | ||
168 | dnl = | ||
169 | @@ -7530,10 +7490,7 @@ | ||
170 | dnl if no gtk/libIDL1 or gtk2/libIDL2 combination was found, fall back | ||
171 | dnl to either libIDL1 or libIDL2. | ||
172 | if test -z "$_LIBIDL_FOUND"; then | ||
173 | - AM_PATH_LIBIDL($LIBIDL_VERSION,_LIBIDL_FOUND=1) | ||
174 | - if test -z "$_LIBIDL_FOUND"; then | ||
175 | PKG_CHECK_MODULES(LIBIDL, libIDL-2.0 >= 0.8.0,_LIBIDL_FOUND=1) | ||
176 | - fi | ||
177 | fi | ||
178 | dnl | ||
179 | dnl If we don't have a libIDL config program & not cross-compiling, | ||
180 | @@ -7605,13 +7562,7 @@ | ||
181 | fi | ||
182 | |||
183 | if test -z "$SKIP_PATH_CHECKS"; then | ||
184 | -if test -z "${GLIB_CFLAGS}" || test -z "${GLIB_LIBS}" ; then | ||
185 | - if test "$MOZ_ENABLE_GTK2" || test "$USE_ELF_DYNSTR_GC" || test "$MOZ_ENABLE_HEADLESS"; then | ||
186 | PKG_CHECK_MODULES(GLIB, glib-2.0 >= 1.3.7 gobject-2.0) | ||
187 | - else | ||
188 | - AM_PATH_GLIB(${GLIB_VERSION}) | ||
189 | - fi | ||
190 | -fi | ||
191 | fi | ||
192 | |||
193 | if test -z "${GLIB_GMODULE_LIBS}" -a -n "${GLIB_CONFIG}"; then | ||
194 | @@ -8457,10 +8408,7 @@ | ||
195 | HAVE_WCRTOMB | ||
196 | " | ||
197 | |||
198 | -AC_CONFIG_HEADER( | ||
199 | -netwerk/necko-config.h | ||
200 | -xpcom/xpcom-config.h | ||
201 | -xpcom/xpcom-private.h | ||
202 | +AC_CONFIG_HEADER(netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h | ||
203 | ) | ||
204 | |||
205 | # Save the defines header file before autoconf removes it. | ||
206 | @@ -8519,31 +8467,11 @@ | ||
207 | dnl To add new Makefiles, edit allmakefiles.sh. | ||
208 | dnl allmakefiles.sh sets the variable, MAKEFILES. | ||
209 | . ${srcdir}/allmakefiles.sh | ||
210 | -dnl | ||
211 | -dnl Run a perl script to quickly create the makefiles. | ||
212 | -dnl If it succeeds, it outputs a shell command to set CONFIG_FILES | ||
213 | -dnl for the files it cannot handle correctly. This way, config.status | ||
214 | -dnl will handle these files. | ||
215 | -dnl If it fails, nothing is set and config.status will run as usual. | ||
216 | -dnl | ||
217 | -dnl This does not change the $MAKEFILES variable. | ||
218 | -dnl | ||
219 | -dnl OpenVMS gets a line overflow on the long eval command, so use a temp file. | ||
220 | -dnl | ||
221 | -if test -z "${AS_PERL}"; then | ||
222 | -echo $MAKEFILES | ${PERL} $srcdir/build/autoconf/acoutput-fast.pl > conftest.sh | ||
223 | -else | ||
224 | -echo $MAKEFILES | ${PERL} $srcdir/build/autoconf/acoutput-fast.pl -nowrap --cygwin-srcdir=$srcdir > conftest.sh | ||
225 | -fi | ||
226 | -. ./conftest.sh | ||
227 | -rm conftest.sh | ||
228 | |||
229 | echo $MAKEFILES > unallmakefiles | ||
230 | |||
231 | mv -f config/autoconf.mk config/autoconf.mk.orig 2> /dev/null | ||
232 | |||
233 | -AC_OUTPUT($MAKEFILES) | ||
234 | - | ||
235 | dnl Prevent the regeneration of cairo-features.h forcing rebuilds of gfx stuff | ||
236 | if test "$CAIRO_FEATURES_H"; then | ||
237 | if cmp -s $CAIRO_FEATURES_H "$CAIRO_FEATURES_H".orig; then | ||
238 | @@ -8569,14 +8497,14 @@ | ||
239 | HOST_LDFLAGS="$_SUBDIR_HOST_LDFLAGS" | ||
240 | RC= | ||
241 | |||
242 | -unset MAKEFILES | ||
243 | -unset CONFIG_FILES | ||
244 | +#unset MAKEFILES | ||
245 | +#unset CONFIG_FILES | ||
246 | |||
247 | # No need to run subconfigures when building with LIBXUL_SDK_DIR | ||
248 | if test "$COMPILE_ENVIRONMENT" -a -z "$LIBXUL_SDK_DIR"; then | ||
249 | |||
250 | if test -z "$MOZ_NATIVE_NSPR"; then | ||
251 | - ac_configure_args="$_SUBDIR_CONFIG_ARGS --with-dist-prefix=$MOZ_BUILD_ROOT/dist --with-mozilla" | ||
252 | + ac_configure_args="$ac_configure_args --with-dist-prefix=$MOZ_BUILD_ROOT/dist --with-mozilla" | ||
253 | if test -z "$MOZ_DEBUG"; then | ||
254 | ac_configure_args="$ac_configure_args --disable-debug" | ||
255 | fi | ||
256 | @@ -8592,8 +8520,7 @@ | ||
257 | if test -n "$USE_ARM_KUSER"; then | ||
258 | ac_configure_args="$ac_configure_args --with-arm-kuser" | ||
259 | fi | ||
260 | - AC_OUTPUT_SUBDIRS(nsprpub) | ||
261 | - ac_configure_args="$_SUBDIR_CONFIG_ARGS" | ||
262 | + AC_CONFIG_SUBDIRS(nsprpub) | ||
263 | fi | ||
264 | |||
265 | if test -z "$MOZ_NATIVE_NSPR"; then | ||
266 | @@ -8610,7 +8537,6 @@ | ||
267 | |||
268 | # Run the SpiderMonkey 'configure' script. | ||
269 | dist=$MOZ_BUILD_ROOT/dist | ||
270 | -ac_configure_args="$_SUBDIR_CONFIG_ARGS" | ||
271 | ac_configure_args="$ac_configure_args --enable-threadsafe" | ||
272 | if test -z "$MOZ_NATIVE_NSPR"; then | ||
273 | ac_configure_args="$ac_configure_args --with-nspr-cflags='$NSPR_CFLAGS'" | ||
274 | @@ -8627,11 +8553,14 @@ | ||
275 | export MOZ_MEMORY_LDFLAGS | ||
276 | fi | ||
277 | fi | ||
278 | -AC_OUTPUT_SUBDIRS(js/src) | ||
279 | -ac_configure_args="$_SUBDIR_CONFIG_ARGS" | ||
280 | +AC_CONFIG_SUBDIRS(js/src) | ||
281 | |||
282 | fi # COMPILE_ENVIRONMENT && !LIBXUL_SDK_DIR | ||
283 | |||
284 | +m4_pattern_allow(AS_BIN) | ||
285 | + | ||
286 | +AC_OUTPUT($MAKEFILES) | ||
287 | + | ||
288 | dnl Prevent the regeneration of autoconf.mk forcing rebuilds of the world | ||
289 | dnl Needs to be at the end to respect possible changes from NSPR configure | ||
290 | if cmp -s config/autoconf.mk config/autoconf.mk.orig; then | ||
291 | Index: offscreen/js/src/configure.in | ||
292 | =================================================================== | ||
293 | --- offscreen.orig/js/src/configure.in 2009-06-12 14:15:55.000000000 +0100 | ||
294 | +++ offscreen/js/src/configure.in 2009-06-12 14:15:55.000000000 +0100 | ||
295 | @@ -62,7 +62,6 @@ | ||
296 | |||
297 | AC_PREREQ(2.13) | ||
298 | AC_INIT(jsapi.h) | ||
299 | -AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf) | ||
300 | AC_CONFIG_HEADER(js-config.h) | ||
301 | AC_CANONICAL_SYSTEM | ||
302 | TARGET_CPU="${target_cpu}" | ||
303 | @@ -101,6 +100,9 @@ | ||
304 | _SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS" | ||
305 | _SUBDIR_CONFIG_ARGS="$ac_configure_args" | ||
306 | |||
307 | +ac_cv_have_usable_wchar_v2=no | ||
308 | +ac_cv_have_usable_wchar_option_v2=no | ||
309 | + | ||
310 | dnl Set the version number of the libs included with mozilla | ||
311 | dnl ======================================================== | ||
312 | NSPR_VERSION=4 | ||
313 | @@ -113,6 +115,8 @@ | ||
314 | |||
315 | MSMANIFEST_TOOL= | ||
316 | |||
317 | +m4_pattern_allow(AS_BIN) | ||
318 | + | ||
319 | dnl Set various checks | ||
320 | dnl ======================================================== | ||
321 | MISSING_X= | ||
322 | @@ -198,7 +202,7 @@ | ||
323 | |||
324 | if test "$COMPILE_ENVIRONMENT"; then | ||
325 | |||
326 | -if test "$target" != "$host"; then | ||
327 | + | ||
328 | echo "cross compiling from $host to $target" | ||
329 | |||
330 | _SAVE_CC="$CC" | ||
331 | @@ -235,7 +239,7 @@ | ||
332 | |||
333 | AC_MSG_CHECKING([whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works]) | ||
334 | AC_TRY_COMPILE([], [return(0);], | ||
335 | - [ac_cv_prog_hostcc_works=1 AC_MSG_RESULT([yes])], | ||
336 | + [ac_cv_prog_hostcc_works=1; AC_MSG_RESULT([yes])], | ||
337 | AC_MSG_ERROR([installation or configuration problem: host compiler $HOST_CC cannot create executables.]) ) | ||
338 | |||
339 | CC="$HOST_CXX" | ||
340 | @@ -243,7 +247,7 @@ | ||
341 | |||
342 | AC_MSG_CHECKING([whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works]) | ||
343 | AC_TRY_COMPILE([], [return(0);], | ||
344 | - [ac_cv_prog_hostcxx_works=1 AC_MSG_RESULT([yes])], | ||
345 | + [ac_cv_prog_hostcxx_works=1; AC_MSG_RESULT([yes])], | ||
346 | AC_MSG_ERROR([installation or configuration problem: host compiler $HOST_CXX cannot create executables.]) ) | ||
347 | |||
348 | CC=$_SAVE_CC | ||
349 | @@ -298,7 +302,7 @@ | ||
350 | ;; | ||
351 | esac | ||
352 | |||
353 | - AC_CHECK_PROGS(CC, $CC "${target_alias}-gcc" "${target}-gcc", :) | ||
354 | + CC="${target_alias}-gcc" | ||
355 | unset ac_cv_prog_CC | ||
356 | AC_PROG_CC | ||
357 | AC_CHECK_PROGS(CXX, $CXX "${target_alias}-g++" "${target}-g++", :) | ||
358 | @@ -328,37 +332,6 @@ | ||
359 | dnl able to run ppc code in a translated environment, making a cross | ||
360 | dnl compiler appear native. So we override that here. | ||
361 | cross_compiling=yes | ||
362 | -else | ||
363 | - AC_PROG_CC | ||
364 | - AC_PROG_CXX | ||
365 | - AC_PROG_RANLIB | ||
366 | - MOZ_PATH_PROGS(AS, $AS as, $CC) | ||
367 | - AC_CHECK_PROGS(AR, ar, :) | ||
368 | - AC_CHECK_PROGS(LD, ld, :) | ||
369 | - AC_CHECK_PROGS(STRIP, strip, :) | ||
370 | - AC_CHECK_PROGS(WINDRES, windres, :) | ||
371 | - if test -z "$HOST_CC"; then | ||
372 | - HOST_CC="$CC" | ||
373 | - fi | ||
374 | - if test -z "$HOST_CFLAGS"; then | ||
375 | - HOST_CFLAGS="$CFLAGS" | ||
376 | - fi | ||
377 | - if test -z "$HOST_CXX"; then | ||
378 | - HOST_CXX="$CXX" | ||
379 | - fi | ||
380 | - if test -z "$HOST_CXXFLAGS"; then | ||
381 | - HOST_CXXFLAGS="$CXXFLAGS" | ||
382 | - fi | ||
383 | - if test -z "$HOST_LDFLAGS"; then | ||
384 | - HOST_LDFLAGS="$LDFLAGS" | ||
385 | - fi | ||
386 | - if test -z "$HOST_RANLIB"; then | ||
387 | - HOST_RANLIB="$RANLIB" | ||
388 | - fi | ||
389 | - if test -z "$HOST_AR"; then | ||
390 | - HOST_AR="$AR" | ||
391 | - fi | ||
392 | -fi | ||
393 | |||
394 | GNU_AS= | ||
395 | GNU_LD= | ||
396 | @@ -1424,6 +1397,8 @@ | ||
397 | fi # GNU_CC | ||
398 | fi # COMPILE_ENVIRONMENT | ||
399 | |||
400 | +ac_cv_static_assertion_macros_work=yes | ||
401 | + | ||
402 | dnl ================================================================= | ||
403 | dnl Set up and test static assertion macros used to avoid AC_TRY_RUN, | ||
404 | dnl which is bad when cross compiling. | ||
405 | @@ -2579,9 +2554,13 @@ | ||
406 | AC_LANG_C | ||
407 | AC_HEADER_STDC | ||
408 | AC_C_CONST | ||
409 | +ac_cv_type_mode_t=yes | ||
410 | AC_TYPE_MODE_T | ||
411 | +ac_cv_type_off_t=yes | ||
412 | AC_TYPE_OFF_T | ||
413 | +ac_cv_type_pid_t=yes | ||
414 | AC_TYPE_PID_T | ||
415 | +ac_cv_type_size_t=yes | ||
416 | AC_TYPE_SIZE_T | ||
417 | AC_STRUCT_ST_BLKSIZE | ||
418 | AC_MSG_CHECKING(for siginfo_t) | ||
419 | @@ -2606,7 +2585,8 @@ | ||
420 | |||
421 | AC_CHECK_HEADER(stdint.h) | ||
422 | if test "$ac_cv_header_stdint_h" = yes; then | ||
423 | - AC_DEFINE(JS_HAVE_STDINT_H) | ||
424 | + AC_DEFINE(JS_HAVE_STDINT_H, 1, [have stdint.h]) | ||
425 | + AC_DEFINE(HAVE_STDINT_H) | ||
426 | else | ||
427 | dnl We'll figure them out for ourselves. List more likely types | ||
428 | dnl earlier. If we ever really encounter a size for which none of | ||
429 | @@ -3004,10 +2984,7 @@ | ||
430 | ;; | ||
431 | *) | ||
432 | AC_CHECK_LIB(m, atan) | ||
433 | - AC_CHECK_LIB(dl, dlopen, | ||
434 | - AC_CHECK_HEADER(dlfcn.h, | ||
435 | - LIBS="-ldl $LIBS" | ||
436 | - AC_DEFINE(HAVE_LIBDL))) | ||
437 | + AC_CHECK_LIB(dl, dlopen, AC_DEFINE(HAVE_LIBDL)) | ||
438 | ;; | ||
439 | esac | ||
440 | |||
441 | @@ -3903,6 +3880,7 @@ | ||
442 | [ --with-nspr-libs=LIBS Pass LIBS to LD when linking code that uses NSPR. | ||
443 | See --with-nspr-cflags for more details.], | ||
444 | NSPR_LIBS=$withval) | ||
445 | +$NSPR_LIBS="$NSPR_LIBS -L$(LIBXUL_DIST)/sdk/lib" | ||
446 | AC_SUBST(NSPR_CFLAGS) | ||
447 | AC_SUBST(NSPR_LIBS) | ||
448 | |||
449 | @@ -4512,18 +4490,11 @@ | ||
450 | |||
451 | # Demangle only for debug or trace-malloc builds | ||
452 | MOZ_DEMANGLE_SYMBOLS= | ||
453 | -if test "$HAVE_DEMANGLE" -a "$HAVE_GCC3_ABI" && test "$MOZ_DEBUG" -o "$NS_TRACE_MALLOC"; then | ||
454 | - MOZ_DEMANGLE_SYMBOLS=1 | ||
455 | - AC_DEFINE(MOZ_DEMANGLE_SYMBOLS) | ||
456 | -fi | ||
457 | AC_SUBST(MOZ_DEMANGLE_SYMBOLS) | ||
458 | |||
459 | dnl ======================================================== | ||
460 | dnl = Support for gcc stack unwinding (from gcc 3.3) | ||
461 | dnl ======================================================== | ||
462 | -if test "$HAVE_GCC3_ABI" && test -z "$SKIP_LIBRARY_CHECKS"; then | ||
463 | - AC_CHECK_HEADER(unwind.h, AC_CHECK_FUNCS(_Unwind_Backtrace)) | ||
464 | -fi | ||
465 | |||
466 | dnl ======================================================== | ||
467 | dnl = | ||
468 | @@ -5231,6 +5202,8 @@ | ||
469 | done | ||
470 | AC_SUBST(LIBS_PATH) | ||
471 | |||
472 | + | ||
473 | + | ||
474 | dnl ======================================================== | ||
475 | dnl JavaScript shell | ||
476 | dnl ======================================================== | ||
477 | @@ -5371,3 +5344,4 @@ | ||
478 | # 'js-config' in Makefile.in. | ||
479 | AC_MSG_RESULT(invoking make to create js-config script) | ||
480 | $MAKE js-config | ||
481 | + | ||
482 | Index: offscreen/nsprpub/configure.in | ||
483 | =================================================================== | ||
484 | --- offscreen.orig/nsprpub/configure.in 2009-06-12 14:15:55.000000000 +0100 | ||
485 | +++ offscreen/nsprpub/configure.in 2009-06-12 14:15:55.000000000 +0100 | ||
486 | @@ -42,7 +42,6 @@ | ||
487 | AC_PREREQ(2.12) | ||
488 | AC_INIT(config/libc_r.h) | ||
489 | |||
490 | -AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf) | ||
491 | AC_CANONICAL_SYSTEM | ||
492 | |||
493 | dnl ======================================================== | ||
494 | @@ -396,7 +395,7 @@ | ||
495 | dnl ======================================================== | ||
496 | dnl Checks for compilers. | ||
497 | dnl ======================================================== | ||
498 | -if test "$target" != "$host"; then | ||
499 | + | ||
500 | echo "cross compiling from $host to $target" | ||
501 | cross_compiling=yes | ||
502 | |||
503 | @@ -423,7 +422,7 @@ | ||
504 | |||
505 | AC_MSG_CHECKING([whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works]) | ||
506 | AC_TRY_COMPILE([], [return(0);], | ||
507 | - [ac_cv_prog_host_cc_works=1 AC_MSG_RESULT([yes])], | ||
508 | + [ac_cv_prog_host_cc_works=1; AC_MSG_RESULT([yes])], | ||
509 | AC_MSG_ERROR([installation or configuration problem: $host compiler $HOST_CC cannot create executables.]) ) | ||
510 | |||
511 | CC=$_SAVE_CC | ||
512 | @@ -444,7 +443,7 @@ | ||
513 | ;; | ||
514 | esac | ||
515 | |||
516 | - AC_CHECK_PROGS(CC, $CC "${target_alias}-gcc" "${target}-gcc", echo) | ||
517 | + CC="${target_alias}-gcc" | ||
518 | unset ac_cv_prog_CC | ||
519 | AC_PROG_CC | ||
520 | if test -n "$USE_CPLUS"; then | ||
521 | @@ -470,30 +469,6 @@ | ||
522 | AC_CHECK_PROGS(STRIP, $STRIP "${target_alias}-strip" "${target}-strip", echo) | ||
523 | AC_CHECK_PROGS(WINDRES, $WINDRES "${target_alias}-windres" "${target}-windres", echo) | ||
524 | |||
525 | -else | ||
526 | - AC_PROG_CC | ||
527 | - if test -n "$USE_CPLUS"; then | ||
528 | - if test "$CC" = "cl" -a -z "$CXX"; then | ||
529 | - CXX=$CC | ||
530 | - else | ||
531 | - AC_PROG_CXX | ||
532 | - fi | ||
533 | - fi | ||
534 | - AC_PROG_CPP | ||
535 | - AC_PROG_RANLIB | ||
536 | - AC_PATH_PROGS(AS, as, $CC) | ||
537 | - AC_PATH_PROGS(AR, ar, echo not_ar) | ||
538 | - AC_PATH_PROGS(LD, ld link, echo not_ld) | ||
539 | - AC_PATH_PROGS(STRIP, strip, echo not_strip) | ||
540 | - AC_PATH_PROGS(WINDRES, windres, echo not_windres) | ||
541 | - if test -z "$HOST_CC"; then | ||
542 | - HOST_CC="$CC" | ||
543 | - fi | ||
544 | - if test -z "$HOST_CFLAGS"; then | ||
545 | - HOST_CFLAGS="$CFLAGS" | ||
546 | - fi | ||
547 | -fi | ||
548 | - | ||
549 | if test "$GCC" = "yes"; then | ||
550 | GNU_CC=1 | ||
551 | fi | ||
552 | @@ -514,11 +489,8 @@ | ||
553 | ;; | ||
554 | esac | ||
555 | |||
556 | -if test "$cross_compiling" = "yes"; then | ||
557 | + | ||
558 | CROSS_COMPILE=1 | ||
559 | -else | ||
560 | - CROSS_COMPILE= | ||
561 | -fi | ||
562 | |||
563 | dnl ======================================================== | ||
564 | dnl Check for gcc -pipe support | ||
565 | @@ -2283,10 +2255,7 @@ | ||
566 | *-darwin*|*-beos*) | ||
567 | ;; | ||
568 | *) | ||
569 | - AC_CHECK_LIB(dl, dlopen, | ||
570 | - AC_CHECK_HEADER(dlfcn.h, | ||
571 | - OS_LIBS="-ldl $OS_LIBS")) | ||
572 | - ;; | ||
573 | + AC_CHECK_LIB(dl, dlopen) | ||
574 | esac | ||
575 | |||
576 | |||
577 | @@ -2904,6 +2873,8 @@ | ||
578 | dnl pr/tests/w16gui/Makefile | ||
579 | dnl tools/Makefile | ||
580 | |||
581 | +m4_pattern_allow(AS_BIN) | ||
582 | + | ||
583 | if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then | ||
584 | MAKEFILES="$MAKEFILES pr/src/threads/combined/Makefile" | ||
585 | elif test -n "$USE_PTHREADS"; then | ||
586 | @@ -2919,3 +2890,5 @@ | ||
587 | echo $MAKEFILES > unallmakefiles | ||
588 | |||
589 | AC_OUTPUT([$MAKEFILES], [chmod +x config/nspr-config]) | ||
590 | + | ||
591 | + | ||
592 | Index: offscreen/js/src/Makefile.in | ||
593 | =================================================================== | ||
594 | --- offscreen.orig/js/src/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
595 | +++ offscreen/js/src/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
596 | @@ -514,20 +514,8 @@ | ||
597 | |||
598 | export:: jsautocfg.h | ||
599 | |||
600 | -ifeq (,$(CROSS_COMPILE)$(GNU_CC)$(filter-out WINNT,$(OS_ARCH))) | ||
601 | jsautocfg.h: | ||
602 | touch $@ | ||
603 | -else | ||
604 | -ifeq ($(OS_ARCH),WINCE) | ||
605 | -jsautocfg.h: | ||
606 | - touch $@ | ||
607 | -else | ||
608 | -jsautocfg.h: jscpucfg$(HOST_BIN_SUFFIX) | ||
609 | - @rm -f $@ jsautocfg.tmp | ||
610 | - ./jscpucfg > jsautocfg.tmp | ||
611 | - mv jsautocfg.tmp $@ | ||
612 | -endif | ||
613 | -endif | ||
614 | |||
615 | # jscpucfg is a strange target | ||
616 | # Needs to be built with the host compiler but needs to include | ||
617 | @@ -557,7 +545,7 @@ | ||
618 | echo no need to build jscpucfg $< | ||
619 | else | ||
620 | jscpucfg$(HOST_BIN_SUFFIX): jscpucfg.cpp Makefile.in | ||
621 | - $(HOST_CXX) $(HOST_CXXFLAGS) $(JSCPUCFG_DEFINES) $(DEFINES) $(NSPR_CFLAGS) $(HOST_OUTOPTION)$@ $< | ||
622 | + $(HOST_CXX) $(HOST_CXXFLAGS) $(JSCPUCFG_DEFINES) $(DEFINES) -I$(DIST)/sdk/include $(NSPR_CFLAGS) $(HOST_OUTOPTION)$@ $< | ||
623 | endif | ||
624 | endif | ||
625 | |||
626 | Index: offscreen/js/src/xpconnect/loader/mozJSComponentLoader.cpp | ||
627 | =================================================================== | ||
628 | --- offscreen.orig/js/src/xpconnect/loader/mozJSComponentLoader.cpp 2009-06-12 14:15:55.000000000 +0100 | ||
629 | +++ offscreen/js/src/xpconnect/loader/mozJSComponentLoader.cpp 2009-06-12 14:15:55.000000000 +0100 | ||
630 | @@ -47,6 +47,8 @@ | ||
631 | |||
632 | #include <stdarg.h> | ||
633 | |||
634 | +#include "mozilla-config.h" | ||
635 | + | ||
636 | #include "prlog.h" | ||
637 | |||
638 | #include "nsCOMPtr.h" | ||
639 | Index: offscreen/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp | ||
640 | =================================================================== | ||
641 | --- offscreen.orig/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp 2009-06-12 14:15:55.000000000 +0100 | ||
642 | +++ offscreen/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp 2009-06-12 14:15:55.000000000 +0100 | ||
643 | @@ -39,6 +39,8 @@ | ||
644 | * | ||
645 | * ***** END LICENSE BLOCK ***** */ | ||
646 | |||
647 | +#include "mozilla-config.h" | ||
648 | + | ||
649 | #if !defined(XPCONNECT_STANDALONE) && !defined(NO_SUBSCRIPT_LOADER) | ||
650 | |||
651 | #include "mozJSSubScriptLoader.h" | ||
652 | Index: offscreen/modules/lcms/include/icc34.h | ||
653 | =================================================================== | ||
654 | --- offscreen.orig/modules/lcms/include/icc34.h 2009-06-12 14:15:55.000000000 +0100 | ||
655 | +++ offscreen/modules/lcms/include/icc34.h 2009-06-12 14:15:55.000000000 +0100 | ||
656 | @@ -144,7 +144,7 @@ | ||
657 | */ | ||
658 | |||
659 | |||
660 | -#ifdef PACKAGE_NAME | ||
661 | +#if 0 | ||
662 | /* | ||
663 | June 9, 2003, Adapted for use with configure by Bob Friesenhahn | ||
664 | Added the stupid check for autoconf by Marti Maria. | ||
665 | Index: offscreen/toolkit/mozapps/update/src/updater/Makefile.in | ||
666 | =================================================================== | ||
667 | --- offscreen.orig/toolkit/mozapps/update/src/updater/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
668 | +++ offscreen/toolkit/mozapps/update/src/updater/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
669 | @@ -60,7 +60,7 @@ | ||
670 | |||
671 | LIBS += \ | ||
672 | $(DEPTH)/modules/libmar/src/$(LIB_PREFIX)mar.$(LIB_SUFFIX) \ | ||
673 | - $(BZ2_LIBS) \ | ||
674 | + $(BZ2_LIBS) -lpthread \ | ||
675 | $(NULL) | ||
676 | |||
677 | ifeq ($(OS_ARCH),WINNT) | ||
678 | Index: offscreen/xpcom/sample/program/Makefile.in | ||
679 | =================================================================== | ||
680 | --- offscreen.orig/xpcom/sample/program/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
681 | +++ offscreen/xpcom/sample/program/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
682 | @@ -57,7 +57,7 @@ | ||
683 | # that the application be linked against the XPCOM dynamic library or the NSPR | ||
684 | # dynamic libraries. | ||
685 | LIBS = \ | ||
686 | - $(XPCOM_STANDALONE_GLUE_LDOPTS) \ | ||
687 | + $(XPCOM_STANDALONE_GLUE_LDOPTS) -ldl \ | ||
688 | $(NULL) | ||
689 | |||
690 | # Need to link with CoreFoundation on Mac | ||
691 | Index: offscreen/xpcom/tools/registry/Makefile.in | ||
692 | =================================================================== | ||
693 | --- offscreen.orig/xpcom/tools/registry/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
694 | +++ offscreen/xpcom/tools/registry/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
695 | @@ -54,7 +54,7 @@ | ||
696 | SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX)) | ||
697 | |||
698 | LIBS = \ | ||
699 | - $(XPCOM_STANDALONE_GLUE_LDOPTS) \ | ||
700 | + $(XPCOM_STANDALONE_GLUE_LDOPTS) -ldl \ | ||
701 | $(NULL) | ||
702 | |||
703 | # Need to link with CoreFoundation on Mac | ||
704 | Index: offscreen/xulrunner/app/Makefile.in | ||
705 | =================================================================== | ||
706 | --- offscreen.orig/xulrunner/app/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
707 | +++ offscreen/xulrunner/app/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
708 | @@ -184,7 +184,7 @@ | ||
709 | RCFLAGS += -DXULRUNNER_ICO=\"$(DIST)/branding/xulrunner.ico\" -DDOCUMENT_ICO=\"$(DIST)/branding/document.ico\" | ||
710 | endif | ||
711 | |||
712 | -LIBS += $(JEMALLOC_LIBS) | ||
713 | +LIBS += $(JEMALLOC_LIBS) -lpthread -ldl | ||
714 | |||
715 | include $(topsrcdir)/config/rules.mk | ||
716 | |||
717 | Index: offscreen/xulrunner/stub/Makefile.in | ||
718 | =================================================================== | ||
719 | --- offscreen.orig/xulrunner/stub/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
720 | +++ offscreen/xulrunner/stub/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
721 | @@ -101,7 +101,7 @@ | ||
722 | endif | ||
723 | endif | ||
724 | |||
725 | -LIBS += $(JEMALLOC_LIBS) | ||
726 | +LIBS += $(JEMALLOC_LIBS) -lpthread -ldl | ||
727 | |||
728 | include $(topsrcdir)/config/rules.mk | ||
729 | |||
730 | Index: offscreen/modules/plugin/test/testplugin/Makefile.in | ||
731 | =================================================================== | ||
732 | --- offscreen.orig/modules/plugin/test/testplugin/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
733 | +++ offscreen/modules/plugin/test/testplugin/Makefile.in 2009-06-12 14:15:55.000000000 +0100 | ||
734 | @@ -63,9 +63,7 @@ | ||
735 | CMMSRCS = nptest_macosx.mm | ||
736 | endif | ||
737 | |||
738 | -ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2) | ||
739 | CPPSRCS += nptest_gtk2.cpp | ||
740 | -endif | ||
741 | |||
742 | ifeq ($(MOZ_WIDGET_TOOLKIT),os2) | ||
743 | CPPSRCS += nptest_os2.cpp | ||
744 | Index: offscreen/js/src/aclocal.m4 | ||
745 | =================================================================== | ||
746 | --- offscreen.orig/js/src/aclocal.m4 2009-06-12 14:15:55.000000000 +0100 | ||
747 | +++ offscreen/js/src/aclocal.m4 2009-06-12 14:15:55.000000000 +0100 | ||
748 | @@ -9,4 +9,3 @@ | ||
749 | builtin(include, build/autoconf/moznbytetype.m4)dnl | ||
750 | builtin(include, build/autoconf/mozprog.m4)dnl | ||
751 | |||
752 | -MOZ_PROG_CHECKMSYS() | ||
753 | Index: offscreen/toolkit/toolkit-makefiles.sh | ||
754 | =================================================================== | ||
755 | --- offscreen.orig/toolkit/toolkit-makefiles.sh 2009-06-12 14:19:59.000000000 +0100 | ||
756 | +++ offscreen/toolkit/toolkit-makefiles.sh 2009-06-12 14:20:09.000000000 +0100 | ||
757 | @@ -342,7 +342,6 @@ | ||
758 | modules/plugin/sdk/samples/Makefile | ||
759 | modules/plugin/sdk/samples/common/Makefile | ||
760 | modules/plugin/sdk/samples/basic/windows/Makefile | ||
761 | - modules/plugin/sdk/samples/basic/unix/Makefile | ||
762 | modules/plugin/sdk/samples/winless/windows/Makefile | ||
763 | " | ||
764 | |||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/configurefix.patch b/meta-moblin/packages/mozilla-headless/mozilla-headless/configurefix.patch deleted file mode 100644 index 7ee1211f1a..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/configurefix.patch +++ /dev/null | |||
@@ -1,774 +0,0 @@ | |||
1 | Index: offscreen/configure.in | ||
2 | =================================================================== | ||
3 | --- offscreen.orig/configure.in 2009-12-09 13:10:12.000000000 +0000 | ||
4 | +++ offscreen/configure.in 2009-12-09 13:38:51.000000000 +0000 | ||
5 | @@ -64,7 +64,6 @@ | ||
6 | |||
7 | AC_PREREQ(2.13) | ||
8 | AC_INIT(config/config.mk) | ||
9 | -AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf) | ||
10 | AC_CANONICAL_SYSTEM | ||
11 | TARGET_CPU="${target_cpu}" | ||
12 | TARGET_VENDOR="${target_vendor}" | ||
13 | @@ -106,7 +105,6 @@ | ||
14 | _SUBDIR_HOST_CFLAGS="$HOST_CFLAGS" | ||
15 | _SUBDIR_HOST_CXXFLAGS="$HOST_CXXFLAGS" | ||
16 | _SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS" | ||
17 | -_SUBDIR_CONFIG_ARGS="$ac_configure_args" | ||
18 | |||
19 | dnl Set the version number of the libs included with mozilla | ||
20 | dnl ======================================================== | ||
21 | @@ -139,6 +137,9 @@ | ||
22 | |||
23 | MSMANIFEST_TOOL= | ||
24 | |||
25 | +ac_cv_have_usable_wchar_v2=no | ||
26 | +ac_cv_have_usable_wchar_option_v2=no | ||
27 | + | ||
28 | dnl Set various checks | ||
29 | dnl ======================================================== | ||
30 | MISSING_X= | ||
31 | @@ -308,7 +309,7 @@ | ||
32 | ;; | ||
33 | esac | ||
34 | |||
35 | -if test -n "$CROSS_COMPILE" && test "$target" != "$host"; then | ||
36 | + | ||
37 | echo "cross compiling from $host to $target" | ||
38 | cross_compiling=yes | ||
39 | |||
40 | @@ -346,7 +347,7 @@ | ||
41 | |||
42 | AC_MSG_CHECKING([whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works]) | ||
43 | AC_TRY_COMPILE([], [return(0);], | ||
44 | - [ac_cv_prog_hostcc_works=1 AC_MSG_RESULT([yes])], | ||
45 | + [ac_cv_prog_hostcc_works=1; AC_MSG_RESULT([yes])], | ||
46 | AC_MSG_ERROR([installation or configuration problem: host compiler $HOST_CC cannot create executables.]) ) | ||
47 | |||
48 | CC="$HOST_CXX" | ||
49 | @@ -354,7 +355,7 @@ | ||
50 | |||
51 | AC_MSG_CHECKING([whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works]) | ||
52 | AC_TRY_COMPILE([], [return(0);], | ||
53 | - [ac_cv_prog_hostcxx_works=1 AC_MSG_RESULT([yes])], | ||
54 | + [ac_cv_prog_hostcxx_works=1; AC_MSG_RESULT([yes])], | ||
55 | AC_MSG_ERROR([installation or configuration problem: host compiler $HOST_CXX cannot create executables.]) ) | ||
56 | |||
57 | CC=$_SAVE_CC | ||
58 | @@ -375,7 +376,7 @@ | ||
59 | ;; | ||
60 | esac | ||
61 | |||
62 | - AC_CHECK_PROGS(CC, $CC "${target_alias}-gcc" "${target}-gcc", :) | ||
63 | + CC="${target_alias}-gcc" | ||
64 | unset ac_cv_prog_CC | ||
65 | AC_PROG_CC | ||
66 | AC_CHECK_PROGS(CXX, $CXX "${target_alias}-g++" "${target}-g++", :) | ||
67 | @@ -399,37 +400,6 @@ | ||
68 | AC_CHECK_PROGS(STRIP, $STRIP "${target_alias}-strip" "${target}-strip", :) | ||
69 | AC_CHECK_PROGS(WINDRES, $WINDRES "${target_alias}-windres" "${target}-windres", :) | ||
70 | AC_DEFINE(CROSS_COMPILE) | ||
71 | -else | ||
72 | - AC_PROG_CC | ||
73 | - AC_PROG_CXX | ||
74 | - AC_PROG_RANLIB | ||
75 | - MOZ_PATH_PROGS(AS, $AS as, $CC) | ||
76 | - AC_CHECK_PROGS(AR, ar, :) | ||
77 | - AC_CHECK_PROGS(LD, ld, :) | ||
78 | - AC_CHECK_PROGS(STRIP, strip, :) | ||
79 | - AC_CHECK_PROGS(WINDRES, windres, :) | ||
80 | - if test -z "$HOST_CC"; then | ||
81 | - HOST_CC="$CC" | ||
82 | - fi | ||
83 | - if test -z "$HOST_CFLAGS"; then | ||
84 | - HOST_CFLAGS="$CFLAGS" | ||
85 | - fi | ||
86 | - if test -z "$HOST_CXX"; then | ||
87 | - HOST_CXX="$CXX" | ||
88 | - fi | ||
89 | - if test -z "$HOST_CXXFLAGS"; then | ||
90 | - HOST_CXXFLAGS="$CXXFLAGS" | ||
91 | - fi | ||
92 | - if test -z "$HOST_LDFLAGS"; then | ||
93 | - HOST_LDFLAGS="$LDFLAGS" | ||
94 | - fi | ||
95 | - if test -z "$HOST_RANLIB"; then | ||
96 | - HOST_RANLIB="$RANLIB" | ||
97 | - fi | ||
98 | - if test -z "$HOST_AR"; then | ||
99 | - HOST_AR="$AR" | ||
100 | - fi | ||
101 | -fi | ||
102 | |||
103 | GNU_AS= | ||
104 | GNU_LD= | ||
105 | @@ -1586,6 +1556,7 @@ | ||
106 | ' | ||
107 | |||
108 | dnl test that the macros actually work: | ||
109 | +ac_cv_static_assertion_macros_work="yes" | ||
110 | AC_MSG_CHECKING(that static assertion macros used in autoconf tests work) | ||
111 | AC_CACHE_VAL(ac_cv_static_assertion_macros_work, | ||
112 | [AC_LANG_SAVE | ||
113 | @@ -2770,9 +2741,13 @@ | ||
114 | AC_LANG_C | ||
115 | AC_HEADER_STDC | ||
116 | AC_C_CONST | ||
117 | +ac_cv_type_mode_t=yes | ||
118 | AC_TYPE_MODE_T | ||
119 | +ac_cv_type_off_t=yes | ||
120 | AC_TYPE_OFF_T | ||
121 | +ac_cv_type_pid_t=yes | ||
122 | AC_TYPE_PID_T | ||
123 | +ac_cv_type_size_t=yes | ||
124 | AC_TYPE_SIZE_T | ||
125 | AC_STRUCT_ST_BLKSIZE | ||
126 | AC_MSG_CHECKING(for siginfo_t) | ||
127 | @@ -3174,21 +3149,9 @@ | ||
128 | dnl We don't want to link against libm or libpthread on Darwin since | ||
129 | dnl they both are just symlinks to libSystem and explicitly linking | ||
130 | dnl against libSystem causes issues when debugging (see bug 299601). | ||
131 | -case $target in | ||
132 | -*-darwin*) | ||
133 | - ;; | ||
134 | -*-beos*) | ||
135 | - ;; | ||
136 | -*-os2*) | ||
137 | - ;; | ||
138 | -*) | ||
139 | AC_CHECK_LIB(m, atan) | ||
140 | AC_CHECK_LIB(dl, dlopen, | ||
141 | - AC_CHECK_HEADER(dlfcn.h, | ||
142 | - LIBS="-ldl $LIBS" | ||
143 | - AC_DEFINE(HAVE_LIBDL))) | ||
144 | - ;; | ||
145 | -esac | ||
146 | + AC_DEFINE(HAVE_LIBDL)) | ||
147 | |||
148 | _SAVE_CFLAGS="$CFLAGS" | ||
149 | CFLAGS="$CFLAGS -D_GNU_SOURCE" | ||
150 | @@ -6889,18 +6852,13 @@ | ||
151 | |||
152 | # Demangle only for debug or trace-malloc builds | ||
153 | MOZ_DEMANGLE_SYMBOLS= | ||
154 | -if test "$HAVE_DEMANGLE" -a "$HAVE_GCC3_ABI" && test "$MOZ_DEBUG" -o "$NS_TRACE_MALLOC"; then | ||
155 | - MOZ_DEMANGLE_SYMBOLS=1 | ||
156 | - AC_DEFINE(MOZ_DEMANGLE_SYMBOLS) | ||
157 | -fi | ||
158 | + | ||
159 | AC_SUBST(MOZ_DEMANGLE_SYMBOLS) | ||
160 | |||
161 | dnl ======================================================== | ||
162 | dnl = Support for gcc stack unwinding (from gcc 3.3) | ||
163 | dnl ======================================================== | ||
164 | -if test "$HAVE_GCC3_ABI" && test -z "$SKIP_LIBRARY_CHECKS"; then | ||
165 | - AC_CHECK_HEADER(unwind.h, AC_CHECK_FUNCS(_Unwind_Backtrace)) | ||
166 | -fi | ||
167 | + | ||
168 | |||
169 | dnl ======================================================== | ||
170 | dnl = | ||
171 | @@ -7420,10 +7378,7 @@ | ||
172 | dnl if no gtk/libIDL1 or gtk2/libIDL2 combination was found, fall back | ||
173 | dnl to either libIDL1 or libIDL2. | ||
174 | if test -z "$_LIBIDL_FOUND"; then | ||
175 | - AM_PATH_LIBIDL($LIBIDL_VERSION,_LIBIDL_FOUND=1) | ||
176 | - if test -z "$_LIBIDL_FOUND"; then | ||
177 | PKG_CHECK_MODULES(LIBIDL, libIDL-2.0 >= 0.8.0,_LIBIDL_FOUND=1) | ||
178 | - fi | ||
179 | fi | ||
180 | dnl | ||
181 | dnl If we don't have a libIDL config program & not cross-compiling, | ||
182 | @@ -7495,13 +7450,7 @@ | ||
183 | fi | ||
184 | |||
185 | if test -z "$SKIP_PATH_CHECKS"; then | ||
186 | -if test -z "${GLIB_CFLAGS}" || test -z "${GLIB_LIBS}" ; then | ||
187 | - if test "$MOZ_ENABLE_GTK2" || test "$USE_ELF_DYNSTR_GC" || test "$MOZ_ENABLE_HEADLESS"; then | ||
188 | PKG_CHECK_MODULES(GLIB, glib-2.0 >= 1.3.7 gobject-2.0) | ||
189 | - else | ||
190 | - AM_PATH_GLIB(${GLIB_VERSION}) | ||
191 | - fi | ||
192 | -fi | ||
193 | fi | ||
194 | |||
195 | if test -z "${GLIB_GMODULE_LIBS}" -a -n "${GLIB_CONFIG}"; then | ||
196 | @@ -8278,10 +8227,7 @@ | ||
197 | HAVE_WCRTOMB | ||
198 | " | ||
199 | |||
200 | -AC_CONFIG_HEADER( | ||
201 | -netwerk/necko-config.h | ||
202 | -xpcom/xpcom-config.h | ||
203 | -xpcom/xpcom-private.h | ||
204 | +AC_CONFIG_HEADER(netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h | ||
205 | ) | ||
206 | |||
207 | # Save the defines header file before autoconf removes it. | ||
208 | @@ -8340,31 +8286,11 @@ | ||
209 | dnl To add new Makefiles, edit allmakefiles.sh. | ||
210 | dnl allmakefiles.sh sets the variable, MAKEFILES. | ||
211 | . ${srcdir}/allmakefiles.sh | ||
212 | -dnl | ||
213 | -dnl Run a perl script to quickly create the makefiles. | ||
214 | -dnl If it succeeds, it outputs a shell command to set CONFIG_FILES | ||
215 | -dnl for the files it cannot handle correctly. This way, config.status | ||
216 | -dnl will handle these files. | ||
217 | -dnl If it fails, nothing is set and config.status will run as usual. | ||
218 | -dnl | ||
219 | -dnl This does not change the $MAKEFILES variable. | ||
220 | -dnl | ||
221 | -dnl OpenVMS gets a line overflow on the long eval command, so use a temp file. | ||
222 | -dnl | ||
223 | -if test -z "${AS_PERL}"; then | ||
224 | -echo $MAKEFILES | ${PERL} $srcdir/build/autoconf/acoutput-fast.pl > conftest.sh | ||
225 | -else | ||
226 | -echo $MAKEFILES | ${PERL} $srcdir/build/autoconf/acoutput-fast.pl -nowrap --cygwin-srcdir=$srcdir > conftest.sh | ||
227 | -fi | ||
228 | -. ./conftest.sh | ||
229 | -rm conftest.sh | ||
230 | |||
231 | echo $MAKEFILES > unallmakefiles | ||
232 | |||
233 | mv -f config/autoconf.mk config/autoconf.mk.orig 2> /dev/null | ||
234 | |||
235 | -AC_OUTPUT($MAKEFILES) | ||
236 | - | ||
237 | dnl Prevent the regeneration of cairo-features.h forcing rebuilds of gfx stuff | ||
238 | if test "$CAIRO_FEATURES_H"; then | ||
239 | if cmp -s $CAIRO_FEATURES_H "$CAIRO_FEATURES_H".orig; then | ||
240 | @@ -8390,14 +8316,14 @@ | ||
241 | HOST_LDFLAGS="$_SUBDIR_HOST_LDFLAGS" | ||
242 | RC= | ||
243 | |||
244 | -unset MAKEFILES | ||
245 | -unset CONFIG_FILES | ||
246 | +#unset MAKEFILES | ||
247 | +#unset CONFIG_FILES | ||
248 | |||
249 | # No need to run subconfigures when building with LIBXUL_SDK_DIR | ||
250 | if test "$COMPILE_ENVIRONMENT" -a -z "$LIBXUL_SDK_DIR"; then | ||
251 | |||
252 | if test -z "$MOZ_NATIVE_NSPR"; then | ||
253 | - ac_configure_args="$_SUBDIR_CONFIG_ARGS --with-dist-prefix=$MOZ_BUILD_ROOT/dist --with-mozilla" | ||
254 | + ac_configure_args="$ac_configure_args --with-dist-prefix=$MOZ_BUILD_ROOT/dist --with-mozilla" | ||
255 | if test -z "$MOZ_DEBUG"; then | ||
256 | ac_configure_args="$ac_configure_args --disable-debug" | ||
257 | fi | ||
258 | @@ -8413,8 +8339,7 @@ | ||
259 | if test -n "$USE_ARM_KUSER"; then | ||
260 | ac_configure_args="$ac_configure_args --with-arm-kuser" | ||
261 | fi | ||
262 | - AC_OUTPUT_SUBDIRS(nsprpub) | ||
263 | - ac_configure_args="$_SUBDIR_CONFIG_ARGS" | ||
264 | + AC_CONFIG_SUBDIRS(nsprpub) | ||
265 | fi | ||
266 | |||
267 | if test -z "$MOZ_NATIVE_NSPR"; then | ||
268 | @@ -8431,7 +8356,6 @@ | ||
269 | |||
270 | # Run the SpiderMonkey 'configure' script. | ||
271 | dist=$MOZ_BUILD_ROOT/dist | ||
272 | -ac_configure_args="$_SUBDIR_CONFIG_ARGS" | ||
273 | ac_configure_args="$ac_configure_args --enable-threadsafe" | ||
274 | if test -z "$MOZ_NATIVE_NSPR"; then | ||
275 | ac_configure_args="$ac_configure_args --with-nspr-cflags='$NSPR_CFLAGS'" | ||
276 | @@ -8448,8 +8372,7 @@ | ||
277 | export MOZ_MEMORY_LDFLAGS | ||
278 | fi | ||
279 | fi | ||
280 | -AC_OUTPUT_SUBDIRS(js/src) | ||
281 | -ac_configure_args="$_SUBDIR_CONFIG_ARGS" | ||
282 | +AC_CONFIG_SUBDIRS(js/src) | ||
283 | |||
284 | # Build jsctypes on the platforms we can. | ||
285 | if test "$BUILD_CTYPES"; then | ||
286 | @@ -8465,20 +8388,14 @@ | ||
287 | if test -n "$CROSS_COMPILE"; then | ||
288 | ac_configure_args="$ac_configure_args --build=$build --host=$target" | ||
289 | fi | ||
290 | - if test "$SOLARIS_SUNPRO_CC"; then | ||
291 | - # Always use gcc for libffi on Solaris | ||
292 | - old_cache_file=$cache_file | ||
293 | - cache_file=js/ctypes/libffi/config.cache | ||
294 | - ac_configure_args="$ac_configure_args CC=gcc" | ||
295 | - AC_OUTPUT_SUBDIRS(js/ctypes/libffi) | ||
296 | - cache_file=$old_cache_file | ||
297 | - else | ||
298 | - AC_OUTPUT_SUBDIRS(js/ctypes/libffi) | ||
299 | - fi | ||
300 | - ac_configure_args="$_SUBDIR_CONFIG_ARGS" | ||
301 | + AC_CONFIG_SUBDIRS(js/ctypes/libffi) | ||
302 | fi | ||
303 | fi | ||
304 | |||
305 | +m4_pattern_allow(AS_BIN) | ||
306 | + | ||
307 | +AC_OUTPUT($MAKEFILES) | ||
308 | + | ||
309 | fi # COMPILE_ENVIRONMENT && !LIBXUL_SDK_DIR | ||
310 | |||
311 | dnl Prevent the regeneration of autoconf.mk forcing rebuilds of the world | ||
312 | Index: offscreen/js/src/configure.in | ||
313 | =================================================================== | ||
314 | --- offscreen.orig/js/src/configure.in 2009-12-09 13:10:12.000000000 +0000 | ||
315 | +++ offscreen/js/src/configure.in 2009-12-09 13:38:51.000000000 +0000 | ||
316 | @@ -62,7 +62,6 @@ | ||
317 | |||
318 | AC_PREREQ(2.13) | ||
319 | AC_INIT(jsapi.h) | ||
320 | -AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf) | ||
321 | AC_CONFIG_HEADER(js-config.h) | ||
322 | AC_CANONICAL_SYSTEM | ||
323 | TARGET_CPU="${target_cpu}" | ||
324 | @@ -101,6 +100,9 @@ | ||
325 | _SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS" | ||
326 | _SUBDIR_CONFIG_ARGS="$ac_configure_args" | ||
327 | |||
328 | +ac_cv_have_usable_wchar_v2=no | ||
329 | +ac_cv_have_usable_wchar_option_v2=no | ||
330 | + | ||
331 | dnl Set the version number of the libs included with mozilla | ||
332 | dnl ======================================================== | ||
333 | NSPR_VERSION=4 | ||
334 | @@ -113,6 +115,8 @@ | ||
335 | |||
336 | MSMANIFEST_TOOL= | ||
337 | |||
338 | +m4_pattern_allow(AS_BIN) | ||
339 | + | ||
340 | dnl Set various checks | ||
341 | dnl ======================================================== | ||
342 | MISSING_X= | ||
343 | @@ -212,7 +216,7 @@ | ||
344 | |||
345 | if test "$COMPILE_ENVIRONMENT"; then | ||
346 | |||
347 | -if test "$target" != "$host"; then | ||
348 | + | ||
349 | echo "cross compiling from $host to $target" | ||
350 | |||
351 | _SAVE_CC="$CC" | ||
352 | @@ -249,7 +253,7 @@ | ||
353 | |||
354 | AC_MSG_CHECKING([whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works]) | ||
355 | AC_TRY_COMPILE([], [return(0);], | ||
356 | - [ac_cv_prog_hostcc_works=1 AC_MSG_RESULT([yes])], | ||
357 | + [ac_cv_prog_hostcc_works=1; AC_MSG_RESULT([yes])], | ||
358 | AC_MSG_ERROR([installation or configuration problem: host compiler $HOST_CC cannot create executables.]) ) | ||
359 | |||
360 | CC="$HOST_CXX" | ||
361 | @@ -257,7 +261,7 @@ | ||
362 | |||
363 | AC_MSG_CHECKING([whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works]) | ||
364 | AC_TRY_COMPILE([], [return(0);], | ||
365 | - [ac_cv_prog_hostcxx_works=1 AC_MSG_RESULT([yes])], | ||
366 | + [ac_cv_prog_hostcxx_works=1; AC_MSG_RESULT([yes])], | ||
367 | AC_MSG_ERROR([installation or configuration problem: host compiler $HOST_CXX cannot create executables.]) ) | ||
368 | |||
369 | CC=$_SAVE_CC | ||
370 | @@ -312,7 +316,7 @@ | ||
371 | ;; | ||
372 | esac | ||
373 | |||
374 | - AC_CHECK_PROGS(CC, $CC "${target_alias}-gcc" "${target}-gcc", :) | ||
375 | + CC="${target_alias}-gcc" | ||
376 | unset ac_cv_prog_CC | ||
377 | AC_PROG_CC | ||
378 | AC_CHECK_PROGS(CXX, $CXX "${target_alias}-g++" "${target}-g++", :) | ||
379 | @@ -342,37 +346,6 @@ | ||
380 | dnl able to run ppc code in a translated environment, making a cross | ||
381 | dnl compiler appear native. So we override that here. | ||
382 | cross_compiling=yes | ||
383 | -else | ||
384 | - AC_PROG_CC | ||
385 | - AC_PROG_CXX | ||
386 | - AC_PROG_RANLIB | ||
387 | - MOZ_PATH_PROGS(AS, $AS as, $CC) | ||
388 | - AC_CHECK_PROGS(AR, ar, :) | ||
389 | - AC_CHECK_PROGS(LD, ld, :) | ||
390 | - AC_CHECK_PROGS(STRIP, strip, :) | ||
391 | - AC_CHECK_PROGS(WINDRES, windres, :) | ||
392 | - if test -z "$HOST_CC"; then | ||
393 | - HOST_CC="$CC" | ||
394 | - fi | ||
395 | - if test -z "$HOST_CFLAGS"; then | ||
396 | - HOST_CFLAGS="$CFLAGS" | ||
397 | - fi | ||
398 | - if test -z "$HOST_CXX"; then | ||
399 | - HOST_CXX="$CXX" | ||
400 | - fi | ||
401 | - if test -z "$HOST_CXXFLAGS"; then | ||
402 | - HOST_CXXFLAGS="$CXXFLAGS" | ||
403 | - fi | ||
404 | - if test -z "$HOST_LDFLAGS"; then | ||
405 | - HOST_LDFLAGS="$LDFLAGS" | ||
406 | - fi | ||
407 | - if test -z "$HOST_RANLIB"; then | ||
408 | - HOST_RANLIB="$RANLIB" | ||
409 | - fi | ||
410 | - if test -z "$HOST_AR"; then | ||
411 | - HOST_AR="$AR" | ||
412 | - fi | ||
413 | -fi | ||
414 | |||
415 | GNU_AS= | ||
416 | GNU_LD= | ||
417 | @@ -1370,6 +1343,8 @@ | ||
418 | fi # GNU_CC | ||
419 | fi # COMPILE_ENVIRONMENT | ||
420 | |||
421 | +ac_cv_static_assertion_macros_work=yes | ||
422 | + | ||
423 | dnl ================================================================= | ||
424 | dnl Set up and test static assertion macros used to avoid AC_TRY_RUN, | ||
425 | dnl which is bad when cross compiling. | ||
426 | @@ -2557,9 +2532,13 @@ | ||
427 | AC_LANG_C | ||
428 | AC_HEADER_STDC | ||
429 | AC_C_CONST | ||
430 | +ac_cv_type_mode_t=yes | ||
431 | AC_TYPE_MODE_T | ||
432 | +ac_cv_type_off_t=yes | ||
433 | AC_TYPE_OFF_T | ||
434 | +ac_cv_type_pid_t=yes | ||
435 | AC_TYPE_PID_T | ||
436 | +ac_cv_type_size_t=yes | ||
437 | AC_TYPE_SIZE_T | ||
438 | AC_STRUCT_ST_BLKSIZE | ||
439 | AC_MSG_CHECKING(for siginfo_t) | ||
440 | @@ -2584,7 +2563,8 @@ | ||
441 | |||
442 | AC_CHECK_HEADER(stdint.h) | ||
443 | if test "$ac_cv_header_stdint_h" = yes; then | ||
444 | - AC_DEFINE(JS_HAVE_STDINT_H) | ||
445 | + AC_DEFINE(JS_HAVE_STDINT_H, 1, [have stdint.h]) | ||
446 | + AC_DEFINE(HAVE_STDINT_H) | ||
447 | else | ||
448 | dnl We'll figure them out for ourselves. List more likely types | ||
449 | dnl earlier. If we ever really encounter a size for which none of | ||
450 | @@ -2938,10 +2918,7 @@ | ||
451 | ;; | ||
452 | *) | ||
453 | AC_CHECK_LIB(m, atan) | ||
454 | - AC_CHECK_LIB(dl, dlopen, | ||
455 | - AC_CHECK_HEADER(dlfcn.h, | ||
456 | - LIBS="-ldl $LIBS" | ||
457 | - AC_DEFINE(HAVE_LIBDL))) | ||
458 | + AC_CHECK_LIB(dl, dlopen, AC_DEFINE(HAVE_LIBDL)) | ||
459 | ;; | ||
460 | esac | ||
461 | |||
462 | @@ -3847,6 +3824,7 @@ | ||
463 | [ --with-nspr-libs=LIBS Pass LIBS to LD when linking code that uses NSPR. | ||
464 | See --with-nspr-cflags for more details.], | ||
465 | NSPR_LIBS=$withval) | ||
466 | +$NSPR_LIBS="$NSPR_LIBS -L$(LIBXUL_DIST)/sdk/lib" | ||
467 | AC_SUBST(NSPR_CFLAGS) | ||
468 | AC_SUBST(NSPR_LIBS) | ||
469 | |||
470 | @@ -4386,18 +4364,11 @@ | ||
471 | |||
472 | # Demangle only for debug or trace-malloc builds | ||
473 | MOZ_DEMANGLE_SYMBOLS= | ||
474 | -if test "$HAVE_DEMANGLE" -a "$HAVE_GCC3_ABI" && test "$MOZ_DEBUG" -o "$NS_TRACE_MALLOC"; then | ||
475 | - MOZ_DEMANGLE_SYMBOLS=1 | ||
476 | - AC_DEFINE(MOZ_DEMANGLE_SYMBOLS) | ||
477 | -fi | ||
478 | AC_SUBST(MOZ_DEMANGLE_SYMBOLS) | ||
479 | |||
480 | dnl ======================================================== | ||
481 | dnl = Support for gcc stack unwinding (from gcc 3.3) | ||
482 | dnl ======================================================== | ||
483 | -if test "$HAVE_GCC3_ABI" && test -z "$SKIP_LIBRARY_CHECKS"; then | ||
484 | - AC_CHECK_HEADER(unwind.h, AC_CHECK_FUNCS(_Unwind_Backtrace)) | ||
485 | -fi | ||
486 | |||
487 | dnl ======================================================== | ||
488 | dnl = | ||
489 | @@ -5097,6 +5068,8 @@ | ||
490 | |||
491 | AC_HAVE_FUNCS(setlocale) | ||
492 | |||
493 | + | ||
494 | + | ||
495 | dnl ======================================================== | ||
496 | dnl Use cygwin wrapper for win32 builds, except MSYS/MinGW | ||
497 | dnl ======================================================== | ||
498 | @@ -5234,3 +5207,4 @@ | ||
499 | # 'js-config' in Makefile.in. | ||
500 | AC_MSG_RESULT(invoking make to create js-config script) | ||
501 | $MAKE js-config | ||
502 | + | ||
503 | Index: offscreen/nsprpub/configure.in | ||
504 | =================================================================== | ||
505 | --- offscreen.orig/nsprpub/configure.in 2009-12-09 13:10:12.000000000 +0000 | ||
506 | +++ offscreen/nsprpub/configure.in 2009-12-09 13:10:12.000000000 +0000 | ||
507 | @@ -42,7 +42,6 @@ | ||
508 | AC_PREREQ(2.12) | ||
509 | AC_INIT(config/libc_r.h) | ||
510 | |||
511 | -AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf) | ||
512 | AC_CANONICAL_SYSTEM | ||
513 | |||
514 | dnl ======================================================== | ||
515 | @@ -396,7 +395,7 @@ | ||
516 | dnl ======================================================== | ||
517 | dnl Checks for compilers. | ||
518 | dnl ======================================================== | ||
519 | -if test "$target" != "$host"; then | ||
520 | + | ||
521 | echo "cross compiling from $host to $target" | ||
522 | cross_compiling=yes | ||
523 | |||
524 | @@ -423,7 +422,7 @@ | ||
525 | |||
526 | AC_MSG_CHECKING([whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works]) | ||
527 | AC_TRY_COMPILE([], [return(0);], | ||
528 | - [ac_cv_prog_host_cc_works=1 AC_MSG_RESULT([yes])], | ||
529 | + [ac_cv_prog_host_cc_works=1; AC_MSG_RESULT([yes])], | ||
530 | AC_MSG_ERROR([installation or configuration problem: $host compiler $HOST_CC cannot create executables.]) ) | ||
531 | |||
532 | CC=$_SAVE_CC | ||
533 | @@ -444,7 +443,7 @@ | ||
534 | ;; | ||
535 | esac | ||
536 | |||
537 | - AC_CHECK_PROGS(CC, $CC "${target_alias}-gcc" "${target}-gcc", echo) | ||
538 | + CC="${target_alias}-gcc" | ||
539 | unset ac_cv_prog_CC | ||
540 | AC_PROG_CC | ||
541 | if test -n "$USE_CPLUS"; then | ||
542 | @@ -470,30 +469,6 @@ | ||
543 | AC_CHECK_PROGS(STRIP, $STRIP "${target_alias}-strip" "${target}-strip", echo) | ||
544 | AC_CHECK_PROGS(WINDRES, $WINDRES "${target_alias}-windres" "${target}-windres", echo) | ||
545 | |||
546 | -else | ||
547 | - AC_PROG_CC | ||
548 | - if test -n "$USE_CPLUS"; then | ||
549 | - if test "$CC" = "cl" -a -z "$CXX"; then | ||
550 | - CXX=$CC | ||
551 | - else | ||
552 | - AC_PROG_CXX | ||
553 | - fi | ||
554 | - fi | ||
555 | - AC_PROG_CPP | ||
556 | - AC_PROG_RANLIB | ||
557 | - AC_PATH_PROGS(AS, as, $CC) | ||
558 | - AC_PATH_PROGS(AR, ar, echo not_ar) | ||
559 | - AC_PATH_PROGS(LD, ld link, echo not_ld) | ||
560 | - AC_PATH_PROGS(STRIP, strip, echo not_strip) | ||
561 | - AC_PATH_PROGS(WINDRES, windres, echo not_windres) | ||
562 | - if test -z "$HOST_CC"; then | ||
563 | - HOST_CC="$CC" | ||
564 | - fi | ||
565 | - if test -z "$HOST_CFLAGS"; then | ||
566 | - HOST_CFLAGS="$CFLAGS" | ||
567 | - fi | ||
568 | -fi | ||
569 | - | ||
570 | if test "$GCC" = "yes"; then | ||
571 | GNU_CC=1 | ||
572 | fi | ||
573 | @@ -514,11 +489,8 @@ | ||
574 | ;; | ||
575 | esac | ||
576 | |||
577 | -if test "$cross_compiling" = "yes"; then | ||
578 | + | ||
579 | CROSS_COMPILE=1 | ||
580 | -else | ||
581 | - CROSS_COMPILE= | ||
582 | -fi | ||
583 | |||
584 | dnl ======================================================== | ||
585 | dnl Check for gcc -pipe support | ||
586 | @@ -2286,10 +2258,7 @@ | ||
587 | *-darwin*|*-beos*|*-os2*) | ||
588 | ;; | ||
589 | *) | ||
590 | - AC_CHECK_LIB(dl, dlopen, | ||
591 | - AC_CHECK_HEADER(dlfcn.h, | ||
592 | - OS_LIBS="-ldl $OS_LIBS")) | ||
593 | - ;; | ||
594 | + AC_CHECK_LIB(dl, dlopen) | ||
595 | esac | ||
596 | |||
597 | |||
598 | @@ -2907,6 +2876,8 @@ | ||
599 | dnl pr/tests/w16gui/Makefile | ||
600 | dnl tools/Makefile | ||
601 | |||
602 | +m4_pattern_allow(AS_BIN) | ||
603 | + | ||
604 | if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then | ||
605 | MAKEFILES="$MAKEFILES pr/src/threads/combined/Makefile" | ||
606 | elif test -n "$USE_PTHREADS"; then | ||
607 | @@ -2922,3 +2893,5 @@ | ||
608 | echo $MAKEFILES > unallmakefiles | ||
609 | |||
610 | AC_OUTPUT([$MAKEFILES], [chmod +x config/nspr-config]) | ||
611 | + | ||
612 | + | ||
613 | Index: offscreen/js/src/Makefile.in | ||
614 | =================================================================== | ||
615 | --- offscreen.orig/js/src/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
616 | +++ offscreen/js/src/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
617 | @@ -513,20 +513,8 @@ | ||
618 | |||
619 | export:: jsautocfg.h | ||
620 | |||
621 | -ifeq (,$(CROSS_COMPILE)$(GNU_CC)$(filter-out WINNT,$(OS_ARCH))) | ||
622 | jsautocfg.h: | ||
623 | touch $@ | ||
624 | -else | ||
625 | -ifeq ($(OS_ARCH),WINCE) | ||
626 | -jsautocfg.h: | ||
627 | - touch $@ | ||
628 | -else | ||
629 | -jsautocfg.h: jscpucfg$(HOST_BIN_SUFFIX) | ||
630 | - @rm -f $@ jsautocfg.tmp | ||
631 | - ./jscpucfg > jsautocfg.tmp | ||
632 | - mv jsautocfg.tmp $@ | ||
633 | -endif | ||
634 | -endif | ||
635 | |||
636 | # jscpucfg is a strange target | ||
637 | # Needs to be built with the host compiler but needs to include | ||
638 | @@ -556,7 +544,7 @@ | ||
639 | echo no need to build jscpucfg $< | ||
640 | else | ||
641 | jscpucfg$(HOST_BIN_SUFFIX): jscpucfg.cpp Makefile.in | ||
642 | - $(HOST_CXX) $(HOST_CXXFLAGS) $(JSCPUCFG_DEFINES) $(DEFINES) $(NSPR_CFLAGS) $(HOST_OUTOPTION)$@ $< | ||
643 | + $(HOST_CXX) $(HOST_CXXFLAGS) $(JSCPUCFG_DEFINES) $(DEFINES) -I$(DIST)/sdk/include $(NSPR_CFLAGS) $(HOST_OUTOPTION)$@ $< | ||
644 | endif | ||
645 | endif | ||
646 | |||
647 | Index: offscreen/js/src/xpconnect/loader/mozJSComponentLoader.cpp | ||
648 | =================================================================== | ||
649 | --- offscreen.orig/js/src/xpconnect/loader/mozJSComponentLoader.cpp 2009-12-09 13:10:12.000000000 +0000 | ||
650 | +++ offscreen/js/src/xpconnect/loader/mozJSComponentLoader.cpp 2009-12-09 13:10:12.000000000 +0000 | ||
651 | @@ -47,6 +47,8 @@ | ||
652 | |||
653 | #include <stdarg.h> | ||
654 | |||
655 | +#include "mozilla-config.h" | ||
656 | + | ||
657 | #include "prlog.h" | ||
658 | |||
659 | #include "nsCOMPtr.h" | ||
660 | Index: offscreen/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp | ||
661 | =================================================================== | ||
662 | --- offscreen.orig/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp 2009-12-09 13:10:12.000000000 +0000 | ||
663 | +++ offscreen/js/src/xpconnect/loader/mozJSSubScriptLoader.cpp 2009-12-09 13:10:12.000000000 +0000 | ||
664 | @@ -39,6 +39,8 @@ | ||
665 | * | ||
666 | * ***** END LICENSE BLOCK ***** */ | ||
667 | |||
668 | +#include "mozilla-config.h" | ||
669 | + | ||
670 | #if !defined(XPCONNECT_STANDALONE) && !defined(NO_SUBSCRIPT_LOADER) | ||
671 | |||
672 | #include "mozJSSubScriptLoader.h" | ||
673 | Index: offscreen/toolkit/mozapps/update/src/updater/Makefile.in | ||
674 | =================================================================== | ||
675 | --- offscreen.orig/toolkit/mozapps/update/src/updater/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
676 | +++ offscreen/toolkit/mozapps/update/src/updater/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
677 | @@ -56,7 +56,7 @@ | ||
678 | |||
679 | LIBS += \ | ||
680 | $(DEPTH)/modules/libmar/src/$(LIB_PREFIX)mar.$(LIB_SUFFIX) \ | ||
681 | - $(BZ2_LIBS) \ | ||
682 | + $(BZ2_LIBS) -lpthread \ | ||
683 | $(NULL) | ||
684 | |||
685 | ifeq ($(OS_ARCH),WINNT) | ||
686 | Index: offscreen/xpcom/sample/program/Makefile.in | ||
687 | =================================================================== | ||
688 | --- offscreen.orig/xpcom/sample/program/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
689 | +++ offscreen/xpcom/sample/program/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
690 | @@ -57,7 +57,7 @@ | ||
691 | # that the application be linked against the XPCOM dynamic library or the NSPR | ||
692 | # dynamic libraries. | ||
693 | LIBS = \ | ||
694 | - $(XPCOM_STANDALONE_GLUE_LDOPTS) \ | ||
695 | + $(XPCOM_STANDALONE_GLUE_LDOPTS) -ldl \ | ||
696 | $(NULL) | ||
697 | |||
698 | # Need to link with CoreFoundation on Mac | ||
699 | Index: offscreen/xpcom/tools/registry/Makefile.in | ||
700 | =================================================================== | ||
701 | --- offscreen.orig/xpcom/tools/registry/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
702 | +++ offscreen/xpcom/tools/registry/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
703 | @@ -54,7 +54,7 @@ | ||
704 | SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX)) | ||
705 | |||
706 | LIBS = \ | ||
707 | - $(XPCOM_STANDALONE_GLUE_LDOPTS) \ | ||
708 | + $(XPCOM_STANDALONE_GLUE_LDOPTS) -ldl \ | ||
709 | $(NULL) | ||
710 | |||
711 | # Need to link with CoreFoundation on Mac | ||
712 | Index: offscreen/xulrunner/app/Makefile.in | ||
713 | =================================================================== | ||
714 | --- offscreen.orig/xulrunner/app/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
715 | +++ offscreen/xulrunner/app/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
716 | @@ -173,7 +173,7 @@ | ||
717 | RCFLAGS += -DXULRUNNER_ICO=\"$(DIST)/branding/xulrunner.ico\" -DDOCUMENT_ICO=\"$(DIST)/branding/document.ico\" | ||
718 | endif | ||
719 | |||
720 | -LIBS += $(JEMALLOC_LIBS) | ||
721 | +LIBS += $(JEMALLOC_LIBS) -lpthread -ldl | ||
722 | |||
723 | include $(topsrcdir)/config/rules.mk | ||
724 | |||
725 | Index: offscreen/xulrunner/stub/Makefile.in | ||
726 | =================================================================== | ||
727 | --- offscreen.orig/xulrunner/stub/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
728 | +++ offscreen/xulrunner/stub/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
729 | @@ -100,7 +100,7 @@ | ||
730 | endif | ||
731 | endif | ||
732 | |||
733 | -LIBS += $(JEMALLOC_LIBS) | ||
734 | +LIBS += $(JEMALLOC_LIBS) -lpthread -ldl | ||
735 | |||
736 | include $(topsrcdir)/config/rules.mk | ||
737 | |||
738 | Index: offscreen/modules/plugin/test/testplugin/Makefile.in | ||
739 | =================================================================== | ||
740 | --- offscreen.orig/modules/plugin/test/testplugin/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
741 | +++ offscreen/modules/plugin/test/testplugin/Makefile.in 2009-12-09 13:10:12.000000000 +0000 | ||
742 | @@ -60,9 +60,7 @@ | ||
743 | CMMSRCS = nptest_macosx.mm | ||
744 | endif | ||
745 | |||
746 | -ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2) | ||
747 | CPPSRCS += nptest_gtk2.cpp | ||
748 | -endif | ||
749 | |||
750 | ifeq ($(MOZ_WIDGET_TOOLKIT),os2) | ||
751 | CPPSRCS += nptest_os2.cpp | ||
752 | Index: offscreen/js/src/aclocal.m4 | ||
753 | =================================================================== | ||
754 | --- offscreen.orig/js/src/aclocal.m4 2009-12-09 13:10:12.000000000 +0000 | ||
755 | +++ offscreen/js/src/aclocal.m4 2009-12-09 13:39:01.000000000 +0000 | ||
756 | @@ -8,6 +8,4 @@ | ||
757 | builtin(include, build/autoconf/altoptions.m4)dnl | ||
758 | builtin(include, build/autoconf/moznbytetype.m4)dnl | ||
759 | builtin(include, build/autoconf/mozprog.m4)dnl | ||
760 | -builtin(include, build/autoconf/acwinpaths.m4)dnl | ||
761 | |||
762 | -MOZ_PROG_CHECKMSYS() | ||
763 | Index: offscreen/toolkit/toolkit-makefiles.sh | ||
764 | =================================================================== | ||
765 | --- offscreen.orig/toolkit/toolkit-makefiles.sh 2009-12-09 13:10:12.000000000 +0000 | ||
766 | +++ offscreen/toolkit/toolkit-makefiles.sh 2009-12-09 13:10:12.000000000 +0000 | ||
767 | @@ -369,7 +369,6 @@ | ||
768 | modules/plugin/sdk/samples/Makefile | ||
769 | modules/plugin/sdk/samples/common/Makefile | ||
770 | modules/plugin/sdk/samples/basic/windows/Makefile | ||
771 | - modules/plugin/sdk/samples/basic/unix/Makefile | ||
772 | modules/plugin/sdk/samples/winless/windows/Makefile | ||
773 | " | ||
774 | |||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/i386/jsautocfg.h b/meta-moblin/packages/mozilla-headless/mozilla-headless/i386/jsautocfg.h deleted file mode 100644 index 94b44f8e14..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/i386/jsautocfg.h +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | #ifndef js_cpucfg___ | ||
2 | #define js_cpucfg___ | ||
3 | |||
4 | /* AUTOMATICALLY GENERATED - DO NOT EDIT */ | ||
5 | |||
6 | #define IS_LITTLE_ENDIAN 1 | ||
7 | #undef IS_BIG_ENDIAN | ||
8 | |||
9 | |||
10 | #define JS_BYTES_PER_WORD 4L | ||
11 | #define JS_BYTES_PER_DOUBLE 8L | ||
12 | #define JS_BITS_PER_WORD_LOG2 5L | ||
13 | #define JS_ALIGN_OF_POINTER 4L | ||
14 | |||
15 | #define JS_THREADSAFE 1 | ||
16 | |||
17 | #define JS_STACK_GROWTH_DIRECTION (-1) | ||
18 | |||
19 | #define JS_HAVE_LONG_LONG | ||
20 | |||
21 | #endif /* js_cpucfg___ */ | ||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/i486/jsautocfg.h b/meta-moblin/packages/mozilla-headless/mozilla-headless/i486/jsautocfg.h deleted file mode 100644 index 94b44f8e14..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/i486/jsautocfg.h +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | #ifndef js_cpucfg___ | ||
2 | #define js_cpucfg___ | ||
3 | |||
4 | /* AUTOMATICALLY GENERATED - DO NOT EDIT */ | ||
5 | |||
6 | #define IS_LITTLE_ENDIAN 1 | ||
7 | #undef IS_BIG_ENDIAN | ||
8 | |||
9 | |||
10 | #define JS_BYTES_PER_WORD 4L | ||
11 | #define JS_BYTES_PER_DOUBLE 8L | ||
12 | #define JS_BITS_PER_WORD_LOG2 5L | ||
13 | #define JS_ALIGN_OF_POINTER 4L | ||
14 | |||
15 | #define JS_THREADSAFE 1 | ||
16 | |||
17 | #define JS_STACK_GROWTH_DIRECTION (-1) | ||
18 | |||
19 | #define JS_HAVE_LONG_LONG | ||
20 | |||
21 | #endif /* js_cpucfg___ */ | ||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/i586/jsautocfg.h b/meta-moblin/packages/mozilla-headless/mozilla-headless/i586/jsautocfg.h deleted file mode 100644 index 94b44f8e14..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/i586/jsautocfg.h +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | #ifndef js_cpucfg___ | ||
2 | #define js_cpucfg___ | ||
3 | |||
4 | /* AUTOMATICALLY GENERATED - DO NOT EDIT */ | ||
5 | |||
6 | #define IS_LITTLE_ENDIAN 1 | ||
7 | #undef IS_BIG_ENDIAN | ||
8 | |||
9 | |||
10 | #define JS_BYTES_PER_WORD 4L | ||
11 | #define JS_BYTES_PER_DOUBLE 8L | ||
12 | #define JS_BITS_PER_WORD_LOG2 5L | ||
13 | #define JS_ALIGN_OF_POINTER 4L | ||
14 | |||
15 | #define JS_THREADSAFE 1 | ||
16 | |||
17 | #define JS_STACK_GROWTH_DIRECTION (-1) | ||
18 | |||
19 | #define JS_HAVE_LONG_LONG | ||
20 | |||
21 | #endif /* js_cpucfg___ */ | ||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/i686/jsautocfg.h b/meta-moblin/packages/mozilla-headless/mozilla-headless/i686/jsautocfg.h deleted file mode 100644 index 94b44f8e14..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/i686/jsautocfg.h +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | #ifndef js_cpucfg___ | ||
2 | #define js_cpucfg___ | ||
3 | |||
4 | /* AUTOMATICALLY GENERATED - DO NOT EDIT */ | ||
5 | |||
6 | #define IS_LITTLE_ENDIAN 1 | ||
7 | #undef IS_BIG_ENDIAN | ||
8 | |||
9 | |||
10 | #define JS_BYTES_PER_WORD 4L | ||
11 | #define JS_BYTES_PER_DOUBLE 8L | ||
12 | #define JS_BITS_PER_WORD_LOG2 5L | ||
13 | #define JS_ALIGN_OF_POINTER 4L | ||
14 | |||
15 | #define JS_THREADSAFE 1 | ||
16 | |||
17 | #define JS_STACK_GROWTH_DIRECTION (-1) | ||
18 | |||
19 | #define JS_HAVE_LONG_LONG | ||
20 | |||
21 | #endif /* js_cpucfg___ */ | ||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/mozconfig b/meta-moblin/packages/mozilla-headless/mozilla-headless/mozconfig deleted file mode 100644 index 6123d11d27..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/mozconfig +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | # this line sets the directory for all build output | ||
2 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj-headless-release | ||
3 | |||
4 | # comment out the previous line and uncomment these two for a debug build | ||
5 | #mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj-headless-debug | ||
6 | #ac_add_options --disable-optimize --enable-debug | ||
7 | |||
8 | # this is the line that enables the headless implementation | ||
9 | ac_add_options --enable-default-toolkit=cairo-headless | ||
10 | |||
11 | # comment out the previous line and uncomment these two for a GTK build | ||
12 | #ac_add_options --enable-system-cairo | ||
13 | #ac_add_options --enable-default-toolkit=cairo-gtk2 | ||
14 | |||
15 | ac_add_options --disable-tests | ||
16 | ac_add_options --disable-javaxpcom | ||
17 | ac_add_options --enable-application=xulrunner | ||
18 | ac_add_options --enable-pango | ||
19 | ac_add_options --disable-printing | ||
20 | ac_add_options --disable-crashreporter | ||
21 | ac_add_options --enable-plugins | ||
22 | ac_add_options --disable-accessibility | ||
23 | mk_add_options MOZ_CO_PROJECT=xulrunner | ||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/mozilla-jemalloc.patch b/meta-moblin/packages/mozilla-headless/mozilla-headless/mozilla-jemalloc.patch deleted file mode 100644 index aabd6906e8..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/mozilla-jemalloc.patch +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | diff -r f1af606531f5 memory/jemalloc/jemalloc.h | ||
2 | --- a/memory/jemalloc/jemalloc.h Sat Nov 22 20:22:22 2008 +0100 | ||
3 | +++ b/memory/jemalloc/jemalloc.h Mon Dec 01 16:53:06 2008 -0500 | ||
4 | @@ -45,14 +45,14 @@ | ||
5 | } jemalloc_stats_t; | ||
6 | |||
7 | #ifndef MOZ_MEMORY_DARWIN | ||
8 | -void *malloc(size_t size); | ||
9 | -void *valloc(size_t size); | ||
10 | -void *calloc(size_t num, size_t size); | ||
11 | -void *realloc(void *ptr, size_t size); | ||
12 | -void free(void *ptr); | ||
13 | +void *malloc(size_t size) __THROW __attribute_malloc__ __wur; | ||
14 | +void *valloc(size_t size) __THROW __attribute_malloc__ __wur; | ||
15 | +void *calloc(size_t num, size_t size) __THROW __attribute_malloc__ __wur; | ||
16 | +void *realloc(void *ptr, size_t size) __THROW __attribute_malloc__ __wur; | ||
17 | +void free(void *ptr) __THROW __attribute_malloc__ __wur; | ||
18 | #endif | ||
19 | |||
20 | -int posix_memalign(void **memptr, size_t alignment, size_t size); | ||
21 | +int posix_memalign(void **memptr, size_t alignment, size_t size) __THROW __attribute_malloc__ __wur; | ||
22 | void *memalign(size_t alignment, size_t size); | ||
23 | size_t malloc_usable_size(const void *ptr); | ||
24 | void jemalloc_stats(jemalloc_stats_t *stats); | ||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/removebadrpath-1a622cb7c384.patch b/meta-moblin/packages/mozilla-headless/mozilla-headless/removebadrpath-1a622cb7c384.patch deleted file mode 100644 index 9409105780..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/removebadrpath-1a622cb7c384.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | Index: offscreen/js/src/configure.in | ||
2 | =================================================================== | ||
3 | --- offscreen.orig/js/src/configure.in 2009-06-17 14:31:40.000000000 +0100 | ||
4 | +++ offscreen/js/src/configure.in 2009-06-17 14:31:40.000000000 +0100 | ||
5 | @@ -880,7 +880,7 @@ | ||
6 | HOST_AR_FLAGS='$(AR_FLAGS)' | ||
7 | |||
8 | MOZ_JS_LIBS='-L$(libdir) -lmozjs' | ||
9 | -MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin -Wl,-rpath-link,$(PREFIX)/lib' | ||
10 | +MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin' | ||
11 | |||
12 | MOZ_COMPONENT_NSPR_LIBS='-L$(LIBXUL_DIST)/bin $(NSPR_LIBS)' | ||
13 | MOZ_XPCOM_OBSOLETE_LIBS='-L$(LIBXUL_DIST)/lib -lxpcom_compat' | ||
14 | Index: offscreen/configure.in | ||
15 | =================================================================== | ||
16 | --- offscreen.orig/configure.in 2009-06-17 15:09:44.000000000 +0100 | ||
17 | +++ offscreen/configure.in 2009-06-17 15:10:00.000000000 +0100 | ||
18 | @@ -1060,7 +1060,7 @@ | ||
19 | |||
20 | MOZ_JS_LIBS='-L$(LIBXUL_DIST)/bin -lmozjs' | ||
21 | DYNAMIC_XPCOM_LIBS='-L$(LIBXUL_DIST)/bin -lxpcom -lxpcom_core' | ||
22 | -MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin -Wl,-rpath-link,$(prefix)/lib' | ||
23 | +MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin' | ||
24 | XPCOM_FROZEN_LDOPTS='-L$(LIBXUL_DIST)/bin -lxpcom' | ||
25 | LIBXUL_LIBS='$(XPCOM_FROZEN_LDOPTS) -lxul' | ||
26 | XPCOM_GLUE_LDOPTS='$(LIBXUL_DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) $(XPCOM_FROZEN_LDOPTS)' | ||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless/removebadrpath.patch b/meta-moblin/packages/mozilla-headless/mozilla-headless/removebadrpath.patch deleted file mode 100644 index 53ae6d3251..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless/removebadrpath.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | Index: offscreen/js/src/configure.in | ||
2 | =================================================================== | ||
3 | --- offscreen.orig/js/src/configure.in 2009-12-09 13:38:51.000000000 +0000 | ||
4 | +++ offscreen/js/src/configure.in 2009-12-09 14:14:08.000000000 +0000 | ||
5 | @@ -858,7 +858,7 @@ | ||
6 | HOST_AR_FLAGS='$(AR_FLAGS)' | ||
7 | |||
8 | MOZ_JS_LIBS='-L$(libdir) -lmozjs' | ||
9 | -MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin -Wl,-rpath-link,$(PREFIX)/lib' | ||
10 | +MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin' | ||
11 | |||
12 | MOZ_COMPONENT_NSPR_LIBS='-L$(LIBXUL_DIST)/bin $(NSPR_LIBS)' | ||
13 | |||
14 | @@ -3824,7 +3824,7 @@ | ||
15 | [ --with-nspr-libs=LIBS Pass LIBS to LD when linking code that uses NSPR. | ||
16 | See --with-nspr-cflags for more details.], | ||
17 | NSPR_LIBS=$withval) | ||
18 | -$NSPR_LIBS="$NSPR_LIBS -L$(LIBXUL_DIST)/sdk/lib" | ||
19 | +NSPR_LIBS="$NSPR_LIBS -L$(LIBXUL_DIST)/sdk/lib" | ||
20 | AC_SUBST(NSPR_CFLAGS) | ||
21 | AC_SUBST(NSPR_LIBS) | ||
22 | |||
23 | Index: offscreen/configure.in | ||
24 | =================================================================== | ||
25 | --- offscreen.orig/configure.in 2009-12-09 13:38:51.000000000 +0000 | ||
26 | +++ offscreen/configure.in 2009-12-09 14:31:33.000000000 +0000 | ||
27 | @@ -1041,7 +1041,7 @@ | ||
28 | |||
29 | MOZ_JS_LIBS='-L$(LIBXUL_DIST)/bin -lmozjs' | ||
30 | DYNAMIC_XPCOM_LIBS='-L$(LIBXUL_DIST)/bin -lxpcom -lxpcom_core' | ||
31 | -MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin -Wl,-rpath-link,$(prefix)/lib' | ||
32 | +MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin' | ||
33 | XPCOM_FROZEN_LDOPTS='-L$(LIBXUL_DIST)/bin -lxpcom' | ||
34 | LIBXUL_LIBS='$(XPCOM_FROZEN_LDOPTS) -lxul' | ||
35 | XPCOM_GLUE_LDOPTS='$(LIBXUL_DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) $(XPCOM_FROZEN_LDOPTS)' | ||
36 | @@ -8378,7 +8378,7 @@ | ||
37 | if test "$BUILD_CTYPES"; then | ||
38 | # Run the libffi 'configure' script on platforms that it supports. | ||
39 | if test -z "$_MSC_VER"; then | ||
40 | - ac_configure_args="--disable-shared --enable-static --disable-raw-api" | ||
41 | + ac_configure_args="$ac_configure_args --disable-shared --enable-static --disable-raw-api" | ||
42 | if test "$MOZ_DEBUG"; then | ||
43 | ac_configure_args="$ac_configure_args --enable-debug" | ||
44 | fi | ||
diff --git a/meta-moblin/packages/mozilla-headless/mozilla-headless_hg.bb b/meta-moblin/packages/mozilla-headless/mozilla-headless_hg.bb deleted file mode 100644 index 669c526163..0000000000 --- a/meta-moblin/packages/mozilla-headless/mozilla-headless_hg.bb +++ /dev/null | |||
@@ -1,99 +0,0 @@ | |||
1 | |||
2 | #file://0001-Adds-initial-Gtk-clipboard-support-to-moz-headless.patch;patch=1 \ | ||
3 | SRC_URI = "hg://hg.mozilla.org/incubator;protocol=http;module=offscreen \ | ||
4 | file://configurefix-1a622cb7c384.patch;patch=1;rev=1a622cb7c384 \ | ||
5 | file://configurefix.patch;patch=1;notrev=1a622cb7c384 \ | ||
6 | file://mozilla-jemalloc.patch;patch=1 \ | ||
7 | file://removebadrpath-1a622cb7c384.patch;patch=1;rev=1a622cb7c384 \ | ||
8 | file://removebadrpath.patch;patch=1;notrev=1a622cb7c384 \ | ||
9 | file://buildfixhack.patch;patch=1;notrev=1a622cb7c384 \ | ||
10 | file://autoconffix.patch;patch=1 \ | ||
11 | file://jsautocfg.h \ | ||
12 | file://mozconfig" | ||
13 | PV = "0.2+hg-1.0+${SRCPV}" | ||
14 | PR = "r10" | ||
15 | |||
16 | S = "${WORKDIR}/offscreen" | ||
17 | |||
18 | DEPENDS = "gconf gnome-vfs pango dbus-glib alsa-lib libidl-native sqlite3 libidl" | ||
19 | |||
20 | FILES_${PN} += "${libdir}/xulrunner-${XULVERSION} ${libdir}/xulrunner-devel-${XULVERSION}/sdk/lib/*.so" | ||
21 | FILES_${PN}-dev += "${libdir}/xulrunner-devel-${XULVERSION}" | ||
22 | FILES_${PN}-dbg += "${libdir}/xulrunner-devel-${XULVERSION}/sdk/lib/.debug" | ||
23 | |||
24 | # Mozilla's build rules search for -L paths to find libraries. Its | ||
25 | # not clever enough to know where the sysroot is and hence finds host | ||
26 | # object files which is bad. We therefore tell pkg-config not to hide | ||
27 | # paths. See config/rules.mk and the LIBS_DEPS and _LIBDIRS variables. | ||
28 | export PKG_CONFIG_ALLOW_SYSTEM_LIBS = "1" | ||
29 | |||
30 | TARGET_CC_ARCH = "" | ||
31 | |||
32 | CFLAGS = "${TARGET_CFLAGS}" | ||
33 | TARGET_CFLAGS = "-Os -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables" | ||
34 | |||
35 | LDFLAGS = "${TARGET_LDFLAGS}" | ||
36 | TARGET_LDFLAGS = "-Wl,-rpath,${libdir}/xulrunner-${XULVERSION}" | ||
37 | |||
38 | export target_alias=${TARGET_PREFIX} | ||
39 | |||
40 | inherit autotools mozilla | ||
41 | |||
42 | acpaths = "-I ${S}/build/autoconf " | ||
43 | |||
44 | export topsrcdir = "${S}" | ||
45 | |||
46 | do_configure () { | ||
47 | if [ "${SRCREV}" != "1a622cb7c384" ]; then | ||
48 | rm -rf ${S}/build/autoconf/acwinpaths.m4 | ||
49 | rm -rf ${S}/js/src/build/autoconf/acwinpaths.m4 | ||
50 | rm -rf ${S}/nsprpub/build/autoconf/acwinpaths.m4 | ||
51 | mkdir -p ${S}/js/src/dist/include | ||
52 | ln -fs ../../../../nsprpub/dist/include/nspr ${S}/js/src/dist/include/nsprpub | ||
53 | fi | ||
54 | cp ${S}/build/autoconf/install-sh ${S} | ||
55 | autotools_do_configure | ||
56 | # Yes, we run this twice. The first pass sets up npsrpub-config which then | ||
57 | # sets the values correctly on the second try. Ick. | ||
58 | autotools_do_configure | ||
59 | } | ||
60 | |||
61 | do_compile () { | ||
62 | cp ${WORKDIR}/jsautocfg.h ${S}/js/src/ | ||
63 | #oe_runmake -f client.mk build_all | ||
64 | base_do_compile | ||
65 | } | ||
66 | |||
67 | XULVERSION = "1.9.3a1pre" | ||
68 | |||
69 | do_install_append () { | ||
70 | install -d ${D}${sysconfdir}/ld.so.conf.d/ | ||
71 | echo ${libdir}/xulrunner-${XULVERSION}/ > ${D}${sysconfdir}/ld.so.conf.d/mozilla-headless | ||
72 | } | ||
73 | |||
74 | EXTRA_OECONF =+ "--enable-application=xulrunner --enable-default-toolkit=cairo-headless --with-pthreads \ | ||
75 | --enable-pango --enable-optimize --disable-debug --disable-tests \ | ||
76 | --disable-printing --disable-crashreporter --disable-accessibility \ | ||
77 | --disable-javaxpcom --enable-plugins --enable-system-sqlite --disable-necko-wifi" | ||
78 | |||
79 | export LIBXUL_DIST="${S}/dist" | ||
80 | |||
81 | SYSROOT_PREPROCESS_FUNCS += "mozilla_sysroot_preprocess" | ||
82 | |||
83 | mozilla_sysroot_preprocess () { | ||
84 | autotools_stage_dir ${D}/${libdir}/xulrunner-${XULVERSION} ${SYSROOT_DESTDIR}${STAGING_DIR_HOST}${libdir}/xulrunner-${XULVERSION}/ | ||
85 | autotools_stage_dir ${D}/${libdir}/xulrunner-devel-${XULVERSION} ${SYSROOT_DESTDIR}${STAGING_DIR_HOST}${libdir}/xulrunner-devel-${XULVERSION}/ | ||
86 | |||
87 | ln -fs ${STAGING_DIR_HOST}${libdir}/xulrunner-${XULVERSION}/ ${SYSROOT_DESTDIR}${STAGING_DIR_HOST}${libdir}/xulrunner-devel-${XULVERSION}/bin | ||
88 | ln -fs ${STAGING_DIR_HOST}${datadir}/xulrunner-${XULVERSION}/unstable/ ${SYSROOT_DESTDIR}${STAGING_DIR_HOST}${libdir}/xulrunner-devel-${XULVERSION}/idl | ||
89 | ln -fs ${STAGING_DIR_HOST}${includedir}/xulrunner-${XULVERSION}/unstable/ ${SYSROOT_DESTDIR}${STAGING_DIR_HOST}${libdir}/xulrunner-devel-${XULVERSION}/include | ||
90 | ln -fs ${STAGING_DIR_HOST}${libdir}/xulrunner-devel-${XULVERSION}/sdk/lib/ ${SYSROOT_DESTDIR}${STAGING_DIR_HOST}${libdir}/xulrunner-devel-${XULVERSION}/lib | ||
91 | |||
92 | install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS} | ||
93 | install -m 755 ${S}/dist/host/bin/host_xpidl ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/xpidl | ||
94 | } | ||
95 | |||
96 | __anonymous () { | ||
97 | if bb.data.getVar("SRCREV", d, True) == "1a622cb7c384": | ||
98 | bb.data.setVar("XULVERSION", "1.9.2a1pre", d) | ||
99 | } | ||
diff --git a/meta-moblin/packages/mutter-moblin/files/88mutter-panelapps.sh b/meta-moblin/packages/mutter-moblin/files/88mutter-panelapps.sh deleted file mode 100644 index 1df0d06481..0000000000 --- a/meta-moblin/packages/mutter-moblin/files/88mutter-panelapps.sh +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | for APP in /usr/libexec/moblin-panel-*; do | ||
2 | $APP & | ||
3 | done | ||
diff --git a/meta-moblin/packages/mutter-moblin/files/background-tile.png b/meta-moblin/packages/mutter-moblin/files/background-tile.png deleted file mode 100644 index b71a55b679..0000000000 --- a/meta-moblin/packages/mutter-moblin/files/background-tile.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/meta-moblin/packages/mutter-moblin/files/startup-notify.patch b/meta-moblin/packages/mutter-moblin/files/startup-notify.patch deleted file mode 100644 index 72ad42cd98..0000000000 --- a/meta-moblin/packages/mutter-moblin/files/startup-notify.patch +++ /dev/null | |||
@@ -1,51 +0,0 @@ | |||
1 | Index: git/src/mnb-drop-down.c | ||
2 | =================================================================== | ||
3 | --- git.orig/src/mnb-drop-down.c 2009-06-09 16:38:46.000000000 +0100 | ||
4 | +++ git/src/mnb-drop-down.c 2009-06-09 16:41:21.000000000 +0100 | ||
5 | @@ -68,6 +68,37 @@ | ||
6 | gboolean hide_toolbar : 1; | ||
7 | }; | ||
8 | |||
9 | + | ||
10 | +#include <dbus/dbus.h> | ||
11 | + | ||
12 | +static gboolean | ||
13 | +emit_loaded_signal (gpointer user_data) | ||
14 | +{ | ||
15 | + DBusError error = DBUS_ERROR_INIT; | ||
16 | + DBusConnection *conn; | ||
17 | + DBusMessage *msg; | ||
18 | + | ||
19 | + conn = dbus_bus_get (DBUS_BUS_SYSTEM, &error); | ||
20 | + if (!conn) { | ||
21 | + g_printerr ("Cannot connect to system bus: %s", error.message); | ||
22 | + dbus_error_free (&error); | ||
23 | + return FALSE; | ||
24 | + } | ||
25 | + | ||
26 | + msg = dbus_message_new_signal ("/", "org.matchbox_project.desktop", "Loaded"); | ||
27 | + | ||
28 | + dbus_connection_send (conn, msg, NULL); | ||
29 | + dbus_message_unref (msg); | ||
30 | + | ||
31 | + /* Flush explicitly because we're too lazy to integrate DBus into the main | ||
32 | + loop. We're only sending a signal, so if we got as far as here it's | ||
33 | + unlikely to block. */ | ||
34 | + dbus_connection_flush (conn); | ||
35 | + dbus_connection_unref (conn); | ||
36 | + | ||
37 | + return FALSE; | ||
38 | +} | ||
39 | + | ||
40 | static void | ||
41 | mnb_drop_down_get_property (GObject *object, guint property_id, | ||
42 | GValue *value, GParamSpec *pspec) | ||
43 | @@ -137,6 +168,8 @@ | ||
44 | |||
45 | g_signal_emit (actor, dropdown_signals[SHOW_COMPLETED], 0); | ||
46 | g_object_unref (actor); | ||
47 | + | ||
48 | + g_idle_add (emit_loaded_signal, NULL); | ||
49 | } | ||
50 | |||
51 | static void | ||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-applications.inc b/meta-moblin/packages/mutter-moblin/moblin-panel-applications.inc deleted file mode 100644 index 3bf7108555..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-applications.inc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | DESCRIPTION = "Moblin Applications Panel Plugin" | ||
2 | SECTION = "x11/wm" | ||
3 | LICENSE = "GPLv2" | ||
4 | DEPENDS = "mutter-moblin nbtk gtk+ glib-2.0 clutter-1.0 gnome-menus" | ||
5 | |||
6 | SRC_URI = "http://download.moblin.org/sources/moblin-panel-applications/0.1/moblin-panel-applications-0.1.2.tar.bz2" | ||
7 | |||
8 | FILES_${PN} += "${datadir}/dbus-1/services" | ||
9 | |||
10 | inherit autotools | ||
11 | |||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-applications_0.1.2.bb b/meta-moblin/packages/mutter-moblin/moblin-panel-applications_0.1.2.bb deleted file mode 100644 index b80506ee89..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-applications_0.1.2.bb +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | require moblin-panel-applications.inc | ||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-applications_git.bb b/meta-moblin/packages/mutter-moblin/moblin-panel-applications_git.bb deleted file mode 100644 index 21a42fb228..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-applications_git.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require moblin-panel-applications.inc | ||
2 | |||
3 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
4 | PV = "0.1.2+git${SRCPV}" | ||
5 | S = "${WORKDIR}/git" | ||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-media.inc b/meta-moblin/packages/mutter-moblin/moblin-panel-media.inc deleted file mode 100644 index 4170197fe5..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-media.inc +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | DESCRIPTION = "Moblin Applications Panel Plugin" | ||
2 | SECTION = "x11/wm" | ||
3 | LICENSE = "GPLv2" | ||
4 | DEPENDS = "mutter-moblin bickley bognor-regis gtk+" | ||
5 | SRC_URI = "http://download.moblin.org/sources/moblin-panel-media/0.0/moblin-panel-media-0.0.7.tar.bz2" | ||
6 | |||
7 | FILES_${PN} += "${datadir}/dbus-1/services" | ||
8 | |||
9 | inherit autotools | ||
10 | |||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-media_0.0.7.bb b/meta-moblin/packages/mutter-moblin/moblin-panel-media_0.0.7.bb deleted file mode 100644 index 2d76297d8c..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-media_0.0.7.bb +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | require moblin-panel-media.inc | ||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-media_git.bb b/meta-moblin/packages/mutter-moblin/moblin-panel-media_git.bb deleted file mode 100644 index de1351bfdb..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-media_git.bb +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | require moblin-panel-media.inc | ||
2 | |||
3 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
4 | PV = "0.0.7+git${SRCPV}" | ||
5 | S = "${WORKDIR}/git" | ||
6 | |||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-myzone.inc b/meta-moblin/packages/mutter-moblin/moblin-panel-myzone.inc deleted file mode 100644 index e8ca32f726..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-myzone.inc +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | DESCRIPTION = "Moblin Applications Panel Plugin" | ||
2 | SECTION = "x11/wm" | ||
3 | LICENSE = "GPLv2" | ||
4 | DEPENDS = "mx mutter-moblin gtk+ libsocialweb gconf libjana" | ||
5 | SRC_URI = "http://download.moblin.org/sources/moblin-panel-myzone/0.0/moblin-panel-myzone-0.0.12.tar.bz2" | ||
6 | |||
7 | FILES_${PN} += "${datadir}/dbus-1/services" | ||
8 | |||
9 | inherit autotools | ||
10 | |||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-myzone_0.0.12.bb b/meta-moblin/packages/mutter-moblin/moblin-panel-myzone_0.0.12.bb deleted file mode 100644 index 549df6f273..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-myzone_0.0.12.bb +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | require moblin-panel-myzone.inc | ||
2 | |||
3 | DEPENDS = "nbtk mutter-moblin gtk+ mojito gconf libjana" | ||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-myzone_git.bb b/meta-moblin/packages/mutter-moblin/moblin-panel-myzone_git.bb deleted file mode 100644 index 27a6fad0a4..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-myzone_git.bb +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | require moblin-panel-myzone.inc | ||
2 | |||
3 | DEPENDS += "libical" | ||
4 | |||
5 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
6 | PV = "0.0.12+git${SRCPV}" | ||
7 | S = "${WORKDIR}/git" | ||
8 | |||
9 | |||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-pasteboard.inc b/meta-moblin/packages/mutter-moblin/moblin-panel-pasteboard.inc deleted file mode 100644 index df01edc09c..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-pasteboard.inc +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | DESCRIPTION = "Moblin Applications Panel Plugin" | ||
2 | SECTION = "x11/wm" | ||
3 | LICENSE = "GPLv2" | ||
4 | DEPENDS = "nbtk mutter-moblin gtk+ clutter-1.0" | ||
5 | SRC_URI = "http://download.moblin.org/sources/moblin-panel-pasteboard/0.0/moblin-panel-pasteboard-0.0.2.tar.bz2" | ||
6 | |||
7 | FILES_${PN} += "${datadir}/dbus-1/services" | ||
8 | |||
9 | inherit autotools | ||
10 | |||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-pasteboard_0.0.2.bb b/meta-moblin/packages/mutter-moblin/moblin-panel-pasteboard_0.0.2.bb deleted file mode 100644 index a992971092..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-pasteboard_0.0.2.bb +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | require moblin-panel-pasteboard.inc | ||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-pasteboard_git.bb b/meta-moblin/packages/mutter-moblin/moblin-panel-pasteboard_git.bb deleted file mode 100644 index 27394b4ea3..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-pasteboard_git.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require moblin-panel-pasteboard.inc | ||
2 | |||
3 | PV = "0.0.2+git${SRCPV}" | ||
4 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
5 | S = "${WORKDIR}/git" | ||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-people.inc b/meta-moblin/packages/mutter-moblin/moblin-panel-people.inc deleted file mode 100644 index ca6880dfaf..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-people.inc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | DESCRIPTION = "Moblin Applications Panel Plugin" | ||
2 | SECTION = "x11/wm" | ||
3 | LICENSE = "GPLv2" | ||
4 | DEPENDS = "nbtk mutter-moblin anerley gtk+ glib-2.0" | ||
5 | |||
6 | SRC_URI = "http://download.moblin.org/sources/moblin-panel-people/0.0/moblin-panel-people-0.0.9.tar.bz2" | ||
7 | |||
8 | FILES_${PN} += "${datadir}/dbus-1/services" | ||
9 | |||
10 | inherit autotools | ||
11 | |||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-people_0.0.9.bb b/meta-moblin/packages/mutter-moblin/moblin-panel-people_0.0.9.bb deleted file mode 100644 index df52a0de4e..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-people_0.0.9.bb +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | require moblin-panel-people.inc | ||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-people_git.bb b/meta-moblin/packages/mutter-moblin/moblin-panel-people_git.bb deleted file mode 100644 index 1361068d34..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-people_git.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require moblin-panel-people.inc | ||
2 | |||
3 | PV = "0.0.9+git${SRCPV}" | ||
4 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
5 | S = "${WORKDIR}/git" | ||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-status.inc b/meta-moblin/packages/mutter-moblin/moblin-panel-status.inc deleted file mode 100644 index c5f45a730c..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-status.inc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | DESCRIPTION = "Moblin Applications Panel Plugin" | ||
2 | SECTION = "x11/wm" | ||
3 | LICENSE = "GPLv2" | ||
4 | DEPENDS = "mx mutter-moblin dbus-glib clutter-1.0 telepathy-mission-control libsocialweb" | ||
5 | |||
6 | SRC_URI = "http://download.moblin.org/sources/moblin-panel-status/0.0/moblin-panel-status-0.0.9.tar.bz2" | ||
7 | |||
8 | FILES_${PN} += "${datadir}/dbus-1/services" | ||
9 | |||
10 | inherit autotools | ||
11 | |||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-status_0.0.9.bb b/meta-moblin/packages/mutter-moblin/moblin-panel-status_0.0.9.bb deleted file mode 100644 index 2a3c68b1da..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-status_0.0.9.bb +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | require moblin-panel-status.inc | ||
2 | |||
3 | DEPENDS = "nbtk mutter-moblin dbus-glib clutter-1.0 telepathy-mission-control mojito" | ||
diff --git a/meta-moblin/packages/mutter-moblin/moblin-panel-status_git.bb b/meta-moblin/packages/mutter-moblin/moblin-panel-status_git.bb deleted file mode 100644 index 19fec102b8..0000000000 --- a/meta-moblin/packages/mutter-moblin/moblin-panel-status_git.bb +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | require moblin-panel-status.inc | ||
2 | |||
3 | PV = "0.0.9+git${SRCPV}" | ||
4 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
5 | S = "${WORKDIR}/git" | ||
6 | |||
diff --git a/meta-moblin/packages/mutter-moblin/mutter-moblin.inc b/meta-moblin/packages/mutter-moblin/mutter-moblin.inc deleted file mode 100644 index 31a3d96733..0000000000 --- a/meta-moblin/packages/mutter-moblin/mutter-moblin.inc +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | DESCRIPTION = "A Moblin specific plugin for the Mutter composite window manager" | ||
2 | SECTION = "x11/wm" | ||
3 | LICENSE = "GPLv2" | ||
4 | DEPENDS = "clutter-1.0 nbtk mutter gnome-menus mojito libjana anerley clutter-mozembed bickley bognor-regis" | ||
5 | |||
6 | SRC_URI = "http://download.moblin.org/sources/mutter-moblin/0.43/mutter-moblin-0.43.8.tar.bz2 \ | ||
7 | file://startup-notify.patch;patch=1 \ | ||
8 | file://88mutter-panelapps.sh \ | ||
9 | file://background-tile.png" | ||
10 | |||
11 | FILES_${PN} += "\ | ||
12 | ${sysconfdir}/X11 \ | ||
13 | ${libdir}/metacity/plugins/clutter/*.so* \ | ||
14 | ${libdir}/mutter/plugins/*.so* \ | ||
15 | ${datadir}/mutter-moblin-netbook-plugin \ | ||
16 | ${datadir}/dbus-1/services \ | ||
17 | ${datadir}/moblin-panel-applications/theme \ | ||
18 | ${datadir}/moblin-panel-pasteboard/theme" | ||
19 | FILES_${PN}-dbg += "${libdir}/metacity/plugins/clutter/.debug/*" | ||
20 | FILES_${PN}-dbg += "${libdir}/mutter/plugins/.debug/*" | ||
21 | |||
22 | ASNEEDED = "" | ||
23 | |||
24 | EXTRA_OECONF = "--enable-ahoghill --enable-netpanel --enable-people" | ||
25 | |||
26 | inherit autotools | ||
27 | |||
28 | do_configure_prepend () { | ||
29 | rm -f ${S}/build/autotools/gtk-doc.m4 | ||
30 | cp ${WORKDIR}/background-tile.png ${S}/data/theme/panel/ | ||
31 | } | ||
32 | |||
33 | do_install_append () { | ||
34 | install -d ${D}${sysconfdir}/X11/Xsession.d/ | ||
35 | install ${WORKDIR}/88mutter-panelapps.sh ${D}${sysconfdir}/X11/Xsession.d/ | ||
36 | } | ||
37 | |||
38 | |||
39 | pkg_postinst_${PN} () { | ||
40 | #!/bin/sh -e | ||
41 | if [ "x$D" != "x" ]; then | ||
42 | exit 1 | ||
43 | fi | ||
44 | |||
45 | . ${sysconfdir}/init.d/functions | ||
46 | |||
47 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type list --list-type string --set /apps/metacity/general/clutter_plugins '[moblin-netbook]' | ||
48 | |||
49 | nbtk-create-image-cache ${datadir}/mutter-moblin/theme | ||
50 | } | ||
diff --git a/meta-moblin/packages/mutter-moblin/mutter-moblin_0.43.8.bb b/meta-moblin/packages/mutter-moblin/mutter-moblin_0.43.8.bb deleted file mode 100644 index 1136163a95..0000000000 --- a/meta-moblin/packages/mutter-moblin/mutter-moblin_0.43.8.bb +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | require mutter-moblin.inc | ||
2 | |||
3 | SRC_URI = "http://download.moblin.org/sources/mutter-moblin/0.43/mutter-moblin-0.43.8.tar.bz2 \ | ||
4 | file://startup-notify.patch;patch=1 \ | ||
5 | file://88mutter-panelapps.sh \ | ||
6 | file://background-tile.png" | ||
diff --git a/meta-moblin/packages/mutter-moblin/mutter-moblin_git.bb b/meta-moblin/packages/mutter-moblin/mutter-moblin_git.bb deleted file mode 100644 index 99ce5799a3..0000000000 --- a/meta-moblin/packages/mutter-moblin/mutter-moblin_git.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | require mutter-moblin.inc | ||
2 | |||
3 | PV = "0.43.8+git${SRCPV}" | ||
4 | PR = "r11" | ||
5 | |||
6 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git \ | ||
7 | file://startup-notify.patch;patch=1 \ | ||
8 | file://88mutter-panelapps.sh \ | ||
9 | file://background-tile.png" | ||
10 | |||
11 | S = "${WORKDIR}/git" | ||
12 | |||
diff --git a/meta-moblin/packages/mx/mx_git.bb b/meta-moblin/packages/mx/mx_git.bb deleted file mode 100644 index 884b22313a..0000000000 --- a/meta-moblin/packages/mx/mx_git.bb +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | DESCRIPTION = "Moblin toolkit library for netbooks" | ||
2 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
3 | LICENSE = "LGPLv2.1" | ||
4 | PV = "0.0+git${SRCPV}" | ||
5 | PR = "r1" | ||
6 | DEPENDS = "clutter-1.0 clutter-imcontext" | ||
7 | S = "${WORKDIR}/git" | ||
8 | |||
9 | inherit autotools | ||
10 | |||
11 | EXTRA_OECONF = "--disable-introspection --without-clutter-gesture" | ||
12 | |||
13 | do_configure_prepend () { | ||
14 | echo "EXTRA_DIST=" > ${S}/gtk-doc.make | ||
15 | touch ${S}/INSTALL | ||
16 | } | ||
diff --git a/meta-moblin/packages/nautilus/nautilus/idl-sysroot.patch b/meta-moblin/packages/nautilus/nautilus/idl-sysroot.patch deleted file mode 100644 index 0062cfb11a..0000000000 --- a/meta-moblin/packages/nautilus/nautilus/idl-sysroot.patch +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | Index: nautilus-2.24.2/add-include-prefix | ||
2 | =================================================================== | ||
3 | --- nautilus-2.24.2.orig/add-include-prefix 2008-10-06 17:22:21.000000000 +0000 | ||
4 | +++ nautilus-2.24.2/add-include-prefix 2009-04-09 16:00:05.000000000 +0000 | ||
5 | @@ -1 +1 @@ | ||
6 | -sed -e 's/^/ /' -e 's/ */ /g' -e 's/ / -I /g' -e 's/ -I $//' | ||
7 | +sed -e 's:^: :' -e 's: *: :g' -e 's: : -I '"$SYSROOT"':g' -e 's: -I '"$SYSROOT"'$::' | ||
diff --git a/meta-moblin/packages/nautilus/nautilus/no-try-run-strftime.diff b/meta-moblin/packages/nautilus/nautilus/no-try-run-strftime.diff deleted file mode 100644 index ccd2934b3a..0000000000 --- a/meta-moblin/packages/nautilus/nautilus/no-try-run-strftime.diff +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | --- /tmp/configure.in 2009-04-13 11:26:43.000000000 +0200 | ||
2 | +++ nautilus-2.26.1/configure.in 2009-04-13 11:28:37.000000000 +0200 | ||
3 | @@ -375,25 +375,6 @@ | ||
4 | |||
5 | dnl =========================================================================== | ||
6 | |||
7 | -dnl strftime checks | ||
8 | - | ||
9 | -AC_TRY_RUN([#include <time.h> | ||
10 | - int main () | ||
11 | - { | ||
12 | - char buf[100]; | ||
13 | - struct tm tm = {0}; | ||
14 | - tm.tm_year = 99; | ||
15 | - if (strftime(buf, 100, "%EY", &tm) == 4 && | ||
16 | - strcmp (buf, "1999")==0) | ||
17 | - return 0; | ||
18 | - return 1; | ||
19 | - } | ||
20 | - ], | ||
21 | - AC_DEFINE(HAVE_STRFTIME_EXTENSION, 1, [Define if strftime supports %E and %O modifiers.]) | ||
22 | - ) | ||
23 | - | ||
24 | -dnl =========================================================================== | ||
25 | - | ||
26 | # | ||
27 | # Checks for Xft/XRender | ||
28 | # | ||
diff --git a/meta-moblin/packages/nautilus/nautilus_2.26.1.bb b/meta-moblin/packages/nautilus/nautilus_2.26.1.bb deleted file mode 100644 index e653ae9918..0000000000 --- a/meta-moblin/packages/nautilus/nautilus_2.26.1.bb +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | # nautilus OE build file | ||
2 | # Copyright (C) 2005, Advanced Micro Devices, Inc. All Rights Reserved | ||
3 | # Released under the MIT license (see packages/COPYING) | ||
4 | |||
5 | inherit gnome | ||
6 | |||
7 | SRC_URI += "file://idl-sysroot.patch;patch=1 \ | ||
8 | file://no-try-run-strftime.diff;patch=1 \ | ||
9 | " | ||
10 | |||
11 | export SYSROOT = "${STAGING_DIR_HOST}" | ||
12 | |||
13 | LICENSE = "GPL" | ||
14 | |||
15 | DEPENDS = "gail gtk+ pango gnome-desktop libxml2 dbus-glib libunique libexif librsvg" | ||
16 | #DEPENDS += "gvfs" | ||
17 | #RDEPENDS = "gvfs gvfsd-ftp gvfsd-sftp gvfsd-trash" | ||
18 | |||
19 | EXTRA_OECONF = " --disable-gtk-doc --disable-update-mimedb --disable-tracker --disable-beagle" | ||
20 | |||
21 | PACKAGES += " libnautilus" | ||
22 | |||
23 | FILES_${PN} += "${datadir}/icons /usr/libexec/ " | ||
24 | FILES_libnautilus = "/usr/lib/*.so*" | ||
25 | FILES_${PN}-dbg += "/usr/libexec/.debug" | ||
26 | |||
27 | do_configure_prepend() { | ||
28 | sed -i -e /docs/d Makefile.am | ||
29 | } | ||
diff --git a/meta-moblin/packages/nbtk/nbtk.inc b/meta-moblin/packages/nbtk/nbtk.inc deleted file mode 100644 index 0ad2dff6c0..0000000000 --- a/meta-moblin/packages/nbtk/nbtk.inc +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | DESCRIPTION = "Moblin toolkit library for netbooks" | ||
2 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
3 | SRC_URI = "http://download.moblin.org/sources/${PN}/1.2/${PN}-${PV}.tar.bz2" | ||
4 | LICENSE = "LGPLv2.1" | ||
5 | PR = "r4" | ||
6 | DEPENDS = "clutter-1.0 libccss clutter-imcontext" | ||
7 | |||
8 | EXTRA_OECONF = "--disable-introspection" | ||
9 | |||
10 | inherit autotools | ||
11 | |||
12 | do_configure_prepend () { | ||
13 | echo "EXTRA_DIST=" > ${S}/gtk-doc.make | ||
14 | touch ${S}/INSTALL | ||
15 | } | ||
diff --git a/meta-moblin/packages/nbtk/nbtk_1.2.3.bb b/meta-moblin/packages/nbtk/nbtk_1.2.3.bb deleted file mode 100644 index d3eaf3449b..0000000000 --- a/meta-moblin/packages/nbtk/nbtk_1.2.3.bb +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | require nbtk.inc | ||
diff --git a/meta-moblin/packages/nbtk/nbtk_git.bb b/meta-moblin/packages/nbtk/nbtk_git.bb deleted file mode 100644 index 0caf4ecc75..0000000000 --- a/meta-moblin/packages/nbtk/nbtk_git.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require nbtk.inc | ||
2 | |||
3 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git" | ||
4 | PV = "1.2.3+git${SRCPV}" | ||
5 | S = "${WORKDIR}/git" | ||
diff --git a/meta-moblin/packages/packagekit/gnome-packagekit_2.28.2.bb b/meta-moblin/packages/packagekit/gnome-packagekit_2.28.2.bb deleted file mode 100644 index 9b31e98ba3..0000000000 --- a/meta-moblin/packages/packagekit/gnome-packagekit_2.28.2.bb +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | DESCRIPTION = "GNOME frontend for packagekit" | ||
2 | LICENSE = "GPL" | ||
3 | |||
4 | DEPENDS = "packagekit libsexy gconf-dbus polkit polkit-gnome libunique gnome-menus devicekit-power" | ||
5 | |||
6 | inherit gnome | ||
7 | |||
8 | SRC_URI = "http://www.packagekit.org/releases/gnome-packagekit-${PV}.tar.gz" | ||
9 | |||
10 | EXTRA_OECONF = " --enable-compile-warnings=no --disable-scrollkeeper " | ||
11 | |||
12 | do_configure_prepend() { | ||
13 | sed -i -e s/help/docs/ Makefile.am | ||
14 | sed -i -e s:-Werror::g configure.ac | ||
15 | } | ||
16 | |||
17 | FILES_${PN} += "${datadir}/icons ${datadir}/gnome" | ||
diff --git a/meta-moblin/packages/packagekit/packagekit-0.5.6/configurefix.patch b/meta-moblin/packages/packagekit/packagekit-0.5.6/configurefix.patch deleted file mode 100644 index 48f959186a..0000000000 --- a/meta-moblin/packages/packagekit/packagekit-0.5.6/configurefix.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: PackageKit-0.6.0/configure.ac | ||
2 | =================================================================== | ||
3 | --- PackageKit-0.6.0.orig/configure.ac 2010-01-04 16:32:18.000000000 +0000 | ||
4 | +++ PackageKit-0.6.0/configure.ac 2010-01-29 11:33:48.000000000 +0000 | ||
5 | @@ -90,7 +90,7 @@ | ||
6 | enable_strict=$default_strict) | ||
7 | if test x$enable_strict != xno; then | ||
8 | if test "$GCC" = "yes"; then | ||
9 | - WARNINGFLAGS_CPP="$WARNINGFLAGS_CPP -Werror" | ||
10 | + : | ||
11 | fi | ||
12 | fi | ||
13 | |||
diff --git a/meta-moblin/packages/packagekit/packagekit-0.5.6/opkgfixes.patch b/meta-moblin/packages/packagekit/packagekit-0.5.6/opkgfixes.patch deleted file mode 100644 index 64da86a526..0000000000 --- a/meta-moblin/packages/packagekit/packagekit-0.5.6/opkgfixes.patch +++ /dev/null | |||
@@ -1,421 +0,0 @@ | |||
1 | Index: PackageKit-0.6.0/backends/opkg/pk-backend-opkg.c | ||
2 | =================================================================== | ||
3 | --- PackageKit-0.6.0.orig/backends/opkg/pk-backend-opkg.c 2010-01-29 09:39:33.000000000 +0000 | ||
4 | +++ PackageKit-0.6.0/backends/opkg/pk-backend-opkg.c 2010-01-29 11:30:51.000000000 +0000 | ||
5 | @@ -29,8 +29,6 @@ | ||
6 | |||
7 | #include <libopkg/opkg.h> | ||
8 | |||
9 | -static opkg_t *opkg; | ||
10 | - | ||
11 | enum { | ||
12 | SEARCH_NAME, | ||
13 | SEARCH_DESCRIPTION, | ||
14 | @@ -62,7 +60,7 @@ | ||
15 | * check an opkg package for known GUI dependancies | ||
16 | */ | ||
17 | static gboolean | ||
18 | -opkg_is_gui_pkg (opkg_package_t *pkg) | ||
19 | +opkg_is_gui_pkg (pkg_t *pkg) | ||
20 | { | ||
21 | |||
22 | /* TODO: check appropriate tag */ | ||
23 | @@ -84,7 +82,7 @@ | ||
24 | * check an opkg package to determine if it is a development package | ||
25 | */ | ||
26 | static gboolean | ||
27 | -opkg_is_devel_pkg (opkg_package_t *pkg) | ||
28 | +opkg_is_devel_pkg (pkg_t *pkg) | ||
29 | { | ||
30 | if (g_strrstr (pkg->name, "-dev")) | ||
31 | return TRUE; | ||
32 | @@ -105,7 +103,7 @@ | ||
33 | * returns true if the tag is present | ||
34 | */ | ||
35 | static gboolean | ||
36 | -opkg_check_tag (opkg_package_t *pkg, const gchar *tag) | ||
37 | +opkg_check_tag (pkg_t *pkg, const gchar *tag) | ||
38 | { | ||
39 | if (pkg->tags && tag) | ||
40 | return (g_strrstr (pkg->tags, tag) != NULL); | ||
41 | @@ -118,7 +116,7 @@ | ||
42 | { | ||
43 | switch (err) | ||
44 | { | ||
45 | - case OPKG_NO_ERROR: | ||
46 | +/* case OPKG_NO_ERROR: | ||
47 | break; | ||
48 | case OPKG_PACKAGE_NOT_INSTALLED: | ||
49 | pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED, NULL); | ||
50 | @@ -140,7 +138,7 @@ | ||
51 | break; | ||
52 | case OPKG_PACKAGE_NOT_AVAILABLE: | ||
53 | pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_FOUND, NULL); | ||
54 | - break; | ||
55 | + break;*/ | ||
56 | default: | ||
57 | opkg_unknown_error (backend, err, "Update package"); | ||
58 | } | ||
59 | @@ -152,7 +150,7 @@ | ||
60 | static void | ||
61 | backend_initialize (PkBackend *backend) | ||
62 | { | ||
63 | - opkg = opkg_new (); | ||
64 | + int opkg = opkg_new (); | ||
65 | |||
66 | if (!opkg) { | ||
67 | pk_backend_error_code (backend, | ||
68 | @@ -162,8 +160,8 @@ | ||
69 | } | ||
70 | |||
71 | #ifdef OPKG_OFFLINE_ROOT | ||
72 | - opkg_set_option (opkg, (char *) "offline_root", OPKG_OFFLINE_ROOT); | ||
73 | - opkg_re_read_config_files (opkg); | ||
74 | + opkg_set_option ((char *) "offline_root", OPKG_OFFLINE_ROOT); | ||
75 | + opkg_re_read_config_files (); | ||
76 | #endif | ||
77 | |||
78 | } | ||
79 | @@ -174,22 +172,22 @@ | ||
80 | static void | ||
81 | backend_destroy (PkBackend *backend) | ||
82 | { | ||
83 | - opkg_free (opkg); | ||
84 | + opkg_free (); | ||
85 | } | ||
86 | |||
87 | |||
88 | static void | ||
89 | -pk_opkg_progress_cb (opkg_t *_opkg, const opkg_progress_data_t *pdata, void *data) | ||
90 | +pk_opkg_progress_cb (const opkg_progress_data_t *pdata, void *data) | ||
91 | { | ||
92 | - PkBackend *backend = PK_BACKEND (data); | ||
93 | + PkBackend *backend = (PkBackend*) data; | ||
94 | if (!backend) | ||
95 | return; | ||
96 | |||
97 | pk_backend_set_percentage (backend, pdata->percentage); | ||
98 | - if (pdata->package) | ||
99 | + if (pdata->pkg) | ||
100 | { | ||
101 | gchar *uid; | ||
102 | - opkg_package_t *pkg = pdata->package; | ||
103 | + pkg_t *pkg = pdata->pkg; | ||
104 | gint status = PK_INFO_ENUM_UNKNOWN; | ||
105 | |||
106 | uid = g_strdup_printf ("%s;%s;%s;", | ||
107 | @@ -225,12 +223,12 @@ | ||
108 | { | ||
109 | int ret; | ||
110 | |||
111 | - ret = opkg_update_package_lists (opkg, pk_opkg_progress_cb, backend); | ||
112 | + ret = opkg_update_package_lists (pk_opkg_progress_cb, backend); | ||
113 | |||
114 | if (ret) { | ||
115 | - if (ret == OPKG_DOWNLOAD_FAILED) | ||
116 | - pk_backend_error_code (backend, PK_ERROR_ENUM_REPO_NOT_AVAILABLE, NULL); | ||
117 | - else | ||
118 | +// if (ret == OPKG_DOWNLOAD_FAILED) | ||
119 | +// pk_backend_error_code (backend, PK_ERROR_ENUM_REPO_NOT_AVAILABLE, NULL); | ||
120 | +// else | ||
121 | opkg_unknown_error (backend, ret, "Refreshing cache"); | ||
122 | } | ||
123 | pk_backend_finished (backend); | ||
124 | @@ -256,7 +254,7 @@ | ||
125 | */ | ||
126 | |||
127 | static void | ||
128 | -pk_opkg_package_list_cb (opkg_t *_opkg, opkg_package_t *pkg, void *data) | ||
129 | +pk_opkg_package_list_cb (pkg_t *pkg, void *data) | ||
130 | { | ||
131 | SearchParams *params = (SearchParams*) data; | ||
132 | gchar *uid; | ||
133 | @@ -298,7 +296,7 @@ | ||
134 | uid = g_strdup_printf ("%s;%s;%s;", | ||
135 | pkg->name, pkg->version, pkg->architecture); | ||
136 | |||
137 | - if (pkg->installed) | ||
138 | + if (pkg->state_status == SS_INSTALLED) | ||
139 | status = PK_INFO_ENUM_INSTALLED; | ||
140 | else | ||
141 | status = PK_INFO_ENUM_AVAILABLE; | ||
142 | @@ -318,10 +316,10 @@ | ||
143 | opkg_is_gui_pkg (pkg)) | ||
144 | goto end_handle; | ||
145 | if (pk_bitfield_contain(filters, PK_FILTER_ENUM_INSTALLED) && | ||
146 | - (!pkg->installed)) | ||
147 | + (pkg->state_status != SS_INSTALLED)) | ||
148 | goto end_handle; | ||
149 | if (pk_bitfield_contain(filters, PK_FILTER_ENUM_NOT_INSTALLED) && | ||
150 | - (pkg->installed)) | ||
151 | + (pkg->state_status == SS_INSTALLED)) | ||
152 | goto end_handle; | ||
153 | |||
154 | pk_backend_package (params->backend, status, uid, pkg->description); | ||
155 | @@ -338,7 +336,7 @@ | ||
156 | |||
157 | params = pk_backend_get_pointer (backend, "search-params"); | ||
158 | |||
159 | - opkg_list_packages (opkg, pk_opkg_package_list_cb, params); | ||
160 | + opkg_list_packages (pk_opkg_package_list_cb, params); | ||
161 | |||
162 | pk_backend_finished (params->backend); | ||
163 | |||
164 | @@ -349,7 +347,7 @@ | ||
165 | } | ||
166 | |||
167 | static void | ||
168 | -backend_search_name (PkBackend *backend, PkBitfield filters, const gchar *search) | ||
169 | +backend_search_name (PkBackend *backend, PkBitfield filters, gchar **search) | ||
170 | { | ||
171 | SearchParams *params; | ||
172 | |||
173 | @@ -360,7 +358,7 @@ | ||
174 | params = g_new0 (SearchParams, 1); | ||
175 | params->filters = filters; | ||
176 | params->search_type = SEARCH_NAME; | ||
177 | - params->needle = g_utf8_strdown (search, -1); | ||
178 | + params->needle = g_utf8_strdown (search[0], -1); | ||
179 | params->backend = backend; | ||
180 | |||
181 | pk_backend_set_pointer (backend, "search-params", params); | ||
182 | @@ -371,7 +369,7 @@ | ||
183 | * backend_search_description: | ||
184 | */ | ||
185 | static void | ||
186 | -backend_search_description (PkBackend *backend, PkBitfield filters, const gchar *search) | ||
187 | +backend_search_description (PkBackend *backend, PkBitfield filters, gchar **search) | ||
188 | { | ||
189 | SearchParams *params; | ||
190 | |||
191 | @@ -382,7 +380,7 @@ | ||
192 | params = g_new0 (SearchParams, 1); | ||
193 | params->filters = filters; | ||
194 | params->search_type = SEARCH_DESCRIPTION; | ||
195 | - params->needle = g_utf8_strdown (search, -1); | ||
196 | + params->needle = g_utf8_strdown (search[0], -1); | ||
197 | params->backend = backend; | ||
198 | |||
199 | pk_backend_set_pointer (backend, "search-params", params); | ||
200 | @@ -390,7 +388,7 @@ | ||
201 | } | ||
202 | |||
203 | static void | ||
204 | -backend_search_group (PkBackend *backend, PkBitfield filters, const gchar *search) | ||
205 | +backend_search_group (PkBackend *backend, PkBitfield filters, gchar **search) | ||
206 | { | ||
207 | SearchParams *params; | ||
208 | |||
209 | @@ -401,7 +399,7 @@ | ||
210 | params = g_new0 (SearchParams, 1); | ||
211 | params->filters = filters; | ||
212 | params->search_type = SEARCH_TAG; | ||
213 | - params->needle = g_strdup_printf ("group::%s", search); | ||
214 | + params->needle = g_strdup_printf ("group::%s", search[0]); | ||
215 | params->backend = backend; | ||
216 | |||
217 | pk_backend_set_pointer (backend, "search-params", params); | ||
218 | @@ -412,9 +410,9 @@ | ||
219 | static gboolean | ||
220 | backend_install_packages_thread (PkBackend *backend) | ||
221 | { | ||
222 | - PkPackageId *pi; | ||
223 | gint err, i; | ||
224 | gchar **package_ids; | ||
225 | + gchar **parts; | ||
226 | |||
227 | package_ids = pk_backend_get_strv (backend, "pkids"); | ||
228 | |||
229 | @@ -424,13 +422,13 @@ | ||
230 | { | ||
231 | pk_backend_package (backend, PK_INFO_ENUM_INSTALLING, package_ids[i], NULL); | ||
232 | |||
233 | - pi = pk_package_id_new_from_string (package_ids[i]); | ||
234 | + parts = pk_package_id_split (package_ids[i]); | ||
235 | |||
236 | - err = opkg_install_package (opkg, pi->name, pk_opkg_progress_cb, backend); | ||
237 | + err = opkg_install_package (parts[PK_PACKAGE_ID_NAME], pk_opkg_progress_cb, backend); | ||
238 | if (err) | ||
239 | handle_install_error (backend, err); | ||
240 | |||
241 | - pk_package_id_free (pi); | ||
242 | + g_strfreev (parts); | ||
243 | if (err != 0) | ||
244 | break; | ||
245 | } | ||
246 | @@ -453,9 +451,9 @@ | ||
247 | static gboolean | ||
248 | backend_remove_packages_thread (PkBackend *backend) | ||
249 | { | ||
250 | - PkPackageId *pi; | ||
251 | gint err, i; | ||
252 | gchar **package_ids; | ||
253 | + gchar **parts; | ||
254 | gboolean allow_deps; | ||
255 | gboolean autoremove; | ||
256 | gpointer *data; | ||
257 | @@ -467,29 +465,30 @@ | ||
258 | autoremove = GPOINTER_TO_INT (data[2]); | ||
259 | g_free (data); | ||
260 | |||
261 | - opkg_set_option (opkg, (char *)"autoremove", &autoremove); | ||
262 | - opkg_set_option (opkg, (char *)"force_removal_of_dependent_packages", &allow_deps); | ||
263 | + opkg_set_option ((char *)"autoremove", &autoremove); | ||
264 | + opkg_set_option ((char *)"force_removal_of_dependent_packages", &allow_deps); | ||
265 | |||
266 | err = 0; | ||
267 | |||
268 | for (i = 0; package_ids[i]; i++) | ||
269 | { | ||
270 | - pi = pk_package_id_new_from_string (package_ids[i]); | ||
271 | pk_backend_package (backend, PK_INFO_ENUM_REMOVING, package_ids[i], NULL); | ||
272 | |||
273 | - err = opkg_remove_package (opkg, pi->name, pk_opkg_progress_cb, backend); | ||
274 | + parts = pk_package_id_split (package_ids[i]); | ||
275 | + | ||
276 | + err = opkg_remove_package (parts[PK_PACKAGE_ID_NAME], pk_opkg_progress_cb, backend); | ||
277 | |||
278 | switch (err) | ||
279 | { | ||
280 | - case OPKG_NO_ERROR: | ||
281 | - break; | ||
282 | - case OPKG_PACKAGE_NOT_INSTALLED: | ||
283 | - pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED, NULL); | ||
284 | - break; | ||
285 | + //case OPKG_NO_ERROR: | ||
286 | + // break; | ||
287 | + //case OPKG_PACKAGE_NOT_INSTALLED: | ||
288 | + // pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED, NULL); | ||
289 | + // break; | ||
290 | default: | ||
291 | opkg_unknown_error (backend, err, "Remove"); | ||
292 | } | ||
293 | - pk_package_id_free (pi); | ||
294 | + g_strfreev (parts); | ||
295 | |||
296 | if (err != 0) | ||
297 | break; | ||
298 | @@ -540,7 +539,7 @@ | ||
299 | gint err; | ||
300 | |||
301 | /* FIXME: support only_trusted */ | ||
302 | - err = opkg_upgrade_all (opkg, pk_opkg_progress_cb, backend); | ||
303 | + err = opkg_upgrade_all (pk_opkg_progress_cb, backend); | ||
304 | |||
305 | if (err) | ||
306 | opkg_unknown_error (backend, err, "Upgrading system"); | ||
307 | @@ -564,29 +563,28 @@ | ||
308 | static gboolean | ||
309 | backend_update_package_thread (PkBackend *backend) | ||
310 | { | ||
311 | - PkPackageId *pi; | ||
312 | + gchar **parts; | ||
313 | gint err = 0; | ||
314 | const gchar *package_id; | ||
315 | |||
316 | /* FIXME: support only_trusted */ | ||
317 | package_id = pk_backend_get_string (backend, "pkgid"); | ||
318 | - pi = pk_package_id_new_from_string (package_id); | ||
319 | + parts = pk_package_id_split (package_id); | ||
320 | |||
321 | - if (!pi->name || !pi->version) | ||
322 | + if (!parts) | ||
323 | { | ||
324 | pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_FOUND, | ||
325 | "Package not found"); | ||
326 | - pk_package_id_free (pi); | ||
327 | pk_backend_finished (backend); | ||
328 | return FALSE; | ||
329 | } | ||
330 | |||
331 | - err = opkg_upgrade_package (opkg, pi->name, pk_opkg_progress_cb, backend); | ||
332 | + err = opkg_upgrade_package (parts[PK_PACKAGE_ID_NAME], pk_opkg_progress_cb, backend); | ||
333 | if (err) | ||
334 | handle_install_error (backend, err); | ||
335 | |||
336 | |||
337 | - pk_package_id_free (pi); | ||
338 | + g_strfreev (parts); | ||
339 | pk_backend_finished (backend); | ||
340 | return (err != 0); | ||
341 | } | ||
342 | @@ -610,13 +608,13 @@ | ||
343 | */ | ||
344 | |||
345 | static void | ||
346 | -pk_opkg_list_upgradable_cb (opkg_t *_opkg, opkg_package_t *pkg, void *data) | ||
347 | +pk_opkg_list_upgradable_cb (pkg_t *pkg, void *data) | ||
348 | { | ||
349 | - PkBackend *backend = PK_BACKEND (data); | ||
350 | + PkBackend *backend = (PkBackend*) data; | ||
351 | gchar *uid; | ||
352 | gint status; | ||
353 | |||
354 | - if (pkg->installed) | ||
355 | + if (pkg->state_status == SS_INSTALLED) | ||
356 | status = PK_INFO_ENUM_INSTALLED; | ||
357 | else | ||
358 | status = PK_INFO_ENUM_AVAILABLE; | ||
359 | @@ -631,7 +629,7 @@ | ||
360 | static gboolean | ||
361 | backend_get_updates_thread (PkBackend *backend) | ||
362 | { | ||
363 | - opkg_list_upgradable_packages (opkg, pk_opkg_list_upgradable_cb, backend); | ||
364 | + opkg_list_upgradable_packages (pk_opkg_list_upgradable_cb, backend); | ||
365 | pk_backend_finished (backend); | ||
366 | return TRUE; | ||
367 | } | ||
368 | @@ -668,16 +666,18 @@ | ||
369 | static gboolean | ||
370 | backend_get_details_thread (PkBackend *backend) | ||
371 | { | ||
372 | - PkPackageId *pi; | ||
373 | gchar **package_ids; | ||
374 | + gchar **parts; | ||
375 | int group_index; | ||
376 | PkGroupEnum group = 0; | ||
377 | - opkg_package_t *pkg; | ||
378 | + pkg_t *pkg; | ||
379 | gchar *newid; | ||
380 | |||
381 | package_ids = pk_backend_get_strv(backend, "package_ids"); | ||
382 | - pi = pk_package_id_new_from_string (package_ids[0]); | ||
383 | - if (pi == NULL) | ||
384 | + parts = pk_package_id_split (package_ids[0]); | ||
385 | + | ||
386 | + | ||
387 | + if (!parts) | ||
388 | { | ||
389 | pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_ID_INVALID, "invalid package id"); | ||
390 | pk_backend_finished (backend); | ||
391 | @@ -685,8 +685,8 @@ | ||
392 | } | ||
393 | |||
394 | |||
395 | - pkg = opkg_find_package (opkg, pi->name, pi->version, pi->arch, pi->data); | ||
396 | - pk_package_id_free (pi); | ||
397 | + pkg = opkg_find_package (parts[PK_PACKAGE_ID_NAME], parts[PK_PACKAGE_ID_VERSION], parts[PK_PACKAGE_ID_ARCH], parts[PK_PACKAGE_ID_DATA]); | ||
398 | + g_strfreev (parts); | ||
399 | |||
400 | if (!pkg) | ||
401 | { | ||
402 | @@ -695,7 +695,7 @@ | ||
403 | return FALSE; | ||
404 | } | ||
405 | |||
406 | - newid = g_strdup_printf ("%s;%s;%s;%s", pkg->name, pkg->version, pkg->architecture, pkg->repository); | ||
407 | + newid = g_strdup_printf ("%s;%s;%s;%s", pkg->name, pkg->version, pkg->architecture, pkg->src->name); | ||
408 | |||
409 | if (pkg->tags) { | ||
410 | for (group_index = 0; group < PK_GROUP_ENUM_LAST; group_index++) { | ||
411 | @@ -706,9 +706,8 @@ | ||
412 | } | ||
413 | } | ||
414 | |||
415 | - pk_backend_details (backend, newid, NULL, group, pkg->description, pkg->url, pkg->size); | ||
416 | + pk_backend_details (backend, newid, NULL, group, pkg->description, NULL, pkg->size); | ||
417 | g_free (newid); | ||
418 | - opkg_package_free(pkg); | ||
419 | pk_backend_finished (backend); | ||
420 | return TRUE; | ||
421 | } | ||
diff --git a/meta-moblin/packages/packagekit/packagekit-0.6.0/configurefix.patch b/meta-moblin/packages/packagekit/packagekit-0.6.0/configurefix.patch deleted file mode 100644 index 48f959186a..0000000000 --- a/meta-moblin/packages/packagekit/packagekit-0.6.0/configurefix.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: PackageKit-0.6.0/configure.ac | ||
2 | =================================================================== | ||
3 | --- PackageKit-0.6.0.orig/configure.ac 2010-01-04 16:32:18.000000000 +0000 | ||
4 | +++ PackageKit-0.6.0/configure.ac 2010-01-29 11:33:48.000000000 +0000 | ||
5 | @@ -90,7 +90,7 @@ | ||
6 | enable_strict=$default_strict) | ||
7 | if test x$enable_strict != xno; then | ||
8 | if test "$GCC" = "yes"; then | ||
9 | - WARNINGFLAGS_CPP="$WARNINGFLAGS_CPP -Werror" | ||
10 | + : | ||
11 | fi | ||
12 | fi | ||
13 | |||
diff --git a/meta-moblin/packages/packagekit/packagekit-0.6.0/opkgfixes.patch b/meta-moblin/packages/packagekit/packagekit-0.6.0/opkgfixes.patch deleted file mode 100644 index 64da86a526..0000000000 --- a/meta-moblin/packages/packagekit/packagekit-0.6.0/opkgfixes.patch +++ /dev/null | |||
@@ -1,421 +0,0 @@ | |||
1 | Index: PackageKit-0.6.0/backends/opkg/pk-backend-opkg.c | ||
2 | =================================================================== | ||
3 | --- PackageKit-0.6.0.orig/backends/opkg/pk-backend-opkg.c 2010-01-29 09:39:33.000000000 +0000 | ||
4 | +++ PackageKit-0.6.0/backends/opkg/pk-backend-opkg.c 2010-01-29 11:30:51.000000000 +0000 | ||
5 | @@ -29,8 +29,6 @@ | ||
6 | |||
7 | #include <libopkg/opkg.h> | ||
8 | |||
9 | -static opkg_t *opkg; | ||
10 | - | ||
11 | enum { | ||
12 | SEARCH_NAME, | ||
13 | SEARCH_DESCRIPTION, | ||
14 | @@ -62,7 +60,7 @@ | ||
15 | * check an opkg package for known GUI dependancies | ||
16 | */ | ||
17 | static gboolean | ||
18 | -opkg_is_gui_pkg (opkg_package_t *pkg) | ||
19 | +opkg_is_gui_pkg (pkg_t *pkg) | ||
20 | { | ||
21 | |||
22 | /* TODO: check appropriate tag */ | ||
23 | @@ -84,7 +82,7 @@ | ||
24 | * check an opkg package to determine if it is a development package | ||
25 | */ | ||
26 | static gboolean | ||
27 | -opkg_is_devel_pkg (opkg_package_t *pkg) | ||
28 | +opkg_is_devel_pkg (pkg_t *pkg) | ||
29 | { | ||
30 | if (g_strrstr (pkg->name, "-dev")) | ||
31 | return TRUE; | ||
32 | @@ -105,7 +103,7 @@ | ||
33 | * returns true if the tag is present | ||
34 | */ | ||
35 | static gboolean | ||
36 | -opkg_check_tag (opkg_package_t *pkg, const gchar *tag) | ||
37 | +opkg_check_tag (pkg_t *pkg, const gchar *tag) | ||
38 | { | ||
39 | if (pkg->tags && tag) | ||
40 | return (g_strrstr (pkg->tags, tag) != NULL); | ||
41 | @@ -118,7 +116,7 @@ | ||
42 | { | ||
43 | switch (err) | ||
44 | { | ||
45 | - case OPKG_NO_ERROR: | ||
46 | +/* case OPKG_NO_ERROR: | ||
47 | break; | ||
48 | case OPKG_PACKAGE_NOT_INSTALLED: | ||
49 | pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED, NULL); | ||
50 | @@ -140,7 +138,7 @@ | ||
51 | break; | ||
52 | case OPKG_PACKAGE_NOT_AVAILABLE: | ||
53 | pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_FOUND, NULL); | ||
54 | - break; | ||
55 | + break;*/ | ||
56 | default: | ||
57 | opkg_unknown_error (backend, err, "Update package"); | ||
58 | } | ||
59 | @@ -152,7 +150,7 @@ | ||
60 | static void | ||
61 | backend_initialize (PkBackend *backend) | ||
62 | { | ||
63 | - opkg = opkg_new (); | ||
64 | + int opkg = opkg_new (); | ||
65 | |||
66 | if (!opkg) { | ||
67 | pk_backend_error_code (backend, | ||
68 | @@ -162,8 +160,8 @@ | ||
69 | } | ||
70 | |||
71 | #ifdef OPKG_OFFLINE_ROOT | ||
72 | - opkg_set_option (opkg, (char *) "offline_root", OPKG_OFFLINE_ROOT); | ||
73 | - opkg_re_read_config_files (opkg); | ||
74 | + opkg_set_option ((char *) "offline_root", OPKG_OFFLINE_ROOT); | ||
75 | + opkg_re_read_config_files (); | ||
76 | #endif | ||
77 | |||
78 | } | ||
79 | @@ -174,22 +172,22 @@ | ||
80 | static void | ||
81 | backend_destroy (PkBackend *backend) | ||
82 | { | ||
83 | - opkg_free (opkg); | ||
84 | + opkg_free (); | ||
85 | } | ||
86 | |||
87 | |||
88 | static void | ||
89 | -pk_opkg_progress_cb (opkg_t *_opkg, const opkg_progress_data_t *pdata, void *data) | ||
90 | +pk_opkg_progress_cb (const opkg_progress_data_t *pdata, void *data) | ||
91 | { | ||
92 | - PkBackend *backend = PK_BACKEND (data); | ||
93 | + PkBackend *backend = (PkBackend*) data; | ||
94 | if (!backend) | ||
95 | return; | ||
96 | |||
97 | pk_backend_set_percentage (backend, pdata->percentage); | ||
98 | - if (pdata->package) | ||
99 | + if (pdata->pkg) | ||
100 | { | ||
101 | gchar *uid; | ||
102 | - opkg_package_t *pkg = pdata->package; | ||
103 | + pkg_t *pkg = pdata->pkg; | ||
104 | gint status = PK_INFO_ENUM_UNKNOWN; | ||
105 | |||
106 | uid = g_strdup_printf ("%s;%s;%s;", | ||
107 | @@ -225,12 +223,12 @@ | ||
108 | { | ||
109 | int ret; | ||
110 | |||
111 | - ret = opkg_update_package_lists (opkg, pk_opkg_progress_cb, backend); | ||
112 | + ret = opkg_update_package_lists (pk_opkg_progress_cb, backend); | ||
113 | |||
114 | if (ret) { | ||
115 | - if (ret == OPKG_DOWNLOAD_FAILED) | ||
116 | - pk_backend_error_code (backend, PK_ERROR_ENUM_REPO_NOT_AVAILABLE, NULL); | ||
117 | - else | ||
118 | +// if (ret == OPKG_DOWNLOAD_FAILED) | ||
119 | +// pk_backend_error_code (backend, PK_ERROR_ENUM_REPO_NOT_AVAILABLE, NULL); | ||
120 | +// else | ||
121 | opkg_unknown_error (backend, ret, "Refreshing cache"); | ||
122 | } | ||
123 | pk_backend_finished (backend); | ||
124 | @@ -256,7 +254,7 @@ | ||
125 | */ | ||
126 | |||
127 | static void | ||
128 | -pk_opkg_package_list_cb (opkg_t *_opkg, opkg_package_t *pkg, void *data) | ||
129 | +pk_opkg_package_list_cb (pkg_t *pkg, void *data) | ||
130 | { | ||
131 | SearchParams *params = (SearchParams*) data; | ||
132 | gchar *uid; | ||
133 | @@ -298,7 +296,7 @@ | ||
134 | uid = g_strdup_printf ("%s;%s;%s;", | ||
135 | pkg->name, pkg->version, pkg->architecture); | ||
136 | |||
137 | - if (pkg->installed) | ||
138 | + if (pkg->state_status == SS_INSTALLED) | ||
139 | status = PK_INFO_ENUM_INSTALLED; | ||
140 | else | ||
141 | status = PK_INFO_ENUM_AVAILABLE; | ||
142 | @@ -318,10 +316,10 @@ | ||
143 | opkg_is_gui_pkg (pkg)) | ||
144 | goto end_handle; | ||
145 | if (pk_bitfield_contain(filters, PK_FILTER_ENUM_INSTALLED) && | ||
146 | - (!pkg->installed)) | ||
147 | + (pkg->state_status != SS_INSTALLED)) | ||
148 | goto end_handle; | ||
149 | if (pk_bitfield_contain(filters, PK_FILTER_ENUM_NOT_INSTALLED) && | ||
150 | - (pkg->installed)) | ||
151 | + (pkg->state_status == SS_INSTALLED)) | ||
152 | goto end_handle; | ||
153 | |||
154 | pk_backend_package (params->backend, status, uid, pkg->description); | ||
155 | @@ -338,7 +336,7 @@ | ||
156 | |||
157 | params = pk_backend_get_pointer (backend, "search-params"); | ||
158 | |||
159 | - opkg_list_packages (opkg, pk_opkg_package_list_cb, params); | ||
160 | + opkg_list_packages (pk_opkg_package_list_cb, params); | ||
161 | |||
162 | pk_backend_finished (params->backend); | ||
163 | |||
164 | @@ -349,7 +347,7 @@ | ||
165 | } | ||
166 | |||
167 | static void | ||
168 | -backend_search_name (PkBackend *backend, PkBitfield filters, const gchar *search) | ||
169 | +backend_search_name (PkBackend *backend, PkBitfield filters, gchar **search) | ||
170 | { | ||
171 | SearchParams *params; | ||
172 | |||
173 | @@ -360,7 +358,7 @@ | ||
174 | params = g_new0 (SearchParams, 1); | ||
175 | params->filters = filters; | ||
176 | params->search_type = SEARCH_NAME; | ||
177 | - params->needle = g_utf8_strdown (search, -1); | ||
178 | + params->needle = g_utf8_strdown (search[0], -1); | ||
179 | params->backend = backend; | ||
180 | |||
181 | pk_backend_set_pointer (backend, "search-params", params); | ||
182 | @@ -371,7 +369,7 @@ | ||
183 | * backend_search_description: | ||
184 | */ | ||
185 | static void | ||
186 | -backend_search_description (PkBackend *backend, PkBitfield filters, const gchar *search) | ||
187 | +backend_search_description (PkBackend *backend, PkBitfield filters, gchar **search) | ||
188 | { | ||
189 | SearchParams *params; | ||
190 | |||
191 | @@ -382,7 +380,7 @@ | ||
192 | params = g_new0 (SearchParams, 1); | ||
193 | params->filters = filters; | ||
194 | params->search_type = SEARCH_DESCRIPTION; | ||
195 | - params->needle = g_utf8_strdown (search, -1); | ||
196 | + params->needle = g_utf8_strdown (search[0], -1); | ||
197 | params->backend = backend; | ||
198 | |||
199 | pk_backend_set_pointer (backend, "search-params", params); | ||
200 | @@ -390,7 +388,7 @@ | ||
201 | } | ||
202 | |||
203 | static void | ||
204 | -backend_search_group (PkBackend *backend, PkBitfield filters, const gchar *search) | ||
205 | +backend_search_group (PkBackend *backend, PkBitfield filters, gchar **search) | ||
206 | { | ||
207 | SearchParams *params; | ||
208 | |||
209 | @@ -401,7 +399,7 @@ | ||
210 | params = g_new0 (SearchParams, 1); | ||
211 | params->filters = filters; | ||
212 | params->search_type = SEARCH_TAG; | ||
213 | - params->needle = g_strdup_printf ("group::%s", search); | ||
214 | + params->needle = g_strdup_printf ("group::%s", search[0]); | ||
215 | params->backend = backend; | ||
216 | |||
217 | pk_backend_set_pointer (backend, "search-params", params); | ||
218 | @@ -412,9 +410,9 @@ | ||
219 | static gboolean | ||
220 | backend_install_packages_thread (PkBackend *backend) | ||
221 | { | ||
222 | - PkPackageId *pi; | ||
223 | gint err, i; | ||
224 | gchar **package_ids; | ||
225 | + gchar **parts; | ||
226 | |||
227 | package_ids = pk_backend_get_strv (backend, "pkids"); | ||
228 | |||
229 | @@ -424,13 +422,13 @@ | ||
230 | { | ||
231 | pk_backend_package (backend, PK_INFO_ENUM_INSTALLING, package_ids[i], NULL); | ||
232 | |||
233 | - pi = pk_package_id_new_from_string (package_ids[i]); | ||
234 | + parts = pk_package_id_split (package_ids[i]); | ||
235 | |||
236 | - err = opkg_install_package (opkg, pi->name, pk_opkg_progress_cb, backend); | ||
237 | + err = opkg_install_package (parts[PK_PACKAGE_ID_NAME], pk_opkg_progress_cb, backend); | ||
238 | if (err) | ||
239 | handle_install_error (backend, err); | ||
240 | |||
241 | - pk_package_id_free (pi); | ||
242 | + g_strfreev (parts); | ||
243 | if (err != 0) | ||
244 | break; | ||
245 | } | ||
246 | @@ -453,9 +451,9 @@ | ||
247 | static gboolean | ||
248 | backend_remove_packages_thread (PkBackend *backend) | ||
249 | { | ||
250 | - PkPackageId *pi; | ||
251 | gint err, i; | ||
252 | gchar **package_ids; | ||
253 | + gchar **parts; | ||
254 | gboolean allow_deps; | ||
255 | gboolean autoremove; | ||
256 | gpointer *data; | ||
257 | @@ -467,29 +465,30 @@ | ||
258 | autoremove = GPOINTER_TO_INT (data[2]); | ||
259 | g_free (data); | ||
260 | |||
261 | - opkg_set_option (opkg, (char *)"autoremove", &autoremove); | ||
262 | - opkg_set_option (opkg, (char *)"force_removal_of_dependent_packages", &allow_deps); | ||
263 | + opkg_set_option ((char *)"autoremove", &autoremove); | ||
264 | + opkg_set_option ((char *)"force_removal_of_dependent_packages", &allow_deps); | ||
265 | |||
266 | err = 0; | ||
267 | |||
268 | for (i = 0; package_ids[i]; i++) | ||
269 | { | ||
270 | - pi = pk_package_id_new_from_string (package_ids[i]); | ||
271 | pk_backend_package (backend, PK_INFO_ENUM_REMOVING, package_ids[i], NULL); | ||
272 | |||
273 | - err = opkg_remove_package (opkg, pi->name, pk_opkg_progress_cb, backend); | ||
274 | + parts = pk_package_id_split (package_ids[i]); | ||
275 | + | ||
276 | + err = opkg_remove_package (parts[PK_PACKAGE_ID_NAME], pk_opkg_progress_cb, backend); | ||
277 | |||
278 | switch (err) | ||
279 | { | ||
280 | - case OPKG_NO_ERROR: | ||
281 | - break; | ||
282 | - case OPKG_PACKAGE_NOT_INSTALLED: | ||
283 | - pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED, NULL); | ||
284 | - break; | ||
285 | + //case OPKG_NO_ERROR: | ||
286 | + // break; | ||
287 | + //case OPKG_PACKAGE_NOT_INSTALLED: | ||
288 | + // pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED, NULL); | ||
289 | + // break; | ||
290 | default: | ||
291 | opkg_unknown_error (backend, err, "Remove"); | ||
292 | } | ||
293 | - pk_package_id_free (pi); | ||
294 | + g_strfreev (parts); | ||
295 | |||
296 | if (err != 0) | ||
297 | break; | ||
298 | @@ -540,7 +539,7 @@ | ||
299 | gint err; | ||
300 | |||
301 | /* FIXME: support only_trusted */ | ||
302 | - err = opkg_upgrade_all (opkg, pk_opkg_progress_cb, backend); | ||
303 | + err = opkg_upgrade_all (pk_opkg_progress_cb, backend); | ||
304 | |||
305 | if (err) | ||
306 | opkg_unknown_error (backend, err, "Upgrading system"); | ||
307 | @@ -564,29 +563,28 @@ | ||
308 | static gboolean | ||
309 | backend_update_package_thread (PkBackend *backend) | ||
310 | { | ||
311 | - PkPackageId *pi; | ||
312 | + gchar **parts; | ||
313 | gint err = 0; | ||
314 | const gchar *package_id; | ||
315 | |||
316 | /* FIXME: support only_trusted */ | ||
317 | package_id = pk_backend_get_string (backend, "pkgid"); | ||
318 | - pi = pk_package_id_new_from_string (package_id); | ||
319 | + parts = pk_package_id_split (package_id); | ||
320 | |||
321 | - if (!pi->name || !pi->version) | ||
322 | + if (!parts) | ||
323 | { | ||
324 | pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_FOUND, | ||
325 | "Package not found"); | ||
326 | - pk_package_id_free (pi); | ||
327 | pk_backend_finished (backend); | ||
328 | return FALSE; | ||
329 | } | ||
330 | |||
331 | - err = opkg_upgrade_package (opkg, pi->name, pk_opkg_progress_cb, backend); | ||
332 | + err = opkg_upgrade_package (parts[PK_PACKAGE_ID_NAME], pk_opkg_progress_cb, backend); | ||
333 | if (err) | ||
334 | handle_install_error (backend, err); | ||
335 | |||
336 | |||
337 | - pk_package_id_free (pi); | ||
338 | + g_strfreev (parts); | ||
339 | pk_backend_finished (backend); | ||
340 | return (err != 0); | ||
341 | } | ||
342 | @@ -610,13 +608,13 @@ | ||
343 | */ | ||
344 | |||
345 | static void | ||
346 | -pk_opkg_list_upgradable_cb (opkg_t *_opkg, opkg_package_t *pkg, void *data) | ||
347 | +pk_opkg_list_upgradable_cb (pkg_t *pkg, void *data) | ||
348 | { | ||
349 | - PkBackend *backend = PK_BACKEND (data); | ||
350 | + PkBackend *backend = (PkBackend*) data; | ||
351 | gchar *uid; | ||
352 | gint status; | ||
353 | |||
354 | - if (pkg->installed) | ||
355 | + if (pkg->state_status == SS_INSTALLED) | ||
356 | status = PK_INFO_ENUM_INSTALLED; | ||
357 | else | ||
358 | status = PK_INFO_ENUM_AVAILABLE; | ||
359 | @@ -631,7 +629,7 @@ | ||
360 | static gboolean | ||
361 | backend_get_updates_thread (PkBackend *backend) | ||
362 | { | ||
363 | - opkg_list_upgradable_packages (opkg, pk_opkg_list_upgradable_cb, backend); | ||
364 | + opkg_list_upgradable_packages (pk_opkg_list_upgradable_cb, backend); | ||
365 | pk_backend_finished (backend); | ||
366 | return TRUE; | ||
367 | } | ||
368 | @@ -668,16 +666,18 @@ | ||
369 | static gboolean | ||
370 | backend_get_details_thread (PkBackend *backend) | ||
371 | { | ||
372 | - PkPackageId *pi; | ||
373 | gchar **package_ids; | ||
374 | + gchar **parts; | ||
375 | int group_index; | ||
376 | PkGroupEnum group = 0; | ||
377 | - opkg_package_t *pkg; | ||
378 | + pkg_t *pkg; | ||
379 | gchar *newid; | ||
380 | |||
381 | package_ids = pk_backend_get_strv(backend, "package_ids"); | ||
382 | - pi = pk_package_id_new_from_string (package_ids[0]); | ||
383 | - if (pi == NULL) | ||
384 | + parts = pk_package_id_split (package_ids[0]); | ||
385 | + | ||
386 | + | ||
387 | + if (!parts) | ||
388 | { | ||
389 | pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_ID_INVALID, "invalid package id"); | ||
390 | pk_backend_finished (backend); | ||
391 | @@ -685,8 +685,8 @@ | ||
392 | } | ||
393 | |||
394 | |||
395 | - pkg = opkg_find_package (opkg, pi->name, pi->version, pi->arch, pi->data); | ||
396 | - pk_package_id_free (pi); | ||
397 | + pkg = opkg_find_package (parts[PK_PACKAGE_ID_NAME], parts[PK_PACKAGE_ID_VERSION], parts[PK_PACKAGE_ID_ARCH], parts[PK_PACKAGE_ID_DATA]); | ||
398 | + g_strfreev (parts); | ||
399 | |||
400 | if (!pkg) | ||
401 | { | ||
402 | @@ -695,7 +695,7 @@ | ||
403 | return FALSE; | ||
404 | } | ||
405 | |||
406 | - newid = g_strdup_printf ("%s;%s;%s;%s", pkg->name, pkg->version, pkg->architecture, pkg->repository); | ||
407 | + newid = g_strdup_printf ("%s;%s;%s;%s", pkg->name, pkg->version, pkg->architecture, pkg->src->name); | ||
408 | |||
409 | if (pkg->tags) { | ||
410 | for (group_index = 0; group < PK_GROUP_ENUM_LAST; group_index++) { | ||
411 | @@ -706,9 +706,8 @@ | ||
412 | } | ||
413 | } | ||
414 | |||
415 | - pk_backend_details (backend, newid, NULL, group, pkg->description, pkg->url, pkg->size); | ||
416 | + pk_backend_details (backend, newid, NULL, group, pkg->description, NULL, pkg->size); | ||
417 | g_free (newid); | ||
418 | - opkg_package_free(pkg); | ||
419 | pk_backend_finished (backend); | ||
420 | return TRUE; | ||
421 | } | ||
diff --git a/meta-moblin/packages/packagekit/packagekit_0.5.6.bb b/meta-moblin/packages/packagekit/packagekit_0.5.6.bb deleted file mode 100644 index 57f05650c1..0000000000 --- a/meta-moblin/packages/packagekit/packagekit_0.5.6.bb +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | DESCRIPTION = "PackageKit package management abstraction" | ||
2 | SECTION = "libs" | ||
3 | PRIORITY = "optional" | ||
4 | LICENSE = "GPL" | ||
5 | DEPENDS = "gtk+ python polkit dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native (>= 0.37.1) connman" | ||
6 | RDEPENDS_${PN} = "opkg" | ||
7 | |||
8 | inherit gnome autotools | ||
9 | |||
10 | SRC_URI = "http://www.packagekit.org/releases/PackageKit-${PV}.tar.gz \ | ||
11 | file://configurefix.patch;patch=1 \ | ||
12 | file://opkgfixes.patch;patch=1" | ||
13 | PR = "r1" | ||
14 | |||
15 | S = "${WORKDIR}/PackageKit-${PV}" | ||
16 | |||
17 | EXTRA_OECONF = "--with-security-framework=dummy \ | ||
18 | --with-default-backend=opkg \ | ||
19 | --enable-opkg \ | ||
20 | --disable-tests \ | ||
21 | --disable-qt \ | ||
22 | --disable-gstreamer-plugin \ | ||
23 | --disable-local \ | ||
24 | --disable-networkmanager \ | ||
25 | ac_cv_path_XMLTO=no \ | ||
26 | " | ||
27 | |||
28 | do_configure_prepend() { | ||
29 | mkdir -p m4 | ||
30 | echo "EXTRA_DIST=" > gtk-doc.make | ||
31 | } | ||
32 | |||
33 | do_configure_append() { | ||
34 | for i in $(find . -name Makefile) ; do | ||
35 | sed -i -e s:${STAGING_DIR_NATIVE}::g \ | ||
36 | -e s:${bindir}/mkdir:${STAGING_BINDIR_NATIVE}/mkdir:g \ | ||
37 | -e s:/usr/bin/intltool-merge:${STAGING_BINDIR_NATIVE}/intltool-merge:g \ | ||
38 | $i | ||
39 | done | ||
40 | } | ||
41 | |||
42 | |||
43 | PACKAGES =+ "${PN}-website" | ||
44 | FILES_${PN}-website = "${datadir}/PackageKit/website" | ||
45 | |||
46 | PACKAGES =+ "${PN}-python" | ||
47 | FILES_${PN}-python = "${libdir}/python*" | ||
48 | |||
49 | PACKAGES =+ "${PN}-gtkmodule" | ||
50 | FILES_${PN}-gtkmodule = "${libdir}/gtk-2.0/*/*.so" | ||
51 | |||
52 | FILES_${PN} += "${libdir}/packagekit-backend/*.so ${libdir}/pm-utils ${datadir}/dbus-1/system-services/ ${datadir}/PolicyKit ${datadir}/PackageKit" | ||
53 | FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so ${libdir}/gtk-2.0/*/.debug" | ||
54 | FILES_${PN}-dev += "${libdir}/packagekit-backend/*a ${libdir}/gtk-2.0/*/*a" | ||
55 | |||
56 | |||
57 | |||
diff --git a/meta-moblin/packages/pulseaudio/libatomics-ops/doublefix.patch b/meta-moblin/packages/pulseaudio/libatomics-ops/doublefix.patch deleted file mode 100644 index 2172cac41e..0000000000 --- a/meta-moblin/packages/pulseaudio/libatomics-ops/doublefix.patch +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | Double path references breaks recent autoconf+automake | ||
2 | |||
3 | RP 2/1/10 | ||
4 | |||
5 | Index: libatomic_ops-1.2/src/atomic_ops/sysdeps/Makefile.am | ||
6 | =================================================================== | ||
7 | --- libatomic_ops-1.2.orig/src/atomic_ops/sysdeps/Makefile.am 2005-09-28 00:53:16.000000000 +0100 | ||
8 | +++ libatomic_ops-1.2/src/atomic_ops/sysdeps/Makefile.am 2010-02-01 14:28:46.397820574 +0000 | ||
9 | @@ -25,7 +25,6 @@ | ||
10 | README \ | ||
11 | \ | ||
12 | gcc/alpha.h gcc/arm.h gcc/x86.h \ | ||
13 | - gcc/hppa.h gcc/ia64.h \ | ||
14 | gcc/powerpc.h gcc/sparc.h \ | ||
15 | gcc/hppa.h gcc/m68k.h gcc/s390.h \ | ||
16 | gcc/ia64.h gcc/x86_64.h gcc/cris.h \ | ||
17 | Index: libatomic_ops-1.2/doc/Makefile.am | ||
18 | =================================================================== | ||
19 | --- libatomic_ops-1.2.orig/doc/Makefile.am 2010-02-01 15:20:09.207788884 +0000 | ||
20 | +++ libatomic_ops-1.2/doc/Makefile.am 2010-02-01 15:20:20.909049794 +0000 | ||
21 | @@ -1,3 +1,3 @@ | ||
22 | # installed documentation | ||
23 | # | ||
24 | -dist_pkgdata_DATA=COPYING LICENSING.txt README.txt COPYING README_stack.txt README_malloc.txt README_win32.txt | ||
25 | +dist_pkgdata_DATA=LICENSING.txt README.txt COPYING README_stack.txt README_malloc.txt README_win32.txt | ||
diff --git a/meta-moblin/packages/pulseaudio/libatomics-ops/fedora/libatomic_ops-1.2-ppclwzfix.patch b/meta-moblin/packages/pulseaudio/libatomics-ops/fedora/libatomic_ops-1.2-ppclwzfix.patch deleted file mode 100644 index 51161dbe0f..0000000000 --- a/meta-moblin/packages/pulseaudio/libatomics-ops/fedora/libatomic_ops-1.2-ppclwzfix.patch +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | http://cvs.fedoraproject.org/viewcvs/devel/libatomic_ops/libatomic_ops-1.2-ppclwzfix.patch | ||
2 | |||
3 | * add fix for bad variable handling on PPC | ||
4 | |||
5 | --- libatomic_ops-1.2.orig/src/atomic_ops/sysdeps/gcc/powerpc.h 2007-05-29 19:29:52.000000000 +0200 | ||
6 | +++ libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/powerpc.h 2007-05-29 19:30:48.000000000 +0200 | ||
7 | @@ -72,7 +72,7 @@ | ||
8 | /* registers. I always got "impossible constraint" when I */ | ||
9 | /* tried the "y" constraint. */ | ||
10 | __asm__ __volatile__ ( | ||
11 | - "lwz %0,%1\n" | ||
12 | + "lwz%U1%X1 %0,%1\n" | ||
13 | "cmpw cr7,%0,%0\n" | ||
14 | "bne- cr7,1f\n" | ||
15 | "1: isync\n" | ||
diff --git a/meta-moblin/packages/pulseaudio/libatomics-ops_1.2.bb b/meta-moblin/packages/pulseaudio/libatomics-ops_1.2.bb deleted file mode 100644 index 207f1b1ec6..0000000000 --- a/meta-moblin/packages/pulseaudio/libatomics-ops_1.2.bb +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | DESCRIPTION = "A library for atomic integer operations" | ||
2 | LICENSE = "MIT" | ||
3 | |||
4 | PR = "r4" | ||
5 | |||
6 | SRC_URI = "http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-1.2.tar.gz \ | ||
7 | file://fedora/libatomic_ops-1.2-ppclwzfix.patch;patch=1 \ | ||
8 | file://doublefix.patch;patch=1" | ||
9 | |||
10 | S = "${WORKDIR}/libatomic_ops-${PV}" | ||
11 | |||
12 | ALLOW_EMPTY_${PN} = "1" | ||
13 | |||
14 | inherit autotools pkgconfig | ||
diff --git a/meta-moblin/packages/pulseaudio/libcanberra/autoconf_version.patch b/meta-moblin/packages/pulseaudio/libcanberra/autoconf_version.patch deleted file mode 100644 index 73a2ea6e49..0000000000 --- a/meta-moblin/packages/pulseaudio/libcanberra/autoconf_version.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | Allow a slightly older autoconf and disable the inbuild libltdl | ||
2 | |||
3 | RP - 16/4/09 | ||
4 | |||
5 | Index: libcanberra-0.10/Makefile.am | ||
6 | =================================================================== | ||
7 | --- libcanberra-0.10.orig/Makefile.am 2009-04-16 14:38:53.000000000 +0100 | ||
8 | +++ libcanberra-0.10/Makefile.am 2009-04-16 14:39:04.000000000 +0100 | ||
9 | @@ -19,7 +19,7 @@ | ||
10 | dist_doc_DATA = README | ||
11 | |||
12 | EXTRA_DIST = bootstrap.sh autogen.sh LGPL libcanberra.schemas | ||
13 | -SUBDIRS = src gtkdoc libltdl doc | ||
14 | +SUBDIRS = src gtkdoc doc | ||
15 | |||
16 | MAINTAINERCLEANFILES = README | ||
17 | noinst_DATA = README | ||
18 | Index: libcanberra-0.10/configure.ac | ||
19 | =================================================================== | ||
20 | --- libcanberra-0.10.orig/configure.ac 2009-04-16 14:32:33.000000000 +0100 | ||
21 | +++ libcanberra-0.10/configure.ac 2009-04-16 14:37:50.000000000 +0100 | ||
22 | @@ -19,7 +19,7 @@ | ||
23 | # License along with libcanberra. If not, see | ||
24 | # <http://www.gnu.org/licenses/>. | ||
25 | |||
26 | -AC_PREREQ(2.62) | ||
27 | +AC_PREREQ(2.61) | ||
28 | |||
29 | AC_INIT([libcanberra], 0.10, [mzyvopnaoreen (at) 0pointer (dot) de]) | ||
30 | AC_CONFIG_SRCDIR([src/common.c]) | ||
31 | @@ -70,7 +70,6 @@ | ||
32 | AC_PROG_LIBTOOL | ||
33 | AC_SUBST(LTDLINCL) | ||
34 | AC_SUBST(LIBLTDL) | ||
35 | -AC_CONFIG_SUBDIRS(libltdl) | ||
36 | |||
37 | #### Determine build environment #### | ||
38 | |||
diff --git a/meta-moblin/packages/pulseaudio/libcanberra/nofallbackfix.patch b/meta-moblin/packages/pulseaudio/libcanberra/nofallbackfix.patch deleted file mode 100644 index 89a4fbf9f1..0000000000 --- a/meta-moblin/packages/pulseaudio/libcanberra/nofallbackfix.patch +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | Index: libcanberra-0.10/src/sound-theme-spec.c | ||
2 | =================================================================== | ||
3 | --- libcanberra-0.10.orig/src/sound-theme-spec.c 2009-05-22 17:08:23.000000000 +0100 | ||
4 | +++ libcanberra-0.10/src/sound-theme-spec.c 2009-05-22 17:12:50.000000000 +0100 | ||
5 | @@ -398,9 +398,9 @@ | ||
6 | if ((ret = load_theme_dir(t, name)) < 0) | ||
7 | goto fail; | ||
8 | |||
9 | + /* The fallback theme may intentionally not exist so ignore failure */ | ||
10 | if (!t->loaded_fallback_theme) | ||
11 | - if ((ret = load_theme_dir(t, FALLBACK_THEME)) < 0) | ||
12 | - goto fail; | ||
13 | + load_theme_dir(t, FALLBACK_THEME); | ||
14 | |||
15 | if (*_t) | ||
16 | ca_theme_data_free(*_t); | ||
diff --git a/meta-moblin/packages/pulseaudio/libcanberra_0.10.bb b/meta-moblin/packages/pulseaudio/libcanberra_0.10.bb deleted file mode 100644 index c6d25dccb0..0000000000 --- a/meta-moblin/packages/pulseaudio/libcanberra_0.10.bb +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | DESCRIPTION = "Libcanberra is an implementation of the XDG Sound Theme and Name Specifications, for generating event sounds on free desktops." | ||
2 | LICENSE = "LGPL" | ||
3 | DEPENDS = "gtk+ pulseaudio alsa-lib libtool" | ||
4 | PR = "r3" | ||
5 | |||
6 | inherit gconf autotools | ||
7 | |||
8 | SRC_URI = "http://0pointer.de/lennart/projects/libcanberra/libcanberra-${PV}.tar.gz \ | ||
9 | file://nofallbackfix.patch;patch=1 \ | ||
10 | file://autoconf_version.patch;patch=1" | ||
11 | |||
12 | EXTRA_OECONF = " --disable-oss --disable-ltdl-install" | ||
13 | |||
14 | do_configure_prepend () { | ||
15 | rm -f ${S}/libltdl/configure* | ||
16 | } | ||
17 | |||
18 | FILES_${PN} += "${libdir}/gtk-2.0/modules/ ${datadir}/gnome" | ||
19 | FILES_${PN}-dbg += "${libdir}/gtk-2.0/modules/.debug" | ||
20 | |||
21 | AUTOTOOLS_STAGE_PKGCONFIG = "1" | ||
22 | |||
diff --git a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/alsaerror.patch b/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/alsaerror.patch deleted file mode 100644 index 2efa3e89b8..0000000000 --- a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/alsaerror.patch +++ /dev/null | |||
@@ -1,525 +0,0 @@ | |||
1 | From: Lennart Poettering <lennart@poettering.net> | ||
2 | Date: Sun, 19 Apr 2009 17:22:51 +0000 (+0200) | ||
3 | Subject: alsa: properly convert return values of snd_strerror() to utf8 | ||
4 | X-Git-Url: http://git.0pointer.de/?p=pulseaudio.git;a=commitdiff_plain;h=98a25c506e692ab091b4af7e1b37e8432fc08e8f | ||
5 | |||
6 | alsa: properly convert return values of snd_strerror() to utf8 | ||
7 | --- | ||
8 | |||
9 | diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c | ||
10 | index 2fbcd7b..41e8b47 100644 | ||
11 | --- a/src/modules/alsa/alsa-sink.c | ||
12 | +++ b/src/modules/alsa/alsa-sink.c | ||
13 | @@ -281,7 +281,7 @@ static int try_recover(struct userdata *u, const char *call, int err) { | ||
14 | pa_assert(call); | ||
15 | pa_assert(err < 0); | ||
16 | |||
17 | - pa_log_debug("%s: %s", call, snd_strerror(err)); | ||
18 | + pa_log_debug("%s: %s", call, pa_alsa_strerror(err)); | ||
19 | |||
20 | pa_assert(err != -EAGAIN); | ||
21 | |||
22 | @@ -289,7 +289,7 @@ static int try_recover(struct userdata *u, const char *call, int err) { | ||
23 | pa_log_debug("%s: Buffer underrun!", call); | ||
24 | |||
25 | if ((err = snd_pcm_recover(u->pcm_handle, err, 1)) < 0) { | ||
26 | - pa_log("%s: %s", call, snd_strerror(err)); | ||
27 | + pa_log("%s: %s", call, pa_alsa_strerror(err)); | ||
28 | return -1; | ||
29 | } | ||
30 | |||
31 | @@ -636,12 +636,12 @@ static void update_smoother(struct userdata *u) { | ||
32 | /* Let's update the time smoother */ | ||
33 | |||
34 | if (PA_UNLIKELY((err = pa_alsa_safe_delay(u->pcm_handle, &delay, u->hwbuf_size, &u->sink->sample_spec)) < 0)) { | ||
35 | - pa_log_warn("Failed to query DSP status data: %s", snd_strerror(err)); | ||
36 | + pa_log_warn("Failed to query DSP status data: %s", pa_alsa_strerror(err)); | ||
37 | return; | ||
38 | } | ||
39 | |||
40 | if (PA_UNLIKELY((err = snd_pcm_status(u->pcm_handle, status)) < 0)) | ||
41 | - pa_log_warn("Failed to get timestamp: %s", snd_strerror(err)); | ||
42 | + pa_log_warn("Failed to get timestamp: %s", pa_alsa_strerror(err)); | ||
43 | else { | ||
44 | snd_htimestamp_t htstamp = { 0, 0 }; | ||
45 | snd_pcm_status_get_htstamp(status, &htstamp); | ||
46 | @@ -764,7 +764,7 @@ static int update_sw_params(struct userdata *u) { | ||
47 | pa_log_debug("setting avail_min=%lu", (unsigned long) avail_min); | ||
48 | |||
49 | if ((err = pa_alsa_set_sw_params(u->pcm_handle, avail_min)) < 0) { | ||
50 | - pa_log("Failed to set software parameters: %s", snd_strerror(err)); | ||
51 | + pa_log("Failed to set software parameters: %s", pa_alsa_strerror(err)); | ||
52 | return err; | ||
53 | } | ||
54 | |||
55 | @@ -792,7 +792,7 @@ static int unsuspend(struct userdata *u) { | ||
56 | SND_PCM_NO_AUTO_RESAMPLE| | ||
57 | SND_PCM_NO_AUTO_CHANNELS| | ||
58 | SND_PCM_NO_AUTO_FORMAT)) < 0) { | ||
59 | - pa_log("Error opening PCM device %s: %s", u->device_name, snd_strerror(err)); | ||
60 | + pa_log("Error opening PCM device %s: %s", u->device_name, pa_alsa_strerror(err)); | ||
61 | goto fail; | ||
62 | } | ||
63 | |||
64 | @@ -803,7 +803,7 @@ static int unsuspend(struct userdata *u) { | ||
65 | d = u->use_tsched; | ||
66 | |||
67 | if ((err = pa_alsa_set_hw_params(u->pcm_handle, &ss, &nfrags, &period_size, u->hwbuf_size / u->frame_size, &b, &d, TRUE)) < 0) { | ||
68 | - pa_log("Failed to set hardware parameters: %s", snd_strerror(err)); | ||
69 | + pa_log("Failed to set hardware parameters: %s", pa_alsa_strerror(err)); | ||
70 | goto fail; | ||
71 | } | ||
72 | |||
73 | @@ -1030,7 +1030,7 @@ static void sink_get_volume_cb(pa_sink *s) { | ||
74 | return; | ||
75 | |||
76 | fail: | ||
77 | - pa_log_error("Unable to read volume: %s", snd_strerror(err)); | ||
78 | + pa_log_error("Unable to read volume: %s", pa_alsa_strerror(err)); | ||
79 | } | ||
80 | |||
81 | static void sink_set_volume_cb(pa_sink *s) { | ||
82 | @@ -1141,7 +1141,7 @@ static void sink_set_volume_cb(pa_sink *s) { | ||
83 | return; | ||
84 | |||
85 | fail: | ||
86 | - pa_log_error("Unable to set volume: %s", snd_strerror(err)); | ||
87 | + pa_log_error("Unable to set volume: %s", pa_alsa_strerror(err)); | ||
88 | } | ||
89 | |||
90 | static void sink_get_mute_cb(pa_sink *s) { | ||
91 | @@ -1152,7 +1152,7 @@ static void sink_get_mute_cb(pa_sink *s) { | ||
92 | pa_assert(u->mixer_elem); | ||
93 | |||
94 | if ((err = snd_mixer_selem_get_playback_switch(u->mixer_elem, 0, &sw)) < 0) { | ||
95 | - pa_log_error("Unable to get switch: %s", snd_strerror(err)); | ||
96 | + pa_log_error("Unable to get switch: %s", pa_alsa_strerror(err)); | ||
97 | return; | ||
98 | } | ||
99 | |||
100 | @@ -1167,7 +1167,7 @@ static void sink_set_mute_cb(pa_sink *s) { | ||
101 | pa_assert(u->mixer_elem); | ||
102 | |||
103 | if ((err = snd_mixer_selem_set_playback_switch_all(u->mixer_elem, !s->muted)) < 0) { | ||
104 | - pa_log_error("Unable to set switch: %s", snd_strerror(err)); | ||
105 | + pa_log_error("Unable to set switch: %s", pa_alsa_strerror(err)); | ||
106 | return; | ||
107 | } | ||
108 | } | ||
109 | @@ -1206,7 +1206,7 @@ static int process_rewind(struct userdata *u) { | ||
110 | pa_log_debug("Requested to rewind %lu bytes.", (unsigned long) rewind_nbytes); | ||
111 | |||
112 | if (PA_UNLIKELY((unused = pa_alsa_safe_avail(u->pcm_handle, u->hwbuf_size, &u->sink->sample_spec)) < 0)) { | ||
113 | - pa_log("snd_pcm_avail() failed: %s", snd_strerror((int) unused)); | ||
114 | + pa_log("snd_pcm_avail() failed: %s", pa_alsa_strerror((int) unused)); | ||
115 | return -1; | ||
116 | } | ||
117 | |||
118 | @@ -1228,7 +1228,7 @@ static int process_rewind(struct userdata *u) { | ||
119 | in_frames = (snd_pcm_sframes_t) (rewind_nbytes / u->frame_size); | ||
120 | pa_log_debug("before: %lu", (unsigned long) in_frames); | ||
121 | if ((out_frames = snd_pcm_rewind(u->pcm_handle, (snd_pcm_uframes_t) in_frames)) < 0) { | ||
122 | - pa_log("snd_pcm_rewind() failed: %s", snd_strerror((int) out_frames)); | ||
123 | + pa_log("snd_pcm_rewind() failed: %s", pa_alsa_strerror((int) out_frames)); | ||
124 | return -1; | ||
125 | } | ||
126 | pa_log_debug("after: %lu", (unsigned long) out_frames); | ||
127 | @@ -1359,7 +1359,7 @@ static void thread_func(void *userdata) { | ||
128 | pollfd = pa_rtpoll_item_get_pollfd(u->alsa_rtpoll_item, &n); | ||
129 | |||
130 | if ((err = snd_pcm_poll_descriptors_revents(u->pcm_handle, pollfd, n, &revents)) < 0) { | ||
131 | - pa_log("snd_pcm_poll_descriptors_revents() failed: %s", snd_strerror(err)); | ||
132 | + pa_log("snd_pcm_poll_descriptors_revents() failed: %s", pa_alsa_strerror(err)); | ||
133 | goto fail; | ||
134 | } | ||
135 | |||
136 | diff --git a/src/modules/alsa/alsa-source.c b/src/modules/alsa/alsa-source.c | ||
137 | index c59fc75..843f70b 100644 | ||
138 | --- a/src/modules/alsa/alsa-source.c | ||
139 | +++ b/src/modules/alsa/alsa-source.c | ||
140 | @@ -278,7 +278,7 @@ static int try_recover(struct userdata *u, const char *call, int err) { | ||
141 | pa_assert(call); | ||
142 | pa_assert(err < 0); | ||
143 | |||
144 | - pa_log_debug("%s: %s", call, snd_strerror(err)); | ||
145 | + pa_log_debug("%s: %s", call, pa_alsa_strerror(err)); | ||
146 | |||
147 | pa_assert(err != -EAGAIN); | ||
148 | |||
149 | @@ -286,7 +286,7 @@ static int try_recover(struct userdata *u, const char *call, int err) { | ||
150 | pa_log_debug("%s: Buffer overrun!", call); | ||
151 | |||
152 | if ((err = snd_pcm_recover(u->pcm_handle, err, 1)) < 0) { | ||
153 | - pa_log("%s: %s", call, snd_strerror(err)); | ||
154 | + pa_log("%s: %s", call, pa_alsa_strerror(err)); | ||
155 | return -1; | ||
156 | } | ||
157 | |||
158 | @@ -606,12 +606,12 @@ static void update_smoother(struct userdata *u) { | ||
159 | /* Let's update the time smoother */ | ||
160 | |||
161 | if (PA_UNLIKELY((err = pa_alsa_safe_delay(u->pcm_handle, &delay, u->hwbuf_size, &u->source->sample_spec)) < 0)) { | ||
162 | - pa_log_warn("Failed to get delay: %s", snd_strerror(err)); | ||
163 | + pa_log_warn("Failed to get delay: %s", pa_alsa_strerror(err)); | ||
164 | return; | ||
165 | } | ||
166 | |||
167 | if (PA_UNLIKELY((err = snd_pcm_status(u->pcm_handle, status)) < 0)) | ||
168 | - pa_log_warn("Failed to get timestamp: %s", snd_strerror(err)); | ||
169 | + pa_log_warn("Failed to get timestamp: %s", pa_alsa_strerror(err)); | ||
170 | else { | ||
171 | snd_htimestamp_t htstamp = { 0, 0 }; | ||
172 | snd_pcm_status_get_htstamp(status, &htstamp); | ||
173 | @@ -721,7 +721,7 @@ static int update_sw_params(struct userdata *u) { | ||
174 | pa_log_debug("setting avail_min=%lu", (unsigned long) avail_min); | ||
175 | |||
176 | if ((err = pa_alsa_set_sw_params(u->pcm_handle, avail_min)) < 0) { | ||
177 | - pa_log("Failed to set software parameters: %s", snd_strerror(err)); | ||
178 | + pa_log("Failed to set software parameters: %s", pa_alsa_strerror(err)); | ||
179 | return err; | ||
180 | } | ||
181 | |||
182 | @@ -747,7 +747,7 @@ static int unsuspend(struct userdata *u) { | ||
183 | SND_PCM_NO_AUTO_RESAMPLE| | ||
184 | SND_PCM_NO_AUTO_CHANNELS| | ||
185 | SND_PCM_NO_AUTO_FORMAT)) < 0) { | ||
186 | - pa_log("Error opening PCM device %s: %s", u->device_name, snd_strerror(err)); | ||
187 | + pa_log("Error opening PCM device %s: %s", u->device_name, pa_alsa_strerror(err)); | ||
188 | goto fail; | ||
189 | } | ||
190 | |||
191 | @@ -758,7 +758,7 @@ static int unsuspend(struct userdata *u) { | ||
192 | d = u->use_tsched; | ||
193 | |||
194 | if ((err = pa_alsa_set_hw_params(u->pcm_handle, &ss, &nfrags, &period_size, u->hwbuf_size / u->frame_size, &b, &d, TRUE)) < 0) { | ||
195 | - pa_log("Failed to set hardware parameters: %s", snd_strerror(err)); | ||
196 | + pa_log("Failed to set hardware parameters: %s", pa_alsa_strerror(err)); | ||
197 | goto fail; | ||
198 | } | ||
199 | |||
200 | @@ -988,7 +988,7 @@ static void source_get_volume_cb(pa_source *s) { | ||
201 | return; | ||
202 | |||
203 | fail: | ||
204 | - pa_log_error("Unable to read volume: %s", snd_strerror(err)); | ||
205 | + pa_log_error("Unable to read volume: %s", pa_alsa_strerror(err)); | ||
206 | } | ||
207 | |||
208 | static void source_set_volume_cb(pa_source *s) { | ||
209 | @@ -1100,7 +1100,7 @@ static void source_set_volume_cb(pa_source *s) { | ||
210 | return; | ||
211 | |||
212 | fail: | ||
213 | - pa_log_error("Unable to set volume: %s", snd_strerror(err)); | ||
214 | + pa_log_error("Unable to set volume: %s", pa_alsa_strerror(err)); | ||
215 | } | ||
216 | |||
217 | static void source_get_mute_cb(pa_source *s) { | ||
218 | @@ -1111,7 +1111,7 @@ static void source_get_mute_cb(pa_source *s) { | ||
219 | pa_assert(u->mixer_elem); | ||
220 | |||
221 | if ((err = snd_mixer_selem_get_capture_switch(u->mixer_elem, 0, &sw)) < 0) { | ||
222 | - pa_log_error("Unable to get switch: %s", snd_strerror(err)); | ||
223 | + pa_log_error("Unable to get switch: %s", pa_alsa_strerror(err)); | ||
224 | return; | ||
225 | } | ||
226 | |||
227 | @@ -1126,7 +1126,7 @@ static void source_set_mute_cb(pa_source *s) { | ||
228 | pa_assert(u->mixer_elem); | ||
229 | |||
230 | if ((err = snd_mixer_selem_set_capture_switch_all(u->mixer_elem, !s->muted)) < 0) { | ||
231 | - pa_log_error("Unable to set switch: %s", snd_strerror(err)); | ||
232 | + pa_log_error("Unable to set switch: %s", pa_alsa_strerror(err)); | ||
233 | return; | ||
234 | } | ||
235 | } | ||
236 | @@ -1218,7 +1218,7 @@ static void thread_func(void *userdata) { | ||
237 | pollfd = pa_rtpoll_item_get_pollfd(u->alsa_rtpoll_item, &n); | ||
238 | |||
239 | if ((err = snd_pcm_poll_descriptors_revents(u->pcm_handle, pollfd, n, &revents)) < 0) { | ||
240 | - pa_log("snd_pcm_poll_descriptors_revents() failed: %s", snd_strerror(err)); | ||
241 | + pa_log("snd_pcm_poll_descriptors_revents() failed: %s", pa_alsa_strerror(err)); | ||
242 | goto fail; | ||
243 | } | ||
244 | |||
245 | diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c | ||
246 | index d2dc6e8..ddc3c77 100644 | ||
247 | --- a/src/modules/alsa/alsa-util.c | ||
248 | +++ b/src/modules/alsa/alsa-util.c | ||
249 | @@ -33,6 +33,7 @@ | ||
250 | #include <pulse/timeval.h> | ||
251 | #include <pulse/util.h> | ||
252 | #include <pulse/i18n.h> | ||
253 | +#include <pulse/utf8.h> | ||
254 | |||
255 | #include <pulsecore/log.h> | ||
256 | #include <pulsecore/macro.h> | ||
257 | @@ -40,6 +41,7 @@ | ||
258 | #include <pulsecore/atomic.h> | ||
259 | #include <pulsecore/core-error.h> | ||
260 | #include <pulsecore/once.h> | ||
261 | +#include <pulsecore/thread.h> | ||
262 | |||
263 | #include "alsa-util.h" | ||
264 | |||
265 | @@ -106,7 +108,7 @@ static void io_cb(pa_mainloop_api*a, pa_io_event* e, int fd, pa_io_event_flags_t | ||
266 | pa_assert(i != fdl->num_fds); | ||
267 | |||
268 | if ((err = snd_mixer_poll_descriptors_revents(fdl->mixer, fdl->work_fds, fdl->num_fds, &revents)) < 0) { | ||
269 | - pa_log_error("Unable to get poll revent: %s", snd_strerror(err)); | ||
270 | + pa_log_error("Unable to get poll revent: %s", pa_alsa_strerror(err)); | ||
271 | return; | ||
272 | } | ||
273 | |||
274 | @@ -129,7 +131,7 @@ static void defer_cb(pa_mainloop_api*a, pa_defer_event* e, void *userdata) { | ||
275 | a->defer_enable(fdl->defer, 0); | ||
276 | |||
277 | if ((n = snd_mixer_poll_descriptors_count(fdl->mixer)) < 0) { | ||
278 | - pa_log("snd_mixer_poll_descriptors_count() failed: %s", snd_strerror(n)); | ||
279 | + pa_log("snd_mixer_poll_descriptors_count() failed: %s", pa_alsa_strerror(n)); | ||
280 | return; | ||
281 | } | ||
282 | num_fds = (unsigned) n; | ||
283 | @@ -146,7 +148,7 @@ static void defer_cb(pa_mainloop_api*a, pa_defer_event* e, void *userdata) { | ||
284 | memset(fdl->work_fds, 0, sizeof(struct pollfd) * num_fds); | ||
285 | |||
286 | if ((err = snd_mixer_poll_descriptors(fdl->mixer, fdl->work_fds, num_fds)) < 0) { | ||
287 | - pa_log_error("Unable to get poll descriptors: %s", snd_strerror(err)); | ||
288 | + pa_log_error("Unable to get poll descriptors: %s", pa_alsa_strerror(err)); | ||
289 | return; | ||
290 | } | ||
291 | |||
292 | @@ -482,42 +484,42 @@ int pa_alsa_set_sw_params(snd_pcm_t *pcm, snd_pcm_uframes_t avail_min) { | ||
293 | snd_pcm_sw_params_alloca(&swparams); | ||
294 | |||
295 | if ((err = snd_pcm_sw_params_current(pcm, swparams) < 0)) { | ||
296 | - pa_log_warn("Unable to determine current swparams: %s\n", snd_strerror(err)); | ||
297 | + pa_log_warn("Unable to determine current swparams: %s\n", pa_alsa_strerror(err)); | ||
298 | return err; | ||
299 | } | ||
300 | |||
301 | if ((err = snd_pcm_sw_params_set_period_event(pcm, swparams, 0)) < 0) { | ||
302 | - pa_log_warn("Unable to disable period event: %s\n", snd_strerror(err)); | ||
303 | + pa_log_warn("Unable to disable period event: %s\n", pa_alsa_strerror(err)); | ||
304 | return err; | ||
305 | } | ||
306 | |||
307 | if ((err = snd_pcm_sw_params_set_tstamp_mode(pcm, swparams, SND_PCM_TSTAMP_ENABLE)) < 0) { | ||
308 | - pa_log_warn("Unable to enable time stamping: %s\n", snd_strerror(err)); | ||
309 | + pa_log_warn("Unable to enable time stamping: %s\n", pa_alsa_strerror(err)); | ||
310 | return err; | ||
311 | } | ||
312 | |||
313 | if ((err = snd_pcm_sw_params_get_boundary(swparams, &boundary)) < 0) { | ||
314 | - pa_log_warn("Unable to get boundary: %s\n", snd_strerror(err)); | ||
315 | + pa_log_warn("Unable to get boundary: %s\n", pa_alsa_strerror(err)); | ||
316 | return err; | ||
317 | } | ||
318 | |||
319 | if ((err = snd_pcm_sw_params_set_stop_threshold(pcm, swparams, boundary)) < 0) { | ||
320 | - pa_log_warn("Unable to set stop threshold: %s\n", snd_strerror(err)); | ||
321 | + pa_log_warn("Unable to set stop threshold: %s\n", pa_alsa_strerror(err)); | ||
322 | return err; | ||
323 | } | ||
324 | |||
325 | if ((err = snd_pcm_sw_params_set_start_threshold(pcm, swparams, (snd_pcm_uframes_t) -1)) < 0) { | ||
326 | - pa_log_warn("Unable to set start threshold: %s\n", snd_strerror(err)); | ||
327 | + pa_log_warn("Unable to set start threshold: %s\n", pa_alsa_strerror(err)); | ||
328 | return err; | ||
329 | } | ||
330 | |||
331 | if ((err = snd_pcm_sw_params_set_avail_min(pcm, swparams, avail_min)) < 0) { | ||
332 | - pa_log_error("snd_pcm_sw_params_set_avail_min() failed: %s", snd_strerror(err)); | ||
333 | + pa_log_error("snd_pcm_sw_params_set_avail_min() failed: %s", pa_alsa_strerror(err)); | ||
334 | return err; | ||
335 | } | ||
336 | |||
337 | if ((err = snd_pcm_sw_params(pcm, swparams)) < 0) { | ||
338 | - pa_log_warn("Unable to set sw params: %s\n", snd_strerror(err)); | ||
339 | + pa_log_warn("Unable to set sw params: %s\n", pa_alsa_strerror(err)); | ||
340 | return err; | ||
341 | } | ||
342 | |||
343 | @@ -854,7 +856,7 @@ snd_pcm_t *pa_alsa_open_by_device_string( | ||
344 | SND_PCM_NO_AUTO_RESAMPLE| | ||
345 | SND_PCM_NO_AUTO_CHANNELS| | ||
346 | (reformat ? 0 : SND_PCM_NO_AUTO_FORMAT))) < 0) { | ||
347 | - pa_log_info("Error opening PCM device %s: %s", d, snd_strerror(err)); | ||
348 | + pa_log_info("Error opening PCM device %s: %s", d, pa_alsa_strerror(err)); | ||
349 | goto fail; | ||
350 | } | ||
351 | |||
352 | @@ -882,7 +884,7 @@ snd_pcm_t *pa_alsa_open_by_device_string( | ||
353 | continue; | ||
354 | } | ||
355 | |||
356 | - pa_log_info("Failed to set hardware parameters on %s: %s", d, snd_strerror(err)); | ||
357 | + pa_log_info("Failed to set hardware parameters on %s: %s", d, pa_alsa_strerror(err)); | ||
358 | snd_pcm_close(pcm_handle); | ||
359 | |||
360 | goto fail; | ||
361 | @@ -1000,17 +1002,17 @@ int pa_alsa_prepare_mixer(snd_mixer_t *mixer, const char *dev) { | ||
362 | pa_assert(dev); | ||
363 | |||
364 | if ((err = snd_mixer_attach(mixer, dev)) < 0) { | ||
365 | - pa_log_info("Unable to attach to mixer %s: %s", dev, snd_strerror(err)); | ||
366 | + pa_log_info("Unable to attach to mixer %s: %s", dev, pa_alsa_strerror(err)); | ||
367 | return -1; | ||
368 | } | ||
369 | |||
370 | if ((err = snd_mixer_selem_register(mixer, NULL, NULL)) < 0) { | ||
371 | - pa_log_warn("Unable to register mixer: %s", snd_strerror(err)); | ||
372 | + pa_log_warn("Unable to register mixer: %s", pa_alsa_strerror(err)); | ||
373 | return -1; | ||
374 | } | ||
375 | |||
376 | if ((err = snd_mixer_load(mixer)) < 0) { | ||
377 | - pa_log_warn("Unable to load mixer: %s", snd_strerror(err)); | ||
378 | + pa_log_warn("Unable to load mixer: %s", pa_alsa_strerror(err)); | ||
379 | return -1; | ||
380 | } | ||
381 | |||
382 | @@ -1136,7 +1138,7 @@ int pa_alsa_find_mixer_and_elem( | ||
383 | } | ||
384 | |||
385 | if ((err = snd_mixer_open(&m, 0)) < 0) { | ||
386 | - pa_log("Error opening mixer: %s", snd_strerror(err)); | ||
387 | + pa_log("Error opening mixer: %s", pa_alsa_strerror(err)); | ||
388 | return -1; | ||
389 | } | ||
390 | |||
391 | @@ -1338,7 +1340,7 @@ void pa_alsa_dump(pa_log_level_t level, snd_pcm_t *pcm) { | ||
392 | pa_assert_se(snd_output_buffer_open(&out) == 0); | ||
393 | |||
394 | if ((err = snd_pcm_dump(pcm, out)) < 0) | ||
395 | - pa_logl(level, "snd_pcm_dump(): %s", snd_strerror(err)); | ||
396 | + pa_logl(level, "snd_pcm_dump(): %s", pa_alsa_strerror(err)); | ||
397 | else { | ||
398 | char *s = NULL; | ||
399 | snd_output_buffer_string(out, &s); | ||
400 | @@ -1362,7 +1364,7 @@ void pa_alsa_dump_status(snd_pcm_t *pcm) { | ||
401 | pa_assert_se(snd_pcm_status(pcm, status) == 0); | ||
402 | |||
403 | if ((err = snd_pcm_status_dump(status, out)) < 0) | ||
404 | - pa_log_debug("snd_pcm_dump(): %s", snd_strerror(err)); | ||
405 | + pa_log_debug("snd_pcm_dump(): %s", pa_alsa_strerror(err)); | ||
406 | else { | ||
407 | char *s = NULL; | ||
408 | snd_output_buffer_string(out, &s); | ||
409 | @@ -1524,7 +1526,7 @@ void pa_alsa_init_proplist_pcm(pa_core *c, pa_proplist *p, snd_pcm_t *pcm, snd_m | ||
410 | snd_pcm_info_alloca(&info); | ||
411 | |||
412 | if ((err = snd_pcm_hw_params_current(pcm, hwparams)) < 0) | ||
413 | - pa_log_warn("Error fetching hardware parameter info: %s", snd_strerror(err)); | ||
414 | + pa_log_warn("Error fetching hardware parameter info: %s", pa_alsa_strerror(err)); | ||
415 | else { | ||
416 | |||
417 | if ((bits = snd_pcm_hw_params_get_sbits(hwparams)) >= 0) | ||
418 | @@ -1535,7 +1537,7 @@ void pa_alsa_init_proplist_pcm(pa_core *c, pa_proplist *p, snd_pcm_t *pcm, snd_m | ||
419 | pa_proplist_sets(p, "alsa.mixer_element", snd_mixer_selem_get_name(elem)); | ||
420 | |||
421 | if ((err = snd_pcm_info(pcm, info)) < 0) | ||
422 | - pa_log_warn("Error fetching PCM info: %s", snd_strerror(err)); | ||
423 | + pa_log_warn("Error fetching PCM info: %s", pa_alsa_strerror(err)); | ||
424 | else | ||
425 | pa_alsa_init_proplist_pcm_info(c, p, info); | ||
426 | } | ||
427 | @@ -1568,14 +1570,14 @@ int pa_alsa_recover_from_poll(snd_pcm_t *pcm, int revents) { | ||
428 | |||
429 | case SND_PCM_STATE_XRUN: | ||
430 | if ((err = snd_pcm_recover(pcm, -EPIPE, 1)) != 0) { | ||
431 | - pa_log_warn("Could not recover from POLLERR|POLLNVAL|POLLHUP and XRUN: %s", snd_strerror(err)); | ||
432 | + pa_log_warn("Could not recover from POLLERR|POLLNVAL|POLLHUP and XRUN: %s", pa_alsa_strerror(err)); | ||
433 | return -1; | ||
434 | } | ||
435 | break; | ||
436 | |||
437 | case SND_PCM_STATE_SUSPENDED: | ||
438 | if ((err = snd_pcm_recover(pcm, -ESTRPIPE, 1)) != 0) { | ||
439 | - pa_log_warn("Could not recover from POLLERR|POLLNVAL|POLLHUP and SUSPENDED: %s", snd_strerror(err)); | ||
440 | + pa_log_warn("Could not recover from POLLERR|POLLNVAL|POLLHUP and SUSPENDED: %s", pa_alsa_strerror(err)); | ||
441 | return -1; | ||
442 | } | ||
443 | break; | ||
444 | @@ -1585,7 +1587,7 @@ int pa_alsa_recover_from_poll(snd_pcm_t *pcm, int revents) { | ||
445 | snd_pcm_drop(pcm); | ||
446 | |||
447 | if ((err = snd_pcm_prepare(pcm)) < 0) { | ||
448 | - pa_log_warn("Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): %s", snd_strerror(err)); | ||
449 | + pa_log_warn("Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): %s", pa_alsa_strerror(err)); | ||
450 | return -1; | ||
451 | } | ||
452 | break; | ||
453 | @@ -1602,7 +1604,7 @@ pa_rtpoll_item* pa_alsa_build_pollfd(snd_pcm_t *pcm, pa_rtpoll *rtpoll) { | ||
454 | pa_assert(pcm); | ||
455 | |||
456 | if ((n = snd_pcm_poll_descriptors_count(pcm)) < 0) { | ||
457 | - pa_log("snd_pcm_poll_descriptors_count() failed: %s", snd_strerror(n)); | ||
458 | + pa_log("snd_pcm_poll_descriptors_count() failed: %s", pa_alsa_strerror(n)); | ||
459 | return NULL; | ||
460 | } | ||
461 | |||
462 | @@ -1610,7 +1612,7 @@ pa_rtpoll_item* pa_alsa_build_pollfd(snd_pcm_t *pcm, pa_rtpoll *rtpoll) { | ||
463 | pollfd = pa_rtpoll_item_get_pollfd(item, NULL); | ||
464 | |||
465 | if ((err = snd_pcm_poll_descriptors(pcm, pollfd, (unsigned) n)) < 0) { | ||
466 | - pa_log("snd_pcm_poll_descriptors() failed: %s", snd_strerror(err)); | ||
467 | + pa_log("snd_pcm_poll_descriptors() failed: %s", pa_alsa_strerror(err)); | ||
468 | pa_rtpoll_item_free(item); | ||
469 | return NULL; | ||
470 | } | ||
471 | @@ -1819,3 +1821,30 @@ pa_bool_t pa_alsa_pcm_is_modem(snd_pcm_t *pcm) { | ||
472 | |||
473 | return snd_pcm_info_get_class(info) == SND_PCM_CLASS_MODEM; | ||
474 | } | ||
475 | + | ||
476 | +PA_STATIC_TLS_DECLARE(cstrerror, pa_xfree); | ||
477 | + | ||
478 | +const char* pa_alsa_strerror(int errnum) { | ||
479 | + const char *original = NULL; | ||
480 | + char *translated, *t; | ||
481 | + char errbuf[128]; | ||
482 | + | ||
483 | + if ((t = PA_STATIC_TLS_GET(cstrerror))) | ||
484 | + pa_xfree(t); | ||
485 | + | ||
486 | + original = snd_strerror(errnum); | ||
487 | + | ||
488 | + if (!original) { | ||
489 | + pa_snprintf(errbuf, sizeof(errbuf), "Unknown error %i", errnum); | ||
490 | + original = errbuf; | ||
491 | + } | ||
492 | + | ||
493 | + if (!(translated = pa_locale_to_utf8(original))) { | ||
494 | + pa_log_warn("Unable to convert error string to locale, filtering."); | ||
495 | + translated = pa_utf8_filter(original); | ||
496 | + } | ||
497 | + | ||
498 | + PA_STATIC_TLS_SET(cstrerror, translated); | ||
499 | + | ||
500 | + return translated; | ||
501 | +} | ||
502 | diff --git a/src/modules/alsa/alsa-util.h b/src/modules/alsa/alsa-util.h | ||
503 | index c8acc7c..77ac8a7 100644 | ||
504 | --- a/src/modules/alsa/alsa-util.h | ||
505 | +++ b/src/modules/alsa/alsa-util.h | ||
506 | @@ -146,4 +146,6 @@ pa_bool_t pa_alsa_pcm_is_hw(snd_pcm_t *pcm); | ||
507 | |||
508 | pa_bool_t pa_alsa_pcm_is_modem(snd_pcm_t *pcm); | ||
509 | |||
510 | +const char* pa_alsa_strerror(int errnum); | ||
511 | + | ||
512 | #endif | ||
513 | diff --git a/src/modules/alsa/module-alsa-card.c b/src/modules/alsa/module-alsa-card.c | ||
514 | index fdc952d..51d466e 100644 | ||
515 | --- a/src/modules/alsa/module-alsa-card.c | ||
516 | +++ b/src/modules/alsa/module-alsa-card.c | ||
517 | @@ -304,7 +304,7 @@ int pa__init(pa_module *m) { | ||
518 | u->modargs = ma; | ||
519 | |||
520 | if ((alsa_card_index = snd_card_get_index(u->device_id)) < 0) { | ||
521 | - pa_log("Card '%s' doesn't exist: %s", u->device_id, snd_strerror(alsa_card_index)); | ||
522 | + pa_log("Card '%s' doesn't exist: %s", u->device_id, pa_alsa_strerror(alsa_card_index)); | ||
523 | goto fail; | ||
524 | } | ||
525 | |||
diff --git a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/autoconf_version.patch b/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/autoconf_version.patch deleted file mode 100644 index 7a0759da13..0000000000 --- a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/autoconf_version.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: pulseaudio-0.9.15/configure.ac | ||
2 | =================================================================== | ||
3 | --- pulseaudio-0.9.15.orig/configure.ac 2009-04-14 00:09:53.000000000 +0100 | ||
4 | +++ pulseaudio-0.9.15/configure.ac 2009-05-22 11:32:50.000000000 +0100 | ||
5 | @@ -20,7 +20,7 @@ | ||
6 | # along with PulseAudio; if not, write to the Free Software Foundation, | ||
7 | # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. | ||
8 | |||
9 | -AC_PREREQ(2.63) | ||
10 | +AC_PREREQ(2.61) | ||
11 | |||
12 | m4_define(pa_major, [0]) | ||
13 | m4_define(pa_minor, [9]) | ||
diff --git a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/buildfix.patch b/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/buildfix.patch deleted file mode 100644 index ca01e0d80f..0000000000 --- a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/buildfix.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: pulseaudio-0.9.11/src/pulsecore/atomic.h | ||
2 | =================================================================== | ||
3 | --- pulseaudio-0.9.11.orig/src/pulsecore/atomic.h | ||
4 | +++ pulseaudio-0.9.11/src/pulsecore/atomic.h | ||
5 | @@ -40,6 +40,8 @@ | ||
6 | #error "Please include config.h before including this file!" | ||
7 | #endif | ||
8 | |||
9 | +#include "macro.h" | ||
10 | + | ||
11 | #ifdef HAVE_ATOMIC_BUILTINS | ||
12 | |||
13 | /* __sync based implementation */ | ||
diff --git a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/fallback.patch b/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/fallback.patch deleted file mode 100644 index 2fae0d4e78..0000000000 --- a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/fallback.patch +++ /dev/null | |||
@@ -1,338 +0,0 @@ | |||
1 | From: Lennart Poettering <lennart@poettering.net> | ||
2 | Date: Tue, 28 Apr 2009 23:58:18 +0000 (+0200) | ||
3 | Subject: alsa: allow configuration of fallback device strings in profiles | ||
4 | X-Git-Url: http://git.0pointer.de/?p=pulseaudio.git;a=commitdiff_plain;h=d8710711fb0c74b4ad83ac99c2501218155b502b | ||
5 | |||
6 | alsa: allow configuration of fallback device strings in profiles | ||
7 | |||
8 | This has the benefit that we can properly support ALSA devices where | ||
9 | only the raw 'hw' device exists but no 'front' although it's a proper | ||
10 | 2ch stereo device. | ||
11 | --- | ||
12 | |||
13 | diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c | ||
14 | index 18d6880..a3a0450 100644 | ||
15 | --- a/src/modules/alsa/alsa-util.c | ||
16 | +++ b/src/modules/alsa/alsa-util.c | ||
17 | @@ -528,7 +528,7 @@ int pa_alsa_set_sw_params(snd_pcm_t *pcm, snd_pcm_uframes_t avail_min) { | ||
18 | |||
19 | static const struct pa_alsa_profile_info device_table[] = { | ||
20 | {{ 1, { PA_CHANNEL_POSITION_MONO }}, | ||
21 | - "hw", | ||
22 | + "hw", NULL, | ||
23 | N_("Analog Mono"), | ||
24 | "analog-mono", | ||
25 | 1, | ||
26 | @@ -536,7 +536,7 @@ static const struct pa_alsa_profile_info device_table[] = { | ||
27 | "Capture", "Mic" }, | ||
28 | |||
29 | {{ 2, { PA_CHANNEL_POSITION_LEFT, PA_CHANNEL_POSITION_RIGHT }}, | ||
30 | - "front", | ||
31 | + "front", "hw", | ||
32 | N_("Analog Stereo"), | ||
33 | "analog-stereo", | ||
34 | 10, | ||
35 | @@ -544,7 +544,7 @@ static const struct pa_alsa_profile_info device_table[] = { | ||
36 | "Capture", "Mic" }, | ||
37 | |||
38 | {{ 2, { PA_CHANNEL_POSITION_LEFT, PA_CHANNEL_POSITION_RIGHT }}, | ||
39 | - "iec958", | ||
40 | + "iec958", NULL, | ||
41 | N_("Digital Stereo (IEC958)"), | ||
42 | "iec958-stereo", | ||
43 | 5, | ||
44 | @@ -552,7 +552,7 @@ static const struct pa_alsa_profile_info device_table[] = { | ||
45 | "IEC958 In", NULL }, | ||
46 | |||
47 | {{ 2, { PA_CHANNEL_POSITION_LEFT, PA_CHANNEL_POSITION_RIGHT }}, | ||
48 | - "hdmi", | ||
49 | + "hdmi", NULL, | ||
50 | N_("Digital Stereo (HDMI)"), | ||
51 | "hdmi-stereo", | ||
52 | 4, | ||
53 | @@ -561,7 +561,7 @@ static const struct pa_alsa_profile_info device_table[] = { | ||
54 | |||
55 | {{ 4, { PA_CHANNEL_POSITION_FRONT_LEFT, PA_CHANNEL_POSITION_FRONT_RIGHT, | ||
56 | PA_CHANNEL_POSITION_REAR_LEFT, PA_CHANNEL_POSITION_REAR_RIGHT }}, | ||
57 | - "surround40", | ||
58 | + "surround40", NULL, | ||
59 | N_("Analog Surround 4.0"), | ||
60 | "analog-surround-40", | ||
61 | 7, | ||
62 | @@ -570,7 +570,7 @@ static const struct pa_alsa_profile_info device_table[] = { | ||
63 | |||
64 | {{ 4, { PA_CHANNEL_POSITION_FRONT_LEFT, PA_CHANNEL_POSITION_FRONT_RIGHT, | ||
65 | PA_CHANNEL_POSITION_REAR_LEFT, PA_CHANNEL_POSITION_REAR_RIGHT }}, | ||
66 | - "a52", | ||
67 | + "a52", NULL, | ||
68 | N_("Digital Surround 4.0 (IEC958/AC3)"), | ||
69 | "iec958-ac3-surround-40", | ||
70 | 2, | ||
71 | @@ -580,7 +580,7 @@ static const struct pa_alsa_profile_info device_table[] = { | ||
72 | {{ 5, { PA_CHANNEL_POSITION_FRONT_LEFT, PA_CHANNEL_POSITION_FRONT_RIGHT, | ||
73 | PA_CHANNEL_POSITION_REAR_LEFT, PA_CHANNEL_POSITION_REAR_RIGHT, | ||
74 | PA_CHANNEL_POSITION_LFE }}, | ||
75 | - "surround41", | ||
76 | + "surround41", NULL, | ||
77 | N_("Analog Surround 4.1"), | ||
78 | "analog-surround-41", | ||
79 | 7, | ||
80 | @@ -590,7 +590,7 @@ static const struct pa_alsa_profile_info device_table[] = { | ||
81 | {{ 5, { PA_CHANNEL_POSITION_FRONT_LEFT, PA_CHANNEL_POSITION_FRONT_RIGHT, | ||
82 | PA_CHANNEL_POSITION_REAR_LEFT, PA_CHANNEL_POSITION_REAR_RIGHT, | ||
83 | PA_CHANNEL_POSITION_CENTER }}, | ||
84 | - "surround50", | ||
85 | + "surround50", NULL, | ||
86 | N_("Analog Surround 5.0"), | ||
87 | "analog-surround-50", | ||
88 | 7, | ||
89 | @@ -600,7 +600,7 @@ static const struct pa_alsa_profile_info device_table[] = { | ||
90 | {{ 6, { PA_CHANNEL_POSITION_FRONT_LEFT, PA_CHANNEL_POSITION_FRONT_RIGHT, | ||
91 | PA_CHANNEL_POSITION_REAR_LEFT, PA_CHANNEL_POSITION_REAR_RIGHT, | ||
92 | PA_CHANNEL_POSITION_CENTER, PA_CHANNEL_POSITION_LFE }}, | ||
93 | - "surround51", | ||
94 | + "surround51", NULL, | ||
95 | N_("Analog Surround 5.1"), | ||
96 | "analog-surround-51", | ||
97 | 8, | ||
98 | @@ -610,7 +610,7 @@ static const struct pa_alsa_profile_info device_table[] = { | ||
99 | {{ 6, { PA_CHANNEL_POSITION_FRONT_LEFT, PA_CHANNEL_POSITION_FRONT_RIGHT, | ||
100 | PA_CHANNEL_POSITION_REAR_LEFT, PA_CHANNEL_POSITION_REAR_RIGHT, | ||
101 | PA_CHANNEL_POSITION_FRONT_CENTER, PA_CHANNEL_POSITION_LFE}}, | ||
102 | - "a52", | ||
103 | + "a52", NULL, | ||
104 | N_("Digital Surround 5.1 (IEC958/AC3)"), | ||
105 | "iec958-ac3-surround-51", | ||
106 | 3, | ||
107 | @@ -621,16 +621,72 @@ static const struct pa_alsa_profile_info device_table[] = { | ||
108 | PA_CHANNEL_POSITION_REAR_LEFT, PA_CHANNEL_POSITION_REAR_RIGHT, | ||
109 | PA_CHANNEL_POSITION_CENTER, PA_CHANNEL_POSITION_LFE, | ||
110 | PA_CHANNEL_POSITION_SIDE_LEFT, PA_CHANNEL_POSITION_SIDE_RIGHT }}, | ||
111 | - "surround71", | ||
112 | + "surround71", NULL, | ||
113 | N_("Analog Surround 7.1"), | ||
114 | "analog-surround-71", | ||
115 | 7, | ||
116 | "Master", "PCM", | ||
117 | "Capture", "Mic" }, | ||
118 | |||
119 | - {{ 0, { 0 }}, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL } | ||
120 | + {{ 0, { 0 }}, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL } | ||
121 | }; | ||
122 | |||
123 | +static snd_pcm_t *open_by_device_string_with_fallback( | ||
124 | + const char *prefix, | ||
125 | + const char *prefix_fallback, | ||
126 | + const char *dev_id, | ||
127 | + char **dev, | ||
128 | + pa_sample_spec *ss, | ||
129 | + pa_channel_map* map, | ||
130 | + int mode, | ||
131 | + uint32_t *nfrags, | ||
132 | + snd_pcm_uframes_t *period_size, | ||
133 | + snd_pcm_uframes_t tsched_size, | ||
134 | + pa_bool_t *use_mmap, | ||
135 | + pa_bool_t *use_tsched, | ||
136 | + pa_bool_t require_exact_channel_number) { | ||
137 | + | ||
138 | + snd_pcm_t *pcm_handle; | ||
139 | + char *d; | ||
140 | + | ||
141 | + d = pa_sprintf_malloc("%s:%s", prefix, dev_id); | ||
142 | + | ||
143 | + pcm_handle = pa_alsa_open_by_device_string( | ||
144 | + d, | ||
145 | + dev, | ||
146 | + ss, | ||
147 | + map, | ||
148 | + mode, | ||
149 | + nfrags, | ||
150 | + period_size, | ||
151 | + tsched_size, | ||
152 | + use_mmap, | ||
153 | + use_tsched, | ||
154 | + require_exact_channel_number); | ||
155 | + pa_xfree(d); | ||
156 | + | ||
157 | + if (!pcm_handle && prefix_fallback) { | ||
158 | + | ||
159 | + d = pa_sprintf_malloc("%s:%s", prefix_fallback, dev_id); | ||
160 | + | ||
161 | + pcm_handle = pa_alsa_open_by_device_string( | ||
162 | + d, | ||
163 | + dev, | ||
164 | + ss, | ||
165 | + map, | ||
166 | + mode, | ||
167 | + nfrags, | ||
168 | + period_size, | ||
169 | + tsched_size, | ||
170 | + use_mmap, | ||
171 | + use_tsched, | ||
172 | + require_exact_channel_number); | ||
173 | + pa_xfree(d); | ||
174 | + } | ||
175 | + | ||
176 | + return pcm_handle; | ||
177 | +} | ||
178 | + | ||
179 | snd_pcm_t *pa_alsa_open_by_device_id_auto( | ||
180 | const char *dev_id, | ||
181 | char **dev, | ||
182 | @@ -671,14 +727,14 @@ snd_pcm_t *pa_alsa_open_by_device_id_auto( | ||
183 | |||
184 | pa_log_debug("Checking for %s (%s)", device_table[i].name, device_table[i].alsa_name); | ||
185 | |||
186 | - d = pa_sprintf_malloc("%s:%s", device_table[i].alsa_name, dev_id); | ||
187 | - | ||
188 | try_ss.channels = device_table[i].map.channels; | ||
189 | try_ss.rate = ss->rate; | ||
190 | try_ss.format = ss->format; | ||
191 | |||
192 | - pcm_handle = pa_alsa_open_by_device_string( | ||
193 | - d, | ||
194 | + pcm_handle = open_by_device_string_with_fallback( | ||
195 | + device_table[i].alsa_name, | ||
196 | + device_table[i].alsa_name_fallback, | ||
197 | + dev_id, | ||
198 | dev, | ||
199 | &try_ss, | ||
200 | map, | ||
201 | @@ -690,8 +746,6 @@ snd_pcm_t *pa_alsa_open_by_device_id_auto( | ||
202 | use_tsched, | ||
203 | TRUE); | ||
204 | |||
205 | - pa_xfree(d); | ||
206 | - | ||
207 | if (pcm_handle) { | ||
208 | |||
209 | *ss = try_ss; | ||
210 | @@ -703,6 +757,7 @@ snd_pcm_t *pa_alsa_open_by_device_id_auto( | ||
211 | |||
212 | return pcm_handle; | ||
213 | } | ||
214 | + | ||
215 | } | ||
216 | |||
217 | if (direction > 0) { | ||
218 | @@ -775,7 +830,6 @@ snd_pcm_t *pa_alsa_open_by_device_id_profile( | ||
219 | pa_bool_t *use_tsched, | ||
220 | const pa_alsa_profile_info *profile) { | ||
221 | |||
222 | - char *d; | ||
223 | snd_pcm_t *pcm_handle; | ||
224 | pa_sample_spec try_ss; | ||
225 | |||
226 | @@ -787,14 +841,14 @@ snd_pcm_t *pa_alsa_open_by_device_id_profile( | ||
227 | pa_assert(period_size); | ||
228 | pa_assert(profile); | ||
229 | |||
230 | - d = pa_sprintf_malloc("%s:%s", profile->alsa_name, dev_id); | ||
231 | - | ||
232 | try_ss.channels = profile->map.channels; | ||
233 | try_ss.rate = ss->rate; | ||
234 | try_ss.format = ss->format; | ||
235 | |||
236 | - pcm_handle = pa_alsa_open_by_device_string( | ||
237 | - d, | ||
238 | + pcm_handle = open_by_device_string_with_fallback( | ||
239 | + profile->alsa_name, | ||
240 | + profile->alsa_name_fallback, | ||
241 | + dev_id, | ||
242 | dev, | ||
243 | &try_ss, | ||
244 | map, | ||
245 | @@ -806,8 +860,6 @@ snd_pcm_t *pa_alsa_open_by_device_id_profile( | ||
246 | use_tsched, | ||
247 | TRUE); | ||
248 | |||
249 | - pa_xfree(d); | ||
250 | - | ||
251 | if (!pcm_handle) | ||
252 | return NULL; | ||
253 | |||
254 | @@ -860,6 +912,8 @@ snd_pcm_t *pa_alsa_open_by_device_string( | ||
255 | goto fail; | ||
256 | } | ||
257 | |||
258 | + pa_log_debug("Managed to open %s", d); | ||
259 | + | ||
260 | if ((err = pa_alsa_set_hw_params(pcm_handle, ss, nfrags, period_size, tsched_size, use_mmap, use_tsched, require_exact_channel_number)) < 0) { | ||
261 | |||
262 | if (!reformat) { | ||
263 | @@ -928,26 +982,25 @@ int pa_alsa_probe_profiles( | ||
264 | snd_pcm_t *pcm_i = NULL; | ||
265 | |||
266 | if (i->alsa_name) { | ||
267 | - char *id; | ||
268 | pa_sample_spec try_ss; | ||
269 | pa_channel_map try_map; | ||
270 | |||
271 | pa_log_debug("Checking for playback on %s (%s)", i->name, i->alsa_name); | ||
272 | - id = pa_sprintf_malloc("%s:%s", i->alsa_name, dev_id); | ||
273 | |||
274 | try_ss = *ss; | ||
275 | try_ss.channels = i->map.channels; | ||
276 | try_map = i->map; | ||
277 | |||
278 | - pcm_i = pa_alsa_open_by_device_string( | ||
279 | - id, NULL, | ||
280 | + pcm_i = open_by_device_string_with_fallback( | ||
281 | + i->alsa_name, | ||
282 | + i->alsa_name_fallback, | ||
283 | + dev_id, | ||
284 | + NULL, | ||
285 | &try_ss, &try_map, | ||
286 | SND_PCM_STREAM_PLAYBACK, | ||
287 | NULL, NULL, 0, NULL, NULL, | ||
288 | TRUE); | ||
289 | |||
290 | - pa_xfree(id); | ||
291 | - | ||
292 | if (!pcm_i) | ||
293 | continue; | ||
294 | } | ||
295 | @@ -956,26 +1009,25 @@ int pa_alsa_probe_profiles( | ||
296 | snd_pcm_t *pcm_j = NULL; | ||
297 | |||
298 | if (j->alsa_name) { | ||
299 | - char *jd; | ||
300 | pa_sample_spec try_ss; | ||
301 | pa_channel_map try_map; | ||
302 | |||
303 | pa_log_debug("Checking for capture on %s (%s)", j->name, j->alsa_name); | ||
304 | - jd = pa_sprintf_malloc("%s:%s", j->alsa_name, dev_id); | ||
305 | |||
306 | try_ss = *ss; | ||
307 | try_ss.channels = j->map.channels; | ||
308 | try_map = j->map; | ||
309 | |||
310 | - pcm_j = pa_alsa_open_by_device_string( | ||
311 | - jd, NULL, | ||
312 | + pcm_j = open_by_device_string_with_fallback( | ||
313 | + j->alsa_name, | ||
314 | + j->alsa_name_fallback, | ||
315 | + dev_id, | ||
316 | + NULL, | ||
317 | &try_ss, &try_map, | ||
318 | SND_PCM_STREAM_CAPTURE, | ||
319 | NULL, NULL, 0, NULL, NULL, | ||
320 | TRUE); | ||
321 | |||
322 | - pa_xfree(jd); | ||
323 | - | ||
324 | if (!pcm_j) | ||
325 | continue; | ||
326 | } | ||
327 | diff --git a/src/modules/alsa/alsa-util.h b/src/modules/alsa/alsa-util.h | ||
328 | index 77ac8a7..4c5d336 100644 | ||
329 | --- a/src/modules/alsa/alsa-util.h | ||
330 | +++ b/src/modules/alsa/alsa-util.h | ||
331 | @@ -56,6 +56,7 @@ int pa_alsa_set_sw_params(snd_pcm_t *pcm, snd_pcm_uframes_t avail_min); | ||
332 | typedef struct pa_alsa_profile_info { | ||
333 | pa_channel_map map; | ||
334 | const char *alsa_name; | ||
335 | + const char *alsa_name_fallback; | ||
336 | const char *description; /* internationalized */ | ||
337 | const char *name; | ||
338 | unsigned priority; | ||
diff --git a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/gcc4-compile-fix.patch b/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/gcc4-compile-fix.patch deleted file mode 100644 index 34ad026e4d..0000000000 --- a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/gcc4-compile-fix.patch +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | | fix for more strict syntax compliance in gcc4.x | ||
2 | | pulsecore/core-util.c: In function 'pa_raise_priority': | ||
3 | | pulsecore/core-util.c:547: error: label at end of compound statement | ||
4 | | Signed off: mickey@openmoko.org | ||
5 | | | ||
6 | Index: pulseaudio-0.9.6/src/pulsecore/core-util.c | ||
7 | =================================================================== | ||
8 | --- pulseaudio-0.9.6.orig/src/pulsecore/core-util.c | ||
9 | +++ pulseaudio-0.9.6/src/pulsecore/core-util.c | ||
10 | @@ -535,7 +535,7 @@ void pa_raise_priority(void) { | ||
11 | pa_log_info("Successfully gained high priority class."); | ||
12 | #endif | ||
13 | |||
14 | -fail: | ||
15 | +fail:; | ||
16 | |||
17 | #if defined(HAVE_SYS_CAPABILITY_H) | ||
18 | if (caps) { | ||
diff --git a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/periodfix.patch b/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/periodfix.patch deleted file mode 100644 index 3a1c605009..0000000000 --- a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/periodfix.patch +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | X-Git-Url: http://git.0pointer.de/?p=pulseaudio.git;a=blobdiff_plain;f=src%2Fmodules%2Falsa%2Falsa-util.c;h=107bec357c7889f0197853f5e5f1951a5a2f5be0;hp=a3a045080dac0e1b30e8671443ce73a03337cf14;hb=4bffc7849f7898fa85dd6ac8e735db86b57814b3;hpb=d2b5ae5525e9036c4f91b1615879a5a07aac5bf2 | ||
2 | |||
3 | diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c | ||
4 | index a3a0450..107bec3 100644 | ||
5 | --- a/src/modules/alsa/alsa-util.c | ||
6 | +++ b/src/modules/alsa/alsa-util.c | ||
7 | @@ -334,7 +334,6 @@ int pa_alsa_set_hw_params( | ||
8 | int ret = -1; | ||
9 | snd_pcm_uframes_t _period_size = period_size ? *period_size : 0; | ||
10 | unsigned int _periods = periods ? *periods : 0; | ||
11 | - snd_pcm_uframes_t buffer_size; | ||
12 | unsigned int r = ss->rate; | ||
13 | unsigned int c = ss->channels; | ||
14 | pa_sample_format_t f = ss->format; | ||
15 | @@ -390,39 +389,47 @@ int pa_alsa_set_hw_params( | ||
16 | goto finish; | ||
17 | |||
18 | if (_period_size && tsched_size && _periods) { | ||
19 | + | ||
20 | /* Adjust the buffer sizes, if we didn't get the rate we were asking for */ | ||
21 | _period_size = (snd_pcm_uframes_t) (((uint64_t) _period_size * r) / ss->rate); | ||
22 | tsched_size = (snd_pcm_uframes_t) (((uint64_t) tsched_size * r) / ss->rate); | ||
23 | |||
24 | if (_use_tsched) { | ||
25 | - _period_size = tsched_size; | ||
26 | - _periods = 1; | ||
27 | + snd_pcm_uframes_t buffer_size; | ||
28 | |||
29 | pa_assert_se(snd_pcm_hw_params_get_buffer_size_max(hwparams, &buffer_size) == 0); | ||
30 | pa_log_debug("Maximum hw buffer size is %u ms", (unsigned) buffer_size * 1000 / r); | ||
31 | + | ||
32 | + _period_size = tsched_size; | ||
33 | + _periods = 1; | ||
34 | } | ||
35 | |||
36 | + if (_period_size > 0 && _periods > 0) { | ||
37 | + snd_pcm_uframes_t buffer_size; | ||
38 | + | ||
39 | buffer_size = _periods * _period_size; | ||
40 | |||
41 | + if ((ret = snd_pcm_hw_params_set_buffer_size_near(pcm_handle, hwparams, &buffer_size)) < 0) | ||
42 | + pa_log_info("snd_pcm_hw_params_set_buffer_size_near() failed: %s", pa_alsa_strerror(ret)); | ||
43 | + } | ||
44 | + | ||
45 | if (_periods > 0) { | ||
46 | |||
47 | - /* First we pass 0 as direction to get exactly what we asked | ||
48 | - * for. That this is necessary is presumably a bug in ALSA */ | ||
49 | + /* First we pass 0 as direction to get exactly what we | ||
50 | + * asked for. That this is necessary is presumably a bug | ||
51 | + * in ALSA. All in all this is mostly a hint to ALSA, so | ||
52 | + * we don't care if this fails. */ | ||
53 | |||
54 | dir = 0; | ||
55 | - if ((ret = snd_pcm_hw_params_set_periods_near(pcm_handle, hwparams, &_periods, &dir)) < 0) { | ||
56 | + if (snd_pcm_hw_params_set_periods_near(pcm_handle, hwparams, &_periods, &dir) < 0) { | ||
57 | dir = 1; | ||
58 | - if ((ret = snd_pcm_hw_params_set_periods_near(pcm_handle, hwparams, &_periods, &dir)) < 0) { | ||
59 | + if (snd_pcm_hw_params_set_periods_near(pcm_handle, hwparams, &_periods, &dir) < 0) { | ||
60 | dir = -1; | ||
61 | if ((ret = snd_pcm_hw_params_set_periods_near(pcm_handle, hwparams, &_periods, &dir)) < 0) | ||
62 | - goto finish; | ||
63 | + pa_log_info("snd_pcm_hw_params_set_periods_near() failed: %s", pa_alsa_strerror(ret)); | ||
64 | } | ||
65 | } | ||
66 | } | ||
67 | - | ||
68 | - if (_period_size > 0) | ||
69 | - if ((ret = snd_pcm_hw_params_set_buffer_size_near(pcm_handle, hwparams, &buffer_size)) < 0) | ||
70 | - goto finish; | ||
71 | } | ||
72 | |||
73 | if ((ret = snd_pcm_hw_params(pcm_handle, hwparams)) < 0) | ||
diff --git a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/volatiles.04_pulse b/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/volatiles.04_pulse deleted file mode 100644 index 5b1998032b..0000000000 --- a/meta-moblin/packages/pulseaudio/pulseaudio-0.9.15/volatiles.04_pulse +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | # <type> <owner> <group> <mode> <path> <linksource> | ||
2 | d pulse pulse 0755 /var/run/pulse none | ||
diff --git a/meta-moblin/packages/pulseaudio/pulseaudio.inc b/meta-moblin/packages/pulseaudio/pulseaudio.inc deleted file mode 100644 index fd8e60c471..0000000000 --- a/meta-moblin/packages/pulseaudio/pulseaudio.inc +++ /dev/null | |||
@@ -1,126 +0,0 @@ | |||
1 | DESCRIPTION = "Pulseaudio is a sound server for Linux and Unix-like operating systems." | ||
2 | HOMEPAGE = "http://www.pulseaudio.org" | ||
3 | AUTHOR = "Lennart Poettering" | ||
4 | SECTION = "libs/multimedia" | ||
5 | LICENSE = "LGPL" | ||
6 | DEPENDS = "libatomics-ops liboil avahi libsamplerate0 libsndfile1 libtool hal virtual/libx11" | ||
7 | # optional | ||
8 | DEPENDS += "alsa-lib glib-2.0 dbus consolekit hal" | ||
9 | |||
10 | SRC_URI = "http://0pointer.de/lennart/projects/pulseaudio/pulseaudio-${PV}.tar.gz \ | ||
11 | file://gcc4-compile-fix.patch;patch=1 \ | ||
12 | file://volatiles.04_pulse" | ||
13 | |||
14 | inherit autotools pkgconfig | ||
15 | |||
16 | EXTRA_OECONF = "\ | ||
17 | --disable-lynx \ | ||
18 | --disable-bluez \ | ||
19 | --disable-polkit \ | ||
20 | --with-x \ | ||
21 | --without-jack \ | ||
22 | --with-glib \ | ||
23 | --with-alsa \ | ||
24 | --with-oss \ | ||
25 | --with-hal \ | ||
26 | " | ||
27 | |||
28 | PARALLEL_MAKE = "" | ||
29 | |||
30 | export TARGET_PFPU = "${TARGET_FPU}" | ||
31 | |||
32 | # TODO: Use more fine granular version | ||
33 | #OE_LT_RPATH_ALLOW=":${libdir}/pulse-0.9:" | ||
34 | OE_LT_RPATH_ALLOW = "any" | ||
35 | OE_LT_RPATH_ALLOW[export]="1" | ||
36 | |||
37 | do_install_append() { | ||
38 | install -d ${D}${sysconfdir}/default/volatiles | ||
39 | install -m 0644 ${WORKDIR}/volatiles.04_pulse ${D}${sysconfdir}/default/volatiles/volatiles.04_pulse | ||
40 | |||
41 | if [ "x${TARGET_PFPU}" == "xsoft" ] ; then | ||
42 | sed -i -e s:\;\ resample-method\ =\ sinc-fastest:resample-method\ =\ trivial: ${D}${sysconfdir}/pulse/daemon.conf | ||
43 | fi | ||
44 | } | ||
45 | |||
46 | PACKAGES =+ "libpulsecore libpulsecommon libpulsedsp libpulse libpulse-simple libpulse-browse libpulse-mainloop-glib \ | ||
47 | pulseaudio-server pulseaudio-misc pulseaudio-gconf-helper" | ||
48 | |||
49 | #upgrade path: | ||
50 | RREPLACES_pulseaudio-server = "libpulse-bin libpulse-conf" | ||
51 | |||
52 | PACKAGES_DYNAMIC = "pulseaudio-lib* pulseaudio-module* libpulse-lib* libpulse-module* " | ||
53 | |||
54 | FILES_libpulsecore = "${libdir}/libpulsecore*.so" | ||
55 | FILES_libpulsecommon = "${libdir}/libpulsecommon*.so" | ||
56 | FILES_libpulsedsp = "${libdir}/libpulsedsp*.so" | ||
57 | FILES_libpulse = "${libdir}/libpulse.so.*" | ||
58 | FILES_libpulse-simple = "${libdir}/libpulse-simple.so.*" | ||
59 | FILES_libpulse-browse = "${libdir}/libpulse-browse.so.*" | ||
60 | FILES_libpulse-mainloop-glib = "${libdir}/libpulse-mainloop-glib.so.*" | ||
61 | |||
62 | FILES_${PN}-dbg += "${libexecdir}/pulse/.debug \ | ||
63 | ${libdir}/pulse-${PV}/modules/.debug" | ||
64 | FILES_${PN}-dev += "${libdir}/pulse-${PV}/modules/*.la" | ||
65 | FILES_${PN}-conf = "${sysconfdir}" | ||
66 | FILES_${PN}-bin = "${bindir}/* \ | ||
67 | ${sysconfdir}/default/volatiles/volatiles.04_pulse" | ||
68 | FILES_${PN}-server = "${bindir}/pulseaudio ${bindir}/start-* ${sysconfdir} ${bindir}/pactl" | ||
69 | FILES_${PN}-gconf-helper = "${libexecdir}/pulse/gconf-helper" | ||
70 | FILES_${PN}-misc = "${bindir}/*" | ||
71 | |||
72 | # Allow the pulseaudio package to be created empty as a placeholder (-dbg and -dev depend on it) | ||
73 | ALLOW_EMPTY_${PN} = "1" | ||
74 | |||
75 | CONFFILES_pulseaudio-server = "\ | ||
76 | ${sysconfdir}/pulse/default.pa \ | ||
77 | ${sysconfdir}/pulse/daemon.conf \ | ||
78 | ${sysconfdir}/pulse/client.conf \ | ||
79 | " | ||
80 | |||
81 | pkg_postinst_${PN}-server() { | ||
82 | # can't do this offline | ||
83 | if [ "x$D" != "x" ]; then | ||
84 | exit 1 | ||
85 | fi | ||
86 | grep -q pulse: /etc/group || addgroup pulse | ||
87 | grep -q pulse: /etc/passwd || \ | ||
88 | adduser --disabled-password --home=/var/run/pulse --system \ | ||
89 | --ingroup pulse --no-create-home -g "Pulse audio daemon" pulse | ||
90 | addgroup pulse audio | ||
91 | /etc/init.d/populate-volatile.sh update | ||
92 | } | ||
93 | |||
94 | pkg_postrm_${PN}-server() { | ||
95 | deluser pulse || true | ||
96 | } | ||
97 | |||
98 | python populate_packages_prepend() { | ||
99 | #bb.data.setVar('PKG_pulseaudio', 'pulseaudio', d) | ||
100 | |||
101 | plugindir = bb.data.expand('${libdir}/pulse-${PV}/modules/', d) | ||
102 | do_split_packages(d, plugindir, '^module-(.*)\.so$', 'pulseaudio-module-%s', 'PulseAudio module for %s', extra_depends='' ) | ||
103 | do_split_packages(d, plugindir, '^lib(.*)\.so$', 'pulseaudio-lib-%s', 'PulseAudio library for %s', extra_depends='' ) | ||
104 | } | ||
105 | |||
106 | RDEPENDS_pulseaudio-module-console-kit =+ "consolekit" | ||
107 | RDEPENDS_pulseaudio-module-hal-detect =+ "hal" | ||
108 | RDEPENDS_pulseaudio-server = " \ | ||
109 | pulseaudio-module-device-restore \ | ||
110 | pulseaudio-module-stream-restore \ | ||
111 | pulseaudio-module-card-restore \ | ||
112 | pulseaudio-module-augment-properties \ | ||
113 | pulseaudio-module-detect \ | ||
114 | pulseaudio-module-alsa-sink \ | ||
115 | pulseaudio-module-alsa-source \ | ||
116 | pulseaudio-module-alsa-card \ | ||
117 | pulseaudio-module-native-protocol-unix \ | ||
118 | pulseaudio-module-hal-detect \ | ||
119 | pulseaudio-module-default-device-restore \ | ||
120 | pulseaudio-module-rescue-streams \ | ||
121 | pulseaudio-module-always-sink \ | ||
122 | pulseaudio-module-suspend-on-idle \ | ||
123 | pulseaudio-module-console-kit \ | ||
124 | pulseaudio-module-position-event-sounds \ | ||
125 | pulseaudio-module-cork-music-on-phone " | ||
126 | |||
diff --git a/meta-moblin/packages/pulseaudio/pulseaudio_0.9.15.bb b/meta-moblin/packages/pulseaudio/pulseaudio_0.9.15.bb deleted file mode 100644 index 49387ece83..0000000000 --- a/meta-moblin/packages/pulseaudio/pulseaudio_0.9.15.bb +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | require pulseaudio.inc | ||
2 | |||
3 | DEPENDS += "dbus gdbm speex" | ||
4 | PR = "r14" | ||
5 | |||
6 | SRC_URI += "\ | ||
7 | file://buildfix.patch;patch=1 \ | ||
8 | file://alsaerror.patch;patch=1 \ | ||
9 | file://periodfix.patch;patch=1 \ | ||
10 | file://fallback.patch;patch=1 \ | ||
11 | file://autoconf_version.patch;patch=1 \ | ||
12 | " | ||
13 | |||
14 | do_compile_prepend() { | ||
15 | cd ${S} | ||
16 | mkdir -p ${S}/libltdl | ||
17 | cp ${STAGING_LIBDIR}/libltdl* ${S}/libltdl | ||
18 | } | ||
diff --git a/meta-moblin/packages/qmake/qmake-native/linux-oe-qmake.conf b/meta-moblin/packages/qmake/qmake-native/linux-oe-qmake.conf deleted file mode 100644 index 205b693fda..0000000000 --- a/meta-moblin/packages/qmake/qmake-native/linux-oe-qmake.conf +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | # | ||
2 | # qmake configuration for linux-oe-g++ / OpenEmbedded Build System / http://openembedded.org | ||
3 | # | ||
4 | |||
5 | MAKEFILE_GENERATOR = UNIX | ||
6 | TEMPLATE = app | ||
7 | CONFIG += qt warn_on release | ||
8 | |||
9 | QMAKE_CC = $(OE_QMAKE_CC) | ||
10 | QMAKE_LEX = flex | ||
11 | QMAKE_LEXFLAGS = | ||
12 | QMAKE_YACC = yacc | ||
13 | QMAKE_YACCFLAGS = -d | ||
14 | QMAKE_CFLAGS = -pipe $(OE_QMAKE_CFLAGS) $(CFLAGS_EXTRA) | ||
15 | QMAKE_CFLAGS_WARN_ON = -Wall -W | ||
16 | QMAKE_CFLAGS_WARN_OFF = | ||
17 | QMAKE_CFLAGS_RELEASE = $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) | ||
18 | QMAKE_CFLAGS_DEBUG = -g | ||
19 | QMAKE_CFLAGS_SHLIB = -fPIC | ||
20 | QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses | ||
21 | QMAKE_CFLAGS_THREAD = -D_REENTRANT | ||
22 | |||
23 | QMAKE_CXX = $(OE_QMAKE_CXX) | ||
24 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(OE_QMAKE_CXXFLAGS) $(CXXFLAGS_EXTRA) | ||
25 | QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON | ||
26 | QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF | ||
27 | QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE | ||
28 | QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG | ||
29 | QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB | ||
30 | QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC | ||
31 | QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD | ||
32 | |||
33 | QMAKE_INCDIR = | ||
34 | QMAKE_LIBDIR = | ||
35 | QMAKE_INCDIR_X11 = | ||
36 | QMAKE_LIBDIR_X11 = | ||
37 | QMAKE_INCDIR_QT = $(OE_QMAKE_INCDIR_QT) | ||
38 | QMAKE_LIBDIR_QT = $(OE_QMAKE_LIBDIR_QT) | ||
39 | QMAKE_INCDIR_OPENGL = | ||
40 | QMAKE_LIBDIR_OPENGL = | ||
41 | |||
42 | QMAKE_LINK = $(OE_QMAKE_LINK) | ||
43 | QMAKE_LINK_SHLIB = $(OE_QMAKE_LINK) | ||
44 | QMAKE_LFLAGS = $(OE_QMAKE_LDFLAGS) $(LFLAGS_EXTRA) | ||
45 | QMAKE_LFLAGS_RELEASE = | ||
46 | QMAKE_LFLAGS_DEBUG = | ||
47 | QMAKE_LFLAGS_SHLIB = -shared | ||
48 | QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB | ||
49 | QMAKE_LFLAGS_SONAME = -Wl,-soname, | ||
50 | QMAKE_LFLAGS_THREAD = | ||
51 | QMAKE_RPATH = -Wl,-rpath-link, | ||
52 | |||
53 | QMAKE_LIBS = $(LIBS_EXTRA) | ||
54 | QMAKE_LIBS_DYNLOAD = -ldl | ||
55 | QMAKE_LIBS_X11 = $(OE_QMAKE_LIBS_X11) | ||
56 | QMAKE_LIBS_X11SM = | ||
57 | QMAKE_LIBS_QT = -l$(OE_QMAKE_LIBS_QT) | ||
58 | QMAKE_LIBS_QT_THREAD = -l$(OE_QMAKE_LIBS_QT)-mt | ||
59 | QMAKE_LIBS_OPENGL = $(OE_QMAKE_LIBS_OPENGL) | ||
60 | QMAKE_LIBS_OPENGL_QT = $(OE_QMAKE_LIBS_OPENGL_QT) | ||
61 | QMAKE_LIBS_THREAD = -lpthread | ||
62 | |||
63 | QMAKE_MOC = $(OE_QMAKE_MOC) | ||
64 | QMAKE_UIC = $(OE_QMAKE_UIC) | ||
65 | |||
66 | QMAKE_AR = $(OE_QMAKE_AR) cqs | ||
67 | QMAKE_RANLIB = | ||
68 | |||
69 | QMAKE_TAR = tar -cf | ||
70 | QMAKE_GZIP = gzip -9f | ||
71 | |||
72 | QMAKE_COPY = cp -f | ||
73 | QMAKE_COPY_FILE = $(COPY) | ||
74 | QMAKE_COPY_DIR = $(COPY) -r | ||
75 | QMAKE_MOVE = mv -f | ||
76 | QMAKE_DEL_FILE = rm -f | ||
77 | QMAKE_DEL_DIR = rmdir | ||
78 | QMAKE_STRIP = $(OE_QMAKE_STRIP) | ||
79 | QMAKE_STRIPFLAGS_LIB += --strip-unneeded | ||
80 | QMAKE_CHK_DIR_EXISTS = test -d | ||
81 | QMAKE_MKDIR = mkdir -p | ||
82 | |||
diff --git a/meta-moblin/packages/qmake/qmake-native_1.07a.bb b/meta-moblin/packages/qmake/qmake-native_1.07a.bb deleted file mode 100644 index 82a24968af..0000000000 --- a/meta-moblin/packages/qmake/qmake-native_1.07a.bb +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | DESCRIPTION = "TrollTech Makefile Generator" | ||
2 | PRIORITY = "optional" | ||
3 | HOMEPAGE = "http://www.trolltech.com" | ||
4 | SECTION = "devel" | ||
5 | LICENSE = "GPL QPL" | ||
6 | PR = "r4" | ||
7 | |||
8 | QTEVER = "qt-embedded-free-3.3.5" | ||
9 | |||
10 | SRC_URI = "ftp://ftp.trolltech.com/pub/qt/source/${QTEVER}.tar.bz2 \ | ||
11 | file://linux-oe-qmake.conf" | ||
12 | S = "${WORKDIR}/${QTEVER}" | ||
13 | |||
14 | inherit autotools native | ||
15 | |||
16 | export QTDIR = "${S}" | ||
17 | EXTRA_OEMAKE = "-e" | ||
18 | |||
19 | do_configure() { | ||
20 | # Install the OE build templates | ||
21 | for template in linux-oe-g++ linux-uclibc-oe-g++ linux-gnueabi-oe-g++ | ||
22 | do | ||
23 | install -d ${S}/mkspecs/$template | ||
24 | install -m 0644 ${WORKDIR}/linux-oe-qmake.conf ${S}/mkspecs/$template/qmake.conf | ||
25 | ln -sf ../linux-g++/qplatformdefs.h ${S}/mkspecs/$template/qplatformdefs.h | ||
26 | done | ||
27 | QMAKESPEC= | ||
28 | PLATFORM=${HOST_OS}-oe-g++ | ||
29 | export PLATFORM | ||
30 | oenote ./configure ${EXTRA_OECONF} | ||
31 | echo yes | ./configure ${EXTRA_OECONF} || die "Configuring qt failed" | ||
32 | } | ||
33 | |||
34 | do_compile() { | ||
35 | : | ||
36 | } | ||
37 | |||
38 | do_install() { | ||
39 | install -d ${D}${bindir}/ | ||
40 | install -m 0755 ${S}/bin/qmake ${D}${bindir}/ | ||
41 | install -d ${D}/qmake/ | ||
42 | cp -fPR ${S}/mkspecs/* ${D}/qmake/ | ||
43 | } | ||
44 | |||
45 | sysroot_stage_all_append() { | ||
46 | sysroot_stage_dir ${D}/qmake ${SYSROOT_DESTDIR}/${QMAKE_MKSPEC_PATH} | ||
47 | } | ||
diff --git a/meta-moblin/packages/samba/files/config-h.patch b/meta-moblin/packages/samba/files/config-h.patch deleted file mode 100644 index eeb22684ee..0000000000 --- a/meta-moblin/packages/samba/files/config-h.patch +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | diff -urN source.old//include/config.h.in source//include/config.h.in | ||
2 | --- source.old//include/config.h.in 2008-11-20 14:45:04.000000000 +0000 | ||
3 | +++ source//include/config.h.in 2008-11-30 21:04:17.990008933 +0000 | ||
4 | @@ -2672,7 +2672,7 @@ | ||
5 | #undef USE_SETEUID | ||
6 | |||
7 | /* Whether setresuid() is available */ | ||
8 | -#undef USE_SETRESUID | ||
9 | +#define USE_SETRESUID 1 | ||
10 | |||
11 | /* Whether setreuid() is available */ | ||
12 | #undef USE_SETREUID | ||
diff --git a/meta-moblin/packages/samba/files/config-lfs.patch b/meta-moblin/packages/samba/files/config-lfs.patch deleted file mode 100644 index b37ed690ce..0000000000 --- a/meta-moblin/packages/samba/files/config-lfs.patch +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | Cache the check for Linux LFS support, so it can be prepopulated from | ||
2 | the site cache for configure variables for cross-compiling. Without this, | ||
3 | samba gets the idea that it can use dirent64 and friends without defining | ||
4 | the flags it needs to get it, such as _GNU_SOURCE and _LARGEFILE64_SOURCE. | ||
5 | |||
6 | Symptoms of getting the configuration wrong on cross-compile inculde | ||
7 | warnings such as | ||
8 | |||
9 | smbd/trans2.c: In function `get_lanman2_dir_entry': | ||
10 | smbd/trans2.c:1065: warning: right shift count >= width of type | ||
11 | |||
12 | and errors like | ||
13 | |||
14 | smbd/vfs.c:630: error: dereferencing pointer to incomplete type | ||
15 | |||
16 | (when trying to dereference dirent64.) | ||
17 | |||
18 | --- source/configure.in.orig 2005-05-29 14:46:18.000000000 -0700 | ||
19 | +++ source/configure.in 2005-05-29 14:51:57.000000000 -0700 | ||
20 | @@ -588,7 +588,7 @@ | ||
21 | # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support. | ||
22 | # | ||
23 | *linux*) | ||
24 | - AC_MSG_CHECKING([for LFS support]) | ||
25 | + AC_CACHE_CHECK([for LFS support], samba_cv_LINUX_LFS_SUPPORT,[ | ||
26 | old_CPPFLAGS="$CPPFLAGS" | ||
27 | CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS" | ||
28 | AC_TRY_RUN([ | ||
29 | @@ -627,15 +627,14 @@ | ||
30 | exit(1); | ||
31 | #endif | ||
32 | } | ||
33 | -], [LINUX_LFS_SUPPORT=yes], [LINUX_LFS_SUPPORT=no], [LINUX_LFS_SUPPORT=cross]) | ||
34 | - CPPFLAGS="$old_CPPFLAGS" | ||
35 | - if test x$LINUX_LFS_SUPPORT = xyes ; then | ||
36 | +], [samba_cv_LINUX_LFS_SUPPORT=yes], [samba_cv_LINUX_LFS_SUPPORT=no], [samba_cv_LINUX_LFS_SUPPORT=cross]) | ||
37 | + CPPFLAGS="$old_CPPFLAGS"]) | ||
38 | + if test x"$samba_cv_LINUX_LFS_SUPPORT" = x"yes" ; then | ||
39 | CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS" | ||
40 | AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support]) | ||
41 | AC_DEFINE(_FILE_OFFSET_BITS, 64, [File offset bits]) | ||
42 | AC_DEFINE(_GNU_SOURCE, 1, [Whether to use GNU libc extensions]) | ||
43 | fi | ||
44 | - AC_MSG_RESULT([$LINUX_LFS_SUPPORT]) | ||
45 | ;; | ||
46 | |||
47 | # | ||
diff --git a/meta-moblin/packages/samba/files/configure-3.3.0.patch b/meta-moblin/packages/samba/files/configure-3.3.0.patch deleted file mode 100644 index a2e2544802..0000000000 --- a/meta-moblin/packages/samba/files/configure-3.3.0.patch +++ /dev/null | |||
@@ -1,87 +0,0 @@ | |||
1 | Index: source/configure | ||
2 | =================================================================== | ||
3 | --- source.orig/configure 2009-01-27 07:53:11.000000000 +0000 | ||
4 | +++ source/configure 2009-05-15 12:51:02.000000000 +0100 | ||
5 | @@ -43860,13 +43860,7 @@ | ||
6 | *linux*) | ||
7 | # glibc <= 2.3.2 has a broken getgrouplist | ||
8 | if test "$cross_compiling" = yes; then | ||
9 | - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | ||
10 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
11 | -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
12 | -See \`config.log' for more details." >&5 | ||
13 | -$as_echo "$as_me: error: cannot run test program while cross compiling | ||
14 | -See \`config.log' for more details." >&2;} | ||
15 | - { (exit 1); exit 1; }; }; } | ||
16 | +linux_getgrouplist_ok=no | ||
17 | else | ||
18 | cat >conftest.$ac_ext <<_ACEOF | ||
19 | /* confdefs.h. */ | ||
20 | Index: source/configure.in | ||
21 | =================================================================== | ||
22 | --- source.orig/configure.in 2009-05-15 12:51:01.000000000 +0100 | ||
23 | +++ source/configure.in 2009-05-15 13:02:22.000000000 +0100 | ||
24 | @@ -280,6 +280,8 @@ | ||
25 | fi | ||
26 | AC_SUBST(BROKEN_CC) | ||
27 | |||
28 | +AC_TRY_COMPILE([],[(void)sizeof(char[-1])],AC_MSG_ERROR([configure's compilation assert doesn't work with $CC])) | ||
29 | + | ||
30 | dnl Check if the C compiler understands -Werror | ||
31 | AC_CACHE_CHECK([that the C compiler understands -Werror],samba_cv_HAVE_Werror, [ | ||
32 | AC_TRY_RUN_STRICT([ | ||
33 | @@ -330,25 +332,11 @@ | ||
34 | # a runtime test is needed here | ||
35 | AC_SUBST(PIDL_ARGS) | ||
36 | AC_CACHE_CHECK([that the C compiler understands negative enum values],samba_cv_CC_NEGATIVE_ENUM_VALUES, [ | ||
37 | - AC_TRY_RUN( | ||
38 | + AC_TRY_COMPILE([], | ||
39 | [ | ||
40 | - #include <stdio.h> | ||
41 | enum negative_values { NEGATIVE_VALUE = 0xFFFFFFFF }; | ||
42 | - int main(void) { | ||
43 | - enum negative_values v1 = NEGATIVE_VALUE; | ||
44 | - unsigned v2 = NEGATIVE_VALUE; | ||
45 | - | ||
46 | - if (v1 != 0xFFFFFFFF) { | ||
47 | - printf("%u != 0xFFFFFFFF\n", v1); | ||
48 | - return 1; | ||
49 | - } | ||
50 | - if (v2 != 0xFFFFFFFF) { | ||
51 | - printf("%u != 0xFFFFFFFF\n", v2); | ||
52 | - return 1; | ||
53 | - } | ||
54 | - | ||
55 | - return 0; | ||
56 | - } | ||
57 | + (void)sizeof(char[1-2*( (unsigned)NEGATIVE_VALUE != 0xFFFFFFFF)]); | ||
58 | + (void)sizeof(char[1-2*((enum negative_values)NEGATIVE_VALUE != 0xFFFFFFFF)]); | ||
59 | ], | ||
60 | samba_cv_CC_NEGATIVE_ENUM_VALUES=yes,samba_cv__CC_NEGATIVE_ENUM_VALUES=no)]) | ||
61 | if test x"$samba_cv_CC_NEGATIVE_ENUM_VALUES" != x"yes"; then | ||
62 | @@ -1223,22 +1211,12 @@ | ||
63 | case "$host_os" in | ||
64 | *linux*) | ||
65 | # glibc <= 2.3.2 has a broken getgrouplist | ||
66 | - AC_TRY_RUN([ | ||
67 | -#include <unistd.h> | ||
68 | + AC_TRY_COMPILE([ | ||
69 | #include <sys/utsname.h> | ||
70 | -main() { | ||
71 | - /* glibc up to 2.3 has a broken getgrouplist */ | ||
72 | +],[ | ||
73 | #if defined(__GLIBC__) && defined(__GLIBC_MINOR__) | ||
74 | - int libc_major = __GLIBC__; | ||
75 | - int libc_minor = __GLIBC_MINOR__; | ||
76 | - | ||
77 | - if (libc_major < 2) | ||
78 | - exit(1); | ||
79 | - if ((libc_major == 2) && (libc_minor <= 3)) | ||
80 | - exit(1); | ||
81 | + (void)sizeof(char[1-2*(__GLIBC__ < 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ <= 3)]); | ||
82 | #endif | ||
83 | - exit(0); | ||
84 | -} | ||
85 | ], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no]) | ||
86 | if test x"$linux_getgrouplist_ok" = x"yes"; then | ||
87 | AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist]) | ||
diff --git a/meta-moblin/packages/samba/files/configure.patch b/meta-moblin/packages/samba/files/configure.patch deleted file mode 100644 index b7ba287795..0000000000 --- a/meta-moblin/packages/samba/files/configure.patch +++ /dev/null | |||
@@ -1,179 +0,0 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
4 | # | ||
5 | |||
6 | --- source/configure.in~configure 2003-12-14 22:36:25.000000000 -0500 | ||
7 | +++ source/configure.in 2004-01-26 14:33:15.000000000 -0500 | ||
8 | @@ -959,7 +959,7 @@ | ||
9 | #endif | ||
10 | exit(0); | ||
11 | } | ||
12 | -], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no]) | ||
13 | +], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no], [linux_getgrouplist_ok=cross]) | ||
14 | if test x"$linux_getgrouplist_ok" = x"yes"; then | ||
15 | AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist]) | ||
16 | fi | ||
17 | --- source/aclocal.m4~configure 2004-01-26 14:33:15.000000000 -0500 | ||
18 | +++ source/aclocal.m4 2004-01-26 17:34:28.000000000 -0500 | ||
19 | @@ -2,7 +2,7 @@ | ||
20 | dnl if the cache file is inconsistent with the current host, | ||
21 | dnl target and build system types, execute CMD or print a default | ||
22 | dnl error message. | ||
23 | -AC_DEFUN(AC_VALIDATE_CACHE_SYSTEM_TYPE, [ | ||
24 | +AC_DEFUN([AC_VALIDATE_CACHE_SYSTEM_TYPE], [ | ||
25 | AC_REQUIRE([AC_CANONICAL_SYSTEM]) | ||
26 | AC_MSG_CHECKING([config.cache system type]) | ||
27 | if { test x"${ac_cv_host_system_type+set}" = x"set" && | ||
28 | @@ -24,7 +24,7 @@ | ||
29 | |||
30 | |||
31 | dnl test whether dirent has a d_off member | ||
32 | -AC_DEFUN(AC_DIRENT_D_OFF, | ||
33 | +AC_DEFUN([AC_DIRENT_D_OFF], | ||
34 | [AC_CACHE_CHECK([for d_off in dirent], ac_cv_dirent_d_off, | ||
35 | [AC_TRY_COMPILE([ | ||
36 | #include <unistd.h> | ||
37 | @@ -38,7 +38,7 @@ | ||
38 | |||
39 | dnl Mark specified module as shared | ||
40 | dnl SMB_MODULE(name,static_files,shared_files,subsystem,whatif-static,whatif-shared) | ||
41 | -AC_DEFUN(SMB_MODULE, | ||
42 | +AC_DEFUN([SMB_MODULE], | ||
43 | [ | ||
44 | AC_MSG_CHECKING([how to build $1]) | ||
45 | if test "$[MODULE_][$1]"; then | ||
46 | @@ -68,7 +68,7 @@ | ||
47 | fi | ||
48 | ]) | ||
49 | |||
50 | -AC_DEFUN(SMB_SUBSYSTEM, | ||
51 | +AC_DEFUN([SMB_SUBSYSTEM], | ||
52 | [ | ||
53 | AC_SUBST($1_STATIC) | ||
54 | AC_SUBST($1_MODULES) | ||
55 | @@ -77,7 +77,7 @@ | ||
56 | ]) | ||
57 | |||
58 | dnl AC_PROG_CC_FLAG(flag) | ||
59 | -AC_DEFUN(AC_PROG_CC_FLAG, | ||
60 | +AC_DEFUN([AC_PROG_CC_FLAG], | ||
61 | [AC_CACHE_CHECK(whether ${CC-cc} accepts -$1, ac_cv_prog_cc_$1, | ||
62 | [echo 'void f(){}' > conftest.c | ||
63 | if test -z "`${CC-cc} -$1 -c conftest.c 2>&1`"; then | ||
64 | @@ -91,7 +91,7 @@ | ||
65 | dnl see if a declaration exists for a function or variable | ||
66 | dnl defines HAVE_function_DECL if it exists | ||
67 | dnl AC_HAVE_DECL(var, includes) | ||
68 | -AC_DEFUN(AC_HAVE_DECL, | ||
69 | +AC_DEFUN([AC_HAVE_DECL], | ||
70 | [ | ||
71 | AC_CACHE_CHECK([for $1 declaration],ac_cv_have_$1_decl,[ | ||
72 | AC_TRY_COMPILE([$2],[int i = (int)$1], | ||
73 | @@ -105,7 +105,7 @@ | ||
74 | dnl check for a function in a library, but don't | ||
75 | dnl keep adding the same library to the LIBS variable. | ||
76 | dnl AC_LIBTESTFUNC(lib,func) | ||
77 | -AC_DEFUN(AC_LIBTESTFUNC, | ||
78 | +AC_DEFUN([AC_LIBTESTFUNC], | ||
79 | [case "$LIBS" in | ||
80 | *-l$1*) AC_CHECK_FUNCS($2) ;; | ||
81 | *) AC_CHECK_LIB($1, $2) | ||
82 | @@ -223,7 +223,7 @@ | ||
83 | |||
84 | dnl Define an AC_DEFINE with ifndef guard. | ||
85 | dnl AC_N_DEFINE(VARIABLE [, VALUE]) | ||
86 | -define(AC_N_DEFINE, | ||
87 | +define([AC_N_DEFINE], | ||
88 | [cat >> confdefs.h <<\EOF | ||
89 | [#ifndef] $1 | ||
90 | [#define] $1 ifelse($#, 2, [$2], $#, 3, [$2], 1) | ||
91 | @@ -233,14 +233,14 @@ | ||
92 | |||
93 | dnl Add an #include | ||
94 | dnl AC_ADD_INCLUDE(VARIABLE) | ||
95 | -define(AC_ADD_INCLUDE, | ||
96 | +define([AC_ADD_INCLUDE], | ||
97 | [cat >> confdefs.h <<\EOF | ||
98 | [#include] $1 | ||
99 | EOF | ||
100 | ]) | ||
101 | |||
102 | dnl Copied from libtool.m4 | ||
103 | -AC_DEFUN(AC_PROG_LD_GNU, | ||
104 | +AC_DEFUN([AC_PROG_LD_GNU], | ||
105 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, | ||
106 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
107 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | ||
108 | @@ -259,7 +259,7 @@ | ||
109 | dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) | ||
110 | dnl Test for XML, and define XML_CFLAGS and XML_LIBS | ||
111 | dnl | ||
112 | -AC_DEFUN(AM_PATH_XML2,[ | ||
113 | +AC_DEFUN([AM_PATH_XML2],[ | ||
114 | AC_ARG_WITH(xml-prefix, | ||
115 | [ --with-xml-prefix=PFX Prefix where libxml is installed (optional)], | ||
116 | xml_config_prefix="$withval", xml_config_prefix="") | ||
117 | @@ -443,7 +443,7 @@ | ||
118 | dnl AM_PATH_MYSQL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) | ||
119 | dnl Test for MYSQL, and define MYSQL_CFLAGS and MYSQL_LIBS | ||
120 | dnl | ||
121 | -AC_DEFUN(AM_PATH_MYSQL, | ||
122 | +AC_DEFUN([AM_PATH_MYSQL], | ||
123 | [dnl | ||
124 | dnl Get the cflags and libraries from the mysql_config script | ||
125 | dnl | ||
126 | @@ -485,7 +485,7 @@ | ||
127 | ]) | ||
128 | |||
129 | dnl Removes -I/usr/include/? from given variable | ||
130 | -AC_DEFUN(CFLAGS_REMOVE_USR_INCLUDE,[ | ||
131 | +AC_DEFUN([CFLAGS_REMOVE_USR_INCLUDE],[ | ||
132 | ac_new_flags="" | ||
133 | for i in [$]$1; do | ||
134 | case [$]i in | ||
135 | @@ -497,7 +497,7 @@ | ||
136 | ]) | ||
137 | |||
138 | dnl Removes -L/usr/lib/? from given variable | ||
139 | -AC_DEFUN(LIB_REMOVE_USR_LIB,[ | ||
140 | +AC_DEFUN([LIB_REMOVE_USR_LIB],[ | ||
141 | ac_new_flags="" | ||
142 | for i in [$]$1; do | ||
143 | case [$]i in | ||
144 | @@ -510,7 +510,7 @@ | ||
145 | |||
146 | dnl From Bruno Haible. | ||
147 | |||
148 | -AC_DEFUN(jm_ICONV, | ||
149 | +AC_DEFUN([jm_ICONV], | ||
150 | [ | ||
151 | dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and | ||
152 | dnl those with the standalone portable libiconv installed). | ||
153 | @@ -607,7 +607,7 @@ | ||
154 | fi | ||
155 | ]) | ||
156 | |||
157 | -AC_DEFUN(rjs_CHARSET,[ | ||
158 | +AC_DEFUN([rjs_CHARSET],[ | ||
159 | dnl Find out if we can convert from $1 to UCS2-LE | ||
160 | AC_MSG_CHECKING([can we convert from $1 to UCS2-LE?]) | ||
161 | AC_TRY_RUN([ | ||
162 | @@ -625,7 +625,7 @@ | ||
163 | |||
164 | dnl CFLAGS_ADD_DIR(CFLAGS, $INCDIR) | ||
165 | dnl This function doesn't add -I/usr/include into CFLAGS | ||
166 | -AC_DEFUN(CFLAGS_ADD_DIR,[ | ||
167 | +AC_DEFUN([CFLAGS_ADD_DIR],[ | ||
168 | if test "$2" != "/usr/include" ; then | ||
169 | $1="$$1 -I$2" | ||
170 | fi | ||
171 | @@ -633,7 +633,7 @@ | ||
172 | |||
173 | dnl LIB_ADD_DIR(LDFLAGS, $LIBDIR) | ||
174 | dnl This function doesn't add -L/usr/lib into LDFLAGS | ||
175 | -AC_DEFUN(LIB_ADD_DIR,[ | ||
176 | +AC_DEFUN([LIB_ADD_DIR],[ | ||
177 | if test "$2" != "/usr/lib" ; then | ||
178 | $1="$$1 -L$2" | ||
179 | fi | ||
diff --git a/meta-moblin/packages/samba/files/init b/meta-moblin/packages/samba/files/init deleted file mode 100644 index cb57b17de4..0000000000 --- a/meta-moblin/packages/samba/files/init +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # | ||
3 | # This is an init script for openembedded | ||
4 | # Copy it to /etc/init.d/samba and type | ||
5 | # > update-rc.d samba defaults 60 | ||
6 | # | ||
7 | |||
8 | |||
9 | smbd=/usr/sbin/smbd | ||
10 | test -x "$smbd" || exit 0 | ||
11 | nmbd=/usr/sbin/nmbd | ||
12 | test -x "$nmbd" || exit 0 | ||
13 | |||
14 | |||
15 | case "$1" in | ||
16 | start) | ||
17 | echo -n "Starting Samba: smbd" | ||
18 | start-stop-daemon --start --quiet --exec $smbd | ||
19 | echo -n " nmbd" | ||
20 | start-stop-daemon --start --quiet --exec $nmbd | ||
21 | echo "." | ||
22 | ;; | ||
23 | stop) | ||
24 | echo -n "Stopping Samba: smbd" | ||
25 | start-stop-daemon --stop --quiet --pidfile /var/run/smbd.pid | ||
26 | echo -n " nmbd" | ||
27 | start-stop-daemon --stop --quiet --pidfile /var/run/nmbd.pid | ||
28 | echo "." | ||
29 | ;; | ||
30 | reload|force-reload) | ||
31 | start-stop-daemon --stop --quiet --signal 1 --exec $smbd | ||
32 | start-stop-daemon --stop --quiet --signal 1 --exec $nmbd | ||
33 | ;; | ||
34 | restart) | ||
35 | echo -n "Stopping Samba: smbd" | ||
36 | start-stop-daemon --stop --quiet --pidfile /var/run/smbd.pid | ||
37 | echo -n " nmbd" | ||
38 | start-stop-daemon --stop --quiet --pidfile /var/run/nmbd.pid | ||
39 | echo "" | ||
40 | echo -n "Waiting for samba processes to die off" | ||
41 | for i in 1 2 3 ; | ||
42 | do | ||
43 | sleep 1 | ||
44 | echo -n "." | ||
45 | done | ||
46 | echo "" | ||
47 | echo -n "Starting Samba: smbd" | ||
48 | start-stop-daemon --start --quiet --exec $smbd | ||
49 | echo -n " nmbd" | ||
50 | start-stop-daemon --start --quiet --exec $nmbd | ||
51 | echo "." | ||
52 | ;; | ||
53 | *) | ||
54 | echo "Usage: /etc/init.d/samba {start|stop|reload|restart|force-reload}" | ||
55 | exit 1 | ||
56 | esac | ||
57 | |||
58 | exit 0 \ No newline at end of file | ||
diff --git a/meta-moblin/packages/samba/files/mtab.patch b/meta-moblin/packages/samba/files/mtab.patch deleted file mode 100644 index 2ee8ba0941..0000000000 --- a/meta-moblin/packages/samba/files/mtab.patch +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | diff -urN source/client/mtab.c samba-3.2.7//source/client/mtab.c | ||
2 | --- source/client/mtab.c 2008-12-19 13:57:33.000000000 +0000 | ||
3 | +++ source/client/mtab.c 2009-01-09 23:14:00.717671075 +0000 | ||
4 | @@ -32,6 +32,7 @@ | ||
5 | #include <errno.h> | ||
6 | #include <stdio.h> | ||
7 | #include <sys/time.h> | ||
8 | +#include <sys/stat.h> | ||
9 | #include <time.h> | ||
10 | #include <fcntl.h> | ||
11 | #include <mntent.h> | ||
diff --git a/meta-moblin/packages/samba/files/quota.patch b/meta-moblin/packages/samba/files/quota.patch deleted file mode 100644 index 6f42ff868f..0000000000 --- a/meta-moblin/packages/samba/files/quota.patch +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | --- lib/sysquotas_4A.c.old 2005-07-03 17:16:00.000000000 +0200 | ||
2 | +++ lib/sysquotas_4A.c 2005-07-03 17:10:09.000000000 +0200 | ||
3 | @@ -28,6 +28,8 @@ | ||
4 | /* long quotactl(int cmd, char *special, qid_t id, caddr_t addr) */ | ||
5 | /* this is used by: HPUX,IRIX */ | ||
6 | |||
7 | + #define _LINUX_QUOTA_VERSION 1 | ||
8 | + | ||
9 | #ifdef HAVE_SYS_TYPES_H | ||
10 | #include <sys/types.h> | ||
11 | #endif | ||
diff --git a/meta-moblin/packages/samba/files/smb.conf b/meta-moblin/packages/samba/files/smb.conf deleted file mode 100644 index f07e3e4ec7..0000000000 --- a/meta-moblin/packages/samba/files/smb.conf +++ /dev/null | |||
@@ -1,266 +0,0 @@ | |||
1 | # This is the main Samba configuration file. You should read the | ||
2 | # smb.conf(5) manual page in order to understand the options listed | ||
3 | # here. Samba has a huge number of configurable options (perhaps too | ||
4 | # many!) most of which are not shown in this example | ||
5 | # | ||
6 | # For a step to step guide on installing, configuring and using samba, | ||
7 | # read the Samba-HOWTO-Collection. This may be obtained from: | ||
8 | # http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf | ||
9 | # | ||
10 | # Many working examples of smb.conf files can be found in the | ||
11 | # Samba-Guide which is generated daily and can be downloaded from: | ||
12 | # http://www.samba.org/samba/docs/Samba-Guide.pdf | ||
13 | # | ||
14 | # Any line which starts with a ; (semi-colon) or a # (hash) | ||
15 | # is a comment and is ignored. In this example we will use a # | ||
16 | # for commentry and a ; for parts of the config file that you | ||
17 | # may wish to enable | ||
18 | # | ||
19 | # NOTE: Whenever you modify this file you should run the command "testparm" | ||
20 | # to check that you have not made any basic syntactic errors. | ||
21 | # | ||
22 | #======================= Global Settings ===================================== | ||
23 | [global] | ||
24 | |||
25 | # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH | ||
26 | workgroup = MYGROUP | ||
27 | |||
28 | # server string is the equivalent of the NT Description field | ||
29 | server string = Samba Server | ||
30 | |||
31 | # Security mode. Defines in which mode Samba will operate. Possible | ||
32 | # values are share, user, server, domain and ads. Most people will want | ||
33 | # user level security. See the Samba-HOWTO-Collection for details. | ||
34 | security = user | ||
35 | |||
36 | # This option is important for security. It allows you to restrict | ||
37 | # connections to machines which are on your local network. The | ||
38 | # following example restricts access to two C class networks and | ||
39 | # the "loopback" interface. For more examples of the syntax see | ||
40 | # the smb.conf man page | ||
41 | ; hosts allow = 192.168.1. 192.168.2. 127. | ||
42 | |||
43 | # If you want to automatically load your printer list rather | ||
44 | # than setting them up individually then you'll need this | ||
45 | load printers = yes | ||
46 | |||
47 | # you may wish to override the location of the printcap file | ||
48 | ; printcap name = /etc/printcap | ||
49 | |||
50 | # on SystemV system setting printcap name to lpstat should allow | ||
51 | # you to automatically obtain a printer list from the SystemV spool | ||
52 | # system | ||
53 | ; printcap name = lpstat | ||
54 | |||
55 | # It should not be necessary to specify the print system type unless | ||
56 | # it is non-standard. Currently supported print systems include: | ||
57 | # bsd, cups, sysv, plp, lprng, aix, hpux, qnx | ||
58 | ; printing = cups | ||
59 | |||
60 | # Uncomment this if you want a guest account, you must add this to /etc/passwd | ||
61 | # otherwise the user "nobody" is used | ||
62 | ; guest account = pcguest | ||
63 | |||
64 | # this tells Samba to use a separate log file for each machine | ||
65 | # that connects | ||
66 | log file = /var/log/samba/log.%m | ||
67 | |||
68 | # Put a capping on the size of the log files (in Kb). | ||
69 | max log size = 50 | ||
70 | |||
71 | # Use password server option only with security = server | ||
72 | # The argument list may include: | ||
73 | # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name] | ||
74 | # or to auto-locate the domain controller/s | ||
75 | # password server = * | ||
76 | ; password server = <NT-Server-Name> | ||
77 | |||
78 | # Use the realm option only with security = ads | ||
79 | # Specifies the Active Directory realm the host is part of | ||
80 | ; realm = MY_REALM | ||
81 | |||
82 | # Backend to store user information in. New installations should | ||
83 | # use either tdbsam or ldapsam. smbpasswd is available for backwards | ||
84 | # compatibility. tdbsam requires no further configuration. | ||
85 | ; passdb backend = tdbsam | ||
86 | |||
87 | # Using the following line enables you to customise your configuration | ||
88 | # on a per machine basis. The %m gets replaced with the netbios name | ||
89 | # of the machine that is connecting. | ||
90 | # Note: Consider carefully the location in the configuration file of | ||
91 | # this line. The included file is read at that point. | ||
92 | ; include = /usr/local/samba/lib/smb.conf.%m | ||
93 | |||
94 | # Configure Samba to use multiple interfaces | ||
95 | # If you have multiple network interfaces then you must list them | ||
96 | # here. See the man page for details. | ||
97 | ; interfaces = 192.168.12.2/24 192.168.13.2/24 | ||
98 | |||
99 | # Browser Control Options: | ||
100 | # set local master to no if you don't want Samba to become a master | ||
101 | # browser on your network. Otherwise the normal election rules apply | ||
102 | ; local master = no | ||
103 | |||
104 | # OS Level determines the precedence of this server in master browser | ||
105 | # elections. The default value should be reasonable | ||
106 | ; os level = 33 | ||
107 | |||
108 | # Domain Master specifies Samba to be the Domain Master Browser. This | ||
109 | # allows Samba to collate browse lists between subnets. Don't use this | ||
110 | # if you already have a Windows NT domain controller doing this job | ||
111 | ; domain master = yes | ||
112 | |||
113 | # Preferred Master causes Samba to force a local browser election on startup | ||
114 | # and gives it a slightly higher chance of winning the election | ||
115 | ; preferred master = yes | ||
116 | |||
117 | # Enable this if you want Samba to be a domain logon server for | ||
118 | # Windows95 workstations. | ||
119 | ; domain logons = yes | ||
120 | |||
121 | # if you enable domain logons then you may want a per-machine or | ||
122 | # per user logon script | ||
123 | # run a specific logon batch file per workstation (machine) | ||
124 | ; logon script = %m.bat | ||
125 | # run a specific logon batch file per username | ||
126 | ; logon script = %U.bat | ||
127 | |||
128 | # Where to store roving profiles (only for Win95 and WinNT) | ||
129 | # %L substitutes for this servers netbios name, %U is username | ||
130 | # You must uncomment the [Profiles] share below | ||
131 | ; logon path = \\%L\Profiles\%U | ||
132 | |||
133 | # Windows Internet Name Serving Support Section: | ||
134 | # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server | ||
135 | ; wins support = yes | ||
136 | |||
137 | # WINS Server - Tells the NMBD components of Samba to be a WINS Client | ||
138 | # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both | ||
139 | ; wins server = w.x.y.z | ||
140 | |||
141 | # WINS Proxy - Tells Samba to answer name resolution queries on | ||
142 | # behalf of a non WINS capable client, for this to work there must be | ||
143 | # at least one WINS Server on the network. The default is NO. | ||
144 | ; wins proxy = yes | ||
145 | |||
146 | # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names | ||
147 | # via DNS nslookups. The default is NO. | ||
148 | dns proxy = no | ||
149 | |||
150 | # These scripts are used on a domain controller or stand-alone | ||
151 | # machine to add or delete corresponding unix accounts | ||
152 | ; add user script = /usr/sbin/useradd %u | ||
153 | ; add group script = /usr/sbin/groupadd %g | ||
154 | ; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u | ||
155 | ; delete user script = /usr/sbin/userdel %u | ||
156 | ; delete user from group script = /usr/sbin/deluser %u %g | ||
157 | ; delete group script = /usr/sbin/groupdel %g | ||
158 | |||
159 | |||
160 | #============================ Share Definitions ============================== | ||
161 | [homes] | ||
162 | comment = Home Directories | ||
163 | browseable = yes | ||
164 | writable = yes | ||
165 | |||
166 | # Un-comment the following and create the netlogon directory for Domain Logons | ||
167 | ; [netlogon] | ||
168 | ; comment = Network Logon Service | ||
169 | ; path = /usr/local/samba/lib/netlogon | ||
170 | ; guest ok = yes | ||
171 | ; writable = no | ||
172 | ; share modes = no | ||
173 | |||
174 | |||
175 | # Un-comment the following to provide a specific roving profile share | ||
176 | # the default is to use the user's home directory | ||
177 | ;[Profiles] | ||
178 | ; path = /usr/local/samba/profiles | ||
179 | ; browseable = no | ||
180 | ; guest ok = yes | ||
181 | |||
182 | |||
183 | # NOTE: If you have a BSD-style print system there is no need to | ||
184 | # specifically define each individual printer | ||
185 | [printers] | ||
186 | comment = All Printers | ||
187 | path = /var/spool/samba | ||
188 | browseable = no | ||
189 | # Set public = yes to allow user 'guest account' to print | ||
190 | guest ok = no | ||
191 | writable = no | ||
192 | printable = yes | ||
193 | |||
194 | # This one is useful for people to share files | ||
195 | ;[tmp] | ||
196 | ; comment = Temporary file space | ||
197 | ; path = /tmp | ||
198 | ; read only = no | ||
199 | ; public = yes | ||
200 | |||
201 | # A publicly accessible directory, but read only, except for people in | ||
202 | # the "staff" group | ||
203 | ;[public] | ||
204 | ; comment = Public Stuff | ||
205 | ; path = /home/samba | ||
206 | ; public = yes | ||
207 | ; writable = yes | ||
208 | ; printable = no | ||
209 | ; write list = @staff | ||
210 | |||
211 | # Other examples. | ||
212 | # | ||
213 | # A private printer, usable only by fred. Spool data will be placed in fred's | ||
214 | # home directory. Note that fred must have write access to the spool directory, | ||
215 | # wherever it is. | ||
216 | ;[fredsprn] | ||
217 | ; comment = Fred's Printer | ||
218 | ; valid users = fred | ||
219 | ; path = /homes/fred | ||
220 | ; printer = freds_printer | ||
221 | ; public = no | ||
222 | # A private directory, usable only by fred. Note that fred requires write | ||
223 | # access to the directory. | ||
224 | ;[fredsdir] | ||
225 | ; comment = Fred's Service | ||
226 | ; path = /usr/somewhere/private | ||
227 | ; valid users = fred | ||
228 | ; public = no | ||
229 | ; writable = yes | ||
230 | ; printable = no | ||
231 | |||
232 | # a service which has a different directory for each machine that connects | ||
233 | # this allows you to tailor configurations to incoming machines. You could | ||
234 | # also use the %U option to tailor it by user name. | ||
235 | # The %m gets replaced with the machine name that is connecting. | ||
236 | ;[pchome] | ||
237 | ; comment = PC Directories | ||
238 | ; path = /usr/pc/%m | ||
239 | ; public = no | ||
240 | ; writable = yes | ||
241 | |||
242 | # A publicly accessible directory, read/write to all users. Note that all files | ||
243 | # created in the directory by users will be owned by the default user, so | ||
244 | # any user with access can delete any other user's files. Obviously this | ||
245 | # directory must be writable by the default user. Another user could of course | ||
246 | # be specified, in which case all files would be owned by that user instead. | ||
247 | ;[public] | ||
248 | ; path = /usr/somewhere/else/public | ||
249 | ; public = yes | ||
250 | ; only guest = yes | ||
251 | ; writable = yes | ||
252 | ; printable = no | ||
253 | |||
254 | # The following two entries demonstrate how to share a directory so that two | ||
255 | # users can place files there that will be owned by the specific users. In this | ||
256 | # setup, the directory should be writable by both users and should have the | ||
257 | # sticky bit set on it to prevent abuse. Obviously this could be extended to | ||
258 | # as many users as required. | ||
259 | ;[myshare] | ||
260 | ; comment = Mary's and Fred's stuff | ||
261 | ; path = /usr/somewhere/shared | ||
262 | ; valid users = mary fred | ||
263 | ; public = no | ||
264 | ; writable = yes | ||
265 | ; printable = no | ||
266 | ; create mask = 0765 | ||
diff --git a/meta-moblin/packages/samba/files/tdb.pc b/meta-moblin/packages/samba/files/tdb.pc deleted file mode 100644 index 6307a20a03..0000000000 --- a/meta-moblin/packages/samba/files/tdb.pc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=/usr | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: tdb | ||
7 | Description: A trivial database | ||
8 | Version: 1.1.2 | ||
9 | Libs: -L${libdir} -ltdb | ||
10 | Cflags: -I${includedir} | ||
11 | URL: http://tdb.samba.org/ | ||
diff --git a/meta-moblin/packages/samba/files/tdbheaderfix.patch b/meta-moblin/packages/samba/files/tdbheaderfix.patch deleted file mode 100644 index e37c9b0d5c..0000000000 --- a/meta-moblin/packages/samba/files/tdbheaderfix.patch +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | Index: source/lib/tdb/include/tdb.h | ||
2 | =================================================================== | ||
3 | --- source.orig/lib/tdb/include/tdb.h 2009-05-17 17:42:41.000000000 +0100 | ||
4 | +++ source/lib/tdb/include/tdb.h 2009-05-17 17:42:46.000000000 +0100 | ||
5 | @@ -1,6 +1,9 @@ | ||
6 | #ifndef __TDB_H__ | ||
7 | #define __TDB_H__ | ||
8 | |||
9 | +#include <signal.h> | ||
10 | + | ||
11 | + | ||
12 | /* | ||
13 | Unix SMB/CIFS implementation. | ||
14 | |||
diff --git a/meta-moblin/packages/samba/files/volatiles.03_samba b/meta-moblin/packages/samba/files/volatiles.03_samba deleted file mode 100644 index 469bc9e7b0..0000000000 --- a/meta-moblin/packages/samba/files/volatiles.03_samba +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | # <type> <owner> <group> <mode> <path> <linksource> | ||
2 | d root root 0755 /var/log/samba none | ||
diff --git a/meta-moblin/packages/samba/samba-basic.inc b/meta-moblin/packages/samba/samba-basic.inc deleted file mode 100644 index 209ba8ffc4..0000000000 --- a/meta-moblin/packages/samba/samba-basic.inc +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | SRC_URI += "file://config-lfs.patch;patch=1 \ | ||
2 | file://quota.patch;patch=1;pnum=0 \ | ||
3 | " | ||
4 | |||
5 | EXTRA_OECONF += "\ | ||
6 | --without-ads \ | ||
7 | --without-winbind \ | ||
8 | --without-ldap \ | ||
9 | --without-krb5" | ||
10 | |||
11 | PACKAGES =+ "libsmbclient libsmbclient-dev cifs cifs-doc swat libtdb" | ||
12 | |||
13 | RCONFLICTS_${PN} = "samba-ads" | ||
14 | RCONFLICTS_libsmbclient = "libsmbclient-ads" | ||
15 | RCONFLICTS_libsmbclient-dev = "libsmbclient-ads-dev" | ||
16 | RCONFLICTS_cifs = "cifs-ads" | ||
17 | RCONFLICTS_cifs-doc = "cifs-ads-doc" | ||
18 | RCONFLICTS_swat = "swat-ads" | ||
19 | |||
20 | FILES_cifs = "${base_sbindir}/mount.cifs ${base_sbindir}/umount.cifs" | ||
21 | FILES_cifs-doc = "${mandir}/man8/mount.cifs.8 ${mandir}/man8/umount.cifs.8" | ||
22 | FILES_libsmbclient = "${libdir}/libsmbclient.so.*" | ||
23 | FILES_libsmbclient-dev = "${libdir}/libsmbclient.so ${includedir}" | ||
24 | FILES_swat = "${sbindir}/swat ${datadir}/swat ${libdir}/*.msg" | ||
25 | FILES_libtdb = "${libdir}/libtdb.so.*" \ No newline at end of file | ||
diff --git a/meta-moblin/packages/samba/samba.inc b/meta-moblin/packages/samba/samba.inc deleted file mode 100644 index e6923e38a2..0000000000 --- a/meta-moblin/packages/samba/samba.inc +++ /dev/null | |||
@@ -1,81 +0,0 @@ | |||
1 | SECTION = "console/network" | ||
2 | LICENSE = "GPL" | ||
3 | DEPENDS = "readline virtual/libiconv" | ||
4 | |||
5 | SRC_URI = "http://samba.org/samba/ftp/stable/samba-${PV}.tar.gz \ | ||
6 | file://volatiles.03_samba \ | ||
7 | file://smb.conf \ | ||
8 | file://init \ | ||
9 | file://tdb.pc \ | ||
10 | " | ||
11 | |||
12 | S = "${WORKDIR}/samba-${PV}/source" | ||
13 | |||
14 | inherit autotools update-rc.d | ||
15 | |||
16 | FILES_${PN} += "${libdir}/vfs/*.so ${libdir}/charset/*.so ${libdir}/*.dat \ | ||
17 | ${libdir}/auth/*.so ${libdir}/security/*.so" | ||
18 | FILES_${PN}-dbg += "${libdir}/vfs/.debug/*.so ${libdir}/charset/.debug/*.so \ | ||
19 | ${libdir}/auth/.debug/*.so ${libdir}/security/.debug/*.so" | ||
20 | |||
21 | # The file system settings --foodir=dirfoo and overridden unconditionally | ||
22 | # in the samba config by --with-foodir=dirfoo - even if the --with is not | ||
23 | # specified! Fix that here. Set the privatedir to /etc/samba/private. | ||
24 | EXTRA_OECONF='--disable-cups \ | ||
25 | --with-readline=${STAGING_LIBDIR}/.. \ | ||
26 | --with-libiconv=${STAGING_LIBDIR}/.. \ | ||
27 | --without-automount \ | ||
28 | --with-configdir=${sysconfdir}/samba \ | ||
29 | --with-privatedir=${sysconfdir}/samba/private \ | ||
30 | --with-lockdir=${localstatedir}/lock \ | ||
31 | --with-piddir=${localstatedir}/run \ | ||
32 | --with-logfilebase=${localstatedir}/log \ | ||
33 | --with-libdir=${libdir} \ | ||
34 | --with-mandir=${mandir} \ | ||
35 | --with-swatdir=${datadir}/swat \ | ||
36 | samba_cv_struct_timespec=yes' | ||
37 | |||
38 | INITSCRIPT_NAME = "samba" | ||
39 | # No dependencies, goes in at level 20 (NOTE: take care with the | ||
40 | # level, later levels put the shutdown later too - see the links | ||
41 | # in rc6.d, the shutdown must precede network shutdown). | ||
42 | INITSCRIPT_PARAMS = "defaults" | ||
43 | CONFFILES_${PN} = "${sysconfdir}/samba/smb.conf" | ||
44 | |||
45 | do_configure_prepend () { | ||
46 | ./script/mkversion.sh | ||
47 | if [ ! -e acinclude.m4 ]; then | ||
48 | touch aclocal.m4 | ||
49 | cat aclocal.m4 > acinclude.m4 | ||
50 | fi | ||
51 | } | ||
52 | |||
53 | do_compile () { | ||
54 | oe_runmake proto_exists | ||
55 | base_do_compile | ||
56 | } | ||
57 | |||
58 | do_install_append() { | ||
59 | install -d ${D}${libdir}/pkgconfig/ | ||
60 | cp ${WORKDIR}/tdb.pc ${D}${libdir}/pkgconfig/ | ||
61 | mv ${D}${libdir}/libsmbclient.so ${D}${libdir}/libsmbclient.so.0 || true | ||
62 | ln -sf libsmbclient.so.0 ${D}${libdir}/libsmbclient.so | ||
63 | mkdir -p ${D}${base_sbindir} | ||
64 | rm -f ${D}${bindir}/*.old | ||
65 | rm -f ${D}${sbindir}/*.old | ||
66 | [ -f ${D}${sbindir}/mount.cifs ] && mv ${D}${sbindir}/mount.cifs ${D}${base_sbindir}/ | ||
67 | [ -f ${D}${sbindir}/umount.cifs ] && mv ${D}${sbindir}/umount.cifs ${D}${base_sbindir}/ | ||
68 | |||
69 | # This is needed for < 3.2.4 | ||
70 | rm -f ${D}${sbindir}/mount.smbfs ${D}${base_sbindir}/mount.smbfs | ||
71 | if [ -f ${D}${bindir}/smbmount ]; then | ||
72 | ln -sf ${bindir}/smbmount ${D}${base_sbindir}/mount.smb | ||
73 | ln -sf ${bindir}/smbmount ${D}${base_sbindir}/mount.smbfs | ||
74 | fi | ||
75 | |||
76 | install -D -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/samba | ||
77 | install -D -m 644 ${WORKDIR}/smb.conf ${D}${sysconfdir}/samba/smb.conf | ||
78 | install -D -m 644 ${WORKDIR}/volatiles.03_samba ${D}${sysconfdir}/default/volatiles/volatiles.03_samba | ||
79 | install -d ${D}/var/log/samba | ||
80 | install -d ${D}/var/spool/samba | ||
81 | } | ||
diff --git a/meta-moblin/packages/samba/samba_3.3.0.bb b/meta-moblin/packages/samba/samba_3.3.0.bb deleted file mode 100644 index 87a7c5e7f7..0000000000 --- a/meta-moblin/packages/samba/samba_3.3.0.bb +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | require samba.inc | ||
2 | require samba-basic.inc | ||
3 | LICENSE = "GPLv3" | ||
4 | |||
5 | # 3.3.0 and newer will upgrade your tdb database to a | ||
6 | # new version that you can not downgrade to use with older | ||
7 | # releases. More testing will happen before this is removed | ||
8 | # should there be further issues. Appears to work though :) | ||
9 | DEFAULT_PREFERENCE = "-1" | ||
10 | |||
11 | SRC_URI += "file://configure-3.3.0.patch;patch=1 \ | ||
12 | file://config-h.patch;patch=1 \ | ||
13 | file://mtab.patch;patch=1 \ | ||
14 | file://tdbheaderfix.patch;patch=1 " | ||
15 | |||
16 | PR = "r3" | ||
17 | |||
18 | EXTRA_OECONF += "\ | ||
19 | SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes \ | ||
20 | samba_cv_CC_NEGATIVE_ENUM_VALUES=yes \ | ||
21 | linux_getgrouplist_ok=no \ | ||
22 | samba_cv_HAVE_BROKEN_GETGROUPS=no \ | ||
23 | samba_cv_HAVE_FTRUNCATE_EXTEND=yes \ | ||
24 | samba_cv_have_setresuid=yes \ | ||
25 | samba_cv_have_setresgid=yes \ | ||
26 | samba_cv_HAVE_WRFILE_KEYTAB=yes \ | ||
27 | " | ||
28 | |||
29 | do_configure() { | ||
30 | oe_runconf | ||
31 | } | ||
32 | |||
33 | do_compile () { | ||
34 | base_do_compile | ||
35 | } | ||
diff --git a/meta-moblin/packages/sreadahead/files/sreadahead-generate.sh b/meta-moblin/packages/sreadahead/files/sreadahead-generate.sh deleted file mode 100755 index 19438f2935..0000000000 --- a/meta-moblin/packages/sreadahead/files/sreadahead-generate.sh +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | |||
4 | if [ -e /etc/readahead.packed ]; then | ||
5 | exit 0 | ||
6 | fi | ||
7 | |||
8 | if [ -e /etc/readahead.packed.first ]; then | ||
9 | mv /etc/readahead.packed.first /etc/readahead.packed.second | ||
10 | exit 0 | ||
11 | fi | ||
12 | |||
13 | # That's our second boot, we can generate the sreadahead file list | ||
14 | if [ -e /etc/readahead.packed.second ]; then | ||
15 | rm -f /etc/readahead.packed.second | ||
16 | find / -type f | grep -E -v "\/dev\/|\/proc\/|\/sys\/" > filelist.txt | ||
17 | |||
18 | /sbin/generate_filelist filelist.txt | ||
19 | rm filelist.txt | ||
20 | mv readahead.packed /etc/ | ||
21 | fi | ||
diff --git a/meta-moblin/packages/sreadahead/files/sreadahead.sh b/meta-moblin/packages/sreadahead/files/sreadahead.sh deleted file mode 100755 index c7378284b2..0000000000 --- a/meta-moblin/packages/sreadahead/files/sreadahead.sh +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # Start sreadahead, of the config file exists | ||
4 | |||
5 | if [ -e /etc/readahead.packed ]; then | ||
6 | /sbin/sreadahead | ||
7 | fi | ||
diff --git a/meta-moblin/packages/sreadahead/sreadahead-0.02/readahead_c.patch b/meta-moblin/packages/sreadahead/sreadahead-0.02/readahead_c.patch deleted file mode 100644 index a65c1088f5..0000000000 --- a/meta-moblin/packages/sreadahead/sreadahead-0.02/readahead_c.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | --- | ||
2 | readahead.c | 7 +++++-- | ||
3 | 1 file changed, 5 insertions(+), 2 deletions(-) | ||
4 | |||
5 | Index: sreadahead-0.02/readahead.c | ||
6 | =================================================================== | ||
7 | --- sreadahead-0.02.orig/readahead.c 2008-09-23 22:35:20.000000000 +0200 | ||
8 | +++ sreadahead-0.02/readahead.c 2008-10-27 16:27:52.000000000 +0100 | ||
9 | @@ -69,7 +69,11 @@ void *one_thread(void *ptr) | ||
10 | int main(int argc, char **argv) | ||
11 | { | ||
12 | FILE *file = fopen("/etc/readahead.packed", "r"); | ||
13 | - | ||
14 | + if (!file) { | ||
15 | + perror("Couldnt open /etc/readahead.packed"); | ||
16 | + return -errno; | ||
17 | + } | ||
18 | + | ||
19 | daemon(0,0); | ||
20 | |||
21 | total_files = fread(&files, sizeof(struct readahead), MAXR, file); | ||
22 | @@ -81,7 +85,6 @@ int main(int argc, char **argv) | ||
23 | pthread_create(&three, NULL, one_thread, NULL); | ||
24 | pthread_create(&four, NULL, one_thread, NULL); | ||
25 | |||
26 | - printf("Waiting\n"); | ||
27 | pthread_join(one, NULL); | ||
28 | pthread_join(two, NULL); | ||
29 | pthread_join(three, NULL); | ||
diff --git a/meta-moblin/packages/sreadahead/sreadahead-0.02/set_to_idle.patch b/meta-moblin/packages/sreadahead/sreadahead-0.02/set_to_idle.patch deleted file mode 100644 index b48659048a..0000000000 --- a/meta-moblin/packages/sreadahead/sreadahead-0.02/set_to_idle.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | diff -Naurp sreadahead-0.02/readahead.c sreadahead-0.02-nice/readahead.c | ||
2 | --- sreadahead-0.02/readahead.c 2008-11-06 00:57:17.000000000 -0500 | ||
3 | +++ sreadahead-0.02-nice/readahead.c 2008-11-06 02:28:29.000000000 -0500 | ||
4 | @@ -26,7 +26,18 @@ | ||
5 | #include <errno.h> | ||
6 | |||
7 | #include "readahead.h" | ||
8 | +#include <sys/syscall.h> | ||
9 | |||
10 | +# if defined(__i386__) | ||
11 | +# define __NR_ioprio_set 289 | ||
12 | +# elif defined(__x86_64__) | ||
13 | +# define __NR_ioprio_set 251 | ||
14 | +# else | ||
15 | +# error "Unsupported arch" | ||
16 | +# endif | ||
17 | + | ||
18 | +#define IOPRIO_WHO_PROCESS 1 | ||
19 | +#define IOPRIO_CLASS_SHIFT 13 | ||
20 | #define MAXR 1024 | ||
21 | static struct readahead files[MAXR]; | ||
22 | static unsigned int total_files = 0; | ||
23 | @@ -68,7 +79,15 @@ void *one_thread(void *ptr) | ||
24 | |||
25 | int main(int argc, char **argv) | ||
26 | { | ||
27 | - FILE *file = fopen("/etc/readahead.packed", "r"); | ||
28 | + int iopriority = 7; /* hard code for idle */ | ||
29 | + int iopriority_class = 3; /* 3 stands for idle */ | ||
30 | + int pid = 0; | ||
31 | + FILE *file; | ||
32 | + | ||
33 | + if (syscall(__NR_ioprio_set, IOPRIO_WHO_PROCESS, pid, iopriority | iopriority_class << IOPRIO_CLASS_SHIFT) == -1) | ||
34 | + perror("Can not set priority to idle class"); | ||
35 | + | ||
36 | + file = fopen("/etc/readahead.packed", "r"); | ||
37 | if (!file) { | ||
38 | perror("Couldnt open /etc/readahead.packed"); | ||
39 | return -errno; | ||
diff --git a/meta-moblin/packages/sreadahead/sreadahead-0.02/sreadahead-0.02-make.patch b/meta-moblin/packages/sreadahead/sreadahead-0.02/sreadahead-0.02-make.patch deleted file mode 100644 index d0ece663b5..0000000000 --- a/meta-moblin/packages/sreadahead/sreadahead-0.02/sreadahead-0.02-make.patch +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | diff -Nrup sreadahead-0.02.orig/Makefile sreadahead-0.02/Makefile | ||
2 | --- sreadahead-0.02.orig/Makefile 2008-09-23 22:36:24.000000000 +0200 | ||
3 | +++ sreadahead-0.02/Makefile 2008-09-26 07:43:19.000000000 +0200 | ||
4 | @@ -1,11 +1,18 @@ | ||
5 | -all: generate_filelist sreadahead | ||
6 | +CFLAGS=-Os -g -Wall | ||
7 | +PROGS=generate_filelist sreadahead | ||
8 | + | ||
9 | +all: $(PROGS) | ||
10 | |||
11 | |||
12 | generate_filelist: readahead.h filelist.c Makefile | ||
13 | - gcc -Os -g -Wall -W filelist.c -o generate_filelist | ||
14 | + $(CC) $(CFLAGS) -W filelist.c -o generate_filelist | ||
15 | |||
16 | sreadahead: readahead.h readahead.c Makefile | ||
17 | - gcc -Os -g -Wall -lpthread -W readahead.c -o sreadahead | ||
18 | + $(CC) $(CFLAGS) -lpthread -W readahead.c -o sreadahead | ||
19 | |||
20 | clean: | ||
21 | - rm -f *~ sreadahead generate_filelist | ||
22 | \ No newline at end of file | ||
23 | + rm -f *~ sreadahead generate_filelist | ||
24 | + | ||
25 | +install: all | ||
26 | + mkdir -p $(DESTDIR)/sbin | ||
27 | + install -p -m 755 $(PROGS) $(DESTDIR)/sbin | ||
diff --git a/meta-moblin/packages/sreadahead/sreadahead_0.02.bb b/meta-moblin/packages/sreadahead/sreadahead_0.02.bb deleted file mode 100644 index c29a1defed..0000000000 --- a/meta-moblin/packages/sreadahead/sreadahead_0.02.bb +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | DESCRIPTION = "Super readahead, part of the fastboot tool set." | ||
2 | SECTION = "base" | ||
3 | HOMEPAGE = "http://www.moblin.org" | ||
4 | LICENSE = "GPLv2" | ||
5 | PR = "r13" | ||
6 | |||
7 | inherit update-rc.d | ||
8 | |||
9 | SRC_URI = "http://www.moblin.org/sites/all/files/sreadahead-${PV}.tar.gz \ | ||
10 | file://sreadahead-0.02-make.patch;patch=1 \ | ||
11 | file://readahead_c.patch;patch=1 \ | ||
12 | file://set_to_idle.patch;patch=1 \ | ||
13 | file://sreadahead-generate.sh \ | ||
14 | file://sreadahead.sh" | ||
15 | |||
16 | CFLAGS_prepend = "-I ${S}/include " | ||
17 | |||
18 | # | ||
19 | # Not compatible on arm due to the use of __sync_fetch_and_add | ||
20 | # Would need to use a pthread mutex on arm | ||
21 | # | ||
22 | COMPATIBLE_HOST = "(i.86).*-linux" | ||
23 | |||
24 | PACKAGES += "${PN}-generate" | ||
25 | FILES_${PN} = "${base_sbindir}/sreadahead ${sysconfdir}/init.d/sreadahead.sh" | ||
26 | FILES_${PN}-generate = "${base_sbindir}/generate_filelist ${sysconfdir}/init.d/sreadahead-generate.sh" | ||
27 | |||
28 | INITSCRIPT_PACKAGES = "${PN} ${PN}-generate" | ||
29 | INITSCRIPT_NAME = "sreadahead.sh" | ||
30 | INITSCRIPT_NAME_${PN}-generate = "sreadahead-generate.sh" | ||
31 | INITSCRIPT_PARAMS = "start 00 S ." | ||
32 | INITSCRIPT_PARAMS_${PN}-generate = "defaults 99" | ||
33 | |||
34 | do_install() { | ||
35 | oe_runmake install DESTDIR=${D} | ||
36 | install -d ${D}${sysconfdir}/init.d | ||
37 | install -m 755 ${WORKDIR}/sreadahead.sh ${D}${sysconfdir}/init.d/ | ||
38 | install -m 755 ${WORKDIR}/sreadahead-generate.sh ${D}${sysconfdir}/init.d/ | ||
39 | } | ||
40 | |||
41 | pkg_postinst_${PN}-generate () { | ||
42 | # can't do this offline | ||
43 | if [ "x$D" != "x" ]; then | ||
44 | exit 1 | ||
45 | fi | ||
46 | |||
47 | touch /etc/readahead.packed.first | ||
48 | } | ||
diff --git a/meta-moblin/packages/syncevolution/syncevolution_git.bb b/meta-moblin/packages/syncevolution/syncevolution_git.bb deleted file mode 100644 index 9d767ca949..0000000000 --- a/meta-moblin/packages/syncevolution/syncevolution_git.bb +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | DESCRIPTION = "Data synchronization tool" | ||
2 | SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git;branch=syncevolution-0-9-branch" | ||
3 | LICENSE = "LGPLv2.1" | ||
4 | PV = "0.0+git${SRCPV}" | ||
5 | PR = "r1" | ||
6 | |||
7 | DEPENDS = "libsynthesis libsoup curl boost nbtk dbus-glib glib-2.0 libglade libunique gnome-keyring eds-dbus" | ||
8 | |||
9 | EXTRA_OECONF = "--enable-gui=moblin" | ||
10 | |||
11 | S = "${WORKDIR}/git" | ||
12 | |||
13 | inherit autotools | ||
14 | |||
15 | do_configure_prepend () { | ||
16 | ${S}/gen-autotools.sh | ||
17 | } \ No newline at end of file | ||
diff --git a/meta-moblin/packages/tasks/task-moblin-apps-x11-pimlico.bb b/meta-moblin/packages/tasks/task-moblin-apps-x11-pimlico.bb deleted file mode 100644 index 54fb8d2f3e..0000000000 --- a/meta-moblin/packages/tasks/task-moblin-apps-x11-pimlico.bb +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "X11 Pimlico Appications List" | ||
6 | PR = "r28" | ||
7 | |||
8 | PACKAGES = "\ | ||
9 | task-moblin-apps-x11-pimlico \ | ||
10 | task-moblin-apps-x11-pimlico-dbg \ | ||
11 | task-moblin-apps-x11-pimlico-dev \ | ||
12 | " | ||
13 | |||
14 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
15 | |||
16 | ALLOW_EMPTY = "1" | ||
17 | |||
18 | RDEPENDS_task-moblin-apps-x11-pimlico = "\ | ||
19 | eds-dbus \ | ||
20 | contacts \ | ||
21 | dates \ | ||
22 | tasks \ | ||
23 | gaku" \ No newline at end of file | ||
diff --git a/meta-moblin/packages/tasks/task-moblin-boot.bb b/meta-moblin/packages/tasks/task-moblin-boot.bb deleted file mode 100644 index 97d9a52f41..0000000000 --- a/meta-moblin/packages/tasks/task-moblin-boot.bb +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Task for Moblin - minimal bootable image" | ||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
7 | DEPENDS = "virtual/kernel" | ||
8 | ALLOW_EMPTY = "1" | ||
9 | PR = "r8" | ||
10 | |||
11 | # | ||
12 | # Set by the machine configuration with packages essential for device bootup | ||
13 | # | ||
14 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" | ||
15 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" | ||
16 | |||
17 | RDEPENDS_task-moblin-boot = "\ | ||
18 | base-files \ | ||
19 | base-passwd \ | ||
20 | busybox \ | ||
21 | initscripts \ | ||
22 | ${@base_contains("MACHINE_FEATURES", "keyboard", "keymaps", "", d)} \ | ||
23 | modutils-initscripts \ | ||
24 | netbase \ | ||
25 | sysvinit \ | ||
26 | tinylogin \ | ||
27 | udev \ | ||
28 | ${VIRTUAL-RUNTIME_update-alternatives} \ | ||
29 | ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}" | ||
30 | |||
31 | RDEPENDS_task-moblin-boot_append_netbook = "\ | ||
32 | sreadahead \ | ||
33 | sreadahead-generate \ | ||
34 | " | ||
35 | |||
36 | RDEPENDS_task-moblin-boot_append_menlow = "\ | ||
37 | sreadahead \ | ||
38 | sreadahead-generate \ | ||
39 | " | ||
40 | |||
41 | RRECOMMENDS_task-moblin-boot = "\ | ||
42 | ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}" | ||
diff --git a/meta-moblin/packages/tasks/task-moblin-sdk.bb b/meta-moblin/packages/tasks/task-moblin-sdk.bb deleted file mode 100644 index 328a377c53..0000000000 --- a/meta-moblin/packages/tasks/task-moblin-sdk.bb +++ /dev/null | |||
@@ -1,85 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTON = "Software Development Tasks for Moblin" | ||
6 | DEPENDS = "task-moblin" | ||
7 | PR = "r6" | ||
8 | |||
9 | ALLOW_EMPTY = "1" | ||
10 | #PACKAGEFUNCS =+ 'generate_sdk_pkgs' | ||
11 | |||
12 | PACKAGES = "\ | ||
13 | task-moblin-sdk \ | ||
14 | task-moblin-sdk-dbg \ | ||
15 | task-moblin-sdk-dev" | ||
16 | |||
17 | RDEPENDS_task-moblin-sdk = "\ | ||
18 | autoconf \ | ||
19 | automake \ | ||
20 | binutils \ | ||
21 | binutils-symlinks \ | ||
22 | coreutils \ | ||
23 | cpp \ | ||
24 | cpp-symlinks \ | ||
25 | diffutils \ | ||
26 | gcc \ | ||
27 | gcc-symlinks \ | ||
28 | g++ \ | ||
29 | g++-symlinks \ | ||
30 | git \ | ||
31 | gettext \ | ||
32 | make \ | ||
33 | intltool \ | ||
34 | libstdc++ \ | ||
35 | libstdc++-dev \ | ||
36 | libtool \ | ||
37 | perl-module-re \ | ||
38 | perl-module-text-wrap \ | ||
39 | pkgconfig \ | ||
40 | subversion \ | ||
41 | findutils \ | ||
42 | quilt \ | ||
43 | less \ | ||
44 | distcc" | ||
45 | |||
46 | #python generate_sdk_pkgs () { | ||
47 | # moblin_pkgs = read_pkgdata('task-moblin', d)['PACKAGES'] | ||
48 | # pkgs = bb.data.getVar('PACKAGES', d, 1).split() | ||
49 | # for pkg in moblin_pkgs.split(): | ||
50 | # newpkg = pkg.replace('task-moblin', 'task-moblin-sdk') | ||
51 | # | ||
52 | # # for each of the task packages, add a corresponding sdk task | ||
53 | # pkgs.append(newpkg) | ||
54 | # | ||
55 | # # for each sdk task, take the rdepends of the non-sdk task, and turn | ||
56 | # # that into rrecommends upon the -dev versions of those, not unlike | ||
57 | # # the package depchain code | ||
58 | # spkgdata = read_subpkgdata(pkg, d) | ||
59 | # | ||
60 | # rdepends = explode_deps(spkgdata.get('RDEPENDS_%s' % pkg) or '') | ||
61 | # rreclist = [] | ||
62 | # | ||
63 | # for depend in rdepends: | ||
64 | # split_depend = depend.split(' (') | ||
65 | # name = split_depend[0].strip() | ||
66 | # if packaged('%s-dev' % name, d): | ||
67 | # rreclist.append('%s-dev' % name) | ||
68 | # else: | ||
69 | # deppkgdata = read_subpkgdata(name, d) | ||
70 | # rdepends2 = explode_deps(deppkgdata.get('RDEPENDS_%s' % name) or '') | ||
71 | # for depend in rdepends2: | ||
72 | # split_depend = depend.split(' (') | ||
73 | # name = split_depend[0].strip() | ||
74 | # if packaged('%s-dev' % name, d): | ||
75 | # rreclist.append('%s-dev' % name) | ||
76 | # | ||
77 | # oldrrec = bb.data.getVar('RRECOMMENDS_%s' % newpkg, d) or '' | ||
78 | # bb.data.setVar('RRECOMMENDS_%s' % newpkg, oldrrec + ' ' + ' '.join(rreclist), d) | ||
79 | # # bb.note('RRECOMMENDS_%s = "%s"' % (newpkg, bb.data.getVar('RRECOMMENDS_%s' % newpkg, d))) | ||
80 | # | ||
81 | # # bb.note('pkgs is %s' % pkgs) | ||
82 | # bb.data.setVar('PACKAGES', ' '.join(pkgs), d) | ||
83 | #} | ||
84 | # | ||
85 | #PACKAGES_DYNAMIC = "task-moblin-sdk-*" | ||
diff --git a/meta-moblin/packages/tasks/task-moblin-standalone-sdk-target.bb b/meta-moblin/packages/tasks/task-moblin-standalone-sdk-target.bb deleted file mode 100644 index 469bf15516..0000000000 --- a/meta-moblin/packages/tasks/task-moblin-standalone-sdk-target.bb +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008-2010 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Target packages for the standalone Moblin SDK" | ||
6 | PR = "r7" | ||
7 | LICENSE = "MIT" | ||
8 | ALLOW_EMPTY = "1" | ||
9 | |||
10 | PACKAGES = "${PN} ${PN}-dbg" | ||
11 | |||
12 | RDEPENDS_${PN} = "\ | ||
13 | libgcc \ | ||
14 | libstdc++ \ | ||
15 | task-poky-standalone-sdk-target \ | ||
16 | dbus-dev \ | ||
17 | dbus-glib-dev \ | ||
18 | gtk+-dev \ | ||
19 | gstreamer-dev \ | ||
20 | bluez4-dev \ | ||
21 | gconf-dbus-dev \ | ||
22 | avahi-dev \ | ||
23 | telepathy-glib-dev \ | ||
24 | eds-dbus-dev \ | ||
25 | libecal-dev \ | ||
26 | libebook-dev \ | ||
27 | libglade-dev \ | ||
28 | libxi-dev \ | ||
29 | libsqlite3-dev \ | ||
30 | clutter-1.0-dev \ | ||
31 | nbtk-dev \ | ||
32 | mutter-dev \ | ||
33 | mutter-moblin-dev \ | ||
34 | clutter-gst-0.10-dev \ | ||
35 | clutter-gtk-0.10-dev \ | ||
36 | clutter-imcontext \ | ||
37 | libccss \ | ||
38 | " | ||
39 | |||
40 | GLIBC_DEPENDENCIES = "\ | ||
41 | libsegfault \ | ||
42 | glibc \ | ||
43 | glibc-dbg \ | ||
44 | glibc-dev \ | ||
45 | glibc-utils \ | ||
46 | glibc-thread-db \ | ||
47 | glibc-localedata-i18n \ | ||
48 | glibc-gconv-ibm850 \ | ||
49 | glibc-gconv-cp1252 \ | ||
50 | glibc-gconv-iso8859-1 \ | ||
51 | glibc-gconv-iso8859-15 \ | ||
52 | locale-base-en-gb \ | ||
53 | " | ||
54 | |||
55 | RDEPENDS_${PN}_append_linux = "${GLIBC_DEPENDENCIES}" | ||
56 | RDEPENDS_${PN}_append_linux-gnueabi = "${GLIBC_DEPENDENCIES}" | ||
57 | |||
58 | UCLIBC_DEPENDENCIES = "\ | ||
59 | uclibc \ | ||
60 | uclibc-dbg \ | ||
61 | uclibc-dev \ | ||
62 | uclibc-thread-db \ | ||
63 | " | ||
64 | |||
65 | RDEPENDS_${PN}_append_linux-uclibc = "${UCLIBC_DEPENDENCIES}" | ||
66 | RDEPENDS_${PN}_append_linux-uclibcgnueabi = "${UCLIBC_DEPENDENCIES}" | ||
67 | |||
diff --git a/meta-moblin/packages/tasks/task-moblin-tools.bb b/meta-moblin/packages/tasks/task-moblin-tools.bb deleted file mode 100644 index a26f66c417..0000000000 --- a/meta-moblin/packages/tasks/task-moblin-tools.bb +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Debuggin and profiling tools tasks for Moblin" | ||
6 | PR = "r5" | ||
7 | |||
8 | PACKAGES = "\ | ||
9 | task-moblin-tools-debug \ | ||
10 | task-moblin-tools-debug-dbg \ | ||
11 | task-moblin-tools-debug-dev \ | ||
12 | task-moblin-tools-profile \ | ||
13 | task-moblin-tools-profile-dbg \ | ||
14 | task-moblin-tools-profile-dev \ | ||
15 | task-moblin-tools-testapps \ | ||
16 | task-moblin-tools-testapps-dbg \ | ||
17 | task-moblin-tools-testapps-dev \ | ||
18 | " | ||
19 | |||
20 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
21 | |||
22 | ALLOW_EMPTY = "1" | ||
23 | |||
24 | RDEPENDS_task-moblin-tools-debug = "\ | ||
25 | gdb \ | ||
26 | gdbserver \ | ||
27 | strace" | ||
28 | |||
29 | RDEPENDS_task-moblin-tools-profile = "\ | ||
30 | # exmap-console \ | ||
31 | # exmap-server \ | ||
32 | oprofile \ | ||
33 | oprofileui-server \ | ||
34 | powertop \ | ||
35 | # lttng-control \ | ||
36 | # lttng-viewer \ | ||
37 | " | ||
38 | |||
39 | RDEPENDS_task-moblin-tools-profile_qemux86 += "valgrind" | ||
40 | |||
41 | RRECOMMENDS_task-moblin-tools-profile = "\ | ||
42 | kernel-module-oprofile" | ||
43 | |||
44 | RDEPENDS_task-moblin-tools-testapps = "\ | ||
45 | blktool \ | ||
46 | tslib-calibrate \ | ||
47 | tslib-tests \ | ||
48 | lrzsz \ | ||
49 | kexec-tools \ | ||
50 | alsa-utils-amixer \ | ||
51 | alsa-utils-aplay \ | ||
52 | owl-video \ | ||
53 | gst-meta-video \ | ||
54 | gst-meta-audio \ | ||
55 | xrestop \ | ||
56 | xwininfo \ | ||
57 | xprop \ | ||
58 | xvideo-tests" | ||
diff --git a/meta-moblin/packages/tasks/task-moblin-x11-netbook.bb b/meta-moblin/packages/tasks/task-moblin-x11-netbook.bb deleted file mode 100644 index e2f8296e02..0000000000 --- a/meta-moblin/packages/tasks/task-moblin-x11-netbook.bb +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Netbook GUI Tasks for Moblin" | ||
6 | PR = "r21" | ||
7 | |||
8 | PACKAGES = "\ | ||
9 | task-moblin-x11-netbook \ | ||
10 | task-moblin-x11-netbook-dbg \ | ||
11 | task-moblin-x11-netbook-dev \ | ||
12 | " | ||
13 | |||
14 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
15 | |||
16 | ALLOW_EMPTY = "1" | ||
17 | |||
18 | # matchbox-config-gtk \ | ||
19 | # xcursor-transparent-theme \ | ||
20 | |||
21 | MOBLINBROWSER ?= "moblin-web-browser" | ||
22 | |||
23 | EXTRA_MOBLIN_PACKAGES ?= "" | ||
24 | RDEPENDS_task-moblin-x11-netbook = "\ | ||
25 | bickley \ | ||
26 | mojito \ | ||
27 | mutter \ | ||
28 | droid-fonts \ | ||
29 | gnome-settings-daemon \ | ||
30 | librest \ | ||
31 | nbtk \ | ||
32 | nautilus \ | ||
33 | mutter-moblin \ | ||
34 | moblin-panel-applications \ | ||
35 | moblin-panel-media \ | ||
36 | moblin-panel-myzone \ | ||
37 | moblin-panel-pasteboard \ | ||
38 | moblin-panel-people \ | ||
39 | moblin-panel-status \ | ||
40 | moblin-gtk-engine \ | ||
41 | moblin-menus \ | ||
42 | moblin-user-skel \ | ||
43 | bisho \ | ||
44 | ${MOBLINBROWSER} \ | ||
45 | dalston \ | ||
46 | hornsey \ | ||
47 | anerley \ | ||
48 | bognor-regis \ | ||
49 | moblin-icon-theme \ | ||
50 | moblin-cursor-theme \ | ||
51 | moblin-sound-theme \ | ||
52 | matchbox-session-netbook \ | ||
53 | carrick \ | ||
54 | empathy \ | ||
55 | gnome-terminal \ | ||
56 | ${EXTRA_MOBLIN_PACKAGES}" | ||
diff --git a/meta-moblin/packages/tasks/task-moblin.bb b/meta-moblin/packages/tasks/task-moblin.bb deleted file mode 100644 index 7afc33a18c..0000000000 --- a/meta-moblin/packages/tasks/task-moblin.bb +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Tasks for Moblin" | ||
6 | PR = "r35" | ||
7 | |||
8 | PACKAGES = "\ | ||
9 | task-moblin-apps-console \ | ||
10 | task-moblin-apps-console-dbg \ | ||
11 | task-moblin-apps-console-dev \ | ||
12 | task-moblin-apps-x11-core \ | ||
13 | task-moblin-apps-x11-core-dbg \ | ||
14 | task-moblin-apps-x11-core-dev \ | ||
15 | task-moblin-apps-x11-games \ | ||
16 | task-moblin-apps-x11-games-dbg \ | ||
17 | task-moblin-apps-x11-games-dev \ | ||
18 | task-moblin-x11-base \ | ||
19 | task-moblin-x11-base-dbg \ | ||
20 | task-moblin-x11-base-dev \ | ||
21 | " | ||
22 | |||
23 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
24 | |||
25 | XSERVER ?= "xserver-kdrive-fbdev" | ||
26 | |||
27 | ALLOW_EMPTY = "1" | ||
28 | |||
29 | |||
30 | RDEPENDS_task-moblin-apps-console = "\ | ||
31 | avahi-daemon \ | ||
32 | alsa-utils-alsamixer \ | ||
33 | dropbear \ | ||
34 | dbus \ | ||
35 | portmap \ | ||
36 | psplash" | ||
37 | |||
38 | |||
39 | RDEPENDS_task-moblin-x11-base = "\ | ||
40 | dbus \ | ||
41 | pointercal \ | ||
42 | ${XSERVER} \ | ||
43 | x11-common \ | ||
44 | xserver-nodm-init \ | ||
45 | liberation-fonts \ | ||
46 | pulseaudio-server \ | ||
47 | xauth \ | ||
48 | xhost \ | ||
49 | xset \ | ||
50 | xrandr" | ||
51 | |||
52 | |||
53 | RDEPENDS_task-moblin-apps-x11-core = "\ | ||
54 | leafpad \ | ||
55 | pcmanfm \ | ||
56 | matchbox-terminal \ | ||
57 | screenshot" | ||
58 | |||
59 | |||
60 | RDEPENDS_task-moblin-apps-x11-games = "\ | ||
61 | oh-puzzles" | ||
diff --git a/meta-moblin/packages/tracker/tracker-0.7.18/20-tracker-defaults.patch b/meta-moblin/packages/tracker/tracker-0.7.18/20-tracker-defaults.patch deleted file mode 100644 index 7f5b4a578b..0000000000 --- a/meta-moblin/packages/tracker/tracker-0.7.18/20-tracker-defaults.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: tracker-0.7.18/src/tracker-miner-fs/tracker-config.c | ||
2 | =================================================================== | ||
3 | --- tracker-0.7.18.orig/src/tracker-miner-fs/tracker-config.c 2010-01-26 14:57:20.000000000 +0000 | ||
4 | +++ tracker-0.7.18/src/tracker-miner-fs/tracker-config.c 2010-02-04 16:47:46.000000000 +0000 | ||
5 | @@ -42,7 +42,7 @@ | ||
6 | #define DEFAULT_VERBOSITY 0 | ||
7 | #define DEFAULT_INITIAL_SLEEP 15 /* 0->1000 */ | ||
8 | #define DEFAULT_ENABLE_MONITORS TRUE | ||
9 | -#define DEFAULT_THROTTLE 0 /* 0->20 */ | ||
10 | +#define DEFAULT_THROTTLE 10 /* 0->20 */ | ||
11 | #define DEFAULT_SCAN_TIMEOUT 0 /* 0->1000 */ | ||
12 | #define DEFAULT_CACHE_TIMEOUT 60 /* 0->1000 */ | ||
13 | #define DEFAULT_INDEX_MOUNTED_DIRECTORIES TRUE | ||
diff --git a/meta-moblin/packages/tracker/tracker-0.7.18/90tracker b/meta-moblin/packages/tracker/tracker-0.7.18/90tracker deleted file mode 100755 index 9594b91689..0000000000 --- a/meta-moblin/packages/tracker/tracker-0.7.18/90tracker +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | /usr/bin/trackerd -m & | ||
4 | |||
diff --git a/meta-moblin/packages/tracker/tracker-0.7.18/munge-configure.ac-cross-compile.patch b/meta-moblin/packages/tracker/tracker-0.7.18/munge-configure.ac-cross-compile.patch deleted file mode 100644 index 0e1736abe1..0000000000 --- a/meta-moblin/packages/tracker/tracker-0.7.18/munge-configure.ac-cross-compile.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | Index: tracker-0.7.18/configure.ac | ||
2 | =================================================================== | ||
3 | --- tracker-0.7.18.orig/configure.ac 2010-01-28 18:16:36.000000000 +0000 | ||
4 | +++ tracker-0.7.18/configure.ac 2010-02-04 16:40:52.000000000 +0000 | ||
5 | @@ -1542,34 +1542,6 @@ | ||
6 | old_exec_message="" | ||
7 | old_data_message="" | ||
8 | |||
9 | -AC_CHECK_FILE("${prefix}/bin/trackerd", old_exec_trackerd=yes,,) | ||
10 | -AC_CHECK_FILE("${prefix}/bin/tracker-indexer", old_exec_tracker_indexer=yes,,) | ||
11 | -AC_CHECK_FILE("${prefix}/bin/tracker-extract", old_exec_tracker_extract=yes,,) | ||
12 | -AC_CHECK_FILE("${prefix}/bin/tracker-thumbnailer", old_exec_tracker_thumbnailer=yes,,) | ||
13 | -AC_CHECK_FILE("${DBUS_SERVICES_DIR}/tracker.service", old_data_dbus_service=yes,) | ||
14 | -AC_CHECK_FILE("${prefix}/share/tracker/tracker-introspect.xml", old_data_dbus_xml=yes,,) | ||
15 | -AC_CHECK_FILE("${prefix}/share/tracker/sqlite-service-stored-procs.sql", old_data_stored_procs=yes,,) | ||
16 | - | ||
17 | -if test "x$old_exec_trackerd" = "xyes" -o \ | ||
18 | - "x$old_exec_tracker_indexer" = "xyes" -o \ | ||
19 | - "x$old_exec_tracker_extract" = "xyes" -o \ | ||
20 | - "x$old_exec_tracker_thumbnailer" = "xyes"; then | ||
21 | - old_exec_message=" | ||
22 | - Old Tracker executable files were found in your path. | ||
23 | - (trackerd, tracker-indexer, tracker-thumbnailer, tracker-extract)" | ||
24 | - old_file_action=" | ||
25 | - ** These files will be removed as part of the installation **" | ||
26 | -fi | ||
27 | - | ||
28 | -if test "x$old_data_dbus_service" = "xyes" -o \ | ||
29 | - "x$old_data_dbus_xml" = "xyes" -o \ | ||
30 | - "x$old_data_stored_procs" = "xyes"; then | ||
31 | - old_data_message=" | ||
32 | - Old Tracker data files were found in the prefix you are installing to." | ||
33 | - old_file_action=" | ||
34 | - ** These files will be removed as part of the installation **" | ||
35 | -fi | ||
36 | - | ||
37 | AM_CONDITIONAL(OLD_EXEC_REMOVE_ALL, test -n "$old_exec_message") | ||
38 | AM_CONDITIONAL(OLD_DATA_REMOVE_ALL, test -n "$old_data_message") | ||
39 | |||
diff --git a/meta-moblin/packages/tracker/tracker_0.7.18.bb b/meta-moblin/packages/tracker/tracker_0.7.18.bb deleted file mode 100644 index 2b908641e4..0000000000 --- a/meta-moblin/packages/tracker/tracker_0.7.18.bb +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | DESCRIPTION = "Tracker is a tool designed to extract information and metadata about your personal data so that it can be searched easily and quickly." | ||
2 | LICENSE = "GPLv2" | ||
3 | DEPENDS = "file gtk+ gstreamer gamin dbus poppler libexif libgsf libgnomecanvas" | ||
4 | HOMEPAGE = "http://www.tracker-project.org/" | ||
5 | |||
6 | inherit autotools pkgconfig gnome gettext | ||
7 | |||
8 | SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/tracker/0.7/tracker-${PV}.tar.bz2 \ | ||
9 | file://munge-configure.ac-cross-compile.patch;patch=1 \ | ||
10 | file://20-tracker-defaults.patch;patch=1 \ | ||
11 | file://90tracker" | ||
12 | |||
13 | EXTRA_OECONF += " tracker_cv_have_ioprio=yes" | ||
14 | |||
15 | LEAD_SONAME = "libtrackerclient.so.0" | ||
16 | |||
17 | do_install_append() { | ||
18 | cp -dPr ${D}${STAGING_DATADIR}/* ${D}${datadir}/ || true | ||
19 | install -d ${D}/${sysconfdir}/X11/Xsession.d/ | ||
20 | install -m 0755 ${WORKDIR}/90tracker ${D}/${sysconfdir}/X11/Xsession.d/ | ||
21 | } | ||
22 | |||
23 | FILES_${PN} += "${datadir}/dbus-1/" | ||
24 | FILES_${PN}-dbg += "${libdir}/*/*/.debug" | ||
25 | |||
26 | CONFFILES_${PN} += "${sysconfdir}/X11/Xsession.d/90tracker" | ||
diff --git a/meta-moblin/packages/twitter-glib/twitter-glib/nodolt.patch b/meta-moblin/packages/twitter-glib/twitter-glib/nodolt.patch deleted file mode 100644 index 1eb9e3c8a8..0000000000 --- a/meta-moblin/packages/twitter-glib/twitter-glib/nodolt.patch +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | Index: git/configure.ac | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.ac 2009-11-27 15:30:59.000000000 +0000 | ||
4 | +++ git/configure.ac 2009-11-27 15:31:07.000000000 +0000 | ||
5 | @@ -57,7 +57,6 @@ | ||
6 | |||
7 | AC_DISABLE_STATIC | ||
8 | AC_PROG_LIBTOOL | ||
9 | -DOLT | ||
10 | |||
11 | AC_ISC_POSIX | ||
12 | AC_HEADER_STDC | ||
diff --git a/meta-moblin/packages/twitter-glib/twitter-glib_git.bb b/meta-moblin/packages/twitter-glib/twitter-glib_git.bb deleted file mode 100644 index 7d4d990fec..0000000000 --- a/meta-moblin/packages/twitter-glib/twitter-glib_git.bb +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | HOMEPAGE = "http://live.gnome.org/TwitterGlib" | ||
2 | SRC_URI = "git://github.com/ebassi/${PN}.git;protocol=git \ | ||
3 | file://nodolt.patch;patch=1" | ||
4 | PV = "0.1+git${SRCPV}" | ||
5 | PR = "r1" | ||
6 | |||
7 | DEPENDS = "glib-2.0 gtk+ json-glib libsoup-2.4" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | EXTRA_OECONF = "--disable-shave --disable-introspection --disable-maintainer-flags" | ||
12 | |||
13 | inherit autotools | ||
14 | |||
15 | do_configure_prepend () { | ||
16 | echo "EXTRA_DIST=" > ${S}/gtk-doc.make | ||
17 | } | ||
diff --git a/meta-moblin/packages/uicmoc/uicmoc3-native-3.3.5/64bit-cleanup.patch b/meta-moblin/packages/uicmoc/uicmoc3-native-3.3.5/64bit-cleanup.patch deleted file mode 100644 index 0e5d3ff153..0000000000 --- a/meta-moblin/packages/uicmoc/uicmoc3-native-3.3.5/64bit-cleanup.patch +++ /dev/null | |||
@@ -1,160 +0,0 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- qt-embedded-free-3.3.5/src/embedded/qgfxlinuxfb_qws.cpp~64bit-cleanup.patch | ||
7 | +++ qt-embedded-free-3.3.5/src/embedded/qgfxlinuxfb_qws.cpp | ||
8 | @@ -40,6 +40,7 @@ | ||
9 | |||
10 | #include <unistd.h> | ||
11 | #include <stdlib.h> | ||
12 | +#include <stdint.h> | ||
13 | #include <sys/ioctl.h> | ||
14 | #include <sys/types.h> | ||
15 | #include <sys/stat.h> | ||
16 | @@ -176,7 +177,7 @@ | ||
17 | MAP_SHARED, fd, 0); | ||
18 | data += dataoffset; | ||
19 | |||
20 | - if ((int)data == -1) { | ||
21 | + if ((intptr_t)data == -1) { | ||
22 | perror("mapping /dev/fb0"); | ||
23 | qWarning("Error: failed to map framebuffer device to memory."); | ||
24 | return FALSE; | ||
25 | @@ -737,7 +738,7 @@ | ||
26 | psize += 8; // for alignment | ||
27 | psize &= ~0x7; // align | ||
28 | |||
29 | - unsigned int pos=(unsigned int)data; | ||
30 | + uintptr_t pos=(uintptr_t)data; | ||
31 | pos += psize; | ||
32 | entryp = ((int *)pos); | ||
33 | lowest = ((unsigned int *)pos)+1; | ||
34 | --- qt-embedded-free-3.3.5/src/kernel/qsharedmemory_p.cpp~64bit-cleanup.patch | ||
35 | +++ qt-embedded-free-3.3.5/src/kernel/qsharedmemory_p.cpp | ||
36 | @@ -31,6 +31,7 @@ | ||
37 | **********************************************************************/ | ||
38 | |||
39 | #include "qsharedmemory_p.h" | ||
40 | +#include <stdint.h> | ||
41 | |||
42 | #if !defined(QT_QWS_NO_SHM) | ||
43 | |||
44 | @@ -132,7 +133,7 @@ | ||
45 | shmId = shmget (key, shmSize, 0); | ||
46 | |||
47 | shmBase = shmat (shmId, 0, 0); | ||
48 | - if ((int) shmBase == -1 || shmBase == 0) | ||
49 | + if ((intptr_t) shmBase == -1 || shmBase == 0) | ||
50 | return FALSE; | ||
51 | else | ||
52 | return TRUE; | ||
53 | --- qt-embedded-free-3.3.5/src/kernel/qapplication_qws.cpp~64bit-cleanup.patch | ||
54 | +++ qt-embedded-free-3.3.5/src/kernel/qapplication_qws.cpp | ||
55 | @@ -107,6 +107,7 @@ | ||
56 | #include <locale.h> | ||
57 | #include <errno.h> | ||
58 | #include <sys/time.h> | ||
59 | +#include <stdint.h> | ||
60 | |||
61 | #if defined(Q_OS_QNX) | ||
62 | #include <sys/select.h> | ||
63 | @@ -1879,7 +1880,7 @@ | ||
64 | w = widgetAt(*qt_last_x, *qt_last_y, FALSE); | ||
65 | if ( !w ) | ||
66 | w = desktop(); | ||
67 | - QPaintDevice::qwsDisplay()->selectCursor(w, (int)app_cursor->handle()); | ||
68 | + QPaintDevice::qwsDisplay()->selectCursor(w, (intptr_t)app_cursor->handle()); | ||
69 | } | ||
70 | |||
71 | void QApplication::restoreOverrideCursor() | ||
72 | @@ -1898,11 +1899,11 @@ | ||
73 | cursorStack = 0; | ||
74 | qws_overrideCursor = FALSE; | ||
75 | if ( w->testWState(WState_OwnCursor) ) | ||
76 | - QPaintDevice::qwsDisplay()->selectCursor(w, (int)w->cursor().handle()); | ||
77 | + QPaintDevice::qwsDisplay()->selectCursor(w, (intptr_t)w->cursor().handle()); | ||
78 | else | ||
79 | QPaintDevice::qwsDisplay()->selectCursor(w, ArrowCursor); | ||
80 | } else { | ||
81 | - QPaintDevice::qwsDisplay()->selectCursor(w, (int)app_cursor->handle()); | ||
82 | + QPaintDevice::qwsDisplay()->selectCursor(w, (intptr_t)app_cursor->handle()); | ||
83 | } | ||
84 | } | ||
85 | #endif// QT_NO_CURSOR | ||
86 | @@ -2130,7 +2131,7 @@ | ||
87 | } | ||
88 | if ( !qws_overrideCursor ) { | ||
89 | if (curs) | ||
90 | - QPaintDevice::qwsDisplay()->selectCursor(widget, (int)curs->handle()); | ||
91 | + QPaintDevice::qwsDisplay()->selectCursor(widget, (intptr_t)curs->handle()); | ||
92 | else | ||
93 | QPaintDevice::qwsDisplay()->selectCursor(widget, ArrowCursor); | ||
94 | } | ||
95 | --- qt-embedded-free-3.3.5/src/kernel/qfont_qws.cpp~64bit-cleanup.patch | ||
96 | +++ qt-embedded-free-3.3.5/src/kernel/qfont_qws.cpp | ||
97 | @@ -49,6 +49,7 @@ | ||
98 | #include "qgfx_qws.h" | ||
99 | #include "qtextengine_p.h" | ||
100 | #include "qfontengine_p.h" | ||
101 | +#include <stdint.h> | ||
102 | |||
103 | QFont::Script QFontPrivate::defaultScript = QFont::UnknownScript; | ||
104 | |||
105 | @@ -133,7 +134,7 @@ | ||
106 | req.pointSize = req.pixelSize*10; | ||
107 | |||
108 | if ( ! engineData ) { | ||
109 | - QFontCache::Key key( req, QFont::NoScript, (int)paintdevice ); | ||
110 | + QFontCache::Key key( req, QFont::NoScript, (intptr_t)paintdevice ); | ||
111 | |||
112 | // look for the requested font in the engine data cache | ||
113 | engineData = QFontCache::instance->findEngineData( key ); | ||
114 | --- qt-embedded-free-3.3.5/src/kernel/qwsregionmanager_qws.cpp~64bit-cleanup.patch | ||
115 | +++ qt-embedded-free-3.3.5/src/kernel/qwsregionmanager_qws.cpp | ||
116 | @@ -32,6 +32,7 @@ | ||
117 | #include "qwsdisplay_qws.h" | ||
118 | #include "qwsregionmanager_qws.h" | ||
119 | #include <stdlib.h> | ||
120 | +#include <stdint.h> | ||
121 | |||
122 | #ifndef QT_NO_QWS_MULTIPROCESS | ||
123 | #include <sys/types.h> | ||
124 | @@ -288,7 +289,7 @@ | ||
125 | data = (unsigned char *)shmat( shmId, 0, 0 ); | ||
126 | } | ||
127 | |||
128 | - return ( shmId != -1 && (int)data != -1 ); | ||
129 | + return ( shmId != -1 && (intptr_t)data != -1 ); | ||
130 | #else | ||
131 | int dataSize = sizeof(QWSRegionHeader) // header | ||
132 | + sizeof(QWSRegionIndex) * QT_MAX_REGIONS // + index | ||
133 | --- qt-embedded-free-3.3.5/src/kernel/qwidget_qws.cpp~64bit-cleanup.patch | ||
134 | +++ qt-embedded-free-3.3.5/src/kernel/qwidget_qws.cpp | ||
135 | @@ -53,6 +53,7 @@ | ||
136 | #include "qwsmanager_qws.h" | ||
137 | #include "qwsregionmanager_qws.h" | ||
138 | #include "qinputcontext_p.h" | ||
139 | +#include <stdint.h> | ||
140 | |||
141 | void qt_insert_sip( QWidget*, int, int ); // defined in qapplication_x11.cpp | ||
142 | int qt_sip_count( QWidget* ); // --- "" --- | ||
143 | @@ -631,7 +632,7 @@ | ||
144 | qt_mouseGrb->releaseMouse(); | ||
145 | |||
146 | qwsDisplay()->grabMouse(this,TRUE); | ||
147 | - qwsDisplay()->selectCursor(this, (unsigned int)cursor.handle()); | ||
148 | + qwsDisplay()->selectCursor(this, (uintptr_t)cursor.handle()); | ||
149 | qt_mouseGrb = this; | ||
150 | qt_pressGrab = 0; | ||
151 | } | ||
152 | @@ -1845,7 +1846,7 @@ | ||
153 | QSize s( qt_screen->width(), qt_screen->height() ); | ||
154 | QPoint pos = qt_screen->mapToDevice(QPoint(*qt_last_x, *qt_last_y), s); | ||
155 | if ( r.contains(pos) ) | ||
156 | - qwsDisplay()->selectCursor((QWidget*)this, (unsigned int)cursor().handle()); | ||
157 | + qwsDisplay()->selectCursor((QWidget*)this, (uintptr_t)cursor().handle()); | ||
158 | } | ||
159 | } | ||
160 | #endif | ||
diff --git a/meta-moblin/packages/uicmoc/uicmoc3-native-3.3.5/no-examples.patch b/meta-moblin/packages/uicmoc/uicmoc3-native-3.3.5/no-examples.patch deleted file mode 100644 index b0ee6374ef..0000000000 --- a/meta-moblin/packages/uicmoc/uicmoc3-native-3.3.5/no-examples.patch +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
4 | # | ||
5 | |||
6 | --- qt-embedded-free-3.3.2/Makefile~no-examples 2003-08-11 16:37:25.000000000 +0200 | ||
7 | +++ qt-embedded-free-3.3.2/Makefile 2004-05-11 15:53:53.000000000 +0200 | ||
8 | @@ -11,7 +11,7 @@ | ||
9 | install: FORCE | ||
10 | @$(MAKE) qt.install | ||
11 | |||
12 | -all: symlinks src-qmake src-moc sub-src sub-tools sub-tutorial sub-examples | ||
13 | +all: symlinks src-qmake src-moc sub-src sub-tools | ||
14 | @echo | ||
15 | @echo "The Qt library is now built in ./lib" | ||
16 | @echo "The Qt examples are built in the directories in ./examples" | ||
diff --git a/meta-moblin/packages/uicmoc/uicmoc3-native_3.3.5.bb b/meta-moblin/packages/uicmoc/uicmoc3-native_3.3.5.bb deleted file mode 100644 index 68582850a2..0000000000 --- a/meta-moblin/packages/uicmoc/uicmoc3-native_3.3.5.bb +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | DESCRIPTION = "User Interface Generator and Meta Object Compiler (moc) for Qt(E) 3.x" | ||
2 | HOMEPAGE = "http://www.trolltech.com" | ||
3 | SECTION = "devel" | ||
4 | PRIORITY = "optional" | ||
5 | LICENSE = "GPL QPL" | ||
6 | DEPENDS = "qmake-native" | ||
7 | PR = "r3" | ||
8 | |||
9 | SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-embedded-free-${PV}.tar.bz2 \ | ||
10 | file://no-examples.patch;patch=1 \ | ||
11 | file://64bit-cleanup.patch;patch=1" | ||
12 | S = "${WORKDIR}/qt-embedded-free-${PV}" | ||
13 | |||
14 | inherit native qmake_base qt3e | ||
15 | |||
16 | export QTDIR = "${S}" | ||
17 | export OE_QMAKE_LINK="${CXX}" | ||
18 | CXXFLAGS += " -DQWS" | ||
19 | |||
20 | QT_CONFIG_FLAGS = "-release -static -depths 8,16 -qt-zlib -no-nas-sound \ | ||
21 | -no-sm -no-libjpeg -no-libmng -no-gif -no-xshape -no-xinerama \ | ||
22 | -no-xcursor -no-xrandr -no-xrender -no-xft -no-tablet \ | ||
23 | -no-xkb -no-dlopen-opengl -no-freetype -no-thread \ | ||
24 | -no-nis -no-cups -prefix ${prefix} \ | ||
25 | -xplatform ${OE_QMAKE_PLATFORM} \ | ||
26 | -platform ${OE_QMAKE_PLATFORM}" | ||
27 | |||
28 | do_configure() { | ||
29 | oe_qmake_mkspecs | ||
30 | echo "yes" | ./configure ${QT_CONFIG_FLAGS} | ||
31 | } | ||
32 | |||
33 | do_compile() { | ||
34 | oe_runmake symlinks || die "Can't symlink include files" | ||
35 | oe_runmake src-moc || die "Building moc failed" | ||
36 | oe_runmake sub-tools || die "Building tools failed" | ||
37 | } | ||
38 | |||
39 | do_install() { | ||
40 | install -d ${D}${bindir}/ | ||
41 | install -d ${D}/qte3/lib/ | ||
42 | install -d ${D}/qte3/include | ||
43 | |||
44 | install -m 0755 bin/moc ${D}${bindir}/ | ||
45 | install -m 0755 bin/uic ${D}${bindir}/ | ||
46 | install -m 0655 lib/*.a ${D}/qte3/lib/ | ||
47 | |||
48 | for f in include/*.h | ||
49 | do | ||
50 | install -m 0644 $f ${D}/qte3/include/ | ||
51 | done | ||
52 | } | ||
53 | |||
54 | sysroot_stage_all_append() { | ||
55 | sysroot_stage_dir ${D}/qte3 ${SYSROOT_DESTDIR}/${QTEDIR}/ | ||
56 | } | ||
diff --git a/meta-moblin/packages/xdg-user-dirs/xdg-user-dirs/configurefix.patch b/meta-moblin/packages/xdg-user-dirs/xdg-user-dirs/configurefix.patch deleted file mode 100644 index 576cdde752..0000000000 --- a/meta-moblin/packages/xdg-user-dirs/xdg-user-dirs/configurefix.patch +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | The AM_DISABLE_STATIC appears to pull in strange libtool junk so just remove it. | ||
2 | |||
3 | RP - 27/5/09 | ||
4 | |||
5 | Index: xdg-user-dirs-0.10/configure.ac | ||
6 | =================================================================== | ||
7 | --- xdg-user-dirs-0.10.orig/configure.ac 2009-05-27 22:27:20.000000000 +0100 | ||
8 | +++ xdg-user-dirs-0.10/configure.ac 2009-05-27 22:27:28.000000000 +0100 | ||
9 | @@ -13,8 +13,7 @@ | ||
10 | AC_PROG_INSTALL | ||
11 | AC_PROG_LN_S | ||
12 | AC_PROG_MAKE_SET | ||
13 | -AM_PROG_MKDIR_P | ||
14 | -AM_DISABLE_STATIC | ||
15 | +AM_PROG_MKDIR_P | ||
16 | AM_ICONV | ||
17 | |||
18 | GETTEXT_PACKAGE=xdg-user-dirs | ||
diff --git a/meta-moblin/packages/xdg-user-dirs/xdg-user-dirs_0.10.bb b/meta-moblin/packages/xdg-user-dirs/xdg-user-dirs_0.10.bb deleted file mode 100644 index 579672cf51..0000000000 --- a/meta-moblin/packages/xdg-user-dirs/xdg-user-dirs_0.10.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | DESCRIPTION = "xdg-user-dirs is a tool to help manage user directories like the desktop folder and the music folder" | ||
2 | SRC_URI = "http://user-dirs.freedesktop.org/releases/xdg-user-dirs-0.10.tar.gz \ | ||
3 | file://configurefix.patch;patch=1 " | ||
4 | DEPENDS = "gettext" | ||
5 | PR = "r1" | ||
6 | |||
7 | inherit autotools | ||
8 | |||
9 | do_install_append () { | ||
10 | install -d ${D}${sysconfdir}/skel/.config/ | ||
11 | mv ${D}${sysconfdir}/xdg/user-dirs.defaults ${D}${sysconfdir}/skel/.config/user-dirs.dirs | ||
12 | } | ||
diff --git a/meta-moblin/packages/xerces-c/xerces-c/nolocallink.patch b/meta-moblin/packages/xerces-c/xerces-c/nolocallink.patch deleted file mode 100644 index d1fa2de9c1..0000000000 --- a/meta-moblin/packages/xerces-c/xerces-c/nolocallink.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | Index: xercesc/Makefile.incl | ||
2 | =================================================================== | ||
3 | --- xercesc.orig/Makefile.incl 2009-11-18 00:31:14.000000000 +0000 | ||
4 | +++ xercesc/Makefile.incl 2009-11-18 00:31:58.000000000 +0000 | ||
5 | @@ -519,23 +519,23 @@ | ||
6 | |||
7 | ifeq (${BITSTOBUILD}, 64) | ||
8 | ifeq (${TRANSCODER}, ICU) | ||
9 | - ALLLIBS = ${LIBS} -L/usr/lib64 -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -licuuc -licudata | ||
10 | + ALLLIBS = ${LIBS} -licuuc -licudata | ||
11 | else | ||
12 | - ALLLIBS = ${LIBS} -L/usr/lib64 -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib | ||
13 | + ALLLIBS = ${LIBS} | ||
14 | endif | ||
15 | |||
16 | ifeq (${MESSAGELOADER}, ICU) | ||
17 | - ALLLIBS = ${LIBS} -L/usr/lib64 -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -licuuc -licudata -lXercesMessages | ||
18 | + ALLLIBS = ${LIBS} -licuuc -licudata -lXercesMessages | ||
19 | endif | ||
20 | else | ||
21 | ifeq (${TRANSCODER}, ICU) | ||
22 | - ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -licuuc -licudata | ||
23 | + ALLLIBS = ${LIBS} -licuuc -licudata | ||
24 | else | ||
25 | - ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib | ||
26 | + ALLLIBS = ${LIBS} | ||
27 | endif | ||
28 | |||
29 | ifeq (${MESSAGELOADER}, ICU) | ||
30 | - ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -licuuc -licudata -lXercesMessages | ||
31 | + ALLLIBS = ${LIBS} -licuuc -licudata -lXercesMessages | ||
32 | endif | ||
33 | endif | ||
34 | |||
diff --git a/meta-moblin/packages/xerces-c/xerces-c_2.8.0.bb b/meta-moblin/packages/xerces-c/xerces-c_2.8.0.bb deleted file mode 100644 index 23f5885628..0000000000 --- a/meta-moblin/packages/xerces-c/xerces-c_2.8.0.bb +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | DESCRIPTION = "Xerces-c is a validating xml parser written in C++" | ||
2 | HOMEPAGE = "http://xerces.apache.org/xerces-c/" | ||
3 | SECTION = "libs" | ||
4 | PRIORITY = "optional" | ||
5 | LICENSE = "MIT" | ||
6 | PR = "r2" | ||
7 | |||
8 | SRC_URI = "http://mirror.serversupportforum.de/apache/xerces/c/2/sources/xerces-c-src_2_8_0.tar.gz \ | ||
9 | file://nolocallink.patch;patch=1" | ||
10 | S = "${WORKDIR}/xerces-c-src_2_8_0/src/xercesc" | ||
11 | |||
12 | inherit autotools pkgconfig | ||
13 | |||
14 | CCACHE = "" | ||
15 | export XERCESCROOT="${WORKDIR}/xerces-c-src_2_8_0" | ||
16 | export cross_compiling = "yes" | ||
17 | |||
18 | do_configure() { | ||
19 | ./runConfigure -plinux -c"${CC}" -x"${CXX}" -minmem -nsocket -tnative -rpthread -P${D}${prefix} \ | ||
20 | -C--build=${BUILD_SYS} \ | ||
21 | -C--host=${HOST_SYS} \ | ||
22 | -C--target=${TARGET_SYS} \ | ||
23 | } | ||
24 | |||
25 | do_compile() { | ||
26 | ${MAKE} | ||
27 | } | ||
28 | |||
29 | do_install () { | ||
30 | ${MAKE} install | ||
31 | } | ||