!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

232 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux https://github.com/orgs/NixOS/teams/risc-v69 Servers

Load older messages


SenderMessageTime
27 Jan 2024
@lehmanator:gnulinux.club@lehmanator:gnulinux.club removed their display name Sam Lehman.17:03:17
@lehmanator:gnulinux.club@lehmanator:gnulinux.club left the room.17:06:46
29 Jan 2024
@lehmanator:tchncs.deSam Lehman joined the room.11:03:20
@lehmanator:tchncs.deSam Lehman set a profile picture.11:06:03
@hxr404:tchncs.dehxr404 ✨ [she/her] joined the room.19:30:00
30 Jan 2024
@erremilia:matrix.orgerremilia left the room.19:55:24
31 Jan 2024
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their profile picture.03:36:16
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their profile picture.06:21:52
2 Feb 2024
@fgaz:matrix.orgfgazJust so we don't duplicate too much work, let it be known that I'm bisecting the native meson failure on master09:07:41
@fgaz:matrix.orgfgaz and there's a staging merge in the middle... I'm at the the fourth bootstrap 09:08:59
3 Feb 2024
@skeuchel:matrix.orgSteven Keuchel fgaz: What failure are you investigating? I have no trouble natively building meson from master. 09:10:53
@abbe:badti.me@abbe:badti.me joined the room.20:56:29
5 Feb 2024
@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de joined the room.07:54:54
@fgaz:matrix.orgfgaz
In reply to @skeuchel:matrix.org
fgaz: What failure are you investigating? I have no trouble natively building meson from master.
I was consistently experiencing 4 test failures that were not related to time. Today I tried again the same exact commit and it built 😐
09:01:37
@fgaz:matrix.orgfgazI blame cosmic rays09:15:40
@alex:tunstall.xyzAlex
In reply to @fgaz:matrix.org
I blame cosmic rays

Unfortunately for you, the JH7110's caches have ECC.

It's probably more likely that the meson build simply isn't reproducible.

10:55:10
6 Feb 2024
@msanft:matrix.orgMoritz Sanft set a profile picture.17:18:00
13 Feb 2024
@theesm:lispy.eutheesm left the room.09:27:37
14 Feb 2024
@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de changed their profile picture.19:41:34
15 Feb 2024
@a-kenji:matrix.orgkenji joined the room.19:15:07
17 Feb 2024
@SeTSeR:matrix.orgWhite Whale joined the room.17:40:01
@SeTSeR:matrix.orgWhite WhaleHello, I'm trying to build NixOS image for Starfive VisionFive 2 using this repo: https://github.com/NickCao/nixos-riscv I was able to build vanilla image, but the problems arose when I tried to add `xrdp` to it. Compilation of xrdp began to fail with bizarre errors on `pkg-config` missing. I looked into derivation for xrdp and found out that for some reason that `xorgxrdp` has dependency on `pkg-config` from host, not from build. It's very strange, given that it is placed in `nativeBuildInputs`, just like `autoconf` and `automake`, which behave correctly: https://github.com/NixOS/nixpkgs/blob/d934204a0f8d9198e1e4515dd6fec76a139c87f0/pkgs/applications/networking/remote/xrdp/default.nix#L49 How can this be? How can I fix this?17:52:00
@dramforever:matrix.orgdramforeverahhh, this is not good19:55:28
@dramforever:matrix.orgdramforeverwait, is this a problem?19:55:50
@dramforever:matrix.orgdramforeverxorgxrdp wouldn't be properly spliced here... but that still doesn't explain what's going on19:56:22
@alex:tunstall.xyzAlex
In reply to @SeTSeR:matrix.org
Hello, I'm trying to build NixOS image for Starfive VisionFive 2 using this repo:
https://github.com/NickCao/nixos-riscv
I was able to build vanilla image, but the problems arose when I tried to add `xrdp` to it. Compilation of xrdp began to fail with bizarre errors on `pkg-config` missing. I looked into derivation for xrdp and found out that for some reason that `xorgxrdp` has dependency on `pkg-config` from host, not from build. It's very strange, given that it is placed in `nativeBuildInputs`, just like `autoconf` and `automake`, which behave correctly:
https://github.com/NixOS/nixpkgs/blob/d934204a0f8d9198e1e4515dd6fec76a139c87f0/pkgs/applications/networking/remote/xrdp/default.nix#L49
How can this be? How can I fix this?

Unfortunately, such errors seem to be fairly common in wrapped packages (which is the case with pkg-config).

I couldn't tell you why the splicing is going wrong, but perhaps overriding xrdp to use pkg-config-unwrapped will work?
If it does, something in the wrapper is causing splicing to break.

21:10:37
18 Feb 2024
@hxr404:tchncs.dehxr404 ✨ [she/her] changed their display name from hxr404 ✨ (they/them) to hxr404 ✨ [they/them] (offline).00:19:40
@nickcao:nichi.coNick Cao
diff --git a/pkgs/applications/networking/remote/xrdp/default.nix b/pkgs/applications/networking/remote/xrdp/default.nix
index c9f679d9e124..700a040e9f14 100644
--- a/pkgs/applications/networking/remote/xrdp/default.nix
+++ b/pkgs/applications/networking/remote/xrdp/default.nix
@@ -58,6 +58,9 @@ let
       substituteInPlace configure.ac \
         --replace 'moduledir=`pkg-config xorg-server --variable=moduledir`' "moduledir=$out/lib/xorg/modules" \
         --replace 'sysconfdir="/etc"' "sysconfdir=$out/etc"
+
+      substituteInPlace bootstrap \
+        --replace-fail "command -v pkg-config" "command -v $PKG_CONFIG"
     '';

     preConfigure = "./bootstrap";
@@ -94,10 +97,13 @@ let
       substituteInPlace sesman/xauth.c --replace "xauth -q" "${xorg.xauth}/bin/xauth -q"

       substituteInPlace configure.ac --replace /usr/include/ ""
+
+      substituteInPlace bootstrap librfxcodec/bootstrap \
+        --replace-fail "command -v pkg-config" "command -v $PKG_CONFIG"
     '';

     preConfigure = ''
-      (cd librfxcodec && ./bootstrap && ./configure --prefix=$out --enable-static --disable-shared)
+      (cd librfxcodec && ./bootstrap && ./configure --prefix=$out --enable-static --disable-shared --host=${stdenv.hostPlatform.config})
       ./bootstrap
     '';
     dontDisableStatic = true;
03:52:38
@nickcao:nichi.coNick CaoThe problem is not about splicing but it checking for the wrong pkg-config binary.03:53:00
@nickcao:nichi.coNick CaoIt shall be riscv64-unknown-linux-gnu-pkg-config03:53:13

Show newer messages


Back to Room ListRoom Version: 10