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

Clarify documentation for bisection #17030

Closed
p5pRT opened this issue Jun 2, 2019 · 8 comments
Closed

Clarify documentation for bisection #17030

p5pRT opened this issue Jun 2, 2019 · 8 comments

Comments

@p5pRT
Copy link

p5pRT commented Jun 2, 2019

Migrated from rt.perl.org#134164 (status was 'pending release')

Searchable as RT134164$

@p5pRT
Copy link
Author

p5pRT commented Jun 2, 2019

From @jkeenan

Some dialog from irc.perl.org #p5p this evening​:

#####
(08​:09​:00 PM) hydahy​: Anyone familiar with Porting/bisect.pl bailing out
early in Configure with the error "./Configure​: 1​: ./posthint.sh​: Bad
substitution" ?
...
(09​:10​:34 PM) kid51​: What is the command you provided for bisection?
...
(09​:17​:15 PM) hydahy​: Started with​: ./Porting/bisect.pl --target
t/io/pipe.t --start v5.31.0 -A -Alibpth="/system/lib /vendor/lib"
(09​:17​:31 PM) hydahy​: Error also occurs with ./Porting/bisect.pl
--test-build -A -Alibpth="/system/lib /vendor/lib"
(09​:21​:38 PM) kid51​: Remove the first '-A' and start over.
(09​:23​:14 PM) hydahy​: ohhhh, I misunderstood the POD then
(09​:23​:26 PM) kid51​: You're not the first!
(09​:23​:34 PM) khw​: clarifying patches welcome
#####

hydahy is not the first, because I know I have had to pose this question
at least twice before.

TonyC and other frequent bisectors, please review patch attached.

@p5pRT
Copy link
Author

p5pRT commented Jun 2, 2019

From @jkeenan

0001-Clarify-documentation-for-bisect-runner.patch
From 4b49b8bc9f3ea9cd6ecce945e254729d21ce6e28 Mon Sep 17 00:00:00 2001
From: James E Keenan <jkeenan@cpan.org>
Date: Sat, 1 Jun 2019 21:29:22 -0400
Subject: [PATCH] Clarify documentation for bisect runner.

The -D, -A and -U switches should be spelled as if you were normally
giving them to ./Configure.
---
 Porting/bisect-runner.pl | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Porting/bisect-runner.pl b/Porting/bisect-runner.pl
index 00319211c9..cdf5760b52 100755
--- a/Porting/bisect-runner.pl
+++ b/Porting/bisect-runner.pl
@@ -430,20 +430,20 @@ as exiting with a signal or a core dump.)
 
 =item *
 
--D I<config_arg=value>
+-DI<config_arg=value>
 
 =item *
 
--U I<config_arg>
+-UI<config_arg>
 
 =item *
 
--A I<config_arg=value>
+-AI<config_arg=value>
 
 Arguments (C<-A>, C<-D>, C<-U>) to pass to F<Configure>. For example,
 
-    -Dnoextensions=Encode
-    -Uusedevel
+    -Dnoextensions=Encode \
+    -Uusedevel \
     -Accflags=-DNO_MATHOMS
 
 Repeated C<-A> arguments are passed
-- 
2.17.1

@p5pRT
Copy link
Author

p5pRT commented Jun 2, 2019

From @jkeenan

Summary of my perl5 (revision 5 version 31 subversion 0) configuration​:
  Commit id​: 58f4626
  Platform​:
  osname=linux
  osvers=4.15.0-50-generic
  archname=x86_64-linux
  uname='linux zareason 4.15.0-50-generic #54-ubuntu smp mon may 6 18​:46​:08 utc 2019 x86_64 x86_64 x86_64 gnulinux '
  config_args='-des -Dusedevel -Dusemymalloc=y'
  hint=recommended
  useposix=true
  d_sigaction=define
  useithreads=undef
  usemultiplicity=undef
  use64bitint=define
  use64bitall=define
  uselongdouble=undef
  usemymalloc=y
  default_inc_excludes_dot=define
  bincompat5005=undef
  Compiler​:
  cc='cc'
  ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
  optimize='-O2'
  cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
  ccversion=''
  gccversion='7.4.0'
  gccosandvers=''
  intsize=4
  longsize=8
  ptrsize=8
  doublesize=8
  byteorder=12345678
  doublekind=3
  d_longlong=define
  longlongsize=8
  d_longdbl=define
  longdblsize=16
  longdblkind=3
  ivtype='long'
  ivsize=8
  nvtype='double'
  nvsize=8
  Off_t='off_t'
  lseeksize=8
  alignbytes=8
  prototype=define
  Linker and Libraries​:
  ld='cc'
  ldflags =' -fstack-protector-strong -L/usr/local/lib'
  libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /lib64 /usr/lib64
  libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
  perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
  libc=libc-2.27.so
  so=so
  useshrplib=false
  libperl=libperl.a
  gnulibc_version='2.27'
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs
  dlext=so
  d_dlsymun=undef
  ccdlflags='-Wl,-E'
  cccdlflags='-fPIC'
  lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'

