Skip to content
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

Archlinux template Qubes 4.0 cannot satisfy dependencies #3908

Closed
fosslinux opened this issue May 19, 2018 · 17 comments
Closed

Archlinux template Qubes 4.0 cannot satisfy dependencies #3908

fosslinux opened this issue May 19, 2018 · 17 comments
Labels
C: Arch Linux The Arch Linux template C: builder Qubes Builder P: default Priority: default. Default priority for new issues, to be replaced given sufficient information.

Comments

@fosslinux
Copy link

fosslinux commented May 19, 2018

Qubes OS version:

R4.0

Affected component(s):

The Archlinux template build in Qubes 4.0.

Steps to reproduce the behavior:

Exactly same instructions as #3185:
Try to build the archlinux template:

  1. Install and set up the needed prerequisites for building QubesOS
  2. Clone qubes-builder
  3. Copy example-configs/qubes-os-master.conf as builder.conf
  4. Set DISTS_VM to archlinux and add builder-archlinux to COMPONENTS and BUILDER_PLUGINS
  5. Run make get-sources, make qubes-vm, make template

Expected behavior:

The template should successfully build.

Actual behavior:

At the end of make template, I get this error:

  --> Finishing installation of qubes packages...
resolving dependencies...
warning: cannot resolve "xorg-server<1.20.0", a dependency of "qubes-vm-gui"
:: The following package cannot be upgraded due to unresolvable dependencies:
      qubes-vm-gui

:: Do you want to skip the above package for this upgrade? [y/N] error: failed to prepare transaction (could not satisfy dependencies)

:: qubes-vm-gui: requires xorg-server<1.20.0
make[1]: *** [Makefile:59: rootimg-build] Error 1

General notes:

This stems from #3185. There have been some (slightly) similar issues in the past related, but the solutions don't work/don't work on Qubes R4.0.

What I can make from the error is that qubes-vm-gui requires xorg-server under version 1.20.0. The current version on Archlinux repositories is 1.20.0-2. Should the PKGBUILD be edited so it works, or just can't we have this? If 1.20.0 is impossible, how can I get around this error?


Related issues:

#3185

@fosslinux
Copy link
Author

fosslinux commented May 19, 2018

cc @na-- @andrewdavidwong @mannp
Any thoughts?

@andrewdavidwong andrewdavidwong added bug C: builder Qubes Builder C: Arch Linux The Arch Linux template labels May 19, 2018
@andrewdavidwong andrewdavidwong added this to the Release 4.0 updates milestone May 19, 2018
@fosslinux
Copy link
Author

Related: #2585

@marmarek
Copy link
Member

Pull requests fixing this:
QubesOS/qubes-gui-agent-linux#41
QubesOS/qubes-gui-agent-linux#40

@fosslinux
Copy link
Author

Fixed with QubesOS/qubes-gui-agent-linux#42.

@dadigi
Copy link

dadigi commented Mar 22, 2019

arch now updates to xorg-server 1.20.4-1 which breaks again the dependency in qubes-gui-agent-linux/archlinux/PKGBUILD

@zaoqi
Copy link

zaoqi commented Nov 2, 2019

now archlinux template can build without errors

@marmarek marmarek closed this as completed Nov 2, 2019
@ejose19
Copy link

ejose19 commented Dec 10, 2019

@marmarek
I've installed latest qubes-gui-agent-linux (running pacman -Q qubes-vm-gui returns 4.0.27-9) yet I still get the dependency issue when doing pacman -Syu (:: installing xorg-server (1.20.6-1) breaks dependency 'xorg-server<1.20.6' required by qubes-vm-gui) any ideas what I could be missing?

@ejose19
Copy link

ejose19 commented Dec 10, 2019

I see the latest version on https://github.com/QubesOS/qubes-gui-agent-linux is 4.1.5 yet when following the steps from https://www.qubes-os.org/doc/building-archlinux-template/ I get a pkg with 4.0.27. Can you guide me where is a tutorial so I can build latest qubes-vm-gui using only its corresponding repository?

@marmarek
Copy link
Member

