Script for Installing Dependencies
Hi everyone,
My name is Keisuke Suzuki and I'm a senior student studying computer science.
I had a problem with installing dependencies using the script from the getting started page. I am using a distribution called Elementary OS which is one of the derived distribution from Ubuntu. When I run the set of commands from the page,
wget -v https://gitlab.com/inkscape/inkscape-ci-docker/raw/master/install_dependenci... -O install_dependencies.sh bash install_dependencies.sh --recommended
the output says,
--2020-03-28 15:49:46-- https://gitlab.com/inkscape/inkscape-ci-docker/raw/master/install_dependenci... Resolving gitlab.com (gitlab.com)... 35.231.145.151, 2606:4700:90:0:f22e:fbec:5bed:a9b9 Connecting to gitlab.com (gitlab.com)|35.231.145.151|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 7654 (7.5K) [text/plain] Saving to: ‘install_dependencies.sh.1’
install_dependencies.sh.1 100%[======================================================================================================>] 7.47K --.-KB/s in 0s
2020-03-28 15:49:47 (286 MB/s) - ‘install_dependencies.sh.1’ saved [7654/7654]
Downloading and installing dependencies. This may take some time. + [[ elementary == \d\e\b\i\a\n ]] + [[ elementary == \u\b\u\n\t\u ]] + [[ elementary == \f\e\d\o\r\a ]] + [[ linux-gnu == \m\s\y\s ]] + [[ elementary == /\e\t\c/\o\s-\r\e\l\e\a\s\e\ \I\D\ \o\f\ \m\y\ \f\a\v\o\u\r\i\t\e\ \l\i\n\u\x\ \d\i\s\t\r\i\b\u\t\i\o\n ]] + echo 'Error: Sorry, we don'''t have instructions for your distribution yet. Please contribute on https://inkscape.org/contribute/report-bugs/ .' Error: Sorry, we don't have instructions for your distribution yet. Please contribute on https://inkscape.org/contribute/report-bugs/ . + exit 1
and the content of my /etc/os-release is:
NAME="elementary OS" VERSION="5.1.2 Hera" ID=elementary ID_LIKE=ubuntu PRETTY_NAME="elementary OS 5.1.2 Hera" LOGO=distributor-logo VERSION_ID="5.1.2" HOME_URL="https://elementary.io/" SUPPORT_URL="https://elementary.io/support" BUG_REPORT_URL="https://github.com/elementary/os/issues/new" PRIVACY_POLICY_URL="https://elementary.io/privacy-policy" VERSION_CODENAME=hera UBUNTU_CODENAME=bionic
I was able to build and run the project by changing the ID to "ubuntu"; however, the script says it supports Ubuntu and derived distributions, and it's not working on a derived distro from Ubuntu. I think it could happen to some distributions that don't have ID values set to the distribution they are derived from.
I am new to Inkscape, and open-source projects in general. I am sorry if I am making a pointless report.
Best regards, Keisuke
Hi Keisuke,
Thanks for this report !
Usually, our bug reports are filed at https://gitlab.com/inkscape/inbox/ (and in this case it would be triaged onto https://gitlab.com/inkscape/inkscape-ci-docker/-/issues )
The behavior you have is indeed a shortcoming of our script, as it could be able to pick up the fact that you have a derivative of ubuntu (The os-release file content is documented at https://www.freedesktop.org/software/systemd/man/os-release.html )
You're encouraged to do any of the following (ideally, all of it ;) ) :
- Open a bug report on gitlab for your problem
- fork the inkscape-ci-docker project
- fix your problem by changing the line checking $ID equalities to put a line checking if either ID equals something, or ID_LIKE contains that (as ID_LIKE can contain several strings)
- Propose a merge request to add the change :)
If you have any problem with those, feel free to ask for more info here or on IRC or on chat.inkscape.org :)
Best,
participants (2)
-
Keisuke Suzuki
-
Marc Jeanmougin