aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gcr/gcr_3.18.0.bb
blob: 32523a64aabf5e34e52e5b46b36211e0c8ffc628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
SUMMARY = "A library for bits of crypto UI and parsing etc"
HOMEPAGE = "http://www.gnome.org/"
BUGTRACKER = "https://bugzilla.gnome.org/"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"

DEPENDS = "gtk+3 p11-kit glib-2.0 libgcrypt"

inherit autotools gnomebase gtk-icon-cache gtk-doc distro_features_check upstream-version-is-even vala gobject-introspection
# depends on gtk+3, but also x11 through gtk+-x11
REQUIRED_DISTRO_FEATURES = "x11"

SRC_URI[archive.md5sum] = "b959bac99e17c9bb0990a15c9be11aed"
SRC_URI[archive.sha256sum] = "d4d16da5af55148a694055835ccd07ad34daf0ad03bdad929bf7cad15637ce00"

FILES_${PN} += " \
    ${datadir}/dbus-1 \
    ${datadir}/gcr-3 \
"

# http://errors.yoctoproject.org/Errors/Details/20229/
ARM_INSTRUCTION_SET = "arm"

# on x86-64 the introspection binary goes into 
# an infinite loop under qemu during compilation, 
# printing the following:
# 
# gcrypt-Message: select() error: Bad address
#
# gcrypt-Message: select() error: Bad address
#
# gcrypt-Message: select() error: Bad address
#
# This will be investigated later.
EXTRA_OECONF_append_x86-64 = " --disable-introspection"

# Gcr-3.broken: poky/build-mips64/tmp/work/mips64-poky-linux/libgpg-error/1.19-r0/libgpg-error-1.19/src/posix-lock.c:119: get_lock_object: Assertion `!"sizeof lock obj"' failed.
# qemu: uncaught target signal 6 (Aborted) - core dumped
EXTRA_OECONF_append_mips64 = " --disable-introspection"
/span> destination: is_remote = True host, destdir = destination.split(':') dest_sdk = os.path.join(destdir, sdk_basename) else: is_remote = False dest_sdk = os.path.join(destination, sdk_basename) # Making sure the directory exists logger.debug("Making sure the destination directory exists") if not is_remote: mkdir(destination) else: cmd = "ssh %s 'mkdir -p %s'" % (host, destdir) ret = subprocess.call(cmd, shell=True) if ret != 0: logger.error("Making directory %s on %s failed" % (destdir, host)) return ret # Copying the SDK to the destination logger.info("Copying the SDK to destination") if not is_remote: if os.path.exists(dest_sdk): os.remove(dest_sdk) if (os.stat(target_sdk).st_dev == os.stat(destination).st_dev): os.link(target_sdk, dest_sdk) else: shutil.copy(target_sdk, dest_sdk) else: cmd = "scp %s %s" % (target_sdk, destination) ret = subprocess.call(cmd, shell=True) if ret != 0: logger.error("scp %s %s failed" % (target_sdk, destination)) return ret # Unpack the SDK logger.info("Unpacking SDK") if not is_remote: cmd = "sh %s -n -y -d %s" % (dest_sdk, destination) ret = subprocess.call(cmd, shell=True) if ret == 0: logger.info('Successfully unpacked %s to %s' % (dest_sdk, destination)) else: logger.error('Failed to unpack %s to %s' % (dest_sdk, destination)) return ret else: cmd = "ssh %s 'sh %s -n -y -d %s'" % (host, dest_sdk, destdir) ret = subprocess.call(cmd, shell=True) if ret == 0: logger.info('Successfully unpacked %s to %s' % (dest_sdk, destdir)) else: logger.error('Failed to unpack %s to %s' % (dest_sdk, destdir)) return ret # Setting up the git repo if not is_remote: cmd = 'set -e; cd %s/layers; if [ ! -e .git ]; then git init .; mv .git/hooks/post-update.sample .git/hooks/post-update; fi; git add -A .; git commit -q -m "init repo" || true;' % destination else: cmd = "ssh %s 'set -e; cd %s/layers; if [ ! -e .git ]; then git init .; mv .git/hooks/post-update.sample .git/hooks/post-update; fi; git add -A .; git commit -q -m \"init repo\" || true;'" % (host, destdir) ret = subprocess.call(cmd, shell=True) if ret == 0: logger.info('SDK published successfully') else: logger.error('Failed to set up layer git repo') return ret def main(): parser = argparse.ArgumentParser(description="OpenEmbedded development tool", epilog="Use %(prog)s <subcommand> --help to get help on a specific command") parser.add_argument('-d', '--debug', help='Enable debug output', action='store_true') parser.add_argument('-q', '--quiet', help='Print only errors', action='store_true') parser.add_argument('sdk', help='Extensible SDK to publish') parser.add_argument('dest', help='Destination to publish SDK to') parser.set_defaults(func=publish) args = parser.parse_args() if args.debug: logger.setLevel(logging.DEBUG) elif args.quiet: logger.setLevel(logging.ERROR) ret = args.func(args) return ret if __name__ == "__main__": try: ret = main() except Exception: ret = 1 import traceback traceback.print_exc(5) sys.exit(ret)