New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup script in Qubes-builder fails to find dependencies #2910

Closed
anoadragon453 opened this Issue Jul 14, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@anoadragon453

anoadragon453 commented Jul 14, 2017

Qubes OS version (e.g., R3.2):

R3.2


Expected behavior:

  • make install-deps installs all required dependencies.
  • Build continues as normal.

Actual behavior:

make install-deps does install all dependencies but the setup script always fails to find the python-sh package. Build fails with the following:

package python-sh is not installed
wget-1.18-3.fc25.x86_64
ERROR: call 'make install-deps' to install missing dependencies
Makefile:199: recipe for target 'check-depend.rpm' failed
make: *** [check-depend.rpm] Error 1

Steps to reproduce the behavior:

  1. Clone qubes-builder from master.
  2. Copy default config for R3.2 to builder.conf
  3. Run ./setup and see as it fails to find python-sh, attempts to install, but it's already installed.
  4. Hack around until you can get the build started.
  5. Watch as it yet again fails about an hour in stating that python-sh is not installed.

General notes:

I believe this may be an issue with Fedora's repos. It seems the setup script uses the following command to check if python-sh is installed:

rpm -q python-sh

Running this on my system I get:

[user@personal qubes-builder]$ rpm -q python-sh
package python-sh is not installed
[user@personal qubes-builder]$ 

It can't find it even though it is installed, however:

[user@personal qubes-builder]$ rpm -q python2-sh
python2-sh-1.12.14-1.fc25.noarch
[user@personal qubes-builder]$

It can find the python2-sh package, which is what is installed when one requests python-sh.

This is running Fedora 25, so likely a problem with the latest version switching to python3 by default.

Oddly enough just changing python-sh to python2-sh in the script still reports that it's not installed...

Building on Fedora 25 (maybe only for R3.2?) seems to thus be broken for all templates.

@paraschetal

This comment has been minimized.

Show comment
Hide comment
@paraschetal

paraschetal Jul 22, 2017

Changing python-sh to python2-sh in the Makefile worked for me on Fedora 25.

Changing python-sh to python2-sh in the Makefile worked for me on Fedora 25.

@paraschetal

This comment has been minimized.

Show comment
Hide comment
@paraschetal

paraschetal Aug 7, 2017

@andrewdavidwong this issue should be fixed now

@andrewdavidwong this issue should be fixed now

@anoadragon453

This comment has been minimized.

Show comment
Hide comment
@anoadragon453

anoadragon453 Aug 7, 2017

Yes it seems like it, thanks!

Yes it seems like it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment