Skip to content

Subject: non-info in git_commit_id_title='Commit id:' #13920

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

Closed
p5pRT opened this issue Jun 13, 2014 · 11 comments
Closed

Subject: non-info in git_commit_id_title='Commit id:' #13920

p5pRT opened this issue Jun 13, 2014 · 11 comments

Comments

@p5pRT
Copy link

p5pRT commented Jun 13, 2014

Migrated from rt.perl.org#122097 (status was 'rejected')

Searchable as RT122097$

@p5pRT
Copy link
Author

p5pRT commented Jun 13, 2014

From @jimc

Created by @jimc

currently git_commit_id_title carries no info.
Patch to be attached once ticketed

Perl Info

Flags:
    category=core
    severity=low

Site configuration information for perl 5.21.1:

Configured by jimc at Fri Jun 13 06:46:46 MDT 2014.

Summary of my perl5 (revision 5 version 21 subversion 1) configuration:
  Commit id: 7990f6a make_patchnum: add HEAD commit info to commit_id_title
7990f6a1e31d1c9c08ffba7dc57e9
a8e83187ea2
  Platform:
    osname=linux, osvers=3.15.0-x2a-09930-g0e04c64, archname=x86_64-linux
    uname='linux groucho.jimc.earth 3.15.0-x2a-09930-g0e04c64 #175 smp thu
jun 12 15:13:18 mdt 2014 x86_6
4 x86_64 x86_64 gnulinux '
    config_args='-des -Dusedevel -DDEBUGGING=both -Dusecbacktrace'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fwrapv -DDEBUGGING -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/incl
ude -DUSE_C_BACKTRACE -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g',
    cppflags='-fwrapv -DDEBUGGING -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.8.2 20131212 (Red Hat 4.8.2-7)',
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 =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib
/lib64 /usr/lib64 /usr/local/lib6
4
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat -lbfd
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc -lbfd
    libc=libc-2.17.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.17'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib
-fstack-protector'



@INC for perl 5.21.1:
    lib
    /usr/local/lib/perl5/site_perl/5.21.1/x86_64-linux
    /usr/local/lib/perl5/site_perl/5.21.1
    /usr/local/lib/perl5/5.21.1/x86_64-linux
    /usr/local/lib/perl5/5.21.1
    /usr/local/lib/perl5/site_perl
    .


Environment for perl 5.21.1:
    HOME=/home/jimc
    LANG=en_US.UTF-8
    LANGUAGE (unset)

LD_LIBRARY_PATH=/usr/lib64/mpich/lib:/usr/lib64/alliance/lib:/usr/lib64/alliance/lib
    LOGDIR (unset)

PATH=/usr/lib64/qt-3.3/bin:/usr/lib64/mpich/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/l
ocal/sbin:/usr/sbin:/usr/lib64/alliance/bin:/usr/libexec/sdcc:/home/jimc/bin:./bin:.:/home/jimc/.local/bi
n:/home/jimc/bin:/usr/lib64/alliance/bin:/usr/libexec/sdcc:/home/jimc/bin:./bin:.
    PERL_BADLANG (unset)
    SHELL=/bin/bash
[jimc@groucho perl]$

@p5pRT
Copy link
Author

p5pRT commented Jun 13, 2014

From @jimc

On Fri, Jun 13, 2014 at 8​:48 AM, Jim Cromie <perlbug-followup@​perl.org>
wrote​:

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

This is a bug report for perl from jim.cromie@​gmail.com,
generated with the help of perlbug 1.40 running under perl 5.21.1.

-----------------------------------------------------------------
[Please describe your issue here]

currently git_commit_id_title carries no info.
Patch to be attached once ticketed

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags​:
category=core
severity=low
---
Site configuration information for perl 5.21.1​:

Configured by jimc at Fri Jun 13 06​:46​:46 MDT 2014.

