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

dev-lang/jimtcl-0.78-r2: Clean up #12396

Closed
wants to merge 2 commits into from

Conversation

eugene-bright
Copy link
Contributor

@eugene-bright eugene-bright commented Jul 7, 2019

Comply with EAPI=7.

Revive bootstrap forcing patch.

Closes: https://bugs.gentoo.org/689378
Closes: https://bugs.gentoo.org/675276

Signed-off-by: Eugene Bright eugene@bright.gdn

@gentoo-bot gentoo-bot added maintainer-needed There is at least one affected package with no maintainer. Review it if you can. assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. no signoff One or more commits do not indicate GCO sign-off. labels Jul 7, 2019
@eugene-bright eugene-bright changed the title dev-lang/jimtcl-0.78-r2: Clean up [please reassign] dev-lang/jimtcl-0.78-r2: Clean up Jul 7, 2019
@eugene-bright eugene-bright changed the title [please reassign] dev-lang/jimtcl-0.78-r2: Clean up dev-lang/jimtcl-0.78-r2: Clean up [please reassign] Jul 7, 2019
@gentoo-bot gentoo-bot changed the title dev-lang/jimtcl-0.78-r2: Clean up [please reassign] dev-lang/jimtcl-0.78-r2: Clean up Jul 7, 2019
@gentoo-bot gentoo-bot added maintainer-needed There is at least one affected package with no maintainer. Review it if you can. assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. and removed assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. maintainer-needed There is at least one affected package with no maintainer. Review it if you can. no signoff One or more commits do not indicate GCO sign-off. labels Jul 7, 2019
@eugene-bright eugene-bright changed the title dev-lang/jimtcl-0.78-r2: Clean up dev-lang/jimtcl-0.78-r2: Clean up [please reassign] Jul 7, 2019
@eugene-bright eugene-bright changed the title dev-lang/jimtcl-0.78-r2: Clean up [please reassign] dev-lang/jimtcl-0.78-r2: Clean up Jul 7, 2019
dev-lang/jimtcl/files/jimtcl-0.78-bootstrap.patch Outdated Show resolved Hide resolved
@@ -49,5 +49,5 @@ src_install() {
doins jim.h jimautoconf.h jim-subcmd.h jim-signal.h \
jim-win32compat.h jim-eventloop.h jim-config.h
dodoc AUTHORS README TODO
use doc && dohtml Tcl.html
use doc && (docinto html; dodoc Tcl.html)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use a subshell. Use if; then.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@eugene-bright eugene-bright force-pushed the jimtcl branch 3 times, most recently from f66620e to 2511501 Compare July 7, 2019 14:08
@eugene-bright
Copy link
Contributor Author

@mgorny, thank you for proxying my commits.

@mgorny
Copy link
Member

mgorny commented Jul 7, 2019

Well, I suppose the result is reproducible now… but not sure if really expected:

>>> Emerging (1 of 1) dev-lang/jimtcl-0.78-r2::gentoo                                                                                              
 * jimtcl-0.78.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                           [ ok ] 
>>> Unpacking source...                                                                                                                            
>>> Unpacking jimtcl-0.78.tar.gz to /tmp/portage/dev-lang/jimtcl-0.78-r2/work                                                                      
>>> Source unpacked in /tmp/portage/dev-lang/jimtcl-0.78-r2/work                                                                                   
>>> Preparing source in /tmp/portage/dev-lang/jimtcl-0.78-r2/work/jimtcl-0.78 ...                                                                  
 * Applying jimtcl-0.78-bootstrap.patch ...                                                                                                 [ ok ] 
>>> Source prepared.                                                                                                                               
>>> Configuring source in /tmp/portage/dev-lang/jimtcl-0.78-r2/work/jimtcl-0.78 ...                                                                
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/$
hare --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-jim-shared                                                              
free(): invalid pointer                                                                                                                            
/usr/lib/portage/python3.7/phase-helpers.sh: line 603:    49 Aborted                 (core dumped) "${ECONF_SOURCE}/configure" "$@"
 * ERROR: dev-lang/jimtcl-0.78-r2::gentoo failed (configure phase):                                                                                
 *   econf failed               

@eugene-bright
Copy link
Contributor Author

works on my machine

@eugene-bright
Copy link
Contributor Author

It's exactly that happens in https://bugs.gentoo.org/675276

@eugene-bright
Copy link
Contributor Author

I can provide dirty workaround: disable bootstrapping and always use tclsh (will be added to DEPEND).

@eugene-bright
Copy link
Contributor Author

eugene-bright commented Jul 7, 2019

I'd like to see coredump stacktrace if possible. Can't reproduce segfault by myself.

@mgorny
Copy link
Member

mgorny commented Jul 7, 2019

Ok, give me a few minutes.

@mgorny
Copy link
Member

mgorny commented Jul 7, 2019

           PID: 18899 (jimsh0)
           UID: 250 (portage)
           GID: 250 (portage)
        Signal: 6 (ABRT)
     Timestamp: Sun 2019-07-07 20:23:24 CEST (11s ago)
  Command Line: /tmp/portage/dev-lang/jimtcl-0.78-r2/work/jimtcl-0.78/autosetup/jimsh0 ./autosetup/autosetup --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-jim-shared
    Executable: /tmp/portage/dev-lang/jimtcl-0.78-r2/work/jimtcl-0.78/autosetup/jimsh0
 Control Group: /user.slice/user-1000.slice/session-1.scope
          Unit: session-1.scope
         Slice: user-1000.slice
       Session: 1
     Owner UID: 1000 (mgorny)
       Boot ID: 384168c3e4d146b09d990980b1c8aa15
    Machine ID: cbeea876b7596261aef94d8a0000000d
      Hostname: pomiot
       Storage: /var/lib/systemd/coredump/core.jimsh0.250.384168c3e4d146b09d990980b1c8aa15.18899.1562523804000000.lz4
       Message: Process 18899 (jimsh0) of user 250 dumped core.
GNU gdb (Gentoo 8.3 vanilla) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /tmp/portage/dev-lang/jimtcl-0.78-r2/work/jimtcl-0.78/autosetup/jimsh0...
[New LWP 47]
[New LWP 52]
Core was generated by `/tmp/portage/dev-lang/jimtcl-0.78-r2/work/jimtcl-0.78/autosetup/jimsh0 ./autose'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (LWP 47)]
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007fc98e790536 in __GI_abort () at abort.c:79
#2  0x00007fc98e7ec898 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fc98e909461 "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007fc98e7f48b8 in malloc_printerr (str=str@entry=0x7fc98e9075b1 "free(): invalid pointer") at malloc.c:5352
#4  0x00007fc98e7f62ac in _int_free (av=<optimized out>, p=<optimized out>, have_lock=<optimized out>) at malloc.c:4181
#5  0x0000563c5256d373 in Jim_Free (ptr=0x7fc98e740010) at ./autosetup/jimsh0.c:6576
#6  0x0000563c52569d14 in JimFreeEnv (env=0x7fc98e740010, original_environ=0x7ffecba2ee90) at ./autosetup/jimsh0.c:4453
#7  0x0000563c5256b9fe in JimRestoreEnv (env=0x7ffecba2ee90) at ./autosetup/jimsh0.c:5636
#8  0x0000563c5256b5d1 in JimCreatePipeline (interp=0x563c52ed4260, argc=4, argv=0x7ffecba2b5d8, pidArrayPtr=0x7ffecba2b4b8, inPipePtr=0x0, 
    outPipePtr=0x7ffecba2b49c, errFilePtr=0x7ffecba2b4a0) at ./autosetup/jimsh0.c:5100
#9  0x0000563c5256a21a in Jim_ExecCmd (interp=0x563c52ed4260, argc=5, argv=0x7ffecba2b5d0) at ./autosetup/jimsh0.c:4581
#10 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=5, objv=0x7ffecba2b5d0) at ./autosetup/jimsh0.c:14922
#11 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f3cd90) at ./autosetup/jimsh0.c:15311
#12 0x0000563c52581077 in JimCallProcedure (interp=0x563c52ed4260, cmd=0x563c52f3ef50, argc=4, argv=0x7ffecba2b780) at ./autosetup/jimsh0.c:15538
#13 0x0000563c5257f4a4 in JimInvokeCommand (interp=0x563c52ed4260, objc=4, objv=0x7ffecba2b780) at ./autosetup/jimsh0.c:14918
#14 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52fc8e90) at ./autosetup/jimsh0.c:15311
#15 0x0000563c525894be in Jim_CatchCoreCommand (interp=0x563c52ed4260, argc=2, argv=0x7ffecba2b938) at ./autosetup/jimsh0.c:18264
#16 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=3, objv=0x7ffecba2b930) at ./autosetup/jimsh0.c:14922
#17 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52fc8af0) at ./autosetup/jimsh0.c:15311
#18 0x0000563c5257d6ba in Jim_EvalExpression (interp=0x563c52ed4260, exprObjPtr=0x563c52fc8c40, exprResultPtrPtr=0x7ffecba2bac0)
    at ./autosetup/jimsh0.c:14201
#19 0x0000563c5257d87f in Jim_GetBoolFromExpr (interp=0x563c52ed4260, exprObjPtr=0x563c52fc8c40, boolPtr=0x7ffecba2bb00)
    at ./autosetup/jimsh0.c:14244
#20 0x0000563c52583fbe in Jim_IfCoreCommand (interp=0x563c52ed4260, argc=3, argv=0x7ffecba2bc00) at ./autosetup/jimsh0.c:16609
#21 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=3, objv=0x7ffecba2bc00) at ./autosetup/jimsh0.c:14922
#22 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52fc82e0) at ./autosetup/jimsh0.c:15311
#23 0x0000563c52584049 in Jim_IfCoreCommand (interp=0x563c52ed4260, argc=3, argv=0x7ffecba2bd80) at ./autosetup/jimsh0.c:16621
#24 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=3, objv=0x7ffecba2bd80) at ./autosetup/jimsh0.c:14922
#25 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52efdaa0) at ./autosetup/jimsh0.c:15311
#26 0x0000563c52581077 in JimCallProcedure (interp=0x563c52ed4260, cmd=0x563c52f10940, argc=2, argv=0x7ffecba2bf30) at ./autosetup/jimsh0.c:15538
#27 0x0000563c5257f4a4 in JimInvokeCommand (interp=0x563c52ed4260, objc=2, objv=0x7ffecba2bf30) at ./autosetup/jimsh0.c:14918
#28 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52fc7f00) at ./autosetup/jimsh0.c:15311
#29 0x0000563c52580486 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52fbcb50) at ./autosetup/jimsh0.c:15250
#30 0x0000563c5258413b in Jim_IfCoreCommand (interp=0x563c52ed4260, argc=5, argv=0x7ffecba2c190) at ./autosetup/jimsh0.c:16632
#31 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=5, objv=0x7ffecba2c190) at ./autosetup/jimsh0.c:14922
#32 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52faf360) at ./autosetup/jimsh0.c:15311
#33 0x0000563c525816b4 in Jim_EvalFile (interp=0x563c52ed4260, 
    filename=0x563c52fad0d0 "/tmp/portage/dev-lang/jimtcl-0.78-r2/work/jimtcl-0.78/autosetup/system.tcl") at ./autosetup/jimsh0.c:15683
#34 0x0000563c5258d112 in Jim_SourceCoreCommand (interp=0x563c52ed4260, argc=2, argv=0x7ffecba2c3f0) at ./autosetup/jimsh0.c:19385
#35 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=2, objv=0x7ffecba2c3f0) at ./autosetup/jimsh0.c:14922
#36 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52face70) at ./autosetup/jimsh0.c:15311
#37 0x0000563c52586221 in Jim_UplevelCoreCommand (interp=0x563c52ed4260, argc=2, argv=0x7ffecba2c578) at ./autosetup/jimsh0.c:17315
#38 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=3, objv=0x7ffecba2c570) at ./autosetup/jimsh0.c:14922
#39 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f95950) at ./autosetup/jimsh0.c:15311
#40 0x0000563c525894be in Jim_CatchCoreCommand (interp=0x563c52ed4260, argc=3, argv=0x7ffecba2c728) at ./autosetup/jimsh0.c:18264
#41 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=4, objv=0x7ffecba2c720) at ./autosetup/jimsh0.c:14922
#42 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f36500) at ./autosetup/jimsh0.c:15311
#43 0x0000563c5257d6ba in Jim_EvalExpression (interp=0x563c52ed4260, exprObjPtr=0x563c52f36360, exprResultPtrPtr=0x7ffecba2c8b0)
    at ./autosetup/jimsh0.c:14201
#44 0x0000563c5257d87f in Jim_GetBoolFromExpr (interp=0x563c52ed4260, exprObjPtr=0x563c52f36360, boolPtr=0x7ffecba2c8f0)
    at ./autosetup/jimsh0.c:14244
#45 0x0000563c52583fbe in Jim_IfCoreCommand (interp=0x563c52ed4260, argc=3, argv=0x7ffecba2c9f0) at ./autosetup/jimsh0.c:16609
#46 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=3, objv=0x7ffecba2c9f0) at ./autosetup/jimsh0.c:14922
#47 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f1bcc0) at ./autosetup/jimsh0.c:15311
#48 0x0000563c52581077 in JimCallProcedure (interp=0x563c52ed4260, cmd=0x563c52f28db0, argc=3, argv=0x7ffecba2cba0) at ./autosetup/jimsh0.c:15538
#49 0x0000563c5257f4a4 in JimInvokeCommand (interp=0x563c52ed4260, objc=3, objv=0x7ffecba2cba0) at ./autosetup/jimsh0.c:14918
#50 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f67a40) at ./autosetup/jimsh0.c:15311
#51 0x0000563c52584049 in Jim_IfCoreCommand (interp=0x563c52ed4260, argc=5, argv=0x7ffecba2cd20) at ./autosetup/jimsh0.c:16621
#52 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=5, objv=0x7ffecba2cd20) at ./autosetup/jimsh0.c:14922
#53 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f2d6a0) at ./autosetup/jimsh0.c:15311
#54 0x0000563c5258413b in Jim_IfCoreCommand (interp=0x563c52ed4260, argc=5, argv=0x7ffecba2cea0) at ./autosetup/jimsh0.c:16632
#55 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=5, objv=0x7ffecba2cea0) at ./autosetup/jimsh0.c:14922
#56 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f2bf90) at ./autosetup/jimsh0.c:15311
#57 0x0000563c52583c20 in JimForeachMapHelper (interp=0x563c52ed4260, argc=4, argv=0x7ffecba2d0b0, doMap=0) at ./autosetup/jimsh0.c:16529
#58 0x0000563c52583d66 in Jim_ForeachCoreCommand (interp=0x563c52ed4260, argc=4, argv=0x7ffecba2d0b0) at ./autosetup/jimsh0.c:16557
#59 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=4, objv=0x7ffecba2d0b0) at ./autosetup/jimsh0.c:14922
#60 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f1b5a0) at ./autosetup/jimsh0.c:15311
#61 0x0000563c52581077 in JimCallProcedure (interp=0x563c52ed4260, cmd=0x563c52f28bb0, argc=2, argv=0x7ffecba2d260) at ./autosetup/jimsh0.c:15538
#62 0x0000563c5257f4a4 in JimInvokeCommand (interp=0x563c52ed4260, objc=2, objv=0x7ffecba2d260) at ./autosetup/jimsh0.c:14918
#63 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f9ac90) at ./autosetup/jimsh0.c:15311
#64 0x0000563c525816b4 in Jim_EvalFile (interp=0x563c52ed4260, 
    filename=0x563c52f95e80 "/tmp/portage/dev-lang/jimtcl-0.78-r2/work/jimtcl-0.78/autosetup/cc.tcl") at ./autosetup/jimsh0.c:15683
#65 0x0000563c5258d112 in Jim_SourceCoreCommand (interp=0x563c52ed4260, argc=2, argv=0x7ffecba2d4c0) at ./autosetup/jimsh0.c:19385
#66 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=2, objv=0x7ffecba2d4c0) at ./autosetup/jimsh0.c:14922
#67 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f95c80) at ./autosetup/jimsh0.c:15311
#68 0x0000563c52586221 in Jim_UplevelCoreCommand (interp=0x563c52ed4260, argc=2, argv=0x7ffecba2d648) at ./autosetup/jimsh0.c:17315
#69 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=3, objv=0x7ffecba2d640) at ./autosetup/jimsh0.c:14922
#70 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f6a010) at ./autosetup/jimsh0.c:15311
#71 0x0000563c525894be in Jim_CatchCoreCommand (interp=0x563c52ed4260, argc=3, argv=0x7ffecba2d7f8) at ./autosetup/jimsh0.c:18264
#72 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=4, objv=0x7ffecba2d7f0) at ./autosetup/jimsh0.c:14922
#73 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f36500) at ./autosetup/jimsh0.c:15311
#74 0x0000563c5257d6ba in Jim_EvalExpression (interp=0x563c52ed4260, exprObjPtr=0x563c52f36360, exprResultPtrPtr=0x7ffecba2d980)
    at ./autosetup/jimsh0.c:14201
#75 0x0000563c5257d87f in Jim_GetBoolFromExpr (interp=0x563c52ed4260, exprObjPtr=0x563c52f36360, boolPtr=0x7ffecba2d9c0)
    at ./autosetup/jimsh0.c:14244
#76 0x0000563c52583fbe in Jim_IfCoreCommand (interp=0x563c52ed4260, argc=3, argv=0x7ffecba2dac0) at ./autosetup/jimsh0.c:16609
#77 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=3, objv=0x7ffecba2dac0) at ./autosetup/jimsh0.c:14922
#78 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f1bcc0) at ./autosetup/jimsh0.c:15311
#79 0x0000563c52581077 in JimCallProcedure (interp=0x563c52ed4260, cmd=0x563c52f28db0, argc=3, argv=0x7ffecba2dc70) at ./autosetup/jimsh0.c:15538
#80 0x0000563c5257f4a4 in JimInvokeCommand (interp=0x563c52ed4260, objc=3, objv=0x7ffecba2dc70) at ./autosetup/jimsh0.c:14918
#81 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f67a40) at ./autosetup/jimsh0.c:15311
#82 0x0000563c52584049 in Jim_IfCoreCommand (interp=0x563c52ed4260, argc=5, argv=0x7ffecba2ddf0) at ./autosetup/jimsh0.c:16621
#83 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=5, objv=0x7ffecba2ddf0) at ./autosetup/jimsh0.c:14922
#84 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f2d6a0) at ./autosetup/jimsh0.c:15311
#85 0x0000563c5258413b in Jim_IfCoreCommand (interp=0x563c52ed4260, argc=5, argv=0x7ffecba2df70) at ./autosetup/jimsh0.c:16632
#86 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=5, objv=0x7ffecba2df70) at ./autosetup/jimsh0.c:14922
#87 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f2bf90) at ./autosetup/jimsh0.c:15311
#88 0x0000563c52583c20 in JimForeachMapHelper (interp=0x563c52ed4260, argc=4, argv=0x7ffecba2e180, doMap=0) at ./autosetup/jimsh0.c:16529
#89 0x0000563c52583d66 in Jim_ForeachCoreCommand (interp=0x563c52ed4260, argc=4, argv=0x7ffecba2e180) at ./autosetup/jimsh0.c:16557
#90 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=4, objv=0x7ffecba2e180) at ./autosetup/jimsh0.c:14922
#91 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f1b5a0) at ./autosetup/jimsh0.c:15311
#92 0x0000563c52581077 in JimCallProcedure (interp=0x563c52ed4260, cmd=0x563c52f28bb0, argc=7, argv=0x7ffecba2e330) at ./autosetup/jimsh0.c:15538
#93 0x0000563c5257f4a4 in JimInvokeCommand (interp=0x563c52ed4260, objc=7, objv=0x7ffecba2e330) at ./autosetup/jimsh0.c:14918
#94 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f94510) at ./autosetup/jimsh0.c:15311
#95 0x0000563c525816b4 in Jim_EvalFile (interp=0x563c52ed4260, filename=0x563c52f43880 "auto.def") at ./autosetup/jimsh0.c:15683
#96 0x0000563c5258d112 in Jim_SourceCoreCommand (interp=0x563c52ed4260, argc=2, argv=0x7ffecba2e590) at ./autosetup/jimsh0.c:19385
#97 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=2, objv=0x7ffecba2e590) at ./autosetup/jimsh0.c:14922
#98 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52ed47b0) at ./autosetup/jimsh0.c:15311
#99 0x0000563c52581077 in JimCallProcedure (interp=0x563c52ed4260, cmd=0x563c52f0ea70, argc=2, argv=0x7ffecba2e740) at ./autosetup/jimsh0.c:15538
#100 0x0000563c5257f4a4 in JimInvokeCommand (interp=0x563c52ed4260, objc=2, objv=0x7ffecba2e740) at ./autosetup/jimsh0.c:14918
#101 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f2aae0) at ./autosetup/jimsh0.c:15311
#102 0x0000563c525894be in Jim_CatchCoreCommand (interp=0x563c52ed4260, argc=3, argv=0x7ffecba2e8f8) at ./autosetup/jimsh0.c:18264
#103 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=4, objv=0x7ffecba2e8f0) at ./autosetup/jimsh0.c:14922
#104 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52f2a910) at ./autosetup/jimsh0.c:15311
#105 0x0000563c5257d6ba in Jim_EvalExpression (interp=0x563c52ed4260, exprObjPtr=0x563c52f25040, exprResultPtrPtr=0x7ffecba2ea80)
    at ./autosetup/jimsh0.c:14201
#106 0x0000563c5257d87f in Jim_GetBoolFromExpr (interp=0x563c52ed4260, exprObjPtr=0x563c52f25040, boolPtr=0x7ffecba2eac0)
    at ./autosetup/jimsh0.c:14244
#107 0x0000563c52583fbe in Jim_IfCoreCommand (interp=0x563c52ed4260, argc=3, argv=0x7ffecba2ebc0) at ./autosetup/jimsh0.c:16609
#108 0x0000563c5257f4d4 in JimInvokeCommand (interp=0x563c52ed4260, objc=3, objv=0x7ffecba2ebc0) at ./autosetup/jimsh0.c:14922
#109 0x0000563c52580763 in Jim_EvalObj (interp=0x563c52ed4260, scriptObjPtr=0x563c52ef92f0) at ./autosetup/jimsh0.c:15311
#110 0x0000563c525816b4 in Jim_EvalFile (interp=0x563c52ed4260, filename=0x7ffecba30dbc "./autosetup/autosetup") at ./autosetup/jimsh0.c:15683
#111 0x0000563c52593542 in main (argc=12, argv=0x7ffecba2ee28) at ./autosetup/jimsh0.c:22255
(gdb) up
#1  0x00007fc98e790536 in __GI_abort () at abort.c:79
79	abort.c: No such file or directory.
(gdb) up
#2  0x00007fc98e7ec898 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fc98e909461 "%s\n") at ../sysdeps/posix/libc_fatal.c:181
181	../sysdeps/posix/libc_fatal.c: No such file or directory.
(gdb) up
#3  0x00007fc98e7f48b8 in malloc_printerr (str=str@entry=0x7fc98e9075b1 "free(): invalid pointer") at malloc.c:5352
5352	malloc.c: No such file or directory.
(gdb) up
#4  0x00007fc98e7f62ac in _int_free (av=<optimized out>, p=<optimized out>, have_lock=<optimized out>) at malloc.c:4181
4181	in malloc.c
(gdb) up
#5  0x0000563c5256d373 in Jim_Free (ptr=0x7fc98e740010) at ./autosetup/jimsh0.c:6576
6576	    free(ptr);
(gdb) l��[Kup
#6  0x0000563c52569d14 in JimFreeEnv (env=0x7fc98e740010, original_environ=0x7ffecba2ee90) at ./autosetup/jimsh0.c:4453
4453	        Jim_Free(env);
(gdb) up��[K��[K�p env
$1 = (char **) 0x7fc98e740010
(gdb) p env���*env���
$2 = 0x563c52fce720 "SANDBOX_MESSAGE_P@TH=/proc/5/fd/2"
(gdb) up
#7  0x0000563c5256b9fe in JimRestoreEnv (env=0x7ffecba2ee90) at ./autosetup/jimsh0.c:5636
5636	    JimFreeEnv(Jim_GetEnviron(), env);
(gdb) q

@gentoo-bot gentoo-bot added maintainer-needed There is at least one affected package with no maintainer. Review it if you can. assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. no signoff One or more commits do not indicate GCO sign-off. and removed assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. maintainer-needed There is at least one affected package with no maintainer. Review it if you can. labels Jul 7, 2019
@eugene-bright eugene-bright changed the title dev-lang/jimtcl-0.78-r2: Clean up dev-lang/jimtcl-0.78-r2: Clean up [please reassign] Jul 7, 2019
@gentoo-bot gentoo-bot changed the title dev-lang/jimtcl-0.78-r2: Clean up [please reassign] dev-lang/jimtcl-0.78-r2: Clean up Jul 7, 2019
@gentoo-bot
Copy link

Copyright policy change

Please note that on 2018-09-15 Trustees have approved new Gentoo copyright policy. All contributions made to Gentoo need to follow this policy. If you include the Signed-off-by line in your commit message, you indicate that you have read the policy and agree to its terms. For more detailed explanation, please see the new Gentoo copyright policy explained article.

Pull Request assignment

Submitter: @eugene-bright
Areas affected: ebuilds
Packages affected: dev-lang/jimtcl

dev-lang/jimtcl: @gentoo/proxy-maint (maintainer needed)

Linked bugs

Bugs linked: 689378, 675276


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added maintainer-needed There is at least one affected package with no maintainer. Review it if you can. assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. and removed assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. maintainer-needed There is at least one affected package with no maintainer. Review it if you can. no signoff One or more commits do not indicate GCO sign-off. labels Jul 7, 2019
@eugene-bright
Copy link
Contributor Author

@mgorny, could you try to emerge it in your environment one more time? Patches were added.

@@ -7,7 +7,7 @@ d=`dirname "$0"`
PATH="$PATH:$d"; export PATH
echo 1>&2 "Bootstrap jimsh0"
for cc in ${CC_FOR_BUILD:-cc} gcc; do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While at it, replace cc with ${CC:-cc}.

echo 1>&2 "Bootstrap jimsh0"
for cc in ${CC_FOR_BUILD:-cc} gcc; do
- { $cc -o "$d/jimsh0" "$d/jimsh0.c"; } 2>/dev/null || continue
+ { $cc -o "$d/jimsh0" "$d/jimsh0.c" $CFLAGS; } 2>/dev/null || continue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also LDFLAGS and CPPFLAGS, please, and preferably in standard make order.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we really pass CPPFLAGS to C compiler? Could it contain incompatible options?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, these are preprocessor flags.

@@ -0,0 +1,13 @@
diff --git a/autosetup/autosetup-find-tclsh b/autosetup/autosetup-find-tclsh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please merge it with the previous patch? It's a bit fragile to apply two separate patches to the same file, and both are Gentoo-specific.

@@ -0,0 +1,16 @@
diff --git a/autosetup/jimsh0.c b/autosetup/jimsh0.c
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid this doesn't help at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like I've just deleted MINGW specific implementation.

I will look for workaround if no obvious solution is found.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, FWICS upstream is still alive and kicking, so maybe try adding a new version (or a git snapshot if upstream doesn't release).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. I will look for changes on a week. May be I'll find something.

If someone here needs a fast workaround then let me know. We can just bypassing bootstrapping by forcing tclsh usage.

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2019-07-07 19:30 UTC
Newest commit scanned: b63d3b3
Status: ✅ good

No issues found

Make `autosetup/autosetup-find-tclsh` scripts use system `tclsh`.
Forbid building `jimsh0`.

Closes: https://bugs.gentoo.org/675276
Signed-off-by: Eugene Bright <eugene@bright.gdn>
dohtml is replaces with docinto+dodoc.

Closes: https://bugs.gentoo.org/689378
Signed-off-by: Eugene Bright <eugene@bright.gdn>
@eugene-bright
Copy link
Contributor Author

@mgorny please try to rebuild it again. I've disabled bootstrapping to workaround econf failed.

It's a dirty solution that adds dev-lang/tcl to build time deps but it's steady way to make it work right now.

@mgorny
Copy link
Member

mgorny commented Jul 20, 2019

Thanks. Repoman says:

  ebuild.minorsyn               1
   dev-lang/jimtcl/jimtcl-0.78-r2.ebuild: Unquoted Variable on line: 26

I'll fix that for you and merge it.

@eugene-bright eugene-bright deleted the jimtcl branch July 20, 2019 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. maintainer-needed There is at least one affected package with no maintainer. Review it if you can.
Projects
None yet
4 participants