diff options
author | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-10-26 15:50:07 +0100 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-10-26 15:50:07 +0100 |
commit | 247688aaac7b4f57740a327ebd6c33660642fa98 (patch) | |
tree | 83120eb26b1285db62fef3c5421f523ff38f7afd | |
parent | 77cfe0930b039016848f590ebf736442c03a9975 (diff) | |
parent | 66c4fef12cbe7f2a453748b8b025b2597a13e0c7 (diff) |
Merge branch 'org.openembedded.dev' of git.openembedded.org:openembedded into org.openembedded.dev
-rw-r--r-- | classes/gitver.bbclass | 32 | ||||
-rw-r--r-- | classes/update-rc.d.bbclass | 14 | ||||
-rw-r--r-- | conf/checksums.ini | 16 | ||||
-rw-r--r-- | recipes/curl/curl-common.inc | 10 | ||||
-rw-r--r-- | recipes/curl/curl-native_7.18.2.bb | 2 | ||||
-rw-r--r-- | recipes/curl/curl-native_7.19.6.bb | 12 | ||||
-rw-r--r-- | recipes/curl/curl-sdk_7.18.2.bb | 2 | ||||
-rw-r--r-- | recipes/curl/curl_7.18.2.bb | 2 | ||||
-rw-r--r-- | recipes/curl/curl_7.19.5.bb | 2 | ||||
-rw-r--r-- | recipes/curl/curl_7.19.6.bb | 5 | ||||
-rw-r--r-- | recipes/libsdl/libsdl-mixer_1.2.9.bb | 23 | ||||
-rw-r--r-- | recipes/llvm/llvm2.6-native_2.6.bb (renamed from recipes/llvm/llvm2.6-native_2.5+svnr20090511.bb) | 9 | ||||
-rw-r--r-- | recipes/llvm/llvm2.6_2.6.bb (renamed from recipes/llvm/llvm2.6_2.5+svnr20090511.bb) | 9 | ||||
-rw-r--r-- | recipes/tgt/tgt_0.9.10.bb | 15 |
14 files changed, 118 insertions, 35 deletions
diff --git a/classes/gitver.bbclass b/classes/gitver.bbclass index 92c053ae24..5b4ba8d1e1 100644 --- a/classes/gitver.bbclass +++ b/classes/gitver.bbclass @@ -8,20 +8,14 @@ GITVER = "${@get_git_pv('${S}', d)}" -def gitver_mark_dependency(d): - from bb.data import expand - from bb.parse import mark_dependency - from os.path import abspath - - fn = abspath(expand("${S}/.git/HEAD", d)) - mark_dependency(d, fn) - def get_git_pv(path, d, tagadjust=None): from subprocess import Popen, PIPE - from os.path import join + import os from bb import error + from bb.parse import mark_dependency - env = {"GIT_DIR": join(d.getVar("S", True), ".git")} + gitdir = os.path.abspath(os.path.join(d.getVar("S", True), ".git")) + env = { "GIT_DIR": gitdir } def popen(cmd, **kwargs): kwargs["stderr"] = PIPE @@ -39,7 +33,23 @@ def get_git_pv(path, d, tagadjust=None): return return stdout.rstrip() - gitver_mark_dependency(d) + # Force the recipe to be reparsed so the version gets bumped + # if the active branch is switched, or if the branch changes. + mark_dependency(d, os.path.join(gitdir, "HEAD")) + + ref = popen(["git", "symbolic-ref", "HEAD"]) + reffile = os.path.join(gitdir, ref) + if ref and os.path.exists(reffile): + mark_dependency(d, reffile) + else: + # The ref might be hidden in packed-refs. Force a reparse if anything + # in the working copy changes. + mark_dependency(d, os.path.join(gitdir, "index")) + + # Catch new tags. + tagdir = os.path.join(gitdir, "refs", "tags") + if os.path.exists(tagdir): + mark_dependency(d, tagdir) ver = popen(["git", "describe", "--tags"], cwd=path) if not ver: diff --git a/classes/update-rc.d.bbclass b/classes/update-rc.d.bbclass index 91af859392..00ec37cfb8 100644 --- a/classes/update-rc.d.bbclass +++ b/classes/update-rc.d.bbclass @@ -16,17 +16,27 @@ update-rc.d $OPT ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS} updatercd_prerm() { if test "x$D" = "x"; then - ${INIT_D_DIR}/${INITSCRIPT_NAME} stop + if test "$1" = "upgrade" -o "$1" = "remove"; then + ${INIT_D_DIR}/${INITSCRIPT_NAME} stop + fi fi } +# Note: to be Debian compliant, we should only invoke update-rc.d remove +# at the "purge" step, but opkg does not support it. So instead we also +# run it at the "remove" step if the init script no longer exists. + updatercd_postrm() { if test "x$D" != "x"; then OPT="-r $D" else OPT="" fi -update-rc.d $OPT ${INITSCRIPT_NAME} remove +if test "$1" = "remove" -o "$1" = "purge"; then + if ! test -e "${INIT_D_DIR}/${INITSCRIPT_NAME}"; then + update-rc.d $OPT ${INITSCRIPT_NAME} remove + fi +fi } diff --git a/conf/checksums.ini b/conf/checksums.ini index bf1e7425b9..85ef9dd7ea 100644 --- a/conf/checksums.ini +++ b/conf/checksums.ini @@ -1010,6 +1010,10 @@ sha256=89f94840b1b42ddfe53a8aee415331516f1bbdd942b42d25e74906a332cdf22a md5=0b5b91015d0f3bd9597e094ba67c4d65 sha256=a8222a274778ff16d0e3ee49a30db27a48a4d357169a915fc599a764e405e0b6 +[http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.9.tar.gz] +md5=a9eb8750e920829ff41dbe7555850156 +sha256=557910a4a3aeed6d10238e26b5a39b19247115a1b352580082bb15dc02ae4b8d + [http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.5.tar.gz] md5=e45b1048d2747480dcc65ece4130a920 sha256=397dee6b7ac13dea70dd3dd2ae6044f45a632a1ba156da178c96df66fb8ccdcb @@ -4606,6 +4610,10 @@ sha256=a0e28b019f022942650ffa4bdf46e4c09bd8ec18e6ca5f08ad273668115f51f7 md5=426d161661dce70c8ea9ad8f553363a3 sha256=05ad84a9c8d340917370f357ad9fdce5ea595deb11f4cb70f946fa48c7b02cd0 +[http://curl.haxx.se/download/curl-7.19.6.tar.bz2] +md5=8402c1f654c51ad7287aad57c3aa79be +sha256=ea88f48c8415f7d3af482e4d241277b2bdbfaffaf285e8001c88c1376cbc1021 + [http://downloads.sourceforge.net/curlftpfs/curlftpfs-0.9.2.tar.gz] md5=b452123f755114cd4461d56c648d9f12 sha256=4eb44739c7078ba0edde177bdd266c4cfb7c621075f47f64c85a06b12b3c6958 @@ -16738,6 +16746,10 @@ sha256=5fc295b3cf3de019962aee3be1c5efb49d6bf5041dae59451f6c0f544eb36bdc md5=55df2ea8665c8094ad2ef85187b9fc74 sha256=8f3d69e63bc5d1ee2c2ee49ff07ccb7e070070a0e937813d2a6179b9e2e173ed +[http://llvm.org/releases/2.6/llvm-2.6.tar.gz] +md5=88b8a5b6290927e6f54e85a35b94ef64 +sha256=9621bd6038a1d3f93038c472d77a574078935c9f189d38eab1ee5c56498ef393 + [http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-2.10.1.tar.gz] md5=cdc857b78e813b88cbf8be92441aa299 sha256=a332cacfa9d0eed6e9158c394db714e536f38c27451d7df08b9634952118fa1b @@ -24722,6 +24734,10 @@ sha256=6ae8157bbec2b36957bbee6895b4cd3f82406fa90fa7d597235c58ea19307be7 md5=28beef704a4ef62bc2dead005198ef4c sha256=96309871519efcab829fdfcc1cca546d772ed6a0e214c9e99e77ca7aea29f734 +[http://stgt.berlios.de/releases/tgt-0.9.10.tar.bz2] +md5=d06e2dcef6ac6c975311e88083d8ef26 +sha256=f30ffe64bcf4fc8a82a76594c254ce54c82a33d797cdc0f35f19519572f94c4a + [http://packetstorm.linuxsecurity.com/groups/thc/thcrut-1.2.5.tar.gz] md5=190f08ce6839aecb0fa0ce8d5ddd09ee sha256=b32f3d71ac540248b7643baa39d8ecfb75af493228caaeb64608e49f2f092473 diff --git a/recipes/curl/curl-common.inc b/recipes/curl/curl-common.inc index ce4f5f2a8e..29af47ee8d 100644 --- a/recipes/curl/curl-common.inc +++ b/recipes/curl/curl-common.inc @@ -6,8 +6,10 @@ SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \ file://pkgconfig_fix.patch;patch=1" S = "${WORKDIR}/curl-${PV}" +INC_PR = "r2" + CURL_FEATURES ?= "zlib,gnutls,cookies,crypto-auth,dict,file,ftp,http,telnet,tftp" -# other allowed features: ipv6, ares +# other allowed features: ipv6, ares, openssl inherit autotools pkgconfig binconfig @@ -15,7 +17,6 @@ EXTRA_OECONF = " \ --without-libssh2 \ --with-random=/dev/urandom \ --without-libidn \ - --without-ssl \ " python __anonymous() { @@ -37,6 +38,11 @@ python __anonymous() { deps.append("gnutls") else: oeconf += " --without-gnutls" + if 'openssl' in f: + oeconf += " --with-ssl=${STAGING_LIBDIR}/../" + deps.append("openssl") + else: + oeconf += " --without-ssl" if 'ares' in f: oeconf += " --enable-ares" deps.append("c-ares") diff --git a/recipes/curl/curl-native_7.18.2.bb b/recipes/curl/curl-native_7.18.2.bb index c95591b70b..d395021512 100644 --- a/recipes/curl/curl-native_7.18.2.bb +++ b/recipes/curl/curl-native_7.18.2.bb @@ -1,7 +1,7 @@ require curl-common.inc inherit native DEPENDS = "zlib-native" -PR = "r1" +PR = "${INC_PR}.1" do_stage () { autotools_stage_all diff --git a/recipes/curl/curl-native_7.19.6.bb b/recipes/curl/curl-native_7.19.6.bb new file mode 100644 index 0000000000..d395021512 --- /dev/null +++ b/recipes/curl/curl-native_7.19.6.bb @@ -0,0 +1,12 @@ +require curl-common.inc +inherit native +DEPENDS = "zlib-native" +PR = "${INC_PR}.1" + +do_stage () { + autotools_stage_all +} + +do_install() { + : +} diff --git a/recipes/curl/curl-sdk_7.18.2.bb b/recipes/curl/curl-sdk_7.18.2.bb index 35b0d8883f..8eed3d664a 100644 --- a/recipes/curl/curl-sdk_7.18.2.bb +++ b/recipes/curl/curl-sdk_7.18.2.bb @@ -1,7 +1,7 @@ require curl-common.inc inherit sdk DEPENDS = "zlib-sdk" -PR = "r1" +PR = "${INC_PR}.1" do_stage () { install -d ${STAGING_INCDIR}/curl diff --git a/recipes/curl/curl_7.18.2.bb b/recipes/curl/curl_7.18.2.bb index 3de6da4fec..84c0d07e61 100644 --- a/recipes/curl/curl_7.18.2.bb +++ b/recipes/curl/curl_7.18.2.bb @@ -1,4 +1,4 @@ require curl-common.inc require curl-target.inc -PR = "r1" +PR = "${INC_PR}.1" diff --git a/recipes/curl/curl_7.19.5.bb b/recipes/curl/curl_7.19.5.bb index b5b6182e8d..d0577b06aa 100644 --- a/recipes/curl/curl_7.19.5.bb +++ b/recipes/curl/curl_7.19.5.bb @@ -3,4 +3,4 @@ require curl-target.inc SRC_URI += "file://off_t_abi_fix.patch;patch=1;pnum=0 \ file://curl-add_all_algorithms.patch;patch=1" -PR = "r1" +PR = "${INC_PR}.1" diff --git a/recipes/curl/curl_7.19.6.bb b/recipes/curl/curl_7.19.6.bb new file mode 100644 index 0000000000..e8319b80ed --- /dev/null +++ b/recipes/curl/curl_7.19.6.bb @@ -0,0 +1,5 @@ +require curl-common.inc +require curl-target.inc + +SRC_URI += "file://off_t_abi_fix.patch;patch=1;pnum=0" +PR = "${INC_PR}.1" diff --git a/recipes/libsdl/libsdl-mixer_1.2.9.bb b/recipes/libsdl/libsdl-mixer_1.2.9.bb new file mode 100644 index 0000000000..5ecd2944a2 --- /dev/null +++ b/recipes/libsdl/libsdl-mixer_1.2.9.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "Simple DirectMedia Layer mixer library." +SECTION = "libs" +PRIORITY = "optional" +DEPENDS = "virtual/libsdl libmikmod libvorbis" +LICENSE = "LGPL" + +SRC_URI = "http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-${PV}.tar.gz" +S = "${WORKDIR}/SDL_mixer-${PV}" + +export SDL_CONFIG = "${STAGING_BINDIR_CROSS}/sdl-config" + +inherit autotools_stage + +EXTRA_OECONF = "--disable-music-mp3" +# although we build smpeg... need to find out how +# to deal with optional dependencies + +do_compile() { + # Override SDL_LIBS to include a linker rpath so the linker + # can find the correct libdl.so when it links playwave to + # libSDL_mixer.so. + oe_runmake SDL_LIBS="$(pkg-config sdl --libs) -Wl,-rpath-link,${STAGING_LIBDIR}" +} diff --git a/recipes/llvm/llvm2.6-native_2.5+svnr20090511.bb b/recipes/llvm/llvm2.6-native_2.6.bb index 119e191856..13e779aeda 100644 --- a/recipes/llvm/llvm2.6-native_2.5+svnr20090511.bb +++ b/recipes/llvm/llvm2.6-native_2.6.bb @@ -1,17 +1,10 @@ require llvm-native.inc -SRCREV = "71428" - -PV = "2.5+svnr${SRCREV}" - PR = "r0" -SRC_URI = "\ - svn://llvm.org/svn/llvm-project/llvm/;proto=http;module=trunk \ +SRC_URI += "\ file://fix-build.patch;patch=1 \ file://llvm-debugonly-zeroormore.patch;patch=1;pnum=0 \ " -S = "${WORKDIR}/trunk" - LLVM_RELEASE = "2.6" diff --git a/recipes/llvm/llvm2.6_2.5+svnr20090511.bb b/recipes/llvm/llvm2.6_2.6.bb index 035d021f7d..40dabb4fba 100644 --- a/recipes/llvm/llvm2.6_2.5+svnr20090511.bb +++ b/recipes/llvm/llvm2.6_2.6.bb @@ -1,19 +1,12 @@ require llvm.inc -SRCREV = "71428" - -PV = "2.5+svnr${SRCREV}" - PR = "r0" DEPENDS = "llvm-common llvm2.6-native" -SRC_URI = "\ - svn://llvm.org/svn/llvm-project/llvm/;proto=http;module=trunk \ +SRC_URI += "\ file://fix-build.patch;patch=1 \ file://llvm-debugonly-zeroormore.patch;patch=1;pnum=0 \ " -S = "${WORKDIR}/trunk" - LLVM_RELEASE = "2.6" diff --git a/recipes/tgt/tgt_0.9.10.bb b/recipes/tgt/tgt_0.9.10.bb new file mode 100644 index 0000000000..dc87ec109d --- /dev/null +++ b/recipes/tgt/tgt_0.9.10.bb @@ -0,0 +1,15 @@ +DESCRIPTION = "Linux target framework (tgt) aims to simplify various SCSI target driver (iSCSI, Fibre Channel, SRP, etc) creation and maintenance" +HOMEPAGE = "http://stgt.berlios.de/" +LICENSE = "GPLv2" +PR = "r0" + +SRC_URI = "http://stgt.berlios.de/releases/tgt-0.9.10.tar.bz2" + +TARGET_CC_ARCH += "${LDFLAGS}" + +do_configure() { +} + +do_install() { + oe_runmake DESTDIR="${D}" install +} |