Skip to content
Tcl Source Code History Of Ticket 2750886fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2750886fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2750886fffffffffffffffffffffffffffffffff

  1. Ticket change [31c1f78f32] (rid 93487) by marcomaggi on 2009-04-10 21:41:04:

    1. assignee initialized to: "stwo"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Configuring Tcl 8.6b1 on a i686-pc-linux-gnu with:
      
          ./configure \
              --prefix="${prefix}"                    \
              --enable-shared                         \
              --enable-man-symlinks                   \
              --enable-man-compression=gzip           \
              --enable-threads                        \
              CFLAGS='-O3 -march=i686 -mtune=i686'
      
      
      fails when "tdbc" is (sub)configured because the "unix/Makefile"
      contains the following:
      
      PKG_CFG_ARGS = CFLAGS="-O3 -march=i686 -mtune=i686" --prefix=/usr/local --enable-shared --disable-static --enable-man-symlinks --enable-man-compression=gzip --enable-threads CFLAGS=-O3 -march=i686 -mtune=i686 
      
      that is CFLAGS is included twice and the second time it is
      spliced without quotes.  Tcl itself is configured and built
      correctly, only "tdbc" configuration fails.
      
      The spliced CFLAGS comes from the line in "configure.in"
      that includes $@.
      
      My opinion is that changing the following line in "configure.in":
      
          eval 'test -n "$'$v'" && PKG_CFG_ARGS="$v=\"$'$v'\" $PKG_CFG_ARGS"'
      
      will NOT work.  AFAICT there is no way to convince
      AC_SUBST to keep quotes.  Why not use AC_CONFIG_SUBDIRS?
      
      
    4. foundin initialized to: "obsolete: 8.6b1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "marcomaggi"
    10. subsystem initialized to: "53. Configuration and Build Tools"
    11. title initialized to:
      incorrect handling of CFLAGS on configure command line
      
    12. type initialized to: "Bug"
  2. Ticket change [f9dab8e5d8] (rid 91767) by dgp on 2009-05-21 03:52:20:

    1. icomment:
      
      possibly related issue:
      
      http://lists.alioth.debian.org/pipermail/pkg-tcltk-devel/2009-May/001127.html
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [d7c39fa2ff] (rid 107317) by das on 2009-05-21 10:18:07:

    1. assignee changed to: "das"
    2. closedate changed to: "2009-05-21T03:18:07"
    3. closer changed to: "das"
    4. foundin changed to: "obsolete: 8.6b1.1"
    5. icomment:
      fixed on HEAD, by following commit:
          http://fisheye.categorifiedcoder.info/changelog/Tcl?cs=MAIN:das:20090103135509
      just verified that passing a CFLAGS containing spaces as an arg to configure results in correct quoting in PKG_CFG_ARGS:
          ./configure -C --enable-threads --enable-framework --enable-dtrace --enable-symbols CC=gcc CFLAGS='-mmacosx-version-min=10.5  -arch ppc -arch ppc64 -arch i386 -arch x86_64'
      results in
          PKG_CFG_ARGS= '-C' '--enable-threads' '--enable-framework' '--enable-dtrace' '--enable-symbols' 'CC=gcc' 'CFLAGS=-mmacosx-version-min=10.5  -arch ppc -arch ppc64 -arch i386 -arch x86_64'  --cache-file=../../config.cache
      
      dgp: the linked debian issue is unrelated IMO, that is about non-overrideability of CFLAGS in unix/Makefile.in at make time, not configure time
      
      
    6. login: "das"
    7. mimetype: "text/plain"
    8. resolution changed to: "Out of Date"
    9. status changed to: "Closed"
    10. username: "das"