Gimp 2.4.7 released : packagers wanted

Discussion in 'GIMP for Mac' started by Auria, Aug 23, 2008.

  1. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Hmm we should get more people to test it. To know if it fails on your computer only, or on all 10.5 computers
     
  2. chachi

    chachi New Member

    Joined:
    Apr 2, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Colorado
    Happens here in Leopard on PPC too. I just made my own dmg and didn't even realize this new script was there ...LOL!
     
  3. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    okay! can any (or both) of you try removing the "open" line from the script, and tell me if now it works?
     
  4. chachi

    chachi New Member

    Joined:
    Apr 2, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Colorado
    I removed the open line from the script. Here's what I get now:

    ...
    Copying files to disk image...
    Compressing disk image...
    "/Volumes/Gimp" unmounted successfully.
    hdiutil: convert failed - Resource temporarily unavailable
    Removing uncompressed transitory dmg...
    Done!
     
  5. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Ok, can you try making the line with "convert" this :

    Code:
    /usr/bin/hdiutil convert -imagekey zlib-level=9 -verbose -format UDBZ ${TRANSITORY_FILENAME} -o ${FINAL_FILENAME}
    
    try and post output. Then :

    Code:
    /usr/bin/hdiutil convert -imagekey zlib-level=9 -debug -format UDBZ ${TRANSITORY_FILENAME} -o ${FINAL_FILENAME}
    
    and post output too. Thanks for helping out!

    EDIT: another possible test : add the following line after the "unmount" one.

    Code:
    /usr/bin/hdiutil detach "/Volumes/${USERNAME}"
    
     
  6. chachi

    chachi New Member

    Joined:
    Apr 2, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Colorado
    verbose output:

    Creating disk image...
    /dev/disk6 Apple_partition_scheme
    /dev/disk6s1 Apple_partition_map
    /dev/disk6s2 Apple_HFS /Volumes/Gimp
    created: /Users/chachi/src/darwingimp/skeleton/gimp-wla.sparseimage
    Copying files to disk image...
    Compressing disk image...
    "/Volumes/Gimp" unmounted successfully.
    hdiutil: convert: processing "gimp-wla.sparseimage"
    DIBackingStoreInstantiatorProbe: interface 0, score 100, CBSDBackingStore
    DIBackingStoreInstantiatorProbe: interface 1, score -1000, CBundleBackingStore
    DIBackingStoreInstantiatorProbe: interface 2, score -1000, CRAMBackingStore
    DIBackingStoreInstantiatorProbe: interface 3, score 100, CCarbonBackingStore
    DIBackingStoreInstantiatorProbe: interface 4, score -1000, CDevBackingStore
    DIBackingStoreInstantiatorProbe: interface 5, score -1000, CCURLBackingStore
    DIBackingStoreInstantiatorProbe: interface 6, score -1000, CVectoredBackingStore
    DIBackingStoreInstantiatorProbe: selecting CBSDBackingStore
    convert: unable to recognize "gimp-wla.sparseimage":
    Resource temporarily unavailable.hdiutil: convert: result: 35
    hdiutil: convert failed - Resource temporarily unavailable
    Removing uncompressed transitory dmg...
    Done!


    debug output:

    Creating disk image...
    /dev/disk7 Apple_partition_scheme
    /dev/disk7s1 Apple_partition_map
    /dev/disk7s2 Apple_HFS /Volumes/Gimp
    created: /Users/chachi/src/darwingimp/skeleton/gimp-wla.sparseimage
    Copying files to disk image...
    Compressing disk image...
    "/Volumes/Gimp" unmounted successfully.
    DIIsInitialized: returning YESDIIsInitialized: returning YESDIBackingStoreNewWithCFURL: entry with
    /Users/chachi/src/darwingimp/skeleton/gimp-wla.sparseimage
    writeable: false
    DIBackingStoreInstantiatorProbe: entry
    /Users/chachi/src/darwingimp/skeleton/gimp-wla.sparseimage
    writeable: false
    DIBackingStoreInstantiatorProbe: probing interface 0 CBSDBackingStore
    CBSDBackingStore::newProbe score 100 for file://localhost/Users/chachi/src/darwi ... parseimage
    DIBackingStoreInstantiatorProbe: probing interface 1 CBundleBackingStore
    CBundleBackingStore::newProbe score -1000 for file://localhost/Users/chachi/src/darwi ... parseimage
    DIBackingStoreInstantiatorProbe: probing interface 2 CRAMBackingStore
    CRAMBackingStore::probe: scheme "file": not ram: or ramdisk: scheme.
    CRAMBackingStore::probe: score -1000 for file://localhost/Users/chachi/src/darwi ... parseimage
    DIBackingStoreInstantiatorProbe: probing interface 3 CCarbonBackingStore
    CCarbonBackingStore::newProbe: setting initial rval to +100
    CCarbonBackingStore::newProbe score 100 for file://localhost/Users/chachi/src/darwi ... parseimage
    DIBackingStoreInstantiatorProbe: probing interface 4 CDevBackingStore
    CDevBackingStore::newProbe: not /dev/disk or /dev/rdisk (/Users/chachi/src/darwingimp/skeleton/gimp-wla.sparseimage).CDevBackingStore::newProbe score -1000 for
    DIBackingStoreInstantiatorProbe: probing interface 5 CCURLBackingStore
    CCURLBackingStore::probe: scheme is
    file
    CCURLBackingStore::probe: not recognized URL scheme.
    CCURLBackingStore::probe: score -1000 for file://localhost/Users/chachi/src/darwi ... parseimage
    DIBackingStoreInstantiatorProbe: probing interface 6 CVectoredBackingStore
    CVectoredBackingStore::newProbe not "vectored" scheme.
    CVectoredBackingStore::newProbe score -1000 for file://localhost/Users/chachi/src/darwi ... parseimage
    DIBackingStoreNewWithCFURL: CBSDBackingStore
    opening /Users/chachi/src/darwingimp/skeleton/gimp-wla.sparseimage setPermission 1716
    CBSDBackingStore::OpenLockFriendly: mapping flags 0x00000000 -> 0x00000014 (locks are MANDATORY)
    CBSDBackingStore:OpenLockFriendly: could not open with lock 35
    DIBackingStoreNewWithCFURL: instantiator returned 35
    DIBackingStoreNewWithCFURL: returning 0x00000023
    DIResolveURLToBackingStore: unable to resolve to any backing store class. 35.
    DIResolveURLToDiskImage: resolving backing store/file encoding failed. 35.
    hdiutil: convert failed - Resource temporarily unavailable
    Removing uncompressed transitory dmg...
    Done!

    detach code returns:

    hdiutil: detach failed - No such file or directory


    I'm more than happy to help!!!
     
  7. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Thanskf or the info, though i'm still not sure how to fix it :/ i'll think about it, i just have no clue
     
  8. chachi

    chachi New Member

    Joined:
    Apr 2, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Colorado
    This works for me. See if it does for you:

    Code:
    # get OS major version
    OSXVER=`uname -r | cut -f 1 -d '.'`
    
    ARCH=`uname -p`
    if [ $OSXVER -lt 9 ]; then
    FINAL_FILENAME=gimp_VERSION_tiger_"$ARCH"
    else
    FINAL_FILENAME=gimp_VERSION_leopard_"$ARCH"
    fi
    
    USERNAME="Gimp"
    TRANSITORY_FILENAME="gimp-wla.sparseimage"
    
    echo "Creating and attaching disk image..."
    /usr/bin/hdiutil create -type SPARSE -size 300m -fs HFS+ -volname "$USERNAME" -attach "$TRANSITORY_FILENAME"
    
    echo "Copying files to disk image..."
    cp -R ./output/Gimp.app /Volumes/"$USERNAME"/Gimp.app
    cp -R ./output/LICENSE.txt /Volumes/"$USERNAME"/LICENSE.txt
    
    # open the window so that the icon database is generated
    open /Volumes/"$USERNAME"
    sleep 3
    
    echo "Detaching disk image..."
    /usr/bin/hdiutil detach /Volumes/"$USERNAME"
    
    echo "Compressing disk image..."
    /usr/bin/hdiutil convert -imagekey zlib-level=9 -format UDBZ ./"$TRANSITORY_FILENAME" -o ./"$FINAL_FILENAME"
    
    echo "Removing uncompressed transitory dmg..."
    /bin/rm -f ./"$TRANSITORY_FILENAME"
    
    echo "Done!"
    
     
  9. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    hey, many thanks for playing with it :D

    Updated in SVN.
     
  10. chachi

    chachi New Member

    Joined:
    Apr 2, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Colorado
    You're welcome! Any time Auria!!
     
  11. Cocoa

    Cocoa New Member

    Joined:
    Sep 14, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    EDIT:

    Code:
    Undefined symbols:
      "_NewHandle", referenced from:
          _twainAllocHandle in tw_mac.o
      "_InstallEventLoopTimer", referenced from:
          _twainMain in tw_mac.o
      "_RunApplicationEventLoop", referenced from:
          _twainMain in tw_mac.o
      "_DSM_Entry", referenced from:
          _callDSM in tw_mac.o
      "_GetMainEventLoop", referenced from:
          _twainMain in tw_mac.o
      "_DisposeHandle", referenced from:
          _twainFreeHandle in tw_mac.o
      "_CGImageCreateWithPNGDataProvider", referenced from:
          _twainMain in tw_mac.o
      "_CFURLCreateFromFileSystemRepresentation", referenced from:
          _twainMain in tw_mac.o
      "_CPSEnableForegroundOperation", referenced from:
          _twainMain in tw_mac.o
      "_CGDataProviderCreateWithURL", referenced from:
          _twainMain in tw_mac.o
      "_SetFrontProcess", referenced from:
          _twainMain in tw_mac.o
      "_kCFAllocatorDefault", referenced from:
          _kCFAllocatorDefault$non_lazy_ptr in tw_mac.o
      "_SetApplicationDockTileImage", referenced from:
          _twainMain in tw_mac.o
      "_QuitApplicationEventLoop", referenced from:
          _twainQuitApplication in tw_mac.o
          _doGetImage in tw_mac.o
      "_EndQDContextForApplicationDockTile", referenced from:
          _twainMain in tw_mac.o
      "_GetCurrentProcess", referenced from:
          _twainMain in tw_mac.o
      "_BeginQDContextForApplicationDockTile", referenced from:
          _twainMain in tw_mac.o
      "_CPSSetProcessName", referenced from:
          _twainMain in tw_mac.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make[3]: *** [twain] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2
    Error: Target org.macports.build returned: shell command " cd "/tmp/skl/Gimp.app/Contents/Resources/var/macports/build/_tmp_skl_Gimp.app_Contents_Resources_var_macports_sources_rsync.macports.org_release_ports_graphics_gimp2/work/gimp-2.4.7" && make all " returned error 2
    Command output:       _twainMain in tw_mac.o
      "_CFURLCreateFromFileSystemRepresentation", referenced from:
          _twainMain in tw_mac.o
      "_CPSEnableForegroundOperation", referenced from:
          _twainMain in tw_mac.o
      "_CGDataProviderCreateWithURL", referenced from:
          _twainMain in tw_mac.o
      "_SetFrontProcess", referenced from:
          _twainMain in tw_mac.o
      "_kCFAllocatorDefault", referenced from:
          _kCFAllocatorDefault$non_lazy_ptr in tw_mac.o
      "_SetApplicationDockTileImage", referenced from:
          _twainMain in tw_mac.o
      "_QuitApplicationEventLoop", referenced from:
          _twainQuitApplication in tw_mac.o
          _doGetImage in tw_mac.o
      "_EndQDContextForApplicationDockTile", referenced from:
          _twainMain in tw_mac.o
      "_GetCurrentProcess", referenced from:
          _twainMain in tw_mac.o
      "_BeginQDContextForApplicationDockTile", referenced from:
          _twainMain in tw_mac.o
      "_CPSSetProcessName", referenced from:
          _twainMain in tw_mac.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make[3]: *** [twain] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2
    
    Warning: the following items did not execute (for gimp2): org.macports.activate org.macports.build org.macports.destroot org.macports.install
    Error: Status 1 encountered during processing.
    
    
    
    Issues building.
     
  12. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Hmm... do you have my custom portfile (posted earlier in this thread)? I'm pretty sure i added stuff to fix missing symbols. If you do have it (please confirm) i'll try another change in it
     
  13. lisanet

    lisanet Member

    Joined:
    Sep 15, 2008
    Messages:
    221
    Likes Received:
    0
    Trophy Points:
    16
    this build error is related to a missing LDFLAG in the Makefile of the twain plugin.

    I've fixed this by editing the correspondig Makefile. Unfortunately I haven't created a patch file... :( but you should be able to do it on your own.

    Go to the build directory in your McPorts tree under 'Contents/Resources/var/macports/build'.
    Right after you get the error, there should be a directory named something like '_tmp_skl_...bla..bla...graphics_gimp2'. This is your gimp sourcve tree. Go into it and down to 'plugin/twain'.
    Edit the Makefile by searching for a rule for 'twain_LINK'. This should look like:

    Code:
    twain_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
    	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(twain_LDFLAGS) \
    	$(LDFLAGS) -o $@
    
    Insert '$(AM_LDFLAGS)' right after $(twain_LDFLAGS). This will give you:

    Code:
    twain_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
    	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(twain_LDFLAGS) $(AM_LDFLAGS) \
    	$(LDFLAGS) -o $@
    
    and restart the port install command.

    BTW, is there anybody on the list who knows how to create a patch file for use with MacPorts?
     
  14. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Hi Lisanet, thanks for the fix! Has this problem been submitted to the appropriate people so it can be fixed upstream?

    By this, do you mean a patch that macports will apply automatically? If so, unfortunately I do not know but you could drop by the macports IRC channel, they've generally been helpful to me
     
  15. truecolor

    truecolor New Member

    Joined:
    Jun 4, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
  16. manola

    manola New Member

    Joined:
    Jul 2, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1

Share This Page