Opened 11 years ago

Closed 11 years ago

#39620 closed defect (fixed)

shared-mime-info @1.1 does not build with intltool @0.50.2_2+perl5_16

Reported by: mndavidoff (Monte Davidoff) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: shared-mime-info

Description

The change to intltool in r107542 appears to have broken the shared-mime-info build when intltool +perl5_16 is installed. Shared-mime-info did build with the previous revision of intltool (r107528) and intltool +perl5_16 installed.

$ port installed intltool
The following ports are currently installed:
  intltool @0.50.2_2+perl5_16 (active)
$ sudo port -vs install shared-mime-info
...
checking for perl... /opt/local/bin/perl5.12
checking for perl >= 5.8.1... 5.12.4
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_shared-mime-inme-info/work/shared-mime-info-1.1" && ./configure --prefix=/opt/local --disable-update-mimedb 
Exit code: 2
...

These line in the shared-mime-info Portfile might be relevant:

# The perl executable should be the one explicitly required by intltool
configure.env-append  INTLTOOL_PERL=${prefix}/bin/perl5.12

Attachments (3)

main.log.gz (3.1 KB) - added by mndavidoff (Monte Davidoff) 11 years ago.
Portfile.diff (411 bytes) - added by mndavidoff (Monte Davidoff) 11 years ago.
Portfile.gnome-doc-utils.diff (442 bytes) - added by mndavidoff (Monte Davidoff) 11 years ago.

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by mndavidoff (Monte Davidoff)

Attachment: main.log.gz added

Changed 11 years ago by mndavidoff (Monte Davidoff)

Attachment: Portfile.diff added

comment:1 Changed 11 years ago by mndavidoff (Monte Davidoff)

I've attached a patch to shared-mime-info that appears to fix the problem.

comment:2 Changed 11 years ago by mndavidoff (Monte Davidoff)

The same problem also occurs with gnome-doc-utils. I've attached a patch for gnome-doc-utils that works for me.

Changed 11 years ago by mndavidoff (Monte Davidoff)

comment:3 Changed 11 years ago by cooljeanius (Eric Gallager)

# The perl executable should be the one explicitly required by intltool
configure.env-append  INTLTOOL_PERL=${prefix}/bin/perl5.12

I think that all ports that do this will have to be changed...

comment:4 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Yep. See my message to the mailing list.

In addition to removing that line, a more proper fix would involve doing an autoreconf to ensure this check isn't done. If you just remove setting that variable, it will only work if perl5 and intltool were built with the same variant. autoreconfing will allow them to be built with different variants.

comment:5 Changed 11 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

I think this was fixed by r107653.

$ port installed intltool shared-mime-info
The following ports are currently installed:
  intltool @0.50.2_2+perl5_16 (active)
  shared-mime-info @1.2_0 (active)
Note: See TracTickets for help on using tickets.