All of lore.kernel.org
 help / color / mirror / Atom feed
* oe-publish-sdk fails for remote publishing
@ 2016-12-14 14:16 Jeremy Thien
  0 siblings, 0 replies; only message in thread
From: Jeremy Thien @ 2016-12-14 14:16 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 3367 bytes --]

I am running Ubuntu 16.04 and poky (?) v2.2. I am working my way through
eSDK setup. When I use oe-publish-sdk I get this error. My default shell is
dash.

ubuntu@myhost:fsl-community-bsp/build$ oe-publish-sdk tmp/deploy/sdk/
poky-glibc-x86_64-core-image-minimal-cortexa7hf-neon-toolchain-ext-2.2.sh
${ESDK_HOST}:/sdkdata/
INFO: Copying the SDK to destination
poky-glibc-x86_64-core-image-minimal-cortexa7hf-neon-toolchain-ext-2.2.sh

    100%  305MB 152.4MB/s   00:02
INFO: Unpacking SDK
Poky (Yocto Project Reference Distro) Extensible SDK installer version 2.2
==========================================================================
The directory "/sdkdata" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? Y
Extracting SDK.................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to
source the environment setup script e.g.
 $ . /sdkdata/environment-setup-cortexa7hf-neon-poky-linux-gnueabi
INFO: Successfully unpacked /sdkdata/
poky-glibc-x86_64-core-image-minimal-cortexa7hf-neon-toolchain-ext-2.2.sh to
/sdkdata/
bash: -c: line 1: syntax error: unexpected end of file
/bin/sh: 2: *.pyo > .gitignore; fi; git add -A .; git config user.email
oe@oe.oe && git config user.name OE && git commit -q -m "init repo" ||
true; git update-server-info: not found
ERROR: Failed to set up layer git repo

This diff is my correction. I modified "pyc\n" to "pyc\\\n".

diff --git a/scripts/oe-publish-sdk b/scripts/oe-publish-sdk
index 4fe8974..c6b83be 100755
--- a/scripts/oe-publish-sdk
+++ b/scripts/oe-publish-sdk
@@ -116,7 +116,7 @@ def publish(args):
     if not is_remote:
         cmd = 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e .git ];
then git init .; mv .git/hooks/post-update.sample .git/hooks/post-update;
echo "*.pyc\n*.pyo" > .gitignore; fi; git add -A .; git config user.email
"oe@oe.oe" && git config user.name "OE" && git commit -q -m "init repo" ||
true; git update-server-info' % (destination, destination)
     else:
-        cmd = "ssh %s 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e
.git ]; then git init .; mv .git/hooks/post-update.sample
.git/hooks/post-update; echo '*.pyc\n*.pyo' > .gitignore; fi; git add -A .;
git config user.email 'oe@oe.oe' && git config user.name 'OE' && git commit
-q -m \"init repo\" || true; git update-server-info'" % (host, destdir,
destdir)
+        cmd = "ssh %s 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e
.git ]; then git init .; mv .git/hooks/post-update.sample
.git/hooks/post-update; echo '*.pyc\\\n*.pyo' > .gitignore; fi; git add -A
.; git config user.email 'oe@oe.oe' && git config user.name 'OE' && git
commit -q -m \"init repo\" || true; git update-server-info'" % (host,
destdir, destdir)
     ret = subprocess.call(cmd, shell=True)
     if ret == 0:
         logger.info('SDK published successfully')

I am happy to correct my environment if I am using the tool wrong or to
submit the change according to the documentation. (In that case, should I
submit to openembedded-devel? Should I create a bug first?)

Thanks!
Jeremy
-- 
Jeremy Thien
Adtec Digital
adtecdigital.com
jeremy.thien@adtecdigital.net

[-- Attachment #2: Type: text/html, Size: 7504 bytes --]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-14 14:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-14 14:16 oe-publish-sdk fails for remote publishing Jeremy Thien

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.