Summary of my perl5 (revision 5 version 21 subversion 1) configuration​:
Commit id​: 7990f6a make_patchnum​: add HEAD commit info to commit_id_title
7990f6a1e31d1c9c08ffba7dc57e9
a8e83187ea2
Platform​:
osname=linux, osvers=3.15.0-x2a-09930-g0e04c64, archname=x86_64-linux
uname='linux groucho.jimc.earth 3.15.0-x2a-09930-g0e04c64 #175 smp thu
jun 12 15​:13​:18 mdt 2014 x86_6
4 x86_64 x86_64 gnulinux '
config_args='-des -Dusedevel -DDEBUGGING=both -Dusecbacktrace'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler​:
cc='cc', ccflags ='-fwrapv -DDEBUGGING -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/incl
ude -DUSE_C_BACKTRACE -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2 -g',
cppflags='-fwrapv -DDEBUGGING -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.8.2 20131212 (Red Hat 4.8.2-7)',
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 =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib
/lib64 /usr/lib64 /usr/local/lib6
4
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat -lbfd
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc -lbfd
libc=libc-2.17.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.17'
Dynamic Linking​:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib
-fstack-protector'

---
@​INC for perl 5.21.1​:
lib
/usr/local/lib/perl5/site_perl/5.21.1/x86_64-linux
/usr/local/lib/perl5/site_perl/5.21.1
/usr/local/lib/perl5/5.21.1/x86_64-linux
/usr/local/lib/perl5/5.21.1
/usr/local/lib/perl5/site_perl
.

---
Environment for perl 5.21.1​:
HOME=/home/jimc
LANG=en_US.UTF-8
LANGUAGE (unset)

LD_LIBRARY_PATH=/usr/lib64/mpich/lib​:/usr/lib64/alliance/lib​:/usr/lib64/alliance/lib
LOGDIR (unset)

PATH=/usr/lib64/qt-3.3/bin​:/usr/lib64/mpich/bin​:/usr/lib64/ccache​:/usr/local/bin​:/usr/bin​:/bin​:/usr/l

ocal/sbin​:/usr/sbin​:/usr/lib64/alliance/bin​:/usr/libexec/sdcc​:/home/jimc/bin​:./bin​:.​:/home/jimc/.local/bi

n​:/home/jimc/bin​:/usr/lib64/alliance/bin​:/usr/libexec/sdcc​:/home/jimc/bin​:./bin​:.
PERL_BADLANG (unset)
SHELL=/bin/bash
[jimc@​groucho perl]$

@p5pRT
Copy link
Author

p5pRT commented Jun 13, 2014

From @jimc

0001-make_patchnum-add-HEAD-commit-info-to-commit_id_titl.patch
From 7990f6a1e31d1c9c08ffba7dc57e9a8e83187ea2 Mon Sep 17 00:00:00 2001
From: Jim Cromie <[email protected]>
Date: Sat, 2 Nov 2013 12:56:46 -0600
Subject: [PATCH] make_patchnum: add HEAD commit info to commit_id_title

Currently, the value of "git_commit_id_title" in ./lib/Config_git.pl
carries no new info; though it says either 'Commit id:' or 'Derived
from:', thats already known via git_uncommitted_changes='0'.
This patch appends `git log --oneline -1` to git_commit_id_title's
current value.

BEFORE:
$ ./perl -Ilib -V:git.+
git_commit_id='1da5bb70ab48e3af769fcf1266b774a7dbe63a88';
git_describe='v5.20.0-RC1-9-g1da5bb7';
git_branch='blead';
git_uncommitted_changes='0';
git_commit_id_title='Commit id:';
git_commit_date='2014-05-24 14:25:14 +0100';

$ git rebase blead for-git-conf
First, rewinding head to replay your work on top of it...
Applying: make_patchnum: add HEAD commit info to commit_id_title
$ make -j4 > /dev/null 2>&1

