Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcb2gcode: init at 2.1.0 #101976

Merged
merged 2 commits into from Jan 26, 2021
Merged

pcb2gcode: init at 2.1.0 #101976

merged 2 commits into from Jan 26, 2021

Conversation

@Kritnich
Copy link

@Kritnich Kritnich commented Oct 28, 2020

Motivation for this change

pcb2gcode is a command-line software for the isolation, routing and drilling of PCBs.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Oct 28, 2020

@Kritnich Can you solve the merge conflict?

pkgs/top-level/all-packages.nix Outdated Show resolved Hide resolved
@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Oct 28, 2020

Can you please squash those commit together?

@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Oct 28, 2020

Result of nixpkgs-review pr 101976 run on x86_64-linux 1

1 package failed to build:
  • pcb2gcode

@Kritnich Kritnich force-pushed the pcb2gcode-2.1.0 branch from 2d09690 to 7c0d346 Oct 28, 2020
@Kritnich
Copy link
Author

@Kritnich Kritnich commented Oct 28, 2020

Result of nixpkgs-review pr 101976 run on x86_64-linux 1
1 package failed to build:

* pcb2gcode

I ran that as well and it built on x86_64-linux. Do you have any more details on why it failed?

@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Oct 29, 2020

Can't exec "/bin/sh": No such file or directory at /nix/store/r8b9z1s0di4c8qnhwrpcir7p7rm7s4x7-autoconf-2.69/share/autoconf/Autom4te/General.pm line 307.
Use of uninitialized value $Autom4te::General::tmp in scalar chomp at /nix/store/r8b9z1s0di4c8qnhwrpcir7p7rm7s4x7-autoconf-2.69/share/autoconf/Autom4te/General.pm line 309.
Can't exec "/bin/sh": No such file or directory at /nix/store/r8b9z1s0di4c8qnhwrpcir7p7rm7s4x7-autoconf-2.69/bin/autoreconf line 188.
Can't exec "/bin/sh": No such file or directory at /nix/store/r8b9z1s0di4c8qnhwrpcir7p7rm7s4x7-autoconf-2.69/bin/autoreconf line 189.
Use of uninitialized value $aclocal_help in pattern match (m//) at /nix/store/r8b9z1s0di4c8qnhwrpcir7p7rm7s4x7-autoconf-2.69/bin/autoreconf line 190.
Use of uninitialized value $aclocal_help in pattern match (m//) at /nix/store/r8b9z1s0di4c8qnhwrpcir7p7rm7s4x7-autoconf-2.69/bin/autoreconf line 191.
Use of uninitialized value $automake_help in pattern match (m//) at /nix/store/r8b9z1s0di4c8qnhwrpcir7p7rm7s4x7-autoconf-2.69/bin/autoreconf line 192.
Use of uninitialized value $automake_help in pattern match (m//) at /nix/store/r8b9z1s0di4c8qnhwrpcir7p7rm7s4x7-autoconf-2.69/bin/autoreconf line 193.
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4 --output=aclocal.m4t
Can't exec "/bin/sh": No such file or directory at /nix/store/38vxlxrvg3yji3jms44qn94lxdysbj5j-perl-5.32.0/lib/perl5/5.32.0/x86_64-linux-thread-multi/IO/File.pm line 186.
aclocal: error: cannot open echo 'm4_define([m4_require_silent_probe], [-])' | /nix/store/r8b9z1s0di4c8qnhwrpcir7p7rm7s4x7-autoconf-2.69/bin/autom4te --language Autoconf-without-aclocal-m4  - /nix/store/ldr8z2

@Kritnich Kritnich force-pushed the pcb2gcode-2.1.0 branch from 7c0d346 to 116deae Nov 1, 2020
@Kritnich
Copy link
Author

@Kritnich Kritnich commented Nov 1, 2020

I have been unable to reproduce the issue on two different machines, but I assume it has something to do with bash and a missing symlink to it on /bin/sh. If it still doesn't work, do you have any pointers on how I can reproduce the issue?

@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Nov 2, 2020

I opened /nix/store/r8b9z1s0di4c8qnhwrpcir7p7rm7s4x7-autoconf-2.69/share/autoconf/Autom4te/General.pm +307 locally:

image

and the error message might be miss leading. It could be that it tries to access /tmp which is disabled in sandbox mode I believe. I think setting $TMPDIR correct could solve the issue. Or it is the ` but then I ask myself how any perl code works.

Lastly it might also be a quirk with my machines I did not discover yet.

@Kritnich
Copy link
Author

@Kritnich Kritnich commented Nov 7, 2020

TMPDIR should be set correctly by mkDerivation whether it's sandboxed or not (to /tmp or /build), if I understood it correctly.

Besides that, both machines I tested it on were in sandbox mode and in /nix/store/r8b9z1s0di4c8qnhwrpcir7p7rm7s4x7-autoconf-2.69/bin/autoreconf at L188,L189 there's the same issue with backticks present but no /tmp being used.

Definitely seems to me like Perl is trying to call /bin/sh -c but fails because it's missing, which is odd since I feel like that should break way more.

Either way, I included bash in that last push. Can you give it a shot and see if it builds on your machine now?

@fooker
Copy link
Contributor

@fooker fooker commented Nov 11, 2020

I've tested it with the latest commit and it worked well. Both, building and executing the resulting command.

pkgs/tools/misc/pcb2gcode/default.nix Outdated Show resolved Hide resolved
pkgs/tools/misc/pcb2gcode/default.nix Outdated Show resolved Hide resolved
@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Nov 24, 2020

Result of nixpkgs-review pr 101976 run on x86_64-linux 1

1 package built:
  • pcb2gcode

@Kritnich Kritnich force-pushed the pcb2gcode-2.1.0 branch 2 times, most recently from f0fecf0 to 027ba9d Nov 25, 2020
@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Nov 26, 2020

Result of nixpkgs-review pr 101976 run on x86_64-linux 1

1 package built:
  • pcb2gcode

@Kritnich Kritnich requested a review from SuperSandro2000 Nov 26, 2020
@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Nov 28, 2020

@Kritnich please address #101976 (comment)

@Kritnich Kritnich force-pushed the pcb2gcode-2.1.0 branch from 027ba9d to fa7fe12 Nov 29, 2020
pkgs/tools/misc/pcb2gcode/default.nix Outdated Show resolved Hide resolved
pkgs/tools/misc/pcb2gcode/default.nix Outdated Show resolved Hide resolved
@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Dec 27, 2020

Result of nixpkgs-review pr 101976 run on x86_64-linux 1

1 package built:
  • pcb2gcode

@Kritnich Kritnich force-pushed the pcb2gcode-2.1.0 branch from 539a5b3 to bc28b4d Jan 22, 2021
pkgs/top-level/all-packages.nix Outdated Show resolved Hide resolved
pkgs/tools/misc/pcb2gcode/default.nix Outdated Show resolved Hide resolved
pkgs/tools/misc/pcb2gcode/default.nix Outdated Show resolved Hide resolved
@Kritnich Kritnich force-pushed the pcb2gcode-2.1.0 branch from dfe3d67 to b1a9a3e Jan 26, 2021
@Kritnich Kritnich force-pushed the pcb2gcode-2.1.0 branch from 7a35243 to 91efec3 Jan 26, 2021
@SuperSandro2000 SuperSandro2000 merged commit d06bae4 into NixOS:master Jan 26, 2021
19 checks passed
19 checks passed
@github-actions[bot]
tests
Details
@github-actions[bot]
action
Details
@ofborg[bot]
Evaluation Performance Report Evaluator Performance Report
Details
@github-actions[bot]
Wait for ofborg
Details
@ofborg[bot]
grahamcofborg-eval ^.^!
Details
@ofborg[bot]
grahamcofborg-eval-check-maintainers matching changed paths to changed attrs...
Details
@ofborg[bot]
grahamcofborg-eval-check-meta config.nix: checkMeta = true
Details
@ofborg[bot]
grahamcofborg-eval-darwin nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="91efec3"; rev="91efec3c7b701231c1ab4aae75f56d4108a5ca71"; } ./pkgs/t
Details
@ofborg[bot]
grahamcofborg-eval-lib-tests nix-build --arg pkgs import ./. {} ./lib/tests/release.nix
Details
@ofborg[bot]
grahamcofborg-eval-nixos nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="91efec3"; rev="91efec3c7b701231c1ab4aae75f56d4108a5ca71"; } ./nixos/
Details
@ofborg[bot]
grahamcofborg-eval-nixos-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="91efec3"; rev="91efec3c7b701231c1ab4aae75f56d4108a5ca71"; } ./nixos/
Details
@ofborg[bot]
grahamcofborg-eval-nixos-options nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="91efec3"; rev="91efec3c7b701231c1ab4aae75f56d4108a5ca71"; } ./nixos/
Details
@ofborg[bot]
grahamcofborg-eval-nixpkgs-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="91efec3"; rev="91efec3c7b701231c1ab4aae75f56d4108a5ca71"; } ./pkgs/t
Details
@ofborg[bot]
grahamcofborg-eval-nixpkgs-tarball nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="91efec3"; rev="91efec3c7b701231c1ab4aae75f56d4108a5ca71"; } ./pkgs/t
Details
@ofborg[bot]
grahamcofborg-eval-nixpkgs-unstable-jobset nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="91efec3"; rev="91efec3c7b701231c1ab4aae75f56d4108a5ca71"; } ./pkgs/t
Details
@ofborg[bot]
grahamcofborg-eval-package-list nix-env -qa --json --file .
Details
@ofborg[bot]
grahamcofborg-eval-package-list-no-aliases nix-env -qa --json --file . --arg config { allowAliases = false; }
Details
@ofborg[bot]
pcb2gcode, pcb2gcode.passthru.tests on aarch64-linux Success
Details
@ofborg[bot]
pcb2gcode, pcb2gcode.passthru.tests on x86_64-linux Success
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants