<div dir="ltr">I think this is due to the .sh in your binary's name; rename you freedomotic.sh to freetodomotic and see if that helps? This should be intercepted by snappy build I guess.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 30, 2015 at 8:32 AM,  <span dir="ltr"><<a href="mailto:mauro@freedomotic.com" target="_blank">mauro@freedomotic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
I tried with Raspi2.<br>
Now the package is installed using the option --allow-unauthenticated.<br>
But I have other issues<br>
(RaspberryPi2)ubuntu@localhost:~$ freedomotic.sh.freedomotic<br>
aa-exec: ERROR: profile 'freedomotic_freedomotic.sh_5.6.0' does not exist<br>
----------------------------------------------------------------------------------------------------------<br>
(RaspberryPi2)ubuntu@localhost:~$ sudo aa-status<br>
apparmor module is loaded.<br>
4 profiles are loaded.<br>
4 profiles are in enforce mode.<br>
   /sbin/dhclient<br>
   /usr/lib/NetworkManager/nm-dhcp-client.action<br>
   /usr/lib/NetworkManager/nm-dhcp-helper<br>
   /usr/lib/connman/scripts/dhclient-script<br>
0 profiles are in complain mode.<br>
1 processes have profiles defined.<br>
1 processes are in enforce mode.<br>
   /sbin/dhclient (646)<br>
0 processes are in complain mode.<br>
0 processes are unconfined but have a profile defined.<br>
<br>
----------------------------------------------------------------------------------------------------------<br>
(RaspberryPi2)ubuntu@localhost:~$ cat /apps/bin/freedomotic.sh.freedomotic<br>
#!/bin/sh<br>
# !!!never remove this line!!!<br>
##TARGET=/apps/freedomotic/5.6.0/bin/freedomotic.sh<br>
<br>
set -e<br>
<br>
TMPDIR="/tmp/snaps/freedomotic/5.6.0/tmp"<br>
if [ ! -d "$TMPDIR" ]; then<br>
    mkdir -p -m1777 "$TMPDIR"<br>
fi<br>
export TMPDIR<br>
export TEMPDIR="$TMPDIR"<br>
<br>
# app paths (deprecated)<br>
export SNAPP_APP_PATH="/apps/freedomotic/5.6.0"<br>
export SNAPP_APP_DATA_PATH="/var/lib//apps/freedomotic/5.6.0"<br>
export SNAPP_APP_USER_DATA_PATH="$HOME//apps/freedomotic/5.6.0"<br>
export SNAPP_APP_TMPDIR="$TMPDIR"<br>
export SNAPP_OLD_PWD="$(pwd)"<br>
<br>
# app paths<br>
export SNAP_APP_PATH="/apps/freedomotic/5.6.0"<br>
export SNAP_APP_DATA_PATH="/var/lib//apps/freedomotic/5.6.0"<br>
export SNAP_APP_USER_DATA_PATH="$HOME//apps/freedomotic/5.6.0"<br>
export SNAP_APP_TMPDIR="$TMPDIR"<br>
<br>
# FIXME: this will need to become snappy arch or something<br>
export SNAPPY_APP_ARCH="$(dpkg --print-architecture)"<br>
<br>
if [ ! -d "$SNAP_APP_USER_DATA_PATH" ]; then<br>
   mkdir -p "$SNAP_APP_USER_DATA_PATH"<br>
fi<br>
export HOME="$SNAP_APP_USER_DATA_PATH"<br>
<br>
# export old pwd<br>
export SNAP_OLD_PWD="$(pwd)"<br>
cd /apps/freedomotic/5.6.0<br>
aa-exec -p freedomotic_freedomotic.sh_5.6.0 --<br>
/apps/freedomotic/5.6.0/bin/freedomotic.sh "$@"<br>
<br>
<br>
Please consider that all problems appeared when I added oracle java 7 in a<br>
folder app_root/java/bin and app_root/lib.<br>
O course I changed the bin file to point to embedded java executable.<br>
<br>
The same package without java doesn't have any problem except it can't run<br>
java.<br>
<br>
Any ideas?<br>
<br>
Mauro<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, April 29, 2015 9:26 am, <a href="mailto:mauro@freedomotic.com">mauro@freedomotic.com</a> wrote:<br>
> Hi all,<br>
> I created a package without specifying in package.yaml. So it considers<br>
> "all" as architecture.<br>
> I installed it on Raspi2 without problems.<br>
> Now I added a java jre and tried to install on Udoo board (armhf).<br>
> In this case I received<br>
> "cannot install ..snap Package architectures "all" not compatible<br>
> withsystem architecture "armhf".<br>
><br>
> Is a problem related to java or not? No message about java.<br>
> I found on google a way to force the installation with the option<br>
> --force-architecture. But this is not recognized by snappy.<br>
><br>
><br>
> Thanks<br>
> Mauro<br>
><br>
><br>
> --<br>
> snappy-devel mailing list <a href="mailto:snappy-devel@lists.ubuntu.com">snappy-devel@lists.ubuntu.com</a> Modify settings or<br>
> unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snappy-devel" target="_blank">https://lists.ubuntu.com/mailman/listinfo/snappy-devel</a><br>
><br>
<br>
<br>
--<br>
snappy-devel mailing list<br>
<a href="mailto:snappy-devel@lists.ubuntu.com">snappy-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snappy-devel" target="_blank">https://lists.ubuntu.com/mailman/listinfo/snappy-devel</a><br>
</div></div></blockquote></div><br></div>