AFTER:
$ ./perl -Ilib -V:git.+
git_commit_id='644fa81fabaf3c7afc0d6e7dbf0c3c61cf4e93f6';
git_describe='v5.20.0-RC1-10-g644fa81';
git_branch='for-git-conf';
git_uncommitted_changes='0';
git_commit_id_title='Commit id: 644fa81 make_patchnum: add HEAD commit info to commit_id_title';
git_commit_date='2014-05-24 10:24:46 -0600';

 $ ./perl -Ilib -V:git.+
 git_commit_id='952a411024b428d0f0f011ff3b4600cc5c42fb47';
 git_describe='v5.20.0-RC1-7-g952a411';
 git_branch='for-git-conf';
 git_uncommitted_changes='0';
 git_commit_id_title='Commit id: 952a411 make_patchnum: add HEAD commit info to commit_id_title';
 git_commit_date='2014-05-22 08:36:28 -0600';
---
 make_patchnum.pl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/make_patchnum.pl b/make_patchnum.pl
index 3f857b5..f68dd46 100644
--- a/make_patchnum.pl
+++ b/make_patchnum.pl
@@ -172,10 +172,11 @@ git_remote_branch='$remote/$merge'
 git_unpushed='$unpushed_commit_list'";
         }
     }
+    my $head = backtick("git log --oneline -1");
     if ($changed) {
-        $commit_title =  "Derived from:";
+        $commit_title =  "Derived from: $head";
     }
-    $commit_title ||= "Commit id:";
+    $commit_title ||= "Commit id: $head";
 }
 
 # we extract the filename out of the warning header, so don't mess with that
-- 
1.8.3.1

@p5pRT
Copy link
Author

p5pRT commented Jun 14, 2014

From @jkeenan

On Fri Jun 13 07​:53​:36 2014, yoduh wrote​:

On Fri, Jun 13, 2014 at 8​:48 AM, Jim Cromie <perlbug-
followup@​perl.org>
wrote​:

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

This patch looks plausible, but as I was completely unaware of the existence of the file to be patched, I would like to ask if the patch could be evaluated by someone who has previously worked on make_patchnum.pl? khw? Yves?

From 7990f6a1e31d1c9c08ffba7dc57e9a8e83187ea2 Mon Sep 17 00​:00​:00 2001
From​: Jim Cromie <jim.cromie@​gmail.com>
Date​: Sat, 2 Nov 2013 12​:56​:46 -0600
Subject​: [PATCH] make_patchnum​: add HEAD commit info to commit_id_title

Currently, the value of "git_commit_id_title" in ./lib/Config_git.pl
carries no new info; though it says either 'Commit id​:' or 'Derived
from​:', thats already known via git_uncommitted_changes='0'.
This patch appends `git log --oneline -1` to git_commit_id_title's
current value.

BEFORE​:
$ ./perl -Ilib -V​:git.+
git_commit_id='1da5bb70ab48e3af769fcf1266b774a7dbe63a88';
git_describe='v5.20.0-RC1-9-g1da5bb7';
git_branch='blead';
git_uncommitted_changes='0';
git_commit_id_title='Commit id​:';
git_commit_date='2014-05-24 14​:25​:14 +0100';

$ git rebase blead for-git-conf
First, rewinding head to replay your work on top of it...
Applying​: make_patchnum​: add HEAD commit info to commit_id_title
$ make -j4 > /dev/null 2>&1

AFTER​:
$ ./perl -Ilib -V​:git.+
git_commit_id='644fa81fabaf3c7afc0d6e7dbf0c3c61cf4e93f6';
git_describe='v5.20.0-RC1-10-g644fa81';
git_branch='for-git-conf';
git_uncommitted_changes='0';
git_commit_id_title='Commit id​: 644fa81 make_patchnum​: add HEAD commit info to commit_id_title';
git_commit_date='2014-05-24 10​:24​:46 -0600';

$ ./perl -Ilib -V​:git.+
git_commit_id='952a411024b428d0f0f011ff3b4600cc5c42fb47';
git_describe='v5.20.0-RC1-7-g952a411';
git_branch='for-git-conf';
git_uncommitted_changes='0';
git_commit_id_title='Commit id​: 952a411 make_patchnum​: add HEAD commit info to commit_id_title';
git_commit_date='2014-05-22 08​:36​:28 -0600';