I've installed latest qubes-gui-agent-linux (running pacman -Q qubes-vm-gui returns 4.0.27-9) yet I still get the dependency issue when doing pacman -Syu (:: installing xorg-server (1.20.6-1) breaks dependency 'xorg-server<1.20.6' required by qubes-vm-gui) any ideas what I could be missing?

Again the xorg-server was updated in Archlinux, and qubes-gui-agent-linux needs to be checked if it's compatible with the new version (there is input and video xorg driver). It would be much better, if qubes-gui-agent-linux would depend on on a specific xorg-server package version, but on ABI version (like we do for every other distribution). I see xorg-server provides it. Anyone knowing Arch packaging can confirm it can be used in a normal dependency?

see the latest version on https://github.com/QubesOS/qubes-gui-agent-linux is 4.1.5 yet when following the steps from https://www.qubes-os.org/doc/building-archlinux-template/ I get a pkg with 4.0.27

You should look at release4.0 branch for R4.0. 4.1.x packages are for Qubes R4.1 (in development).

@marmarek marmarek reopened this Dec 10, 2019
@ejose19
Copy link

ejose19 commented Dec 10, 2019

@marmarek Thanks for pointing me that, I applied QubesOS/qubes-gui-agent-linux#79 manually to branch 4.0 (since it's the one that uses qubes-builder but that branch doesn't have the patch) and now could install qubes-vm-gui without giving dependency issues.

@zaoqi
Copy link

zaoqi commented Dec 20, 2019

I get this error:

error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> pulseaudio
  -> xorg-server-devel
  -> xorg-util-macros
  -> libxcomposite
  -> libxt
  -> qubes-vm-gui-common
==> ERROR: Could not resolve all dependencies.
make[2]: *** [/home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:121: dist-package] Error 8
make[1]: *** [Makefile.generic:180: packages] Error 1
make: *** [Makefile:226: gui-agent-linux-vm] Error 1

@ejose19
Copy link

ejose19 commented Dec 20, 2019

@zaoqi can you give context on which step you got that error?

@zaoqi
Copy link

zaoqi commented Dec 21, 2019

@ejose19

$ make install-deps && make get-sources && make qubes-vm && make template

ptitdoc pushed a commit to ptitdoc/qubes-gui-agent-linux that referenced this issue Jun 2, 2020
@ptitdoc
Copy link

ptitdoc commented Jun 2, 2020

Hello @marmarek. I followed your proposal from last year (sorry for getting there only now) to update archlinux package based on ABI version instead of xorg-server version.
I'm not sure however if we need to check all the ABI versions for XEXTENSION, XINPUT and XVIDEO. I put all of them as dependency in the commit above.

marmarek pushed a commit to marmarek/qubes-gui-agent-linux that referenced this issue Jun 2, 2020
… server version itself

Following suggestion here: QubesOS/qubes-issues#3908 (comment)
Tracking issue: QubesOS/qubes-issues#3908

(cherry picked from commit 35b0f3c)
@andrewdavidwong andrewdavidwong added the P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. label Jun 4, 2020
@Qiyamah
Copy link

Qiyamah commented Nov 23, 2020

I am getting another failure:
``
qubes/qubes-vm-networking 4.0.58-15
Qubes OS tools allowing to use a Qubes VM as a NetVM/ProxyVM
qubes/qubes-vm-pulseaudio 4.0.31-10
Pulseaudio support for Qubes VM
qubes/qubes-vm-utils 4.0.31-10
Common Linux files for Qubes VM.
qubes/qubes-vm-xen 4.8.5-26
Xen is a virtual machine monitor
--> Installing mandatory qubes packages...
error: target not found: qubes-vm-dependencies
make[1]: *** [Makefile:66: rootimg-build] Error 1

``

It still needs fixing.

@icequbes1
Copy link

@Qiyamah This issue is due to the work in R4.1 that hasn't yet been backported to R4.0.

ref: QubesOS/qubes-meta-packages#27

@unman
Copy link
Member

unman commented May 21, 2021

@andrewdavidwong @fosslinux
As a result of changes merged and updated packages, the Arch template for 4.0 builds correctly with no dependency errors.
Please close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Arch Linux The Arch Linux template C: builder Qubes Builder P: default Priority: default. Default priority for new issues, to be replaced given sufficient information.
Projects
None yet
Development

No branches or pull requests