verify shlib errors on partial upgrade bypassed by multilib

Ouverte
#580 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
45/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
c

Piste de recherche

Reproduce the issue using the linked testpkgs.zip and the xbps-src/xi command sequence in the report. Start by tracing the shlib checks used during xi -u and how installed 32-bit and 64-bit packages are recorded. Done means the reported partial-upgrade scenario warns about the broken 64-bit application instead of allowing the 32-bit package to bypass the check.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

bug

When performing shlib checks before upgrading, libraries provided by 32bit packages are treated the same as libraries provided by 64bit packages. This can result in system breakage on partial upgrades without warning as noticed on the r/voidlinux subreddit: https://www.reddit.com/r/voidlinux/comments/18r0swm/psa_libxcrypt_updates/

I verified this behavior using the following:

  1. Download testpkgs.zip
  2. Run ./setup.sh
  3. In the cloned void-packages repo run:
./xbps-src binary-bootstrap
./xbps-src -m masterdir-i686 binary-bootstrap i686
./xbps-src pkg libhelloworld
./xbps-src -m masterdir-i686 pkg libhelloworld
./xbps-src pkg test1
xi test1
  1. You can run test1 and it will output hello world 7 as expected.
  2. After that, modify the libhelloworld package to not install libhelloworld.so.1 and build it as version=2 (do not build the 32bit package with this change).
  3. When doing xi -u, you will receive a shlibs error as expected. test1-1_1: broken, unresolvable shlib 'libhelloworld.so.1'
  4. Run xi libhelloworld-32bit
  5. Now run xi -u again, you will not receive any warnings and the upgrade will proceed as normal.
  6. Confirm the breakage of test1 as running it now outputs test1: error while loading shared libraries: libhelloworld.so.1: cannot open shared object file: No such file or directory

Ideally, xbps should be able to detect that the libraries provided by 32bit packages are not applicable to 64bit applications and visa-versa.

Langage dominant
C
Étoiles
1.2k
Forks
156
Merge moyen
1 h 39 min
PR mergées (30 j)
1

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de void-linux/xbps

Toutes les issues de void-linux/xbps

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.