Skip to content
Tcl Source Code History Of Ticket 859072ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 859072ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 859072ffffffffffffffffffffffffffffffffff

  1. Ticket change [32316ae307] (rid 93569) by lvirden on 2003-12-12 18:13:01:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I am trying to build the latest sample extension on a
      sparc solaris 8
      machine with Sun's C compiler.
      
      After everything builds and tests fine, when the
      install is executed this is
      what occurs:
      
       /projects/gnu/sparc-sun-solaris2.8/bin/ginstall -c
      libsample0.5g.so /volws/lwv2
      6/ldatae/lib/sample0.5/libsample0.5g.so
       : /volws/lwv26/ldatae/lib/sample0.5/libsample0.5g.so
      if test "x1" = "x1"; then \
          /projects/gnu/sparc-sun-solaris2.8/bin/ginstall -c
      -m 644 pkgIndex.tcl /volws/lwv26/ldatae/lib/sample0.5; \
      fi
      Installing header files in /volws/lwv26/ldatae/include
      /bin/bash: -c: line 1: syntax error near unexpected
      token `;'
      /bin/bash: -c: line 1: `for i in  ; do  echo
      "Installing ../$i" ;  /projects/gnu
      /sparc-sun-solaris2.8/bin/ginstall -c -m 644 ../$i
      /volws/lwv26/ldatae/include ;
        done;'
      make: *** [install-libraries] Error 2
      
    4. foundin initialized to: "obsolete: 8.4.6"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "lvirden"
    9. subsystem initialized to: "70. Sample Extension"
    10. title initialized to: "sample extension make file broken"
    11. type initialized to: "Bug"
  2. Ticket change [d555ee1fa7] (rid 123602) by dkf on 2003-12-15 16:40:05:

    1. assignee changed to: "hobbs"
  3. Ticket change [b6cde43eab] (rid 125478) by lvirden on 2004-04-18 18:24:13:

    1. priority changed to: "7 High"
  4. Ticket change [9988e9e6aa] (rid 110811) by lvirden on 2004-04-18 18:24:14:

    1. icomment:
      Logged In: YES 
      user_id=15949
      
      One thing I have noticed:
      install-libraries: libraries
              @mkdir -p $(DESTDIR)$(includedir)
              @echo "Installing header files in
      $(DESTDIR)$(includedir)"
              @for i in $(PKG_HEADERS) ; do \
                  echo "Installing $(srcdir)/$$i" ; \
                  $(INSTALL_DATA) $(srcdir)/$$i
      $(DESTDIR)$(includedir) ; \
              done;
      is the code generated in the Makefile for same.
      But PKG_HEADERS is empty - causing the for loop to be
      for i in ; do
      
      that isn't going to work very well...
      
      The for loop should either be surrounded by an if or there needs
      to be something added to the for loop so that there is
      always at least
      one entry to process...
      
      It's really important to fix this kind of thing if we are
      going to tell people
      to use the sample code as a basis of their development.
      
      
      
      
    2. login: "lvirden"
    3. mimetype: "text/plain"
    4. username: "lvirden"
  5. Ticket change [82329899f9] (rid 117191) by lvirden on 2004-04-18 18:28:10:

    1. icomment:
      Logged In: YES 
      user_id=15949
      
      I tried to modify the Makefile to use an if, but I couldn't
      figure out a syntax for it.  It looks to me like the code
      needs to be conditionally generated or something.  
      
      
    2. login: "lvirden"
    3. mimetype: "text/plain"
    4. username: "lvirden"
  6. Ticket change [f43d7ad837] (rid 129872) by dkf on 2004-04-19 16:36:39:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Perhaps something like this would do the trick:
      
              @test -n "$(PKG_HEADERS)" || \
                  for i in $(PKG_HEADERS) ; do \
                  echo "Installing $(srcdir)/$$i" ; \
                  $(INSTALL_DATA) $(srcdir)/$$i \
                  $(DESTDIR)$(includedir) ; done
      
      Basically, I'm adding a 'test -n "$(PKG_HEADERS)" ||' guard
      to the for line. If it doesn't work, there are other (less
      neat) formulations with test that should work.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [4b1b04050c] (rid 126641) by hobbs on 2004-09-21 05:11:43:

    1. closedate changed to: "2004-09-20T22:11:43"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      Using a construct like:
      
      @list='$(PKG_HEADERS)'; for i in $$list; do ...
      
      I have avoided the empty list issues.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"