make_patchnum.pl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Inline Patch
diff --git a/make_patchnum.pl b/make_patchnum.pl
index 3f857b5..f68dd46 100644
--- a/make_patchnum.pl
+++ b/make_patchnum.pl
@@ -172,10 +172,11 @@ git_remote_branch='$remote/$merge'
 git_unpushed='$unpushed_commit_list'";
         }
     }
+    my $head = backtick("git log --oneline -1");
     if ($changed) {
-        $commit_title =  "Derived from:";
+        $commit_title =  "Derived from: $head";
     }
-    $commit_title ||= "Commit id:";
+    $commit_title ||= "Commit id: $head";
 }
 
 # we extract the filename out of the warning header, so don't mess with that
-- 
1.8.3.1

@p5pRT
Copy link
Author

p5pRT commented Jun 14, 2014

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

@p5pRT
Copy link
Author

p5pRT commented Jun 16, 2014

From @tonycoz

On Fri Jun 13 07​:53​:36 2014, yoduh wrote​:

On Fri, Jun 13, 2014 at 8​:48 AM, Jim Cromie <perlbug-
followup@​perl.org>
wrote​:

git_commit_id_title is replaced into myconfig.SH, and becomes part of the output of perl -V​:

Summary of my perl5 (revision 5 version 21 subversion 1) configuration​:
  Derived from​: cb52689
  Platform​:
  osname=linux, osvers=3.2.0-4-amd64, archname=x86_64-linux-thread-multi
  uname='linux mars 3.2.0-4-amd64 #1 smp debian 3.2.57-3+deb7u1 x86_64 gnulinux '

It's exactly what it says it is - the title for git_commit_id included in perl -V.

I'll reject this patch in a few days unless someone points out I'm wrong.

Tony

@p5pRT
Copy link
Author

p5pRT commented Jun 16, 2014

From @jimc

On Mon, Jun 16, 2014 at 12​:06 AM, Tony Cook via RT <
perlbug-followup@​perl.org> wrote​:

On Fri Jun 13 07​:53​:36 2014, yoduh wrote​:

On Fri, Jun 13, 2014 at 8​:48 AM, Jim Cromie <perlbug-
followup@​perl.org>
wrote​:

git_commit_id_title is replaced into myconfig.SH, and becomes part of the
output of perl -V​:

Summary of my perl5 (revision 5 version 21 subversion 1) configuration​:
Derived from​: cb52689
Platform​:
osname=linux, osvers=3.2.0-4-amd64, archname=x86_64-linux-thread-multi
uname='linux mars 3.2.0-4-amd64 #1 smp debian 3.2.57-3+deb7u1 x86_64
gnulinux '

It's exactly what it says it is - the title for git_commit_id included in
perl -V.

I'll reject this patch in a few days unless someone points out I'm wrong.

Tony

I see no title in there. only the whole sha1.

Its clear from your -V output that the commit-id is there,

commit cb52689
Author​: Tony Cook <tony@​develop-help.com>
Date​: Thu Jun 12 15​:09​:53 2014 +1000

  some perldelta fixes

looking more closely at myconfig.SH,
there are 3 $vars to interpolate.

cat <<'!NO!SUBS!'
Summary of my $package (revision $revision $version_patchlevel_string)
configura
tion​:
  $git_commit_id_title $git_commit_id$git_ancestor_line
  Platform​:

but the title (1st line of the commit message) is not.

otherwise it would say at least
"some perldelta fixes",
or better​:
$ git log --oneline -1 cb52689
cb52689 some perldelta fixes

Frankly we dont need both commit-id and commit-id-title.
the use of former obscured the fact that the title was effectively unset,
providing only a "dirty" bit of info. (ie "Derived from​:")

So perhaps this patch is incomplete (missing tweaks to myconfig.SH), rather
than incorrect ?

@p5pRT
Copy link
Author

p5pRT commented Jun 17, 2014

From @ikegami

On Mon, Jun 16, 2014 at 3​:30 PM, Jim Cromie <jim.cromie@​gmail.com> wrote​:

