Conversation
|
tests are failing |
65b64d3 to
bd1f35c
Compare
|
@giuseppe @saschagrunert similar as cri-o/cri-o#4630 (comment), |
|
It seems to fail on arm64, not amd64. Or am I missing anything? |
Yes, the build only failed for arm64, amd64 is fine. |
|
@hswong3i had a chance to look at this again? |
|
Looks like this is the patch we have to wait for: NixOS/nixpkgs#117914 |
d502508 to
449df01
Compare
|
@saschagrunert I fix the |
449df01 to
b445f77
Compare
475d26b to
6aa7e3c
Compare
1ff0dd6 to
c048460
Compare
925f9cb to
527a99a
Compare
|
@saschagrunert may this PR have your kindly review and approval? |
|
The static build is still failing. |
Error from build log (see https://github.com/containers/crun/pull/618/checks?check_run_id=2515014267) show that it is related to aarch64-linux but not x86_64-linux. My local build for x86_64-linux is totally fine without any error :-S @saschagrunert aarch64-linux support seems introduced by 8d0ebf6, would you mind to fix it onward? |
c106b6b to
f5295d3
Compare
I'd prefer fixing it before merging this PR. |
|
@saschagrunert with updated to Any hints or idea? |
|
ok this line from NixOS/nixpkgs@5f8a741 generate the glib problem for systemd (https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/systemd/default.nix#L328): Simply hard-code it as |
62c00b7 to
06ee575
Compare
|
is m4 not installed? |
I also did a try to manually install Here are the diff in between, with no specific handling for m4 at amd64: $ diff -urpNwbB nix/default.nix nix/default-arm64.nix
--- nix/default.nix 2021-06-09 22:03:46.723085852 +0800
+++ nix/default-arm64.nix 2021-06-09 22:03:46.723085852 +0800
@@ -1,9 +1,11 @@
-{ system ? builtins.currentSystem, enableSystemd ? true }:
+{ enableSystemd ? true }:
let
pkgs = (import ./nixpkgs.nix {
+ crossSystem = {
+ config = "aarch64-unknown-linux-gnu";
+ };
config = {
packageOverrides = pkg: {
- criu = (static pkg.criu);
gpgme = (static pkg.gpgme);
libassuan = (static pkg.libassuan);
libgpgerror = (static pkg.libgpgerror);
@@ -29,7 +31,7 @@ let
configureFlags = [
"--enable-confdir=/etc"
"--enable-usbdropdir=/var/lib/pcsc/drivers"
- "--with-systemdsystemunitdir=${placeholder "bin"}/lib/systemd/system"
+ "--disable-libsystemd"
];
buildInputs = [ pkgs.python3 pkgs.udev pkgs.dbus pkgs.systemd ];
});
@@ -76,7 +78,7 @@ let
enableParallelBuilding = true;
outputs = [ "out" ];
nativeBuildInputs = [ autoreconfHook bash gitMinimal pkg-config python3 which ];
- buildInputs = [ glibc glibc.static glib criu libcap libseccomp protobufc systemd yajl ];
+ buildInputs = [ glibc glibc.static glib libcap libseccomp protobufc systemd yajl ];
configureFlags = [ "--enable-static" ]
++ lib.optional (!enableSystemd) [ "--disable-systemd" ];
prePatch = ''
@@ -84,7 +86,7 @@ let
export LDFLAGS='-s -w -static-libgcc -static'
export EXTRA_LDFLAGS='-s -w -linkmode external -extldflags "-static -lm"'
export CRUN_LDFLAGS='-all-static'
- export LIBS='${criu}/lib/libcriu.a ${glibc.static}/lib/libc.a ${glibc.static}/lib/libpthread.a ${glibc.static}/lib/librt.a ${lib.getLib libcap}/lib/libcap.a ${lib.getLib libseccomp}/lib/libseccomp.a ${protobufc}/lib/libprotobuf-c.a ${protobuf}/lib/libprotobuf.a ${lib.getLib systemd}/lib/libsystemd.a ${yajl}/lib/libyajl_s.a'
+ export LIBS='${glibc.static}/lib/libc.a ${glibc.static}/lib/libpthread.a ${glibc.static}/lib/librt.a ${lib.getLib libcap}/lib/libcap.a ${lib.getLib libseccomp}/lib/libseccomp.a ${protobufc}/lib/libprotobuf-c.a ${protobuf}/lib/libprotobuf.a ${lib.getLib systemd}/lib/libsystemd.a ${yajl}/lib/libyajl_s.a'
'';
buildPhase = ''
patchShebangs . |
b0a0d5b to
578de62
Compare
|
@hswong3i Is the artifact failure a problem? |
45784eb to
cbb7c22
Compare
- Bugfix `make nixpkgs` which pin with branch `nixos-21.05` - Code lint with `nixpkgs-fmt` - Code sync between x86\_64 and aarch64 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
cbb7c22 to
e4d7d9a
Compare
|
@hswong3i Still not working? |
|
I am moving my Ansible Role to using kubic repo. |
make nixpkgswhich pin with branchnixos-21.05nixpkgs-fmtSigned-off-by: Wong Hoi Sing Edison hswong3i@pantarei-design.com