#4140 Updated autotrace_0.31.1-1023

closed-out-of-date
nobody
5
2013-03-01
2012-03-26
Peter Dyballa
No

Does this package have OS version restrictions? Yes, it's for Leopard and newer.
Which section does it belong in? graphics
Have you built it with -m --build-as-nobody? Yes!

It has been updated to use libming1 instead of very old ming package. Other updates are the use of GCC 4.2 and lcms2. Finally there is a patch for configure available to handle the new version numbers of ImageMagick:

- MAGICK_VERSION=`Magick-config --version`
+ MAGICK_VERSION=`Magick-config --version | awk '{print $1}'`

peter 119 /\ dpkg -L autotrace
/.
/sw
/sw/bin
/sw/bin/autotrace-config
/sw/include
/sw/include/autotrace
/sw/include/autotrace/autotrace.h
/sw/include/autotrace/exception.h
/sw/include/autotrace/input.h
/sw/include/autotrace/output.h
/sw/include/autotrace/types.h
/sw/lib
/sw/lib/libautotrace.la
/sw/lib/pkgconfig
/sw/lib/pkgconfig/autotrace.pc
/sw/share
/sw/share/aclocal
/sw/share/aclocal/autotrace.m4
/sw/share/doc
/sw/share/doc/autotrace
/sw/share/doc/autotrace/AUTHORS
/sw/share/doc/autotrace/ChangeLog
/sw/share/doc/autotrace/COPYING
/sw/share/doc/autotrace/COPYING.LIB
/sw/share/doc/autotrace/FAQ
/sw/share/doc/autotrace/HACKING
/sw/share/doc/autotrace/NEWS
/sw/share/doc/autotrace/README
/sw/share/doc/autotrace/README.MING
/sw/share/doc/autotrace/THANKS
/sw/share/doc/autotrace/TODO
/sw/lib/libautotrace.dylib

peter 120 /\ dpkg -L autotrace-bin
/.
/sw
/sw/bin
/sw/bin/autotrace
/sw/share
/sw/share/doc
/sw/share/doc/autotrace-bin
/sw/share/doc/autotrace-bin/AUTHORS
/sw/share/doc/autotrace-bin/ChangeLog
/sw/share/doc/autotrace-bin/COPYING
/sw/share/doc/autotrace-bin/COPYING.LIB
/sw/share/doc/autotrace-bin/FAQ
/sw/share/doc/autotrace-bin/HACKING
/sw/share/doc/autotrace-bin/NEWS
/sw/share/doc/autotrace-bin/README
/sw/share/doc/autotrace-bin/README.MING
/sw/share/doc/autotrace-bin/THANKS
/sw/share/doc/autotrace-bin/TODO
/sw/share/man
/sw/share/man/man1
/sw/share/man/man1/autotrace.1

peter 121 /\ dpkg -L autotrace-shlibs
/.
/sw
/sw/lib
/sw/lib/libautotrace.3.dylib
/sw/share
/sw/share/doc
/sw/share/doc/autotrace-shlibs
/sw/share/doc/autotrace-shlibs/AUTHORS
/sw/share/doc/autotrace-shlibs/ChangeLog
/sw/share/doc/autotrace-shlibs/COPYING
/sw/share/doc/autotrace-shlibs/COPYING.LIB
/sw/share/doc/autotrace-shlibs/FAQ
/sw/share/doc/autotrace-shlibs/HACKING
/sw/share/doc/autotrace-shlibs/NEWS
/sw/share/doc/autotrace-shlibs/README
/sw/share/doc/autotrace-shlibs/README.MING
/sw/share/doc/autotrace-shlibs/THANKS
/sw/share/doc/autotrace-shlibs/TODO

Discussion