Characteristics of this binary (from libperl)​:
  Compile-time options​:
  HAS_TIMES
  MYMALLOC
  PERLIO_LAYERS
  PERL_COPY_ON_WRITE
  PERL_DONT_CREATE_GVSV
  PERL_MALLOC_WRAP
  PERL_OP_PARENT
  PERL_PRESERVE_IVUV
  PERL_USE_DEVEL
  USE_64_BIT_ALL
  USE_64_BIT_INT
  USE_LARGE_FILES
  USE_LOCALE
  USE_LOCALE_COLLATE
  USE_LOCALE_CTYPE
  USE_LOCALE_NUMERIC
  USE_LOCALE_TIME
  USE_PERLIO
  USE_PERL_ATOF
  Built under linux
  Compiled at May 22 2019 14​:58​:04
  %ENV​:
  PERL2DIR="/home/jkeenan/gitwork/perl2"
  PERLBREW_HOME="/home/jkeenan/.perlbrew"
  PERLBREW_MANPATH="/home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/man"
  PERLBREW_PATH="/home/jkeenan/perl5/perlbrew/bin​:/home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/bin"
  PERLBREW_PERL="perl-5.28.0"
  PERLBREW_ROOT="/home/jkeenan/perl5/perlbrew"
  PERLBREW_SHELLRC_VERSION="0.84"
  PERLBREW_VERSION="0.84"
  PERL_WORKDIR="/home/jkeenan/gitwork/perl"
  @​INC​:
  lib
  /usr/local/lib/perl5/site_perl/5.31.0/x86_64-linux
  /usr/local/lib/perl5/site_perl/5.31.0
  /usr/local/lib/perl5/5.31.0/x86_64-linux
  /usr/local/lib/perl5/5.31.0

@p5pRT
Copy link
Author

p5pRT commented Jun 4, 2019

From @tonycoz

On Sat, 01 Jun 2019 18​:33​:12 -0700, jkeenan@​pobox.com wrote​:

Some dialog from irc.perl.org #p5p this evening​:

#####
(08​:09​:00 PM) hydahy​: Anyone familiar with Porting/bisect.pl bailing out
early in Configure with the error "./Configure​: 1​: ./posthint.sh​: Bad
substitution" ?
...
(09​:10​:34 PM) kid51​: What is the command you provided for bisection?
...
(09​:17​:15 PM) hydahy​: Started with​: ./Porting/bisect.pl --target
t/io/pipe.t --start v5.31.0 -A -Alibpth="/system/lib /vendor/lib"
(09​:17​:31 PM) hydahy​: Error also occurs with ./Porting/bisect.pl
--test-build -A -Alibpth="/system/lib /vendor/lib"
(09​:21​:38 PM) kid51​: Remove the first '-A' and start over.
(09​:23​:14 PM) hydahy​: ohhhh, I misunderstood the POD then
(09​:23​:26 PM) kid51​: You're not the first!
(09​:23​:34 PM) khw​: clarifying patches welcome
#####

hydahy is not the first, because I know I have had to pose this question
at least twice before.

TonyC and other frequent bisectors, please review patch attached.

--D I<config_arg=value>
+-DI<config_arg=value>

=item *

--U I<config_arg>
+-UI<config_arg>

=item *

--A I<config_arg=value>
+-AI<config_arg=value>

bisect.pl accepts the switches both with and without the space, just as Configure does which is what it looks like you're changing here.

For example, I ran​:

  perl ../bisect.pl --start=v5.26.0 -D prefix=/home/tony/perl/bisect -e 'my $a := 2'

and in the resulting config.sh​:

config_args='-dEs -Dcc=ccache cc -Dld=cc -Dlibpth=/lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib /usr/local/lib64 /lib64 /usr/lib64 -Doptimize=-g -Dprefix=/home/tony/perl/bisect -Dusedevel'

The I<config_arg> in the documentation might be ambiguous if you're not familiar with Configure (ie. that it accepts -A, -D and -U switches), but your patch doesn't change that (config_name instead, maybe?)

I suspect the best change would be to include your commit message​:

The -D, -A and -U switches should be spelled as if you were normally
giving them to ./Configure.

which would resolve the ambiguity.

I don't think the following is needed​:

- -Dnoextensions=Encode
- -Uusedevel
+ -Dnoextensions=Encode \
+ -Uusedevel \
  -Accflags=-DNO_MATHOMS

as those are intended as separate examples.

Tony

@p5pRT
Copy link
Author

p5pRT commented Jun 4, 2019

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

@p5pRT
Copy link
Author

p5pRT commented Jun 4, 2019

From @jkeenan

On Tue, 04 Jun 2019 00​:20​:10 GMT, tonyc wrote​:

