Re: installation of Perl on OpenBSD 5.8 with perlbrew fails due crypt.h
On Tue, Nov 03, 2015 at 02:03:34PM -0200, Alceu Rodrigues de Freitas Junior wrote: > Hello Andrew, > > Em 02-11-2015 23:52, Andrew Fresh escreveu: > >Yes, we don't support many of the algorithms that the tests attempt to > >use. I should probably push this patch upstream (with improvements) but > >have not yet had time. > > > >https://github.com/afresh1/OpenBSD-perl/blob/master/patches/GOOD/fix_crypt_t ests.patch > > > > I took a look at your patch but didn't understand the objective of it. > > There are some comments as "# Use Blowfish", do you mean using > Crypt::Blowfish crypt function instead? No, from `man 3 crypt` Blowfish crypt The Blowfish version of crypt has 128 bits of salt in order to make building dictionaries of common passwords space consuming. ... The version number, the logarithm of the number of rounds and the concatenation of salt and hashed password are separated by the ‘$’ character. An encoded ‘8’ would specify 256 rounds. A valid Blowfish password looks like this: “$2b$12$FPWWO2RJ3CK4FINTw0Hi8OiPKJcX653gzSS.jqltHFMxyDmmQ0Hqq”. > Maybe a conditional block from Test::More help with that (including skipping > the test at all) would help, based on the osname from Config module. Perhaps, although with that patch the tests pass. I am sure I'll come up with something. > >That would be helpful, along with specific versions of perl you are > >trying to install. > > Here it goes: > Use of uninitialized value in substr at op/crypt.t line 43. > substr outside of string at op/crypt.t line 43. > I tried to install the latest perl available (5.22.0). This looks like the errors the patch addresses, so yes, something changed in 5.8. The other crypt's got tedu'd http://marc.info/?l=openbsd-cvs=142835341405554=2 l8rZ, -- andrew - http://afresh1.com If your computer says, "Printer out of Paper," this problem cannot be resolved by continuously clicking the "OK" button.
Re: installation of Perl on OpenBSD 5.8 with perlbrew fails due crypt.h
Hello Andrew, Em 02-11-2015 23:52, Andrew Fresh escreveu: I've successfully installed quite a few versions of perl using plenv, not perlbrew, but I think that plenv does not run the test suite. I may try to force the install without passing the tests, but it will probably work (as it does with plenv). Yes, we don't support many of the algorithms that the tests attempt to use. I should probably push this patch upstream (with improvements) but have not yet had time. https://github.com/afresh1/OpenBSD-perl/blob/master/patches/GOOD/fix_crypt_tests.patch I took a look at your patch but didn't understand the objective of it. There are some comments as "# Use Blowfish", do you mean using Crypt::Blowfish crypt function instead? Maybe a conditional block from Test::More help with that (including skipping the test at all) would help, based on the osname from Config module. That would be helpful, along with specific versions of perl you are trying to install. Here it goes: Test Summary Report --- op/crypt.t (Wstat: 0 Tests: 6 Failed: 1) Failed test: 1 op/taint.t (Wstat: 0 Tests: 801 Failed: 1) Failed test: 698 Files=2380, Tests=708371, 1082 wallclock secs (27.85 usr 131.32 sys + 336.00 cusr 277.86 csys = 773.03 CPU) Result: FAIL *** Error 2 in /home/arfreitas/perl5/perlbrew/build/perl-5.22.0 (makefile:809 'test_harness') And the details: Use of uninitialized value in substr at op/crypt.t line 43. substr outside of string at op/crypt.t line 43. Use of uninitialized value in substr at op/crypt.t line 43. substr outside of string at op/crypt.t line 43. Use of uninitialized value in string ne at op/crypt.t line 43. Use of uninitialized value in string ne at op/crypt.t line 43. # Failed test 1 - salt makes a difference at op/crypt.t line 43 op/crypt.t Failed 1/6 subtests # Failed test 698 - tainted crypt at op/taint.t line 1988 op/taint.t Failed 1/801 subtests (less 6 skipped subtests: 794 okay) I tried to install the latest perl available (5.22.0). Thanks, Alceu
installation of Perl on OpenBSD 5.8 with perlbrew fails due crypt.h
Hi there, My name is Alceu and I'm a newbie with OpenBSD. I hope I reached the right mailing list to ask about compiling Perl with perlbrew on OpenBSD. In the past I was successful to install different versions of Perl within OpenBSD 5.7 by using perlbrew, but when I tried the same procedure with version, it fails during the tests crypt.t and tainted.t. Initially I had forgot to install comp58.tgz set, but after correcting this, the same tests keep failing (but now for different reasons than "crypt.h is missing"). Is there any change to crypt.h on version 5.8? It seems the errors are due differences on the interface. Unfortunately I don't have the exact error messages, but I can try to reproduce the errors again if needed. Thanks! Alceu
Re: installation of Perl on OpenBSD 5.8 with perlbrew fails due crypt.h
On Mon, Nov 02, 2015 at 10:06:18PM -0200, Alceu Rodrigues de Freitas Junior wrote: > My name is Alceu and I'm a newbie with OpenBSD. I hope I reached the right > mailing list to ask about compiling Perl with perlbrew on OpenBSD. Seems a reasonable place. I've successfully installed quite a few versions of perl using plenv, not perlbrew, but I think that plenv does not run the test suite. > Is there any change to crypt.h on version 5.8? It seems the errors are due > differences on the interface. Yes, we don't support many of the algorithms that the tests attempt to use. I should probably push this patch upstream (with improvements) but have not yet had time. https://github.com/afresh1/OpenBSD-perl/blob/master/patches/GOOD/fix_crypt_tests.patch > Unfortunately I don't have the exact error messages, but I can try to > reproduce the errors again if needed. That would be helpful, along with specific versions of perl you are trying to install. l8rZ, -- andrew - http://afresh1.com Full-time system administration is a delicate balance between proactiveness and laziness. -- jhorwitz from use.perl.org