GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — hold fixes by Duncaen · Pull Request #393 · void-linux/xbps

Conversation

@Duncaen

@Duncaen Duncaen commented Mar 19, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

This feels more like a workaround, not sure if I get it right.
At least all tests, except one that to me doesn't make a lot of sense pass.
The failing test expects the install to work, but now the install will fail.

Here is the failing xbps-install from the now failing test:

[DEBUG] XBPS: 0.60 API: 20200423 GIT: 46758bf7
[DEBUG] Processing configuration directory: /tmp/kyua.Jp45ok/2/work/some_repo/root/empty.conf
[DEBUG] Processing system configuration directory: /tmp/kyua.Jp45ok/2/work/some_repo/root/usr/local/share/xbps.d
[DEBUG] rootdir=/tmp/kyua.Jp45ok/2/work/some_repo/root
[DEBUG] metadir=/tmp/kyua.Jp45ok/2/work/some_repo/root/var/db/xbps
[DEBUG] cachedir=/tmp/kyua.Jp45ok/2/work/some_repo/root/var/cache/xbps
[DEBUG] confdir=/tmp/kyua.Jp45ok/2/work/some_repo/root/empty.conf
[DEBUG] sysconfdir=/tmp/kyua.Jp45ok/2/work/some_repo/root/usr/local/share/xbps.d
[DEBUG] syslog=true
[DEBUG] bestmatching=false
[DEBUG] keepconf=false
[DEBUG] Architecture: x86_64
[DEBUG] Target Architecture: (null)
[DEBUG] Repository[0]=/tmp/kyua.Jp45ok/2/work/some_repo
[DEBUG] [pkgdb] added vpkg pkgdep-21_1 for pkgheld
[DEBUG] [pkgdb] initialized ok.
[DEBUG] [rpool] checking `/tmp/kyua.Jp45ok/2/work/some_repo' at index 0
[DEBUG] [repo] `/tmp/kyua.Jp45ok/2/work/some_repo/x86_64-stagedata' open stagedata No such file or directory
[DEBUG] [rpool] `/tmp/kyua.Jp45ok/2/work/some_repo' registered.
[DEBUG] xbps_repo_get_pkg: found pkginst-1.0_1
[DEBUG] [trans] `pkginst-1.0_1' stored (/tmp/kyua.Jp45ok/2/work/some_repo)
[DEBUG] xbps_transaction_install_pkg: trans_find_pkg pkginst: 0
[DEBUG] xbps_transaction_prepare: processing deps
[DEBUG] Finding required dependencies for 'pkginst-1.0_1':
[DEBUG] pkginst-1.0_1: requires dependency 'pkgdep-22_1': [DEBUG] vpkg_user_conf: vpkg_conf pkgdep-21_1 pkg pkgheld vpkgname pkgdep
[DEBUG] vpkg_user_conf: vpkg_conf pkgdep-21_1 pkg pkgheld vpkgname pkgdep
not installed `pkgheld-1.17.4_2 (vpkg)' on hold state! ignoring package.
[DEBUG] `pkgdep-22_1' added into the missing deps array.
[DEBUG] xbps_transaction_prepare: checking on hold pkgs
[DEBUG] xbps_transaction_prepare: checking replaces
[DEBUG] xbps_transaction_prepare: checking revdeps
MISSING: pkgdep-22_1
Transaction aborted due to unresolved dependencies.
[DEBUG] xbps_pkgdb_unlock: pkgdb_fd 3
[DEBUG] [pkgdb] released ok.
libxbps/shell/update_hold_test:update_pkg_with_held_dep  ->  expected_failure: this test case makes no sense: 19 != 0 (19 != 0)
kyua: E: No previous results file found for test suite result.db.

And here is the output prior to breaking the test:

