You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building rom-properties on NixOS with CMake flags -DCMAKE_BUILD_TYPE=Release -DINSTALL_APPARMOR=OFF appears to build correctly, but running rpcli just errors instead.
Example:
$ nix run .#git-broken
[1] 36898 invalid system call nix run .#git-broken
Working example, which is expected output:
$ nix run .#git
Usage: rpcli [-k] [-c] [-p] [-j] [-l lang] [[-xN outfile]... [-mN outfile]... [-a apngoutfile] filename]...
-k: Verify encryption keys in keys.conf.
-c: Print system region information.
-p: Print system path information.
-d: Skip ListData fields with more than 10 items. [text only]
-j: Use JSON output format.
-l: Retrieve the specified language from the ROM image.
-xN: Extract image N to outfile in PNG format.
-mN: Extract mipmap level N to outfile in PNG format.
-a: Extract the animated icon to outfile in APNG format.
Special options for devices:
-is: Run a SCSI INQUIRY command.
-ia: Run an ATA IDENTIFY DEVICE command.
-ip: Run an ATA IDENTIFY PACKET DEVICE command.
Examples:
* rpcli s3.gen
displays info about s3.gen
* rpcli -x0 icon.png pokeb2.nds
extracts icon from pokeb2.nds
The fix (as previously troubleshot via Discord) at build time is adding getdents64 as an available system call. That can easily be done with the following substituteInPlace command:
The following is a Nix evaluation that succeeds that building a working rpcli binary. If you want to test this issue yourself, remove the postPatch section, rebuild, and test the result/bin/rpcli binary.
Building
rom-properties
on NixOS with CMake flags-DCMAKE_BUILD_TYPE=Release -DINSTALL_APPARMOR=OFF
appears to build correctly, but runningrpcli
just errors instead.Example:
Working example, which is expected output:
The fix (as previously troubleshot via Discord) at build time is adding
getdents64
as an available system call. That can easily be done with the followingsubstituteInPlace
command:The following is a Nix evaluation that succeeds that building a working
rpcli
binary. If you want to test this issue yourself, remove thepostPatch
section, rebuild, and test theresult/bin/rpcli
binary.The text was updated successfully, but these errors were encountered: