IRC log for #brlcad on 20110117

01:03.27 *** join/#brlcad crazy_imp (~mj@a89-182-3-165.net-htp.de)
01:05.27 CIA-29 BRL-CAD: 03johnranderson * r42350 10/brlcad/trunk/src/util/Makefile.am: bwhist needs libbu.
01:09.46 CIA-29 BRL-CAD: 03johnranderson * r42351 10/brlcad/trunk/ (26 files in 5 dirs): fixed a bunch of size_t issues.
01:55.21 CIA-29 BRL-CAD: 03johnranderson * r42352 10/brlcad/trunk/src/conv/asc/g2asc.c:
01:55.21 CIA-29 BRL-CAD: The region color table is no longer output as part of the GLOBAL object.
01:55.21 CIA-29 BRL-CAD: If no attributes of the GLOBAL object are output, the GLOBAL object itself is not output.
01:55.21 CIA-29 BRL-CAD: fixed some size_t issues.
02:37.41 CIA-29 BRL-CAD: 03starseeker * r42353 10/brlcad/branches/cmake/ (30 files in 8 dirs): Update cmake to trunk r42352
02:44.15 brlcad starseeker: I don't remember what the problem was beyond what's in the commit log
02:44.32 brlcad vague recollection that tcl/tk had to be patched too so there might be a commit log message there with more info
03:52.51 CIA-29 BRL-CAD: 03johnranderson * r42354 10/brlcad/trunk/doc/docbook/log4j.properties: Added a configuration for log4j to stop the constant blather about it not being configured.
04:49.52 CIA-29 BRL-CAD: 03starseeker * r42355 10/brlcad/trunk/src/other/incrTcl/ (4 files in 4 dirs): Tcl 8.4 doesn't cut it anymore, so we shouldn't need the compat headers.
04:53.49 CIA-29 BRL-CAD: 03starseeker * r42356 10/brlcad/trunk/src/other/incrTcl/makefile.bc: makefile.bc isn't present in cvs incrtcl anymore.
05:23.33 CIA-29 BRL-CAD: 03starseeker * r42357 10/brlcad/trunk/src/other/incrTcl/ (13 files in 5 dirs): Start merging in changes from latest cvs incrTcl - will try to do this carefully, as there are a few changes that will need to be preserved.
05:27.58 starseeker hah - itcl/itk upstream DID take the patch
05:28.01 starseeker http://incrtcl.cvs.sourceforge.net/viewvc/incrtcl/incrTcl/itcl/generic/itcl_methods.c?r1=1.20&r2=1.21
05:28.13 starseeker sweet
05:34.13 CIA-29 BRL-CAD: 03starseeker * r42358 10/brlcad/trunk/src/other/incrTcl/itcl/ (14 files in 5 dirs): Remainder of changes from itcl subdir - itcl/itk upstream applied changes made to itcl_methods.c, so they are no longer a local BRL-CAD mod.
05:35.35 CIA-29 BRL-CAD: 03starseeker * r42359 10/brlcad/trunk/src/other/incrTcl/itcl/doc/Makefile.am: Add new man pages to makefile.am
05:37.18 CIA-29 BRL-CAD: 03starseeker * r42360 10/brlcad/trunk/src/other/incrTcl/itk/ (4 files in 3 dirs): Just a few changes in the itk subdir
05:42.32 CIA-29 BRL-CAD: 03starseeker * r42361 10/brlcad/trunk/src/other/incrTcl/ (9 files in 2 dirs): Most of the remaining changes should be captured here.
05:45.53 CIA-29 BRL-CAD: 03starseeker * r42362 10/brlcad/trunk/src/other/incrTcl/ (4 files in 4 dirs): Files not present in cvs incrTcl
05:48.49 CIA-29 BRL-CAD: 03starseeker * r42363 10/brlcad/trunk/src/other/incrTcl/itk/library/pkgIndex.tcl: Probably need this pre-generated file for our current Windows build...
05:55.48 starseeker that must be why my system setup is working...
05:56.24 CIA-29 BRL-CAD: 03starseeker * r42364 10/brlcad/trunk/src/other/iwidgets/ (246 files in 11 dirs): Sync iwidgets with latest cvs - mostly whitespace in this one.
05:59.02 CIA-29 BRL-CAD: 03starseeker * r42365 10/brlcad/trunk/src/other/iwidgets/pkgIndex.tcl.in: Ah, right - use our variable.
06:01.02 CIA-29 BRL-CAD: 03starseeker * r42366 10/brlcad/trunk/src/other/iwidgets/iwidgets.tcl.in: Use our version of iwidgets.tcl.in too
06:03.25 CIA-29 BRL-CAD: 03starseeker * r42367 10/brlcad/trunk/src/other/iwidgets/ (Makefile.am tcl.m4): Remove tcl.m4 - no longer in cvs.
06:09.55 CIA-29 BRL-CAD: 03starseeker * r42368 10/brlcad/branches/cmake/src/other/incrTcl/ (8 files in 6 dirs): Wipe the incrTcl slate clean in CMake branch. Need to get trunk's version in here and working.
06:18.25 CIA-29 BRL-CAD: 03starseeker * r42369 10/brlcad/trunk/src/other/incrTcl/itcl/generic/itclInt.h: We still need common.h in itclInt.h
06:24.20 CIA-29 BRL-CAD: 03starseeker * r42370 10/brlcad/branches/cmake/src/other/incrTcl/ (189 files in 22 dirs): Put trunk's version of incrTcl in cmake - need to add back in CMake logic.
06:29.36 CIA-29 BRL-CAD: 03starseeker * r42371 10/brlcad/branches/cmake/src/other/incrTcl/ (15 files in 4 dirs): Restore old CMake logic
06:32.33 CIA-29 BRL-CAD: 03starseeker * r42372 10/brlcad/trunk/src/util/bw-imp.c: Cast size_t to int for printing.
06:37.08 CIA-29 BRL-CAD: 03starseeker * r42373 10/brlcad/trunk/src/other/incrTcl/ (Makefile.am itk/Makefile.am): Update incrTcl makefiles
06:42.49 CIA-29 BRL-CAD: 03starseeker * r42374 10/brlcad/branches/cmake/src/other/ (346 files in 15 dirs): Add iwidgets dir from trunk
06:50.05 CIA-29 BRL-CAD: 03starseeker * r42375 10/brlcad/branches/cmake/src/other/incrTcl/itcl/CMakeLists.txt: Mutter - need the brlcad include dir due to common.h inclusion
06:58.31 CIA-29 BRL-CAD: 03starseeker * r42376 10/brlcad/branches/cmake/src/other/incrTcl/itk/CMakeLists.txt: itk needs common.h too
07:04.00 CIA-29 BRL-CAD: 03starseeker * r42377 10/brlcad/branches/cmake/ (6 files in 6 dirs): Update cmake branch to trunk r42376
07:27.22 *** join/#brlcad WhiteCalf (MK@whitecalf.net)
07:33.24 CIA-29 BRL-CAD: 03starseeker * r42378 10/brlcad/trunk/ (4 files in 3 dirs): autotools build needs a pkgIndex.tcl for tkpng, provide it.
07:35.34 CIA-29 BRL-CAD: 03starseeker * r42379 10/brlcad/branches/cmake/ (6 files in 4 dirs): Sync cmake to trunk r42378
07:39.01 CIA-29 BRL-CAD: 03starseeker * r42380 10/brlcad/trunk/ (configure.ac src/other/tkpng/generic/tkImgPNGInit.c): Go with 0.8, since that was what was in the source file - bit confusing, since the ChangeLog seems to have tagged 0.9?
07:40.39 CIA-29 BRL-CAD: 03starseeker * r42381 10/brlcad/branches/cmake/ (4 files in 3 dirs): sync cmake to r42380
07:46.07 CIA-29 BRL-CAD: 03starseeker * r42382 10/brlcad/branches/cmake/AUTHORS: Thought I got this - sync CMake copy of AUTHORS file.
07:56.16 CIA-29 BRL-CAD: 03starseeker * r42383 10/brlcad/branches/cmake/src/gtools/g_diff.c: Put the trunk version of g_diff back, now that we're using trunk's tclcad
07:57.01 starseeker ah, getting down to the last pieces, mostly having to do with config header files and using package require Itcl instead of C apis
09:10.04 *** join/#brlcad epileg (~epileg@unaffiliated/epileg)
09:57.50 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
11:55.23 *** join/#brlcad Stattrav (~Stattrav@unaffiliated/stattrav)
12:33.49 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
12:38.48 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
12:41.12 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
12:45.48 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
12:47.44 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
12:50.59 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
12:56.06 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
12:58.39 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:05.04 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:06.51 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:09.19 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:10.27 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:12.41 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:17.22 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:21.58 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:25.23 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:31.54 *** join/#brlcad Zaebos (~irc@pd95b7f5e.dip0.t-ipconnect.de)
13:31.59 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:35.03 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:39.22 CIA-29 BRL-CAD: 03starseeker * r42384 10/brlcad/trunk/src/libtclcad/tclcadAutoPath.c: Typo.
13:40.40 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:44.39 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:44.53 CIA-29 BRL-CAD: 03starseeker * r42385 10/brlcad/branches/cmake/src/mged/setup.c: Try to move mged's setup.c closer to trunk version.
13:50.13 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
13:54.50 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
14:00.25 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
14:07.06 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
14:08.19 CIA-29 BRL-CAD: 03starseeker * r42386 10/brlcad/trunk/src/mged/ (attach.c cmd.c setup.c): Try using the package require statements for itcl/itk in MGED.
14:09.42 CIA-29 BRL-CAD: 03starseeker * r42387 10/brlcad/trunk/doc/docbook/Makefile.am: Add log4j.properties to EXTRA_DIST
14:10.25 *** join/#brlcad mafm (~mafm@215.Red-88-18-68.staticIP.rima-tde.net)
14:14.05 CIA-29 BRL-CAD: 03starseeker * r42388 10/brlcad/trunk/src/other/ (4 files in 4 dirs): Changes to allow CMake + Visual C++ to work on Windows - should have zero impact on any build except CMake.
14:15.02 CIA-29 BRL-CAD: 03starseeker * r42389 10/brlcad/branches/cmake/src/other/ (6 files in 6 dirs): Wrap the CMake generated headers in a define that is only set in the CMake build.
14:28.02 CIA-29 BRL-CAD: 03starseeker * r42390 10/brlcad/branches/cmake/src/bwish/main.c: Tweaks
14:29.52 CIA-29 BRL-CAD: 03starseeker * r42391 10/brlcad/trunk/src/bwish/ (cadAppInit.c main.c): Try using package require for itcl/itk in bwish
14:31.11 CIA-29 BRL-CAD: 03starseeker * r42392 10/brlcad/trunk/src/libtclcad/tclcad.c: Same deal for tclcad.c - try using package require.
14:35.40 CIA-29 BRL-CAD: 03starseeker * r42393 10/brlcad/branches/cmake/src/ (5 files in 2 dirs): Put itk_redefines.tcl with the other archer tcl scripts
14:37.37 CIA-29 BRL-CAD: 03starseeker * r42394 10/brlcad/branches/cmake/src/tclscripts/archer/CMakeLists.txt: Put lower case at end, bit easier to find things.
14:38.28 CIA-29 BRL-CAD: 03starseeker * r42395 10/brlcad/trunk/src/ (3 files in 2 dirs): Put itk_redefines.tcl into trunk version of archer
14:49.10 *** join/#brlcad Stattrav (~Stattrav@117.202.27.44)
14:49.10 *** join/#brlcad Stattrav (~Stattrav@unaffiliated/stattrav)
14:49.58 CIA-29 BRL-CAD: 03starseeker * r42396 10/brlcad/trunk/include/ (Makefile.am config_win_cmake.h): Add a config_win header that will work with cmake - for now this looks like the simplest way to make both systems happy, but eventually config_win_cmake.h will become config_win.h
14:50.46 CIA-29 BRL-CAD: 03starseeker * r42397 10/brlcad/branches/cmake/ (4 files in 2 dirs): Use config_win_cmake.h for CMake build.
14:54.03 CIA-29 BRL-CAD: 03starseeker * r42398 10/brlcad/branches/cmake/ (6 files in 6 dirs): Update cmake to trunk r42397
15:01.00 CIA-29 BRL-CAD: 03starseeker * r42399 10/brlcad/trunk/include/common.h: Tweak common.h from CMake and add to trunk.
15:03.30 CIA-29 BRL-CAD: 03starseeker * r42400 10/brlcad/branches/cmake/ (. CMakeLists.txt include/common.h src/other/tkhtml/): Hopefully this will allow the same common.h to be used in both cmake and autotools.
15:05.41 starseeker and if everything's working, that should do it
15:06.00 starseeker except for the CMake logic, that ought to sync both trees
15:06.11 starseeker now for distcheck, etc.
15:34.29 CIA-29 BRL-CAD: 03starseeker * r42401 10/brlcad/trunk/src/tclscripts/archer/Makefile.am: need file extension
15:50.25 CIA-29 BRL-CAD: 03d_rossberg * r42402 10/brlcad/trunk/ (configure.ac src/libbu/brlcad_path.c): there is no realpath() in MSVC, so replaced it by a trivial string-copy then
16:03.37 brlcad re 42382 -- you did get it but then you undid it with a subsequent commit saying you didn't match trunk
16:03.52 brlcad your diff was probably not against an up-to-date checkout
16:07.12 CIA-29 BRL-CAD: 03brlcad * r42403 10/brlcad/trunk/src/util/bw-imp.c: keep the cast size as large as possible, fix the format
16:08.34 starseeker ah, whoops
16:12.52 starseeker growls... apparently there is no good solution for something like realpath on Windows
16:16.08 starseeker oh well
16:19.14 *** join/#brlcad Stattrav (~Stattrav@unaffiliated/stattrav)
16:19.26 starseeker yeah, these guys pretty much punt: https://www.securecoding.cert.org/confluence/display/seccode/FIO02-C.+Canonicalize+path+names+originating+from+untrusted+sources
16:20.20 starseeker and the closest thing isn't recommended for use in multithreaded applications or shared library code by Microsoft: http://msdn.microsoft.com/en-us/library/aa364963%28VS.85%29.aspx
16:20.21 ``Erik looks like there's a com idl for it
16:20.34 starseeker hmm?
16:20.34 ``Erik IShellLink
16:20.57 ``Erik has a GetPath() method, dunno what the C approach is
16:22.23 ``Erik I'm seeing c# and delphi ways to do it without the com bridge to the 'power shell' thingie
16:23.03 starseeker give the issue mainly shows up when running build dir binaries and that other fallbacks should (mostly) cover the Windows cases, I'm thinking a huge effort is probably not needed
16:23.32 starseeker cygwin command line might be the main issue, and I would guess they have a realpath?
16:24.13 ``Erik there was a patch to try to give it a better approach I saw googling, under the mingw32 set I think
16:28.07 CIA-29 BRL-CAD: 03starseeker * r42404 10/brlcad/branches/cmake/ (7 files in 5 dirs): Update cmake branch to r42403, add realpath check to CMakeLists.txt
16:35.39 starseeker hmm... http://msdn.microsoft.com/en-us/library/aa364962%28v=VS.85%29.aspx
16:38.19 starseeker or perhaps http://msdn.microsoft.com/en-us/library/aa364966%28v=VS.85%29.aspx
16:39.36 starseeker well, if we need to we'll go there
16:39.41 starseeker but only if we need to
16:42.27 brlcad you could implement a bu_normalize() function
16:42.53 brlcad which could call realpath() or implement it if unavailable
16:43.23 starseeker nods - that would be the way to go, if it's needed
16:43.56 starseeker give we were surviving without the rule working at all, I'm thinking we should expend that effort only when there's a clear need
16:44.15 brlcad sure
16:44.31 brlcad didn't know if you were addressing an issue by adding realpath() in the first palce
16:44.59 starseeker was addressing the "I can't run my build dir archer script in the CMake build" issue :-P
16:45.27 brlcad how does realpath fix that?
16:45.47 brlcad gets the absolute path of something?
16:45.52 brlcad that was relative
16:45.56 starseeker yes
16:46.17 starseeker if I ran (say) ../../bin/bwish, the argv0 full path was that
16:46.34 brlcad bu_argv0_full_path() shouldn't have been that
16:48.06 brlcad if it was, it's a bug that needs to be fixed
16:48.17 starseeker checks...
16:49.53 brlcad now, bu_argv0_full_path() could/should be calling realpath() in its implementation, but it just appends relative to pwd now (punts, but a valid absolute path)
16:50.34 starseeker yeah, launching "../../bin/bwish", bu_argv0_full_path returns "../../bin/bwish"
16:50.49 brlcad wow
16:51.36 starseeker had figured getprogname was just "bwish", and argv0 was the full string that invoked bwish, and if I wanted a canonical path it was up to me to use argv0's results
16:52.10 brlcad not sure how that's even possible
16:52.22 brlcad nah, that bu function is specifically to get an absolute path
16:54.11 starseeker so then the realpath logic, if it really is needed, probably belongs there and not in bu_brlcad_root
16:57.02 brlcad probably, or possibly both depending on which path is being tested (e.g., do we support relative paths in BRLCAD_ROOT)
16:57.42 starseeker what the...
16:57.58 brlcad inclination is probably not support them
16:58.02 starseeker in gdb, it DOES look like it's returning full path
16:58.18 starseeker what the *BLEEP* was bu_log printing?
17:01.38 starseeker O.O
17:02.02 starseeker the result changes depending on whether I'm launching bwish from within gdb
17:02.30 starseeker looks for a handy wall to bash his head into...
17:06.03 starseeker oh, looks like gdb is expanding out the path before running it
17:06.05 starseeker cute
17:15.20 starseeker brlcad: as near as I can trace this back, the sequence is:
17:15.51 starseeker bwish/tcl.c - bu_setprogname takes argv[0] and assignes it to bu_progname
17:16.11 starseeker argv[0] at that time is ../../bin/bwish
17:17.51 starseeker bu_argv0_full_path calls three functions: _bu_argv0, _bu_ipwd and bu_which
17:18.29 starseeker they return, respectively, ../../bin/bwish . ../../bin/bwish
17:21.07 starseeker because the which result from bu_which is non-null and _bu_argv0's result does not appear to be a full path, the which result is the returned value
17:21.19 starseeker there is no check on whether which is a full path
17:27.12 starseeker looking over bu_which, it doesn't seem to be designed to return a full path...
17:29.02 starseeker yeah, once that relative argv[0] was put into bu_progname, I don't see any logic that would make it a full path...
17:33.03 starseeker if the which thing hasn't stopped the logic, it would have tried to use ipwd
17:33.19 starseeker but ipwd was "."
17:34.22 starseeker so I don't think that would have worked even if which hadn't short circuited the processs
17:40.51 *** join/#brlcad Elrohir (~kvirc@p5B14A3BB.dip.t-dialin.net)
18:09.33 *** join/#brlcad ``Erik (Here@c-69-140-109-104.hsd1.md.comcast.net)
18:47.41 brlcad looks like ipwd is wrong
18:50.01 brlcad "." as an initial (full) path to the current working directory sounds like a fall-back path
18:51.30 brlcad yeah, looks like getenv() was probalby empty and HAVE_POPEN was not defined
18:52.04 brlcad realpath would probably be good there
18:53.17 brlcad realpath(getenv("PWD")) or even realpath(".")
19:31.01 *** part/#brlcad crazy_imp (~mj@a89-182-3-165.net-htp.de)
20:09.23 *** join/#brlcad Ralith (~ralith@d142-058-094-139.wireless.sfu.ca)
20:14.37 Ralith brlcad: do you know anything about how jonored's gcode generator was going to work, or where I could read up on that? Since he appears to have disappeared for good, I may try to pick up where he left off.
20:16.04 Ralith hm, probably should have asked that when I wasn't about to disconnect.
20:25.57 *** join/#brlcad epileg (~epileg@unaffiliated/epileg)
20:30.05 *** join/#brlcad R0b0t1 (~Enigma@unaffiliated/r0b0t1)
20:56.15 *** join/#brlcad mafm (~mafm@171.Red-83-37-177.dynamicIP.rima-tde.net)
21:13.20 CIA-29 BRL-CAD: 03brlcad * r42405 10/brlcad/trunk/TODO: preliminary stab at current/next release plans: temp rt/rtedge/rtwizard colors, upgrade repo, and more
21:21.16 starseeker brlcad: what about bu_which? that's the one that was actually responsible for the bwish path I saw, although it looked like none of the possible paths would actually have gotten us there...
21:22.20 starseeker doesn't look like most of these functions could have returned a full path if a relative path was specified...
22:08.38 brlcad starseeker: bu_which attempts to mimic the 'which' command-line too
22:08.55 brlcad which has nothing to do with relative or absolute paths
22:09.07 brlcad it attempts to find a path to the object specified
22:09.39 brlcad e.g. if you run "mged" .. it does the search across the dirs in PATH to find it (which can be relative dirs) and returns the match
22:51.17 *** join/#brlcad Ralith (~ralith@S010600221561996a.vc.shawcable.net)
22:51.22 Ralith okay, back for the day
22:56.35 starseeker brlcad: then for the purposes of bu_argv0_full_path the which results should be wrapped in realpath too
23:02.46 *** join/#brlcad louipc (~louipc@archlinux/trusteduser/louipc)
23:28.37 *** join/#brlcad epileg (~epileg@unaffiliated/epileg)
23:45.43 *** join/#brlcad epileg (~epileg@unaffiliated/epileg)
23:50.04 Ralith brlcad: you didn't answer while I was pinging out, did you?
23:54.55 starseeker no, he didn't

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.