On Sat, 01 Jun 2019 18​:33​:12 -0700, jkeenan@​pobox.com wrote​:

Some dialog from irc.perl.org #p5p this evening​:

#####
(08​:09​:00 PM) hydahy​: Anyone familiar with Porting/bisect.pl bailing
out
early in Configure with the error "./Configure​: 1​: ./posthint.sh​: Bad
substitution" ?
...
(09​:10​:34 PM) kid51​: What is the command you provided for bisection?
...
(09​:17​:15 PM) hydahy​: Started with​: ./Porting/bisect.pl --target
t/io/pipe.t --start v5.31.0 -A -Alibpth="/system/lib /vendor/lib"
(09​:17​:31 PM) hydahy​: Error also occurs with ./Porting/bisect.pl
--test-build -A -Alibpth="/system/lib /vendor/lib"
(09​:21​:38 PM) kid51​: Remove the first '-A' and start over.
(09​:23​:14 PM) hydahy​: ohhhh, I misunderstood the POD then
(09​:23​:26 PM) kid51​: You're not the first!
(09​:23​:34 PM) khw​: clarifying patches welcome
#####

hydahy is not the first, because I know I have had to pose this
question
at least twice before.

TonyC and other frequent bisectors, please review patch attached.

--D I<config_arg=value>
+-DI<config_arg=value>

=item *

--U I<config_arg>
+-UI<config_arg>

=item *

--A I<config_arg=value>
+-AI<config_arg=value>

bisect.pl accepts the switches both with and without the space, just
as Configure does which is what it looks like you're changing here.

For example, I ran​:

perl ../bisect.pl --start=v5.26.0 -D prefix=/home/tony/perl/bisect -e
'my $a := 2'

and in the resulting config.sh​:

config_args='-dEs -Dcc=ccache cc -Dld=cc -Dlibpth=/lib/x86_64-linux-
gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
/usr/lib /usr/local/lib64 /lib64 /usr/lib64 -Doptimize=-g
-Dprefix=/home/tony/perl/bisect -Dusedevel'

The I<config_arg> in the documentation might be ambiguous if you're
not familiar with Configure (ie. that it accepts -A, -D and -U
switches), but your patch doesn't change that (config_name instead,
maybe?)

I suspect the best change would be to include your commit message​:

The -D, -A and -U switches should be spelled as if you were normally
giving them to ./Configure.

which would resolve the ambiguity.

I don't think the following is needed​:

- -Dnoextensions=Encode
- -Uusedevel
+ -Dnoextensions=Encode \
+ -Uusedevel \
-Accflags=-DNO_MATHOMS

as those are intended as separate examples.

Tony

Thanks. Pushed to blead in commit 6aed8e2.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT p5pRT closed this as completed Jun 4, 2019
@p5pRT
Copy link
Author

p5pRT commented Jun 4, 2019

@jkeenan - Status changed from 'open' to 'pending release'

@p5pRT
Copy link
Author

p5pRT commented Jun 16, 2019

From @Tux

On Sat, 01 Jun 2019 18​:33​:12 -0700, "James E Keenan \(via RT\)"
<perlbug-followup@​perl.org> wrote​:

# New Ticket Created by James E Keenan
# Please include the string​: [perl #134164]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=134164 >

Some dialog from irc.perl.org #p5p this evening​:

#####
(08​:09​:00 PM) hydahy​: Anyone familiar with Porting/bisect.pl bailing
out early in Configure with the error "./Configure​: 1​: ./posthint.sh​:
Bad substitution" ?
...
(09​:10​:34 PM) kid51​: What is the command you provided for bisection?
...
(09​:17​:15 PM) hydahy​: Started with​: ./Porting/bisect.pl --target
t/io/pipe.t --start v5.31.0 -A -Alibpth="/system/lib /vendor/lib"
(09​:17​:31 PM) hydahy​: Error also occurs with ./Porting/bisect.pl
--test-build -A -Alibpth="/system/lib /vendor/lib"
(09​:21​:38 PM) kid51​: Remove the first '-A' and start over.
(09​:23​:14 PM) hydahy​: ohhhh, I misunderstood the POD then
(09​:23​:26 PM) kid51​: You're not the first!
(09​:23​:34 PM) khw​: clarifying patches welcome
#####

hydahy is not the first, because I know I have had to pose this
question at least twice before.

TonyC and other frequent bisectors, please review patch attached.

Not using bisectors a lot, but I fully agree with this patch

--
H.Merijn Brand http​://tux.nl Perl Monger http​://amsterdam.pm.org/
using perl5.00307 .. 5.29 porting perl5 on HP-UX, AIX, and openSUSE
http​://mirrors.develooper.com/hpux/ http​://www.test-smoke.org/
http​://qa.perl.org http​://www.goldmark.org/jeff/stupid-disclaimers/

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

No branches or pull requests

1 participant