[DEBUG] XBPS: 0.60 API: 20200423 GIT: 46758bf7
[DEBUG] Processing configuration directory: /tmp/kyua.U9waip/2/work/some_repo/root/empty.conf
[DEBUG] Processing system configuration directory: /tmp/kyua.U9waip/2/work/some_repo/root/usr/local/share/xbps.d
[DEBUG] rootdir=/tmp/kyua.U9waip/2/work/some_repo/root
[DEBUG] metadir=/tmp/kyua.U9waip/2/work/some_repo/root/var/db/xbps
[DEBUG] cachedir=/tmp/kyua.U9waip/2/work/some_repo/root/var/cache/xbps
[DEBUG] confdir=/tmp/kyua.U9waip/2/work/some_repo/root/empty.conf
[DEBUG] sysconfdir=/tmp/kyua.U9waip/2/work/some_repo/root/usr/local/share/xbps.d
[DEBUG] syslog=true
[DEBUG] bestmatching=false
[DEBUG] keepconf=false
[DEBUG] Architecture: x86_64
[DEBUG] Target Architecture: (null)
[DEBUG] Repository[0]=/tmp/kyua.U9waip/2/work/some_repo
[DEBUG] [pkgdb] added vpkg pkgdep-21_1 for pkgheld
[DEBUG] [pkgdb] initialized ok.
[DEBUG] [rpool] checking `/tmp/kyua.U9waip/2/work/some_repo' at index 0
[DEBUG] [repo] `/tmp/kyua.U9waip/2/work/some_repo/x86_64-stagedata' open stagedata No such file or directory
[DEBUG] [rpool] `/tmp/kyua.U9waip/2/work/some_repo' registered.
[DEBUG] xbps_repo_get_pkg: found pkginst-1.0_1
[DEBUG] [trans] `pkginst-1.0_1' stored (/tmp/kyua.U9waip/2/work/some_repo)
[DEBUG] xbps_transaction_install_pkg: trans_find_pkg pkginst: 0
[DEBUG] xbps_transaction_prepare: processing deps
[DEBUG] Finding required dependencies for 'pkginst-1.0_1':
[DEBUG] pkginst-1.0_1: requires dependency 'pkgdep-22_1': [DEBUG] vpkg_user_conf: vpkg_conf pkgdep-21_1 pkg pkgheld vpkgname pkgdep
[DEBUG] vpkg_user_conf: vpkg_conf pkgdep-21_1 pkg pkgheld vpkgname pkgdep
not installed `pkgheld-1.17.4_2 (vpkg)' on hold state! ignoring package.
[DEBUG] pkginst-1.0_1 on hold state! ignoring package.
[DEBUG] xbps_transaction_prepare: checking on hold pkgs
[DEBUG] xbps_transaction_prepare: checking replaces
[DEBUG] xbps_transaction_prepare: checking revdeps
[DEBUG] xbps_transaction_prepare: checking conflicts
[DEBUG] xbps_transaction_prepare: checking shlibs
[DEBUG] xbps_transaction_prepare: computing stats
[DEBUG] [trans] verifying 1 packages.
[DEBUG] pkginst-1.0_1: state 1 rv 0
[DEBUG] xbps_pkgdb_unlock: pkgdb_fd 3
[DEBUG] [pkgdb] released ok.
libxbps/shell/update_hold_test:update_pkg_with_held_dep  ->  passed
kyua: E: No previous results file found for test suite result.db.

Whats wrong with this to me is that it tests installing pkginst and with a missing dep.
Maybe the expected result was to install pkgdep-22_1 instead of using the virtual package provider and the test did not check if correctly if this happens and was broken at some point but did not error out.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Chocimier

Chocimier commented Sep 18, 2021

Copy link
Copy Markdown
Member

feels more like a workaround

Why? It looks ok.

Maybe the expected result was to install pkgdep-22_1

0.52 that fixes issue (crash) for which test was written don't install it. The test can be just changed to assert actual result (19) and doubled with below.

	...
	xbps-install -r root -C empty.conf --repository=$PWD -d -yv pkginst pkgdep
	atf_check_equal $? 0

	atf_check_equal $(xbps-query -r root -p pkgver pkgdep) pkgdep-22_1
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Duncaen Duncaen self-assigned this Oct 4, 2021
Duncaen added 4 commits October 23, 2021 16:14
@Duncaen
tests: add more hold package tests for void-linux#392
5eeff16
@Duncaen
lib/transaction_pkg_deps.c: don't ignore unsatisfied held dependencies
d18e7f9
@Duncaen
lib/transaction_pkg_deps.c: skipping queued removed or held dependenc…
fccf3d7
…ies makes no sense
@Duncaen
tests: fix test to check for the correct exit status
a406376
Previously xbps just ignored hold packages, now it will exit
with an error code in case there is a dependency conflict
with a held dependency since it would previously result
in inconsistent dependency state.
@Duncaen
Duncaen force-pushed the hold-fixes branch from bc59118 to a406376 Compare October 23, 2021 14:29
@Duncaen
Duncaen merged commit a406376 into void-linux:master Oct 23, 2021
@Duncaen Duncaen mentioned this pull request Dec 28, 2021
Strange behaviour, maybe a bug? #392
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@Duncaen Duncaen

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Duncaen @Chocimier
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.