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

Perl fails to build due to ' in uname output #8891

Closed
p5pRT opened this issue May 5, 2007 · 4 comments
Closed

Perl fails to build due to ' in uname output #8891

p5pRT opened this issue May 5, 2007 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented May 5, 2007

Migrated from rt.perl.org#42886 (status was 'resolved')

Searchable as RT42886$

@p5pRT
Copy link
Author

p5pRT commented May 5, 2007

From rhialto@falu.nl

Created by rhialto@falu.nl

I sent this report to the NetBSD bug system, but it is really a Perl
problem. It was assigned pr number pkg/36277. It can also be seen at
http​://www.netbsd.org/cgi-bin/query-pr-single.pl?number=36277 ,
including any followups. A patch is included.

The perl configuration at the end is rather redundant, since it is for
another install of Perl, obviously.

Date​: Sat, 5 May 2007 17​:02​:11 +0200 (CEST)
From​: Rhialto <rhialto@​falu.nl>
To​: gnats-bugs@​gnats.NetBSD.org
Subject​: Perl fails to build due to ' in uname output
Reply-To​: rhialto@​falu.nl
Lines​: 73

Submitter-Id​: net
Originator​: Rhialto
Organization​:
 
Confidential​: no
Synopsis​: lang/perl fails to build due to ' in uname output
Severity​: serious
Priority​: medium
Category​: pkg
Class​: sw-bug
Release​: NetBSD 3.0
 
 
Environment​:
 
 
System​: NetBSD radl.falu.nl 3.0 NetBSD 3.0 (Radl's Pervasion of the Incorrect Chord) #2​: Sun Nov 26 21​:46​:18 CET 2006 root@​radl.falu.nl​:/usr/src/sys/arch/amd64/compile/RADL amd64
Architecture​: x86_64
Machine​: amd64
Description​:
  I was building pkgsrc-2007Q1 with pkg_comp, and it failed with
  lang/perl​:

What extensions do you wish to load dynamically?
[B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File Opcode POSIX PerlIO/encoding PerlIO/scalar PerlIO/via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/APItest XS/Typemap attrs re threads threads/shared]
What extensions do you wish to load statically? [none]
Stripping down executable paths...
Creating config.sh...
./config.sh​: 779​: Syntax error​: ")" unexpected
*** Error code 2

Stop.

  Sure enough, line 779 reads

myuname='netbsd radl.falu.nl 3.0 netbsd 3.0 (radl's pervasion of the incorrect chord) #2​: sun nov 26 21​:46​:18 cet 2006 root@​radl.falu.nl​:usrsrcsysarchamd64compileradl amd64 '

  Note the ' in "radl's".

  Strangely enough, the / characters that also occur in the output from
  uname -a (reproduced above in the System​: section) are removed
  even though they seem harmless to me.

How-To-Repeat​:
  Compile a kernel from a config file with

ident "Radl's Pervasion of the Incorrect Chord"

  and then try to compile perl.

  I wonder what other packages will break...

Fix​:

  A new patch file

Inline Patch
--- Configure.dist	2007-05-05 16:33:23.000000000 +0200
+++ Configure	2007-05-05 16:55:12.000000000 +0200
@@ -2965,7 +2965,7 @@
 $test -z "$myuname" && myuname=`hostname 2>/dev/null`
 # tr '[A-Z]' '[a-z]' would not work in EBCDIC
 # because the A-Z/a-z are not consecutive.
