| 13 May 2022 |
Rick (Mindavi) | But yeah, I really hope it'll be replaced with a dependency that's a bit more cross-platform | 12:19:37 |
Janne Heß | Now that I think of it… why are we not calling gcc in the postPatch phase? | 12:19:47 |
Janne Heß | (the call from your comment) | 12:20:00 |
Rick (Mindavi) | It'd need some cleanup of the output, but definitely an option! | 12:23:27 |
| 17 May 2022 |
| v0|d joined the room. | 18:04:30 |
qbit | matthewcroughan - nix.how: out of the gate, bootstrap.sh fails | 19:27:37 |
qbit | configure.ac:1: warning: AC_INIT: not a literal: "m4_esyscmd(bash -c "echo -n $(cat ./.version)$VERSION_SUFFIX")"
configure.ac:108: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf-2.71: error: /usr/local/bin/autoconf-2.71 failed with exit status: 1
| 19:27:42 |
qbit | ill try the release'd version (with the configure script) - but it fails too iirc | 19:28:08 |
matthewcroughan - nix.how | do things as specified in hacking.md | 19:28:18 |
qbit | is that not the first step? | 19:28:49 |
qbit | it is :P | 19:28:52 |
matthewcroughan - nix.how | You need to get the correct dependencies though. | 19:29:07 |
qbit | To build Nix itself in this shell:
[nix-shell]$ ./bootstrap.sh
[nix-shell]$ ./configure $configureFlags --prefix=$(pwd)/outputs/out
[nix-shell]$ make -j $NIX_BUILD_CORES
| 19:29:07 |
matthewcroughan - nix.how | Which is usually waht nix develop will do. | 19:29:11 |
qbit | i have them | 19:29:13 |
matthewcroughan - nix.how | * Which is usually what nix develop will do. | 19:29:15 |
qbit | https://github.com/jasperla/openbsd-wip/blob/master/devel/nix/Makefile#L35-L49 | 19:29:30 |
matthewcroughan - nix.how | I'm not sure if you do, the cmd errors in a strange way | 19:29:32 |
| Janne Heß left the room. | 19:29:39 |
matthewcroughan - nix.how | The problem with the BSDs seems to be that you can't recreate the stdenv | 19:29:49 |
matthewcroughan - nix.how | Nix has a stdenv, and you may not be creating the exact one it expects. | 19:30:02 |
matthewcroughan - nix.how | even if it's slight version mismatches | 19:30:13 |
matthewcroughan - nix.how | Unless you have reason to believe the error you sent is BSD specific | 19:30:32 |
qbit | well ya can't run nix if it doesn't build :P | 19:30:49 |
matthewcroughan - nix.how | I know. | 19:32:02 |
matthewcroughan - nix.how | That's your job. | 19:32:04 |
matthewcroughan - nix.how | You have to get the deps, because you're bootstrapping it./ | 19:32:20 |
matthewcroughan - nix.how | * You have to get the deps, because you're bootstrapping it. | 19:32:21 |
matthewcroughan - nix.how | it is genuinely a compiler needing a compiler to compile the compiler type situation | 19:32:54 |
matthewcroughan - nix.how | And I've no reason to believe it wouldn't work, if you get the right dependencies available in your /lib | 19:33:27 |