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

Non-hermetic builds appear to be broken #55

Open
the-maldridge opened this issue Dec 22, 2019 · 2 comments
Open

Non-hermetic builds appear to be broken #55

the-maldridge opened this issue Dec 22, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@the-maldridge
Copy link

Attempting to do a complete bootstrap build fails due to not being able to use host tools to run the build. The steps I took are as follows:

maldridge@theGibson:~/Documents/distri (master)$ export DISTRIROOT=$PWD
maldridge@theGibson:~/Documents/distri (master)$ distri build -hermetic=false -pkg=gmp
2019/12/22 01:22:32 building gmp-amd64-6.1.2-3
2019/12/22 01:22:32 downloading https://gmplib.org/download/gmp/gmp-6.1.2.tar.bz2 to gmp-6.1.2.tar.bz2
2019/12/22 01:22:38 verifying gmp-6.1.2.tar.bz2
build: build: builddeps: package "bash" not found (pattern /home/maldridge/Documents/distri/build/distri/pkg/bash-amd64-*.meta.textproto)

The host has void's base-devel package available, which includes these packages:

  • autoconf
  • automake
  • bc
  • binutils
  • bison
  • ed
  • flex
  • gcc
  • gettext
  • groff
  • libtool
  • m4
  • make
  • patch
  • pkg-config
  • texinfo
  • unzip
  • xz
  • glibc-devel
@stapelberg
Copy link
Member

The order is important, so bash will need to be one of the first ones you’ll build.

That said, I can reproduce the issue even when trying to build bash:

% distri build -pkg=bash -hermetic=false
2019/12/25 20:02:19 building bash-amd64-4.4.18-3
build: build: builddeps: package "bash" not found (pattern /root/distri/build/distri/pkg/bash-amd64-*.meta.textproto)

I think this might be a regression from when we introduced version globbing.

@stapelberg stapelberg added the bug Something isn't working label Dec 25, 2019
stapelberg added a commit that referenced this issue Dec 25, 2019
The root is just /, the meaning of this flag changed.

related to #55
stapelberg added a commit that referenced this issue Dec 25, 2019
The latter already contains a /pkg suffix.

related to #55
@stapelberg
Copy link
Member

Added a few commits which get rid of the most glaring issues. I can build bash and make in non-hermetic mode now.

On Void linux, you’ll also need the musl-bootstrap package for musl-gcc, which distri uses for its wrapper programs (entrypoints into the hermetically-built packages).

Let me know if you hit another road block. I’ll try a full bootstrap run from non-hermetic into hermetic when I get around to it (unless you race me to it :)

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