-myuname=`echo $myuname | $sed -e 's/^[^=]*=//' -e 's/\///g' | \
+myuname=`echo $myuname | $sed -e 's/^[^=]*=//' -e "s/['/]//g" | \
 	./tr '[A-Z]' '[a-z]' | $tr $trnl ' '`
 newmyuname="$myuname"
 dflt=n

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert      -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl        -- Cetero censeo "authored" delendum esse.
Perl Info

Flags:
    category=install
    severity=critical

Site configuration information for perl v5.8.8:

Configured by rhialto at Mon Oct  2 15:20:21 UTC 2006.

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=netbsd, osvers=3.0, archname=x86_64-netbsd-thread-multi
    uname='netbsd radl.falu.nl 3.0 netbsd 3.0 (radls doordringend onjuiste akkoord) #0: sat jan 28 16:44:07 cet 2006 root@radl.falu.nl:usrsrcsysarchamd64compileradl amd64 '
    config_args='-sde -Darchname=x86_64-netbsd -Dcc=cc -Doptimize=-O2 -pthread -I/usr/include -Duseshrplib -Ui_malloc -Uusemymalloc -Uinstallusrbinperl -Dinstallstyle=lib/perl5 -Dprefix=/usr/pkg -Dsiteprefix=/usr/pkg -Dvendorprefix=/usr/pkg -Dscriptdir=/usr/pkg/lib/perl5/bin -Dsitescript=/usr/pkg/lib/perl5/site_perl/bin -Dvendorscript=/usr/pkg/lib/perl5/vendor_perl/bin -Dsitebin=/usr/pkg/lib/perl5/site_perl/bin -Dvendorbin=/usr/pkg/lib/perl5/vendor_perl/bin -Dprivlib=/usr/pkg/lib/perl5/5.8.0 -Dsitelib=/usr/pkg/lib/perl5/site_perl/5.8.0 -Dvendorlib=/usr/pkg/lib/perl5/vendor_perl/5.8.0 -Dsitelib_stem=/usr/pkg/lib/perl5/site_perl -Dvendorlib_stem=/usr/pkg/lib/perl5/vendor_perl -Dman1ext=1 -Dman1dir=/usr/pkg/lib/perl5/man/man1 -Dsiteman1dir=/usr/pkg/lib/perl5/site_perl/man/man1 -Dvendorman1dir=/usr/pkg/lib/perl5/vendor_perl/man/man1 -Dman3ext=3 -Dman3dir=/usr/pkg/lib/perl5/man/man3 -Dsiteman3dir=/usr/pkg/lib/perl5/site_perl/man/man3 -Dvendorman3dir=/usr/pkg/lib/perl5/vendor_perl!
 /man/man3 -Daphostname=/bin/hostname -Dln=/bin/ln -Dsed=/usr/bin/sed -Dsh=/bin/sh -Dissymlink=test -h -Duseithreads -Dlibswanted=m crypt '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/pkg/include',
    optimize='-O2 -pthread -I/usr/include',
    cppflags='-fno-strict-aliasing -pipe -I/usr/pkg/include'
    ccversion='', gccversion='3.3.3 (NetBSD nb3 20040520)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-Wl,-R/usr/pkg/lib  -L/usr/pkg/lib'
    libpth=/usr/lib /usr/pkg/lib
    libs=-lm -lcrypt -lpthread
    perllibs=-lm -lcrypt -lpthread
    libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E  -Wl,-R/usr/pkg/lib/perl5/5.8.0/x86_64-netbsd-thread-multi/CORE'
    cccdlflags='-DPIC -fPIC ', lddlflags='-Wl,-R/usr/pkg/lib --whole-archive -shared  -L/usr/pkg/lib'

Locally applied patches:
    


@INC for perl v5.8.8:
    /usr/pkg/lib/perl5/site_perl/5.8.0/x86_64-netbsd-thread-multi
    /usr/pkg/lib/perl5/site_perl/5.8.0
    /usr/pkg/lib/perl5/site_perl
    /usr/pkg/lib/perl5/vendor_perl/5.8.0/x86_64-netbsd-thread-multi
    /usr/pkg/lib/perl5/vendor_perl/5.8.0
    /usr/pkg/lib/perl5/vendor_perl
    /usr/pkg/lib/perl5/5.8.0/x86_64-netbsd-thread-multi
    /usr/pkg/lib/perl5/5.8.0
    .


Environment for perl v5.8.8:
    HOME=/home/rhialto
    LANG (unset)
    LANGUAGE (unset)
    LC_CTYPE=nl_NL.ISO8859-1
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/rhialto/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/pkg/sbin:/usr/pkg/cross/bin:/usr/X11R6/bin:/usr/games:.
    PERL_BADLANG (unset)
    SHELL=/usr/pkg/bin/bash

@p5pRT
Copy link
Author

p5pRT commented May 7, 2007

From @Tux

Thanks for this report.

People that do things like this should get what they deserve. That is
sick!

Anyway, I have incorporated this fix in the perl configure metaunits,
and it will be in Configure with the next regeneration.

@p5pRT
Copy link
Author

p5pRT commented May 7, 2007

The RT System itself - Status changed from 'new' to 'open'

@p5pRT p5pRT closed this as completed May 7, 2007
@p5pRT
Copy link
Author

p5pRT commented May 7, 2007

@Tux - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant