[MacPorts] #34275: pdftk should not depend on gcc42 (was: gcc42 failed to build: -lgcc_s.10.4 is not an object file)

MacPorts noreply at macports.org
Fri Sep 14 11:08:46 PDT 2012


#34275: pdftk should not depend on gcc42
------------------------+--------------------------
  Reporter:  jharmon@…  |      Owner:  ryandesign@…
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.0.4
Resolution:             |   Keywords:
      Port:  pdftk      |
------------------------+--------------------------
Changes (by jeremyhu@…):

 * owner:  mww@… => ryandesign@…
 * port:  gcc42 => pdftk


Comment:

 gcc42 should be removed.  Please try this out:

 {{{
 Index: Portfile
 ===================================================================
 --- Portfile    (revision 97745)
 +++ Portfile    (working copy)
 @@ -54,6 +54,36 @@

  set versuff ""

 +variant gcc43 conflicts gcc44 gcc45 gcc47 description {Build using gcc43}
 {
 +    configure.compiler  macports-gcc-4.3
 +    depends_lib-append  port:gcc43
 +    set versuff         -mp-4.3
 +}
 +
 +variant gcc44 conflicts gcc43 gcc45 gcc47 description {Build using gcc44}
 {
 +    configure.compiler  macports-gcc-4.4
 +    depends_lib-append  port:gcc44
 +    set versuff         -mp-4.4
 +}
 +
 +variant gcc45 conflicts gcc43 gcc44 gcc47 description {Build using gcc45}
 {
 +    configure.compiler  macports-gcc-4.5
 +    depends_lib-append  port:gcc45
 +    set versuff         -mp-4.5
 +}
 +
 +variant gcc47 conflicts gcc43 gcc44 gcc45 description {Build using gcc47}
 {
 +    configure.compiler  macports-gcc-4.7
 +    depends_lib-append  port:gcc47
 +    set versuff         -mp-4.7
 +}
 +
 +if {${os.platform} == "darwin" && ${os.major} < 11} {
 +    default_variants    +gcc45
 +} else {
 +    default_variants    +gcc47
 +}
 +
  pre-configure {
      if {![file exists ${prefix}/bin/gcj${versuff}]} {
          return -code error "
 @@ -80,37 +110,3 @@
      xinstall -m 644 -W ${worksrcpath} pdftk.1 \
          ${destroot}${prefix}/share/man/man1
  }
 -
 -variant gcc42 conflicts gcc45 gcc47 description {Build using gcc42} {
 -    patchfiles-append   patch-gcj-4.2-and-older.diff
 -    configure.compiler  macports-gcc-4.2
 -    depends_build-append port:fastjar
 -    depends_lib-append  port:gcc42
 -    set versuff         -mp-4.2
 -}
 -
 -variant gcc45 conflicts gcc42 gcc47 description {Build using gcc45} {
 -    configure.compiler  macports-gcc-4.5
 -    depends_lib-append  port:gcc45
 -    set versuff         -mp-4.5
 -}
 -
 -variant gcc47 conflicts gcc42 gcc45 description {Build using gcc47} {
 -    configure.compiler  macports-gcc-4.7
 -    depends_lib-append  port:gcc47
 -    set versuff         -mp-4.7
 -}
 -
 -if {![variant_isset gcc42] && ![variant_isset gcc45] && ![variant_isset
 gcc47]} {
 -    if {${os.platform} == "darwin"} {
 -        if {${os.major} < 10} {
 -            default_variants    +gcc42
 -        } elseif {${os.major} < 11} {
 -            default_variants    +gcc45
 -        } else {
 -            default_variants    +gcc47
 -        }
 -    } else {
 -        default_variants    +gcc45
 -    }
 -}
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/34275#comment:8>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list