!sUXcTulPzyhnqOiFPL:helsinki-systems.de

NixOS Perl

38 Members
13 Servers

Load older messages


SenderMessageTime
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
@hexa:lossy.networkhexahttps://www.openwall.com/lists/oss-security/2023/12/01/100:45:15
@stigo:matrix.orgstigo
In reply to @hexa:lossy.network
https://www.openwall.com/lists/oss-security/2023/12/01/1
Fixes for these are in staging from PR#269996
15:29:02
5 Dec 2023
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.00:38:22
10 Dec 2023
@theesm:lispy.eu@theesm:lispy.eu changed their display name from theesm to Wilko.18:29:43
13 Dec 2023
@adam:robins.wtf@adam:robins.wtf

hi, i'm back again hoping to get some guidance. i'm troubleshooting this issue: https://github.com/NixOS/nixpkgs/issues/271880

from what i can discern, slimserver seems to be failing to load the files from lib/perl5/site_perl/5.38.2/x86_64-linux-thread-multi/auto, in this case specifically for Audio-Scan. They much with the autoloading of modules in their bootstrap, injecting the vendored modules (which we've mostly dropped) https://github.com/Logitech/slimserver/blob/6ef52be5f61d9f5017a493ddb5ea675854b9772e/Slim/bootstrap.pm#L133

18:41:55
@adam:robins.wtf@adam:robins.wtf i suspect that i need to tell slimserver to also load from the auto directories from our perl packages, but i'm kind of at a loss on the best way to proceed 18:42:45
@stigo:matrix.orgstigoMy thinking at the time was to look at why slimserver needs specific versions of vendored packages (for example DBI), and try to patch slimserver to be able to use the latest ones. I havent looked at the issue yet tho, can do tomorrow eve.18:59:46
@stigo:matrix.orgstigo * My thinking at the time was to look at why slimserver needs specific versions of vendored packages (for example DBI), and try to patch slimserver to be able to use the latest ones. I havent looked at the issue yet tho, can do tomorrow eve unless someone beats me to it :)19:00:07
@adam:robins.wtf@adam:robins.wtf Should `auto` be loaded from automatically? 19:39:53

Show newer messages


Back to Room ListRoom Version: 9