I see no title in there. only the whole sha1.

Not title of the commit, title (label) of the field. "Derived from" and
"Commit id" are the possible titles.

@p5pRT
Copy link
Author

p5pRT commented Jun 17, 2014

From @tonycoz

On Mon Jun 16 12​:31​:48 2014, yoduh wrote​:

On Mon, Jun 16, 2014 at 12​:06 AM, Tony Cook via RT <
perlbug-followup@​perl.org> wrote​:

On Fri Jun 13 07​:53​:36 2014, yoduh wrote​:

On Fri, Jun 13, 2014 at 8​:48 AM, Jim Cromie <perlbug-
followup@​perl.org>
wrote​:

git_commit_id_title is replaced into myconfig.SH, and becomes part of the
output of perl -V​:

Summary of my perl5 (revision 5 version 21 subversion 1) configuration​:
Derived from​: cb52689
Platform​:
osname=linux, osvers=3.2.0-4-amd64, archname=x86_64-linux-thread-multi
uname='linux mars 3.2.0-4-amd64 #1 smp debian 3.2.57-3+deb7u1 x86_64
gnulinux '

It's exactly what it says it is - the title for git_commit_id included in
perl -V.

I'll reject this patch in a few days unless someone points out I'm wrong.

I see no title in there. only the whole sha1.

Its clear from your -V output that the commit-id is there,

commit cb52689
Author​: Tony Cook <tony@​develop-help.com>
Date​: Thu Jun 12 15​:09​:53 2014 +1000

some perldelta fixes

looking more closely at myconfig.SH,
there are 3 $vars to interpolate.

cat <<'!NO!SUBS!'
Summary of my $package (revision $revision $version_patchlevel_string)
configura
tion​:
$git_commit_id_title $git_commit_id$git_ancestor_line
Platform​:

but the title (1st line of the commit message) is not.

otherwise it would say at least
"some perldelta fixes",
or better​:
$ git log --oneline -1 cb52689
cb52689 some perldelta fixes

Frankly we dont need both commit-id and commit-id-title.
the use of former obscured the fact that the title was effectively unset,
providing only a "dirty" bit of info. (ie "Derived from​:")

So perhaps this patch is incomplete (missing tweaks to myconfig.SH), rather
than incorrect ?

It's not the title of the commit itself, it's providing a label for the commit id to indicate whether the build is for that specific commit id or for that commit with some changes.

git_commit_id_title can also be "Local Commit​:", if you have unpushed commit (which also fills in $git_ancestor_line, eg​:

Summary of my perl5 (revision 5 version 21 subversion 1) configuration​:
  Local Commit​: 2e90ec483292bb4dcf3b98438c3cf9a42a7d792e
  Ancestor​: f31006c
  Platform​:

Tony

@p5pRT
Copy link
Author

p5pRT commented Jul 2, 2014

From @tonycoz

On Sun Jun 15 23​:06​:36 2014, tonyc wrote​:

On Fri Jun 13 07​:53​:36 2014, yoduh wrote​:

On Fri, Jun 13, 2014 at 8​:48 AM, Jim Cromie <perlbug-
followup@​perl.org>
wrote​:

git_commit_id_title is replaced into myconfig.SH, and becomes part of
the output of perl -V​:

Summary of my perl5 (revision 5 version 21 subversion 1)
configuration​:
Derived from​: cb52689
Platform​:
osname=linux, osvers=3.2.0-4-amd64, archname=x86_64-linux-thread-
multi
uname='linux mars 3.2.0-4-amd64 #1 smp debian 3.2.57-3+deb7u1
x86_64 gnulinux '

It's exactly what it says it is - the title for git_commit_id included
in perl -V.

I'll reject this patch in a few days unless someone points out I'm
wrong.

Rejecting as discussed.

Tony

@p5pRT p5pRT closed this as completed Jul 2, 2014
@p5pRT
Copy link
Author

p5pRT commented Jul 2, 2014

@tonycoz - Status changed from 'open' to 'rejected'

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