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

An error occured when installing basic packages for gentoo #530

Closed
Un1q32 opened this issue Nov 25, 2022 · 3 comments
Closed

An error occured when installing basic packages for gentoo #530

Un1q32 opened this issue Nov 25, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Un1q32
Copy link

Un1q32 commented Nov 25, 2022

Describe the bug
the installing basic packages step fails
To Reproduce
make gentoo distrobox container
Expected behavior
to work
Logs

[ Results for search key : vte ]
*  gui-libs/vte
      Latest version available: 0.70.1
      Latest version installed: [ Not Installed ]
      Size of files: 500 KiB
      Homepage:      https://wiki.gnome.org/Apps/Terminal/VTE https://gitlab.gnome.org/GNOME/vte
      Description:   Library providing a virtual terminal emulator widget
      License:       LGPL-3+ GPL-3+

*  x11-libs/vte
      Latest version available: 0.70.1
      Latest version installed: [ Not Installed ]
      Size of files: 500 KiB
      Homepage:      https://wiki.gnome.org/Apps/Terminal/VTE https://gitlab.gnome.org/GNOME/vte
      Description:   Library providing a virtual terminal emulator widget
      License:       LGPL-3+ GPL-3+

[ Applications found : 4 ]

!!! The short ebuild name "vte" is ambiguous. Please specify
!!! one of the above fully-qualified ebuild names instead.

Additional context
fully-qualified ebuild names should be used for all packages in this step

@Un1q32 Un1q32 added the bug Something isn't working label Nov 25, 2022
@89luca89
Copy link
Owner

Thanks @OldWorldOrdr for the report

I'm not a gentoo user so I don't really know which of the two should be picked? If anyone can suggest me, we can fix it in the init 👍

@ghost
Copy link

ghost commented Dec 3, 2022

Not entirely sure which version is correct, but I didn't run into this issue when I rebuilt my docker image, using the x11-libs version, and that seems to have solved the problem.

docker file:

# name the portage image
FROM registry.hub.docker.com/gentoo/portage:latest as portage

# based on stage3 image
FROM registry.hub.docker.com/gentoo/stage3:systemd

# copy the entire portage volume in
COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo

# continue with image build
RUN emerge --oneshot portage
RUN emerge --sync
RUN emerge --ask=n --autounmask-continue --quiet-build bash sys-devel/bc net-misc/curl diffutils findutils less ncurses pinentry procps shadow sudo util-linux wget x11-libs/vte

Related, in the installing basic packages step, I also came across this similar problem

[ Results for search key : bc ]
*  app-alternatives/bc [ Masked ]
      Latest version available: 0
      Latest version installed: [ Not Installed ]
      Size of files: 0 KiB
      Homepage:      https://wiki.gentoo.org/wiki/Project:Base/Alternatives
      Description:   bc symlink
      License:       CC0-1.0

*  sys-devel/bc
      Latest version available: 1.07.1-r5
      Latest version installed: 1.07.1-r5
      Size of files: 411 KiB
      Homepage:      https://www.gnu.org/software/bc/bc.html
      Description:   Handy console-based calculator utility
      License:       GPL-3+

[ Applications found : 4 ]

!!! The short ebuild name "bc" is ambiguous. Please specify
!!! one of the above fully-qualified ebuild names instead.

When looking at the Gentoo package list, the bc package was added recently.

New packages at the Gentoo packages database

app-editors/pluma-plugins A set of plugins for Pluma, the MATE text editor.
app-alternatives/bc bc symlink
app-alternatives/yacc Virtual for yacc (yet another compiler compiler)

I've also tried masking it using the --pre-init-hooks, but to no luck

distrobox create --name Gentoo --pre-init-hooks "echo EMERGE_DEFAULT_OPTS="--keep-going" > /etc/portage/make.conf && echo "app-alternatives/bc" > /etc/portage/package.mask/custom" --image
 localhost/gentoo-distrobox:latest

EDIT:
Looks like the vte package was removed from distrobox-init, although the bc package problem is still present, which can be solved by adding sys-devel/bc to the init file.

@89luca89
Copy link
Owner

89luca89 commented Dec 5, 2022

adding sys-devel/bc to the init file

Thanks!

Looks like the vte package was removed from distrobox-init

Yea it was because it was causing too many problems and long (long! :P) build times, that would have put the CI system in timeout

Anyway will add the sys-devel/bc patch, if nothing else is a problem I'll make that commit close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants