Use libmonitor compiled by gnumake #59
Loading…
Reference in New Issue
No description provided.
Delete Branch "fsagbuya/nix-servo:pyrp3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Use
libmonitor
compiled ingnumake
for pyrp3, since current cpython extension version is causing bus error:Reference: https://github.com/elhep/Fast-Servo-Firmware/blob/master/OS/scripts/linien_install_requirements.sh#L28
gdb log:
@ -103,0 +114,4 @@
buildPhase = ''
cd monitor
make clean
make all
Can't those two lines be replaced with just "make"?
@ -112,1 +134,4 @@
};
postPatch = ''
substituteInPlace pyrp3/raw_memory.py \
--replace "cdll.LoadLibrary(libmonitor_file)" "cdll.LoadLibrary(\"${monitor}/libmonitor.so\")"
So you're basically injecting the binary libmonitor from pyrp3 e6688acf8bd79d2dbe1d192d09c1a1baf1f6c67b into pyrp3 1.2.0.
Why not either:
(1) use exclusively pyrp3 e6688acf8bd79d2dbe1d192d09c1a1baf1f6c67b
(2) patch the libmonitor source from pyrp3 1.2.0 so it becomes like e6688acf8bd79d2dbe1d192d09c1a1baf1f6c67b
Right now you're duplicating code + compiling libmonitor twice and discarding one, isn't it?
Understood.
e833b1293a
toe516117769
e516117769
toba41975e2c
@ -120,0 +125,4 @@
'';
postFixup = ''
substituteInPlace $out/${pkgs.python3.sitePackages}/pyrp3/raw_memory.py \
--replace "libmonitor.so" "${placeholder "out"}/lib/libmonitor.so"
It seems that installing
libmonitor.so
via the Makefile alone is not compatible with nix:I commented it out and have it only build libmonitor.so and have nix install it via
postInstall
.@ -120,0 +125,4 @@
'';
postFixup = ''
substituteInPlace $out/${pkgs.python3.sitePackages}/pyrp3/raw_memory.py \
--replace "libmonitor.so" "${placeholder "out"}/lib/libmonitor.so"
I think you don't need placeholder? Just $out would work.
ba41975e2c
todb88e5db59