1 2 3 > >> (Page 1 of 3)
  • Peter Dyballa
    Peter Dyballa
    2012-03-26

    autotrace_0.31.1-1023 patch + info

     
    • milestone: 373615 --> Awaiting_Update_from_Submitter
     
  • Just a couple quick notes:

    1) GCC: 4.2 doesn't actually make it use gcc-4.2. The GCC field is for keeping track of the GCC-ABI in c++ code in the package. I'm not even sure it's actually needed since I don't see any usage of c++ in the autotrace build log. Do you know if there's actually c++ code in autotrace?

    To actually have it use gcc-4.2, the most common way is to use the field SetCC: gcc-4.2 (or setCXX: g++-4.2), but that's a force, and only recommended if actually needed. Otherwise, let the package use the compiler it wants unless there's a failure.

    2) The current in stable autotrace has a note that it is not compatible with the libmin0 interface. Is the libming1 interface now compatible with autotrace?

     
  • Also, since the autotrace is unmaintained, would you like to become the package maintainer?

    This position generally just entails being the point person for any queries for when the package fails to build, or if someone requests an update. It's generally not very time consuming. For my dozen-plus packages, I maybe get a question just once or twice a month.

     
  • Peter Dyballa
    Peter Dyballa
    2012-03-30

    C++ compilers are not used, but libstdc++ is linked in. I tried to make sure that Fink uses OpenMP compatible compilers in case -fopenmp from ImageMagick finds its way into the build process.
    Up-to-date ImageMagick can make use of this API and possibly be faster on hard- and software that provides this. Starting with Leopard we should enable the use of OpenMP, which needs GCC 4.2 at least.

    Autotrace does not compile with the libming0 snapshot, but it does so with libming1.

     
  • Peter Dyballa
    Peter Dyballa
    2012-03-30

    OK, I can take over the job of the maintainer! I think I never used it, it was always a prerequisite for other packages so I looked for it. I don't have a Mac zoo and will take some time until I upgrade to Lion – in case Apple becomes sane again and releases the OS on DVD or BD.

     
  • Peter Dyballa
    Peter Dyballa
    2012-03-30

    The PATCH file again

     
    Attachments
  • 1) On 10.6, it fails to build with this error (though the failure is probably universal):

    libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libautotrace.3.dylib .libs/input-pnm.o .libs/input-bmp.o .libs/input-tga.o .libs/input-png.o .libs/input-magick.o .libs/output-eps.o .libs/output-er.o .libs/output-fig.o .libs/output-sk.o .libs/output-svg.o .libs/output-p2e.o .libs/output-emf.o .libs/output-dxf.o .libs/output-epd.o .libs/output-pdf.o .libs/output-mif.o .libs/output-cgm.o .libs/output-dr2d.o .libs/output-swf.o .libs/output-pstoedit.o .libs/fit.o .libs/bitmap.o .libs/spline.o .libs/curve.o .libs/epsilon-equal.o .libs/vector.o .libs/color.o .libs/autotrace.o .libs/output.o .libs/input.o .libs/pxl-outline.o .libs/median.o .libs/thin-image.o .libs/logreport.o .libs/filename.o .libs/xstd.o .libs/despeckle.o .libs/exception.o .libs/strgicmp.o .libs/image-proc.o -L/sw32/lib -L/sw32/lib/pango-ft219/lib -L/sw32/lib/fontconfig2/lib -L/usr/X11R6/lib /sw32/lib/libMagickCore.dylib -llcms /sw32/lib/libtiff.dylib /sw32/lib/freetype219/lib/libfreetype.dylib /sw32/lib/libjpeg.dylib /sw32/lib/fontconfig2/lib/libfontconfig.dylib -lXext -lSM -lICE -lX11 -lXt -lbz2 -lgomp -lpthread /sw32/lib/libltdl.dylib /sw32/lib/libming.dylib -lm /sw32/lib/libpstoedit.dylib /sw32/lib/libpng14.dylib -lz -lstdc++ -ldl -O2 -Wl,-multiply_defined -Wl,suppress -install_name /sw32/lib/libautotrace.3.dylib -compatibility_version 4 -current_version 4.0 -Wl,-single_module
    ld: library not found for -llcms

    lcms2 has liblcms2.dylib, which explains why the libtool doesn't find -llcms.

    2) For setting gcc-4.2, the method used in pstoedit (a 10.5 conditional inside CompileScript) will work, along with proper usage of the GCC: 4.0 field.

    3) Don't forget to add yourself as the maintainer.

    I think this should take care of the remaining issues.

     
  • Peter Dyballa
    Peter Dyballa
    2012-05-18

    Hanspeter,

    your Fink installation might be faulty...

    To build libautotrace.3.dylib you do not need X11, neither PANGO, nor fontconfig, libtiff, libjpeg, just:

    /sw/lib/libautotrace.3.dylib (compatibility version 4.0.0, current version 4.0.0)
    /sw/lib/libMagickCore.5.dylib (compatibility version 6.0.0, current version 6.0.0)
    /sw/lib/libming.1.dylib (compatibility version 6.0.0, current version 6.1.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)
    /sw/lib/libpstoedit.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /sw/lib/libpng14.14.dylib (compatibility version 26.0.0, current version 26.0.0)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)

    But, libMagickCore is by default using lcms instead of lcms2 (except on my Snow Leopard system). In MacPorts and my local updated ImageMagick packages on Leopard and Tiger this works well. But: ImageMagick might need a much more comprehensive revision, see here: https://trac.macports.org/ticket/34231. I need to test that as well, for me the GCC 4.2 with OpenMP compiled versions do not crash.

    This is my build of libautotrace.3.dylib on Mac OS X 10.6.8:

    libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libautotrace.3.dylib .libs/input-pnm.o .libs/input-bmp.o .libs/input-tga.o .libs/input-png.o .libs/input-magick.o .libs/output-eps.o .libs/output-er.o .libs/output-fig.o .libs/output-sk.o .libs/output-svg.o .libs/output-p2e.o .libs/output-emf.o .libs/output-dxf.o .libs/output-epd.o .libs/output-pdf.o .libs/output-mif.o .libs/output-cgm.o .libs/output-dr2d.o .libs/output-swf.o .libs/output-pstoedit.o .libs/fit.o .libs/bitmap.o .libs/spline.o .libs/curve.o .libs/epsilon-equal.o .libs/vector.o .libs/color.o .libs/autotrace.o .libs/output.o .libs/input.o .libs/pxl-outline.o .libs/median.o .libs/thin-image.o .libs/logreport.o .libs/filename.o .libs/xstd.o .libs/despeckle.o .libs/exception.o .libs/strgicmp.o .libs/image-proc.o -L/sw/lib /sw/lib/libMagickCore.dylib /sw/lib/libming.dylib -lm /sw/lib/libpstoedit.dylib /sw/lib/libpng14.dylib -lz -lstdc++ -ldl -O2 -Wl,-multiply_defined -Wl,suppress -pthread -fopenmp -install_name /sw/lib/libautotrace.3.dylib -compatibility_version 4 -current_version 4.0 -Wl,-single_module

    Notice also that you're using -lgomp and /sw32/lib/libltdl.dylib while I have -fopenmp!

     
  • Whatever the package does with your local imagemagick IS IRRELEVANT.

    The package must build properly against other packages which are currently in Fink.

     
1 2 3 > >> (Page 1 of 3)