xet7
January 11, 2020, 11:25pm
1
https://launchpadlibrarian.net/460192406/buildlog_snap_ubuntu_xenial_amd64_wekan-devel_BUILDING.txt.gz
name: wekan
version: 0
version-script: git describe --tags | cut -c 2-
summary: The open-source kanban
description: |
Wekan is an open-source and collaborative kanban board application.
Whether you’re maintaining a personal todo list, planning your holidays with some friends, or working in a team on your next revolutionary idea, Kanban boards are an unbeatable tool to keep your things organized. They give you a visual overview of the current state of your project, and make you productive by allowing you to focus on the few items that matter the most.
Depending on target environment, some configuration settings might need to be adjusted.
For full list of configuration options call:
$ wekan.help
confinement: strict
grade: stable
architectures:
- amd64
plugs:
mongodb-plug:
This file has been truncated. show original
ogra
January 12, 2020, 11:51am
2
well, your error is:
IsADirectoryError: [Errno 21] Is a directory: '/build/wekan/stage/bin'
does that directory exists if you do a local build ?
xet7
January 12, 2020, 2:39pm
3
Yes it exists.
When building locally, error is:
Staging caddy
Staging helpers
Staging mongodb
Sorry, an error occurred in Snapcraft:
[Errno 21] Is a directory: '/home/wekan/repos/wekan/stage/bin'
We would appreciate it if you anonymously reported this issue.
No other data than the traceback and the version of snapcraft in use will be sent.
Would you like to send this error data? (Yes/No/Always/View) [no]:
And there is this directory:
root@xenial:/home/wekan/repos/wekan# ls stage/bin
caddy mongodb-backup wekan-control
caddy-control mongodb-control wekan-help
config mongodb-restore wekan-read-settings
I did add this to snapcraft.yaml to make sure that directory exists:
mkdir -p stage/bin
rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules rm -rf .build echo "Installing meteor" curl https://install.meteor.com/ -o install_meteor.sh chmod +x install_meteor.sh sh install_meteor.sh rm install_meteor.sh rm -rf .build chmod u+w *.json npm install meteor build .build --directory --allow-superuser # Remove legacy webbroser bundle, so that Wekan works also at Android Firefox, iOS Safari, etc. rm -rf .build/bundle/programs/web.browser.legacy # Change to directory .build/bundle/programs/server cd .build/bundle/programs/server chmod u+w *.json npm install cd ../../../.. # Cleanup cd .build/bundle find . -type d -name '*-garbage*' | xargs rm -rf
But I still get the same error. How can I fix it ?
ogra
January 12, 2020, 3:48pm
4
well, you did put it into the override-build statement, but at that point you are in the <tree>/parts/wekan/build
directory so your mkdir creates parts/wekan/build/stage/bin … what you want instead is to have it created in the parts/wekan/install dir that later gets copied into the stage dir like below:
mkdir -p $SNAPCRFT_PART_INSTALL/bin
xet7
January 12, 2020, 10:12pm
5
@ogra
Where in snapcraft.yaml I should add it? I still get the same error.
ogra
January 13, 2020, 10:46am
6
you should replace the other mkdir with it …
xet7
January 14, 2020, 12:04pm
7
Can you add complete snapcraft.yaml how I would fix this, please?
I have been trying to fix Snap build for 5 days.
The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at ht...
I removed extra comment lines from snapcraft.yaml .
With this, I get errors that directory exists:
mkdir -p $SNAPCRFT_PART_INSTALL/bin
And if I instead try to delete that directory, I get error cp not found
rm -rf $SNAPCRFT_PART_INSTALL/bin
https://launchpad.net/~wekan-team/+snap/wekan-devel/+build/795555/+files/buildlog_snap_ubuntu_xenial_amd64_wekan-devel_BUILDING.txt.gz