[MacPorts] #39616: Submission chemical-mime-data
#39616: Submission chemical-mime-data ---------------------------+-------------------------------- Reporter: c.herbig@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: gnome science | Port: chemical-mime-data ---------------------------+-------------------------------- Provides MIME filetype information for chemical data files. It will also be needed for gnome-chemistry-utils. -- Ticket URL: <https://trac.macports.org/ticket/39616> MacPorts <http://www.macports.org/> Ports system for OS X
#39616: Submission chemical-mime-data ---------------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: gnome scienc Port: chemical-mime-data | ---------------------------------+-------------------------- Changes (by ryandesign@…): * status: new => assigned * keywords: gnome science => gnome scienc * owner: macports-tickets@… => ryandesign@… Comment: Thanks. -- Ticket URL: <https://trac.macports.org/ticket/39616#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39616: Submission chemical-mime-data ---------------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: gnome scienc Port: chemical-mime-data | ---------------------------------+-------------------------- Comment (by c.herbig@…): Replying to [comment:1 ryandesign@…]:
Thanks.
Sorry, I jumped the gun, this already has build errors... I forgot what I did to fix it before... -- Ticket URL: <https://trac.macports.org/ticket/39616#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39616: Submission chemical-mime-data ---------------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: chemical-mime-data | ---------------------------------+-------------------------- Changes (by ryandesign@…): * keywords: gnome scienc => Comment: I'm attaching a revised Portfile to fix the homepage, master_sites, adjust the formatting, and add "supported_archs noarch" because it does not install any architecture-specific files. Because the port is noarch, it does not link with any libraries, so it should not have any library dependencies. Are the listed library dependencies needed at build time, runtime or both? Activation fails: {{{ Error: org.macports.activate for port chemical-mime-data returned: Image error: /opt/local/share/mime/XMLnamespaces already exists and does not belong to a registered port. Unable to activate port chemical-mime-data. Use 'port -f activate chemical-mime-data' to force the activation. }}} In fact there are a dozen files it installs that are already on my system as a result of other installations. I added a post-destroot block to delete them but perhaps a post-activate step is required to update those files somehow. -- Ticket URL: <https://trac.macports.org/ticket/39616#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#39616: Submission chemical-mime-data ---------------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: chemical-mime-data | ---------------------------------+-------------------------- Comment (by c.herbig@…): Replying to [comment:3 ryandesign@…]:
I'm attaching a revised Portfile to fix the homepage, master_sites, adjust the formatting, and add "supported_archs noarch" because it does not install any architecture-specific files.
Because the port is noarch, it does not link with any libraries, so it should not have any library dependencies. Are the listed library dependencies needed at build time, runtime or both?
Activation fails:
{{{ Error: org.macports.activate for port chemical-mime-data returned: Image error: /opt/local/share/mime/XMLnamespaces already exists and does not belong to a registered port. Unable to activate port chemical-mime-data. Use 'port -f activate chemical-mime-data' to force the activation. }}}
In fact there are a dozen files it installs that are already on my system as a result of other installations. I added a post-destroot block to delete them but perhaps a post-activate step is required to update those files somehow.
I'm looking through the configure script to see if I can figure this out again. I'm still getting the following error: {{{ :info:configure :info:configure checking for convert... no :info:configure checking for rsvg... no :info:configure configure: error: Cannot find rsvg (librsvg binary) or convert $ :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_sly_mac$ :info:configure Exit code: 1 }}} ... and now I remember I fixed it by just caving and installing imagemagick. There is another option: {{{ --with-gnome-mime[=PATH] enable, disable or override the installation directory of the old GNOME 2.4 MIME support files [default=$datadir/mime-info] }}} ... that might be key to it. I'll try it. -- Ticket URL: <https://trac.macports.org/ticket/39616#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#39616: Submission chemical-mime-data ---------------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: chemical-mime-data | ---------------------------------+-------------------------- Comment (by ryandesign@…): Oh right I forgot to mention that. I noticed it was detecting ImageMagick and wanted to ask if we needed to add that dependency. -- Ticket URL: <https://trac.macports.org/ticket/39616#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#39616: Submission chemical-mime-data ---------------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: chemical-mime-data | ---------------------------------+-------------------------- Comment (by c.herbig@…): Replying to [comment:5 ryandesign@…]:
Oh right I forgot to mention that. I noticed it was detecting ImageMagick and wanted to ask if we needed to add that dependency.
In the config it says it can use either librsvg or Imagemagick. I can't figure out why it can't find the librsvg dependency, so perhaps for now it would be better to just use imagemagick... -- Ticket URL: <https://trac.macports.org/ticket/39616#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#39616: Submission chemical-mime-data ---------------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: chemical-mime-data | ---------------------------------+-------------------------- Comment (by c.herbig@…): Replying to [comment:6 c.herbig@…]:
Replying to [comment:5 ryandesign@…]:
Oh right I forgot to mention that. I noticed it was detecting ImageMagick and wanted to ask if we needed to add that dependency.
In the config it says it can use either librsvg or Imagemagick. I can't figure out why it can't find the librsvg dependency, so perhaps for now it would be better to just use imagemagick... I was hoping to get away with the fewest extra dependencies...
-- Ticket URL: <https://trac.macports.org/ticket/39616#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#39616: Submission chemical-mime-data ---------------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: chemical-mime-data | ---------------------------------+-------------------------- Comment (by c.herbig@…): Replying to [comment:7 c.herbig@…]:
Replying to [comment:6 c.herbig@…]:
Replying to [comment:5 ryandesign@…]:
Oh right I forgot to mention that. I noticed it was detecting ImageMagick and wanted to ask if we needed to add that dependency.
In the config it says it can use either librsvg or Imagemagick. I can't figure out why it can't find the librsvg dependency, so perhaps for now it would be better to just use imagemagick... I was hoping to get away with the fewest extra dependencies...
I looked in the Fedora change log, and they said this: {{{ * 2012-07-22 Julian Sikorski <belegdol@fedoraproject.org> - 0.1.94-11 - Switched from librsvg2 to ImageMagick since rsvg binary is no more }}} So, yes, it appears that it needs imagemagick instead of librsvg. -- Ticket URL: <https://trac.macports.org/ticket/39616#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#39616: Submission chemical-mime-data ---------------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: chemical-mime-data | ---------------------------------+-------------------------- Comment (by c.herbig@…): It seems that this is the best port file then for now, unless somebody can figure out why it wants to install duplicate files, and if there is a way to tell it that it doesn't have to. It is the same as ryandesign's portfile.2, but with librsvg changed to imagemagick. -- Ticket URL: <https://trac.macports.org/ticket/39616#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#39616: Submission chemical-mime-data ---------------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: chemical-mime-data | ---------------------------------+-------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Added in r107593. I fixed the capitalization of the ImageMagick dependency, and added a patchfile to fix the non-POSIX usage of `echo -n` in the configure script. -- Ticket URL: <https://trac.macports.org/ticket/39616#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts