!sUXcTulPzyhnqOiFPL:helsinki-systems.de

NixOS Perl

37 Members
13 Servers

Load older messages


SenderMessageTime
17 Nov 2023
@janne.hess:helsinki-systems.deJanne Heßis this what you need?08:25:31
@stigo:matrix.orgstigokinda, but would nice length as well08:26:26
@stigo:matrix.orgstigo * kinda, but would need length as well08:26:31
@janne.hess:helsinki-systems.deJanne Heß(well that's only one of the 6 things you need :/)08:26:36
@stigo:matrix.orgstigoStarted working on another perlPackages update as well, nicer to have about 60 changes to deal with rather than 500+.22:22:53
@hexa:lossy.networkhexafor python every bulk update burns me out for a while23:34:18
18 Nov 2023
@stigo:matrix.orgstigo
In reply to @hexa:lossy.network
for python every bulk update burns me out for a while
yeah.. :)
02:22:50
@artturin:matrix.orgArtturinThe perl ecosystem is at least stable 😩21:30:50
@stigo:matrix.orgstigoNew WIP PR for updating perlPackages for november: https://github.com/NixOS/nixpkgs/pull/26837421:37:46
19 Nov 2023
@zxgu:matrix.orgZXGU joined the room.10:59:21
25 Nov 2023
@stigo:matrix.orgstigo There is some issue with todays perl-5.38.1 announced on p5p. Guessing there will be some official announcement soon\ 21:13:42
@stigo:matrix.orgstigo(Judging from the perl-5.38.1a tarball in PEVANS cpan dir)21:18:53
@stigo:matrix.orgstigo * Seems to be some issue with todays perl-5.38.1 announced on p5p. Guessing there will be some official announcement soon?21:19:16
@stigo:matrix.orgstigohttps://github.com/NixOS/nixpkgs/pull/26999622:02:06
@stigo:matrix.orgstigo Regarding CVE-2023-47038, cpanel says :"is only relevant during the use of \p in regexes, which our code does not use." https://news.cpanel.com/perl-cve-2023-47038-and-cve-2023-47039/ 23:39:05
28 Nov 2023
@stigo:matrix.orgstigoThis should be good for staging btw, if someone wanna merge: https://github.com/NixOS/nixpkgs/pull/26837410:01:55
30 Nov 2023
@quentinmit:matrix.orgquentin I just tried to use a Perl script inside a package (so inside the Nix sandbox), and it looks like Perl has a hardcoded /bin/sh that it uses for system("foo") calls. Is this a known thing? 00:24:26
@quentinmit:matrix.orgquentin I think this means that perl -e 'system "echo works"' would fail inside the Nix sandbox 00:24:43
@quentinmit:matrix.orgquentin

It looks like Configure tries to detect the path to the shell, and I can see from the built config.h that it found /bin/sh:

$ grep SH_PATH /nix/store/afz9z2iczjx13i66ymwwinwp2zvgc1ck-perl-5.38.0/lib/perl5/5.38.0/x86_64-linux-thread-multi/CORE/config.h 
/* SH_PATH:
#define SH_PATH "/bin/sh"  /**/
00:27:20
@quentinmit:matrix.orgquentinAm I missing something? Should configure be patched to use `stdenv.shell`? I don't understand why `/bin/sh` would work for Perl's own build if `/bin/sh` doesn't exist in a normal build sandbox00:34:18
@stigo:matrix.orgstigoHm, need to look into this a bit more. But thinking we might need to set targetsh= and startsh= when calling Configure01:56:51
@stigo:matrix.orgstigosystem() calls /bin/sh when it thinks that it needs a shell01:57:37
@stigo:matrix.orgstigoWhat are you trying to do specifically? Do you have an example I can look at?01:57:50
@stigo:matrix.orgstigo(getting some sleep now, but will check in again tomorrow)01:58:04
@stigo:matrix.orgstigoReady for review/merge: https://github.com/NixOS/nixpkgs/pull/26999615:34:33
@quentinmit:matrix.orgquentin
In reply to @stigo:matrix.org
What are you trying to do specifically? Do you have an example I can look at?
I'm trying to package https://salsa.debian.org/perl-team/modules/packages/equivs, which is a perl script that includes a system() call.
20:14:13
@quentinmit:matrix.orgquentin

I packaged it just fine, but the resulting program fails with

Can't exec "/bin/sh": No such file or directory at /nix/store/yc09sxq40aaai2141cv1d32c7wflh90c-equivs-2.3.1/bin/equivs-build line 54.
20:14:45
@quentinmit:matrix.orgquentin
In reply to @stigo:matrix.org
What are you trying to do specifically? Do you have an example I can look at?

Here's something you can drop in flake.nix and try building with nix build -L .#:

{
  outputs = { self, nixpkgs }:
    let
      pkgs = import nixpkgs { system = "x86_64-linux"; };
    in {
      packages.x86_64-linux.default = pkgs.runCommand "foo" {
        nativeBuildInputs = [pkgs.perlPackages.perl];
      } ''
        ls -l /bin/sh || :
        perl -e 'system("echo bash version \$BASH_VERSION") == 0 or die "system failed: $!"'
      '';
    };
}
23:50:38
@quentinmit:matrix.orgquentin

Without a working /bin/sh in my sandbox (check the nix-daemon sandbox-paths setting), I get:

$ nix build -L .#
foo> ls: cannot access '/bin/sh': No such file or directory
foo> system failed: No such file or directory at -e line 1.
error: builder for '/nix/store/4pvz9fm4lsg5x0b0hcnf19wpvvkkg4cr-foo.drv' failed with exit code 2;
       last 2 log lines:
       > ls: cannot access '/bin/sh': No such file or directory
       > system failed: No such file or directory at -e line 1.
       For full logs, run 'nix log /nix/store/4pvz9fm4lsg5x0b0hcnf19wpvvkkg4cr-foo.drv'.
23:51:24
1 Dec 2023
@hexa:lossy.networkhexahappy december00:45:15

Show newer messages


Back to Room ListRoom Version: 9