Go-flutter: "hover build linux-snap" failing on MacOS

Created on 19 Oct 2019  Â·  30Comments  Â·  Source: go-flutter-desktop/go-flutter

to Reproduce:

https://github.com/winwisely99/enrollment-mod

make flu-desk-pack

It tries to build all 3 linux types.
debian works ( hence i closed this issue: https://github.com/go-flutter-desktop/go-flutter/issues/284)
snap fails...

```log d /Users/apple/workspace/go/src/github.com/winwisely99/enrollment-mod/enrollment && hover build linux-snap hover: Using engine from cache hover: Cleaning the build directory hover: âš  The go-flutter project tries to stay compatible with the beta channel of Flutter. hover: âš  It's advised to use the beta channel:flutter channel beta`
hover: Bundling flutter app
hover: Because darwin is not able to compile for linux out of the box, a cross-compiling container is used
Sending build context to Docker daemon 2.048kB
Step 1/2 : FROM dockercore/golang-cross
---> e9c59db2dea3
Step 2/2 : RUN apt-get update && apt-get install libgl1-mesa-dev xorg-dev -y
---> Using cache
---> 53dfbc3de38e
Successfully built 53dfbc3de38e
Successfully tagged hover-build-cc:latest
hover: Cross-Compiling 'go-flutter' and plugins using docker
hover: Successfully cross-compiled for linux
hover: Packaging snap in /var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/hover-build-enrollment-linux-snap000263251
Sending build context to Docker daemon 5.632kB
Step 1/1 : FROM snapcore/snapcraft
latest: Pulling from snapcore/snapcraft
16c48d79e9cc: Pull complete
3c654ad3ed7d: Pull complete
6276f4f9c29d: Pull complete
a4bd43ad48ce: Pull complete
b05a6d825956: Pull complete
113e1c5c1910: Pull complete
1264ad5fe4e7: Pull complete
c4733adb6584: Pull complete
Digest: sha256:c35c269b969a85a361b3c7bb7fb75edd68f130fac07de14ee7d5258dad8a2c6d
Status: Downloaded newer image for snapcore/snapcraft:latest
---> 3f1fc68a4f8a
Successfully built 3f1fc68a4f8a
Successfully tagged hover-build-packaging-linux-snap:latest
The following snaps are required but not installed as snapcraft is running inside docker or podman container: core18.
Please ensure the environment is properly setup before continuing.
Ignore this message if the appropriate measures have already been taken
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [973 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [587 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1350 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [991 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.2 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6276 B]
Get:17 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B]
Get:18 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8807 B]
Fetched 16.1 MB in 0s (0 B/s)
Get:1 libxdmcp6_1.1.2-1.1_amd64.deb [11.0 kB]
Fetched 11.0 kB in 0s (0 B/s)
Get:1 libdrm-nouveau2_2.4.91-2~16.04.1_amd64.deb [16.3 kB]
Fetched 16.3 kB in 0s (0 B/s)
Get:1 libpciaccess0_0.13.4-1_amd64.deb [18.1 kB]
Fetched 18.1 kB in 0s (0 B/s)
Get:1 libxcb-present0_1.11.1-1ubuntu1_amd64.deb [5218 B]
Fetched 5218 B in 0s (0 B/s)
Get:1 libglapi-mesa_18.0.5-0ubuntu0~16.04.1_amd64.deb [23.4 kB]
Fetched 23.4 kB in 0s (0 B/s)
Get:1 libxrender1_0.9.9-0ubuntu1_amd64.deb [18.5 kB]
Fetched 18.5 kB in 0s (0 B/s)
Get:1 libelf1_0.165-3ubuntu1.2_amd64.deb [43.5 kB]
Fetched 43.5 kB in 0s (0 B/s)
Get:1 libbsd0_0.8.2-1_amd64.deb [41.7 kB]
Fetched 41.7 kB in 0s (0 B/s)
Get:1 zlib1g_1.2.8.dfsg-2ubuntu4.1_amd64.deb [51.2 kB]
Fetched 51.2 kB in 0s (0 B/s)
Get:1 libxcursor1_1.1.14-1ubuntu0.16.04.2_amd64.deb [19.9 kB]
Fetched 19.9 kB in 0s (0 B/s)
Get:1 gcc-6-base_6.0.1-0ubuntu1_amd64.deb [14.3 kB]
Fetched 14.3 kB in 0s (0 B/s)
Get:1 libx11-6_1.6.3-1ubuntu2.1_amd64.deb [570 kB]
Fetched 570 kB in 0s (0 B/s)
Get:1 libexpat1_2.1.0-7ubuntu0.16.04.5_amd64.deb [71.5 kB]
Fetched 71.5 kB in 0s (0 B/s)
Get:1 libxshmfence1_1.2-1_amd64.deb [5042 B]
Fetched 5042 B in 0s (0 B/s)
Get:1 libgcc1_6.0.1-0ubuntu1_amd64.deb [38.5 kB]
Fetched 38.5 kB in 0s (0 B/s)
Get:1 libdrm-amdgpu1_2.4.91-2~16.04.1_amd64.deb [18.9 kB]
Fetched 18.9 kB in 0s (0 B/s)
Get:1 libllvm6.0_6.0-1ubuntu2~16.04.1_amd64.deb [14.3 MB]
Fetched 14.3 MB in 0s (0 B/s)
Get:1 libxau6_1.0.8-1_amd64.deb [8376 B]
Fetched 8376 B in 0s (0 B/s)
Get:1 libtinfo5_6.0+20160213-1ubuntu1_amd64.deb [76.8 kB]
Fetched 76.8 kB in 0s (0 B/s)
Get:1 libxcb1_1.11.1-1ubuntu1_amd64.deb [40.0 kB]
Fetched 40.0 kB in 0s (0 B/s)
Get:1 libxinerama1_1.1.3-1_amd64.deb [7908 B]
Fetched 7908 B in 0s (0 B/s)
Get:1 libxrandr2_1.5.0-1_amd64.deb [17.6 kB]
Fetched 17.6 kB in 0s (0 B/s)
Get:1 libdrm2_2.4.91-2~16.04.1_amd64.deb [30.8 kB]
Fetched 30.8 kB in 0s (0 B/s)
Get:1 libglu1-mesa_9.0.0-2.1_amd64.deb [168 kB]
Fetched 168 kB in 0s (0 B/s)
Get:1 libxfixes3_5.0.1-2_amd64.deb [11.1 kB]
Fetched 11.1 kB in 0s (0 B/s)
Get:1 libx11-data_1.6.3-1ubuntu2.1_all.deb [113 kB]
Fetched 113 kB in 0s (0 B/s)
Get:1 libgl1-mesa-dri_18.0.5-0ubuntu0~16.04.1_amd64.deb [6080 kB]
Fetched 6080 kB in 0s (0 B/s)
Get:1 libxxf86vm1_1.1.4-1_amd64.deb [10.6 kB]
Fetched 10.6 kB in 0s (0 B/s)
Get:1 libxdamage1_1.1.4-2_amd64.deb [6946 B]
Fetched 6946 B in 0s (0 B/s)
Get:1 libgl1-mesa-glx_18.0.5-0ubuntu0~16.04.1_amd64.deb [132 kB]
Fetched 132 kB in 0s (0 B/s)
Get:1 libedit2_3.1-20150325-1ubuntu2_amd64.deb [76.5 kB]
Fetched 76.5 kB in 0s (0 B/s)
Get:1 libdrm-intel1_2.4.91-2~16.04.1_amd64.deb [59.9 kB]
Fetched 59.9 kB in 0s (0 B/s)
Get:1 libffi6_3.2.1-4_amd64.deb [17.8 kB]
Fetched 17.8 kB in 0s (0 B/s)
Get:1 libdrm-radeon1_2.4.91-2~16.04.1_amd64.deb [21.5 kB]
Fetched 21.5 kB in 0s (0 B/s)
Get:1 libstdc++6_5.4.0-6ubuntu1~16.04.11_amd64.deb [393 kB]
Fetched 393 kB in 0s (0 B/s)
Get:1 libxcb-glx0_1.11.1-1ubuntu1_amd64.deb [20.9 kB]
Fetched 20.9 kB in 0s (0 B/s)
Get:1 libxcb-dri2-0_1.11.1-1ubuntu1_amd64.deb [6882 B]
Fetched 6882 B in 0s (0 B/s)
Get:1 libsensors4_3.4.0-2_amd64.deb [28.4 kB]
Fetched 28.4 kB in 0s (0 B/s)
Get:1 libxcb-dri3-0_1.11.1-1ubuntu1_amd64.deb [5218 B]
Fetched 5218 B in 0s (0 B/s)
Get:1 libx11-xcb1_1.6.3-1ubuntu2.1_amd64.deb [9044 B]
Fetched 9044 B in 0s (0 B/s)
Get:1 libxcb-sync1_1.11.1-1ubuntu1_amd64.deb [8324 B]
Fetched 8324 B in 0s (0 B/s)
Get:1 libxext6_1.3.3-1_amd64.deb [29.4 kB]
Fetched 29.4 kB in 0s (0 B/s)
Get:1 libdrm-common_2.4.91-2~16.04.1_all.deb [4764 B]
Fetched 4764 B in 0s (0 B/s)
Pulling app
Pulling assets
Pulling desktop
Building app
Building assets
Building desktop
Staging app
Sorry, an error occurred in Snapcraft:
[Errno 17] File exists: 'libbsd.so.0.8.2' -> '/app/stage/lib/x86_64-linux-gnu/libbsd.so.0'
Traceback (most recent call last):
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 109, in link_or_copy
link(source, destination, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 143, in link
os.link(source_path, destination, follow_symlinks=False)
OSError: [Errno 5] Input/output error: '/app/parts/app/install/lib/x86_64-linux-gnu/libbsd.so.0' -> '/app/stage/lib/x86_64-linux-gnu/libbsd.so.0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/snap/snapcraft/current/bin/snapcraft", line 11, in
load_entry_point('snapcraft==3.8', 'console_scripts', 'snapcraft')()
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 764, in __call__
return self.main(args, kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 1114, in invoke
return Command.invoke(self, ctx)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, *
ctx.params)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 555, in invoke
return callback(args, *kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), args, *kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/_runner.py", line 103, in run
snap_command.invoke(ctx)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/_command.py", line 87, in invoke
return super().invoke(ctx)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, *ctx.params)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 555, in invoke
return callback(
args, *kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 261, in snap
_execute(steps.PRIME, parts=[], pack_project=True, output=output, *
kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 66, in _execute
lifecycle.execute(step, project_config, parts)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 94, in execute
executor.run(step, part_names)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 148, in run
self._handle_step(part_names, part, step, current_step, cli_config)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 162, in _handle_step
getattr(self, "_run_{}".format(current_step.name))(part)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 226, in _run_stage
self._run_step(step=steps.STAGE, part=part, progress="Staging")
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 281, in _run_step
getattr(part, step.name)()
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 740, in stage
self._do_runner_step(steps.STAGE)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 242, in _do_runner_step
return getattr(self._runner, "{}".format(step.name))()
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 84, in stage
"override-stage", self._override_stage_scriptlet, self._stagedir
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 137, in _run_scriptlet
scriptlet_name, function_call.strip()
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 193, in _handle_builtin_function
function(
function_args)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 762, in _do_stage
fixup_func=fixup_func,
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 1125, in _migrate_files
file_utils.link_or_copy(src, dst, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 117, in link_or_copy
copy(source, destination, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 166, in copy
shutil.copy2(source, destination, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/usr/lib/python3.5/shutil.py", line 251, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/usr/lib/python3.5/shutil.py", line 112, in copyfile
os.symlink(os.readlink(src), dst)
FileExistsError: [Errno 17] File exists: 'libbsd.so.0.8.2' -> '/app/stage/lib/x86_64-linux-gnu/libbsd.so.0'
You can find the traceback in file '/tmp/tmpf46sgiyb/trace.txt'.
hover: Docker run failed: exit status 1
make: * [flu-desk-pack] Error 1
````

MacOS experimental bug hover wontfix

All 30 comments

I can't reproduce:

hover: Using engine from cache
hover: Cleaning the build directory
hover: Bundling flutter app
hover: Compiling 'go-flutter' and plugins
# github.com/go-gl/glfw/v3.2/glfw
In file included from ../../../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/c_glfw_linbsd.go:24:
../../../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/linux_joystick.c: In function ‘_glfwInitJoysticksLinux’:
../../../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/linux_joystick.c:224:42: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 9 [-Wformat-truncation=]
             snprintf(path, sizeof(path), "%s/%s", dirname, entry->d_name);
                                          ^~~~~~~
In file included from /usr/include/stdio.h:867,
                 from /usr/include/X11/Xcursor/Xcursor.h:26,
                 from ../../../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/x11_platform.h:39,
                 from ../../../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/internal.h:169,
                 from ../../../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/x11_init.c:28,
                 from ../../../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/c_glfw_linbsd.go:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 12 and 267 bytes into a destination of size 20
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hover: Successfully compiled
hover: Packaging snap in /tmp/hover-build-enrollment-linux-snap229421946
Sending build context to Docker daemon  5.632kB
Step 1/1 : FROM snapcore/snapcraft
latest: Pulling from snapcore/snapcraft
16c48d79e9cc: Pull complete 
3c654ad3ed7d: Pull complete 
6276f4f9c29d: Pull complete 
a4bd43ad48ce: Pull complete 
b05a6d825956: Pull complete 
113e1c5c1910: Pull complete 
1264ad5fe4e7: Pull complete 
c4733adb6584: Pull complete 
Digest: sha256:c35c269b969a85a361b3c7bb7fb75edd68f130fac07de14ee7d5258dad8a2c6d
Status: Downloaded newer image for snapcore/snapcraft:latest
 ---> 3f1fc68a4f8a
Successfully built 3f1fc68a4f8a
Successfully tagged hover-build-packaging-linux-snap:latest
The following snaps are required but not installed as snapcraft is running inside docker or podman container: core18.
Please ensure the environment is properly setup before continuing.
Ignore this message if the appropriate measures have already been taken
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [973 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1350 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [991 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.2 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B]
Get:15 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8807 B]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:17 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [587 kB]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6276 B]
Fetched 16.1 MB in 6s (2545 kB/s)
Get:1 libxdmcp6_1.1.2-1.1_amd64.deb [11.0 kB]
Fetched 11.0 kB in 0s (0 B/s)
Get:1 libdrm-nouveau2_2.4.91-2~16.04.1_amd64.deb [16.3 kB]
Fetched 16.3 kB in 0s (0 B/s)
Get:1 libpciaccess0_0.13.4-1_amd64.deb [18.1 kB]
Fetched 18.1 kB in 0s (0 B/s)
Get:1 libxcb-present0_1.11.1-1ubuntu1_amd64.deb [5218 B]
Fetched 5218 B in 0s (0 B/s)
Get:1 libglapi-mesa_18.0.5-0ubuntu0~16.04.1_amd64.deb [23.4 kB]
Fetched 23.4 kB in 0s (0 B/s)
Get:1 libxrender1_0.9.9-0ubuntu1_amd64.deb [18.5 kB]
Fetched 18.5 kB in 0s (0 B/s)
Get:1 libelf1_0.165-3ubuntu1.2_amd64.deb [43.5 kB]
Fetched 43.5 kB in 0s (0 B/s)
Get:1 libbsd0_0.8.2-1_amd64.deb [41.7 kB]
Fetched 41.7 kB in 0s (0 B/s)
Get:1 zlib1g_1.2.8.dfsg-2ubuntu4.1_amd64.deb [51.2 kB]
Fetched 51.2 kB in 0s (0 B/s)
Get:1 libxcursor1_1.1.14-1ubuntu0.16.04.2_amd64.deb [19.9 kB]
Fetched 19.9 kB in 0s (0 B/s)
Get:1 gcc-6-base_6.0.1-0ubuntu1_amd64.deb [14.3 kB]
Fetched 14.3 kB in 0s (0 B/s)
Get:1 libx11-6_1.6.3-1ubuntu2.1_amd64.deb [570 kB]
Fetched 570 kB in 0s (0 B/s)
Get:1 libexpat1_2.1.0-7ubuntu0.16.04.5_amd64.deb [71.5 kB]
Fetched 71.5 kB in 0s (0 B/s)
Get:1 libxshmfence1_1.2-1_amd64.deb [5042 B]
Fetched 5042 B in 0s (0 B/s)
Get:1 libgcc1_6.0.1-0ubuntu1_amd64.deb [38.5 kB]
Fetched 38.5 kB in 0s (0 B/s)
Get:1 libdrm-amdgpu1_2.4.91-2~16.04.1_amd64.deb [18.9 kB]
Fetched 18.9 kB in 0s (0 B/s)
Get:1 libllvm6.0_6.0-1ubuntu2~16.04.1_amd64.deb [14.3 MB]
Fetched 14.3 MB in 0s (0 B/s)
Get:1 libxau6_1.0.8-1_amd64.deb [8376 B]
Fetched 8376 B in 0s (0 B/s)
Get:1 libtinfo5_6.0+20160213-1ubuntu1_amd64.deb [76.8 kB]
Fetched 76.8 kB in 0s (0 B/s)
Get:1 libxcb1_1.11.1-1ubuntu1_amd64.deb [40.0 kB]
Fetched 40.0 kB in 0s (0 B/s)
Get:1 libxinerama1_1.1.3-1_amd64.deb [7908 B]
Fetched 7908 B in 0s (0 B/s)
Get:1 libxrandr2_1.5.0-1_amd64.deb [17.6 kB]
Fetched 17.6 kB in 0s (0 B/s)
Get:1 libdrm2_2.4.91-2~16.04.1_amd64.deb [30.8 kB]
Fetched 30.8 kB in 0s (0 B/s)
Get:1 libglu1-mesa_9.0.0-2.1_amd64.deb [168 kB]
Fetched 168 kB in 0s (0 B/s)
Get:1 libxfixes3_5.0.1-2_amd64.deb [11.1 kB]
Fetched 11.1 kB in 0s (0 B/s)
Get:1 libx11-data_1.6.3-1ubuntu2.1_all.deb [113 kB]
Fetched 113 kB in 0s (0 B/s)
Get:1 libgl1-mesa-dri_18.0.5-0ubuntu0~16.04.1_amd64.deb [6080 kB]
Fetched 6080 kB in 0s (0 B/s)
Get:1 libxxf86vm1_1.1.4-1_amd64.deb [10.6 kB]
Fetched 10.6 kB in 0s (0 B/s)
Get:1 libxdamage1_1.1.4-2_amd64.deb [6946 B]
Fetched 6946 B in 0s (0 B/s)
Get:1 libgl1-mesa-glx_18.0.5-0ubuntu0~16.04.1_amd64.deb [132 kB]
Fetched 132 kB in 0s (0 B/s)
Get:1 libedit2_3.1-20150325-1ubuntu2_amd64.deb [76.5 kB]
Fetched 76.5 kB in 0s (0 B/s)
Get:1 libdrm-intel1_2.4.91-2~16.04.1_amd64.deb [59.9 kB]
Fetched 59.9 kB in 0s (0 B/s)
Get:1 libffi6_3.2.1-4_amd64.deb [17.8 kB]
Fetched 17.8 kB in 0s (0 B/s)
Get:1 libdrm-radeon1_2.4.91-2~16.04.1_amd64.deb [21.5 kB]
Fetched 21.5 kB in 0s (0 B/s)
Get:1 libstdc++6_5.4.0-6ubuntu1~16.04.11_amd64.deb [393 kB]
Fetched 393 kB in 0s (0 B/s)
Get:1 libxcb-glx0_1.11.1-1ubuntu1_amd64.deb [20.9 kB]
Fetched 20.9 kB in 0s (0 B/s)
Get:1 libxcb-dri2-0_1.11.1-1ubuntu1_amd64.deb [6882 B]
Fetched 6882 B in 0s (0 B/s)
Get:1 libsensors4_3.4.0-2_amd64.deb [28.4 kB]
Fetched 28.4 kB in 0s (0 B/s)
Get:1 libxcb-dri3-0_1.11.1-1ubuntu1_amd64.deb [5218 B]
Fetched 5218 B in 0s (0 B/s)
Get:1 libx11-xcb1_1.6.3-1ubuntu2.1_amd64.deb [9044 B]
Fetched 9044 B in 0s (0 B/s)
Get:1 libxcb-sync1_1.11.1-1ubuntu1_amd64.deb [8324 B]
Fetched 8324 B in 0s (0 B/s)
Get:1 libxext6_1.3.3-1_amd64.deb [29.4 kB]
Fetched 29.4 kB in 0s (0 B/s)
Get:1 libdrm-common_2.4.91-2~16.04.1_all.deb [4764 B]
Fetched 4764 B in 0s (0 B/s)
Pulling app 
Pulling assets 
Pulling desktop 
Building app 
Building assets 
Building desktop 
Staging app 
Staging assets 
Staging desktop 
Priming app 
The 'app' part is missing libraries that are not included in the snap or base. They can be satisfied by adding the following entries to the existing stage-packages for this part:
- libc6
Priming assets 
Priming desktop 
Snapping 'enrollment' ...

Snapped enrollment_1.0.0+1_amd64.snap
hover: Successfully packaged snap

I cleaned all docker containers etc.

Even when using only containers for everything I can't reproduce :(

@winwisely99 Can you only run hover build linux-snap ? Without the Makefile stuff

This issue is related to the snapcraft docker container running on darwin.

Might be the cause:
-> https://forum.snapcraft.io/t/cant-build-snaps-inside-docker-container/9714/3

There is an issue with linking when mounting your hfs+ filesystem inside a container which is what I think is what you are experimenting. If you do the clone while inside a docker shell, this might just work.

@jld3103 maybe the use: docker pull snapcore/snapcraft:stable instead of latest can fix this issue?

I can't test that so @winwisely99 has to test it.
@winwisely99 do you know what you have to do to change the base docker image for snapcraft packaging?

Can you write it down step by step and i will do it and feedback how it goes.

You have to change this line FROM snapcore/snapcraft in go/packaging/linux-snap/Dockerfile to FROM snapcore/snapcraft:stable and the try again

ok
trying now

Ok i changed it to use "snapcore/snapcraft:stable"

got the same error

Can you share the content of the traceback file?

ok
where do i get it from ?

The file path is at the end of your log

IMO this isn't a hover issue, please consider creating an issue on the snap's issue tracker.

Tagged as wontfix, (which doesn't mean I'm not open to discussions/fix-proposition)

trace:

````log
root@c379f3f4e639:/app# cat /tmp/tmpzolnnkgs/trace.txt
Traceback (most recent call last):
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 109, in link_or_copy
link(source, destination, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 143, in link
os.link(source_path, destination, follow_symlinks=False)
OSError: [Errno 5] Input/output error: '/app/parts/app/install/lib/x86_64-linux-gnu/libbsd.so.0' -> '/app/stage/lib/x86_64-linux-gnu/libbsd.so.0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/snap/snapcraft/current/bin/snapcraft", line 11, in
load_entry_point('snapcraft==3.8', 'console_scripts', 'snapcraft')()
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 764, in __call__
return self.main(args, kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 1114, in invoke
return Command.invoke(self, ctx)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, *
ctx.params)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 555, in invoke
return callback(args, *kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), args, *kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/_runner.py", line 103, in run
snap_command.invoke(ctx)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/_command.py", line 87, in invoke
return super().invoke(ctx)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, *ctx.params)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 555, in invoke
return callback(
args, *kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 261, in snap
_execute(steps.PRIME, parts=[], pack_project=True, output=output, *
kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 66, in _execute
lifecycle.execute(step, project_config, parts)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 94, in execute
executor.run(step, part_names)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 148, in run
self._handle_step(part_names, part, step, current_step, cli_config)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 162, in _handle_step
getattr(self, "_run_{}".format(current_step.name))(part)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 226, in _run_stage
self._run_step(step=steps.STAGE, part=part, progress="Staging")
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 281, in _run_step
getattr(part, step.name)()
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 740, in stage
self._do_runner_step(steps.STAGE)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 242, in _do_runner_step
return getattr(self._runner, "{}".format(step.name))()
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 84, in stage
"override-stage", self._override_stage_scriptlet, self._stagedir
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 137, in _run_scriptlet
scriptlet_name, function_call.strip()
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 193, in _handle_builtin_function
function(
function_args)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 762, in _do_stage
fixup_func=fixup_func,
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 1125, in _migrate_files
file_utils.link_or_copy(src, dst, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 117, in link_or_copy
copy(source, destination, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 166, in copy
shutil.copy2(source, destination, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/usr/lib/python3.5/shutil.py", line 251, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/usr/lib/python3.5/shutil.py", line 112, in copyfile
os.symlink(os.readlink(src), dst)
FileExistsError: [Errno 17] File exists: 'libbsd.so.0.8.2' -> '/app/stage/lib/x86_64-linux-gnu/libbsd.so.0'
````

As @Drakirus said the error has nothing to do with hover. So please move the issue to snapcraft

yep wil do...

FWIW:
Reading at the snapcraft traceback, here is the run down:

This line raises an exception.
Then in the catch, this function gets called.
Finally during the exception handle, another exception occurs at this line.

This will help with raising an issue with them.
Raised with them here: https://bugs.launchpad.net/snapcraft/+bug/1849092

For draggable_borderless:
It does not work to when i do: "hover build linux-snap"
The other linux packaging does work.

And it's the same FileExistsError: [Errno 17] File exists: 'libbsd.so.0.8.2' -> '/app/stage/lib/x86_64-linux-gnu/libbsd.so.0' error?

Can you share the content of /var/folders/wp/XXXXXXXX/YY/hover-build-enrollment-linux-snapzzzz directory (as a zip). (I only want the draggable_borderless example!)

The path is printed on the log when running hover build linux-snap i.e.:

hover: Packaging snap in /var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/hover-build-enrollment-linux-snap000263251

Thanks for sharing (and taking time to upload this big blob).
I ran the following command on linux, and it worked.

$ cd dockertemp/T/hover-build-draggable_borderless-linux-snap875683786
$ docker build . -t hover-snap-manual 
$  docker run -w /app -v $(pwd):/app hover-snap-manual snapcraft
# produced draggableborderless_1.0.0+1_amd64.snap

I also deleted the lib dir (the one that produced your error) and it worked.

$ cd dockertemp/T/hover-build-draggable_borderless-linux-snap875683786
$ rm -rf parts/app/install/lib/x86_64-linux-gnu/lib
$ # docker build . -t hover-snap-manual  # the same as the one above, not going to run it twice 
$ docker run -w /app -v $(pwd):/app hover-snap-manual snapcraft 
# produced draggableborderless_1.0.0+1_amd64.snap

I cannot assert that the second snap file is working, but if want a workaround, you can try the second one.

As I can build the snap file on linux, this issue is related to docker snapcraft and MacOS. (not really hover).
Packaging is very new, as long as you have support for appimage, I wouldn't care.

ok makes sense and thanks for showing the commands from linux to help us debug things too.

I should get CI setup so that it does these hover builds on a linux machine with docker. At least for now. Might be able to use the new Github actions or another way. I need to work on that for the team here.

lets close this ?

ok makes sense and thanks for showing the commands from linux to help us debug things too.

Those commends can be executed on MacOS.

This issue can be closed, we don't plan to work on it and it leaves the tracker clean.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pushqrdx picture pushqrdx  Â·  4Comments

qianniancn picture qianniancn  Â·  7Comments

monkeyWie picture monkeyWie  Â·  7Comments

MathiasDeWeerdt picture MathiasDeWeerdt  Â·  4Comments

bashery picture bashery  Â·  3Comments