[MacPorts] #38801: new port: grid-packaging-tools
#38801: new port: grid-packaging-tools ------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: ------------------------+-------------------------------- The [http://www.globus.org/toolkit/ Globus Toolkit] software makes use of GPT ([http://www.gridpackagingtools.com/ grid-packaging-tools]) for building and packaging. I've created ports for [https://github.com/dvandok /globus-macports many of the Globus Toolkit components], but as a first attempt I submit this one for general review; it has no dependencies outside of what's in macports already. == Description == GPT is a collection of packaging tools built around an XML based packaging data format. This format provides a straight forward way to define complex dependency and compatibility relationships between packages. The tools provide a means for developers to easily define the packaging data and include it as part of their source code distribution. Binary packages can be automatically generated from this data. The packages defined by GPT are compatible with other packages and can be easily converted. -- Ticket URL: <https://trac.macports.org/ticket/38801> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Changes (by cal@…): * cc: dennisvd@… (removed) * port: => grid-packaging-tools Comment: As the reporter, you don't need to Cc yourself. -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by aronnax@…): Why do you have to touch aclocal.m4, Makefile.in, and configure? -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by dennisvd@…): I guess this is meant to force autoconf, aclocal and automake to be run. But now that I think of it: touching Makefile.in and configure makes little sense as these are the products of automake/autoconf and not the sources. I didn't originally write this code; let me check if it makes a difference if I remove these lines. -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by aronnax@…): Replying to [comment:6 dennisvd@…]:
I guess this is meant to force autoconf, aclocal and automake to be run. But now that I think of it: touching Makefile.in and configure makes little sense as these are the products of automake/autoconf and not the sources.
I didn't originally write this code; let me check if it makes a difference if I remove these lines.
If it does make a difference, a better way to do this is {{{ use_autoreconf yes }}} -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by aronnax@…): Why are autoconf, automake, and libtool listed as runtime dependencies? If they are only needed for building, then {{{use_autoreconf yes }}} will add them to {{{depends_build}}}. -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by dennisvd@…): I guess using `use_autoreconf yes` is generally harmless, and it cleans up the portfile somewhat. Is it ok to do this? -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by aronnax@…): I suggested a few changes by attaching a diff. * Move {{{perl5}}} to {{{depends_lib}}}; this way, it is required both to build and to use the port. * Set {{{distname}}} to {{{gpt-${version}}}. Special settings of {{{checksums}}} and {{{worksrcdir}}} are no longer needed. * Set {{{use_autoreconf yes}}} and remove {{{pre-configure}}} step. * Remove {{{Rename libtoolize to glibtoolize}}} stuff in {{{post- destroot}}}. The {{{gpt-bootstrap.sh}}} script can probably be avoided in the other Globus ports by having them set {{{use_autoreconf yes}}}, which does largely the same thing, but more portably. * Put README files in {{{share/doc/${name}}}} instead of {{{share/doc/${name}-${version}}}}; the former convention appears to be more common in MacPorts. -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by dennisvd@…): Replying to [comment:10 aronnax@…]:
I suggested a few changes by attaching a diff.
Thanks! I've included your changes and made a new upload.
* Remove {{{Rename libtoolize to glibtoolize}}} stuff in {{{post- destroot}}}. The {{{gpt-bootstrap.sh}}} script can probably be avoided in the other Globus ports by having them set {{{use_autoreconf yes}}}, which does largely the same thing, but more portably.
Maybe, but a first attempt at building globus-core balked on the autoreconf. The autoheader tool doesn't like one of the `AC_DEFINE`s in the archaic `configure.in`. Actually, globus-core comes with a bootstrap script which does slightly more than what autoreconf does, so I think we have to stick to that. It doesn't use `gpt-bootstrap.sh`, but it calls a few other gpt related scripts. Anyway, the glibtoolize renaming was wrong anyway. Probably a leftover from earlier days. -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by aronnax@…): Does it work if you remove {{{--libexecdir='\${datadir}/globus'}}} and {{{--mandir='\${datadir}/man'}}} from the configure args? -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by dennisvd@…): Replying to [comment:12 aronnax@…]:
Does it work if you remove {{{--libexecdir='\${datadir}/globus'}}} and {{{--mandir='\${datadir}/man'}}} from the configure args?
Yes, I just checked and the only thing that moves (to /opt/local/libexec) is the gpt-bootstrap.sh script. I'll update the Portfile again. -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by aronnax@…): You may also want to add {{{openmaintainer}}}; see r105187. -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by dennisvd@…): this ticket blocks #39280 -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by ram@…): livecheck doesn't work, with the URL scheme not sure how you'd be able to get it working. Maybe disable livecheck? The home page looks like it hasn't been updated since 2004, is there another homepage that can be used as it doesn't contain information about the version this port provides? -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by dennisvd@…): Replying to [comment:17 ram@…]:
livecheck doesn't work, with the URL scheme not sure how you'd be able to get it working. Maybe disable livecheck? Is this on by default? Normally Globus releases this as part of their Globus Toolkit bundle. So we would have to track Globus Toolkit releases. I'm not sure how to do this. Otherwise, how do I disable livecheck?
The home page looks like it hasn't been updated since 2004, is there another homepage that can be used as it doesn't contain information about the version this port provides? Evidently, the GPT software has been adopted by Globus and integrated into their Globus Toolkit releases. I think the reference to the original developers is becoming less and less relevant, even if the documentation still points to them and they still have some claim of copyright. But the latest stable release (3.2) of NCSA doesn't look anything like what's currently in Globus Toolkit. So maybe the homepage should be updated.
-- Ticket URL: <https://trac.macports.org/ticket/38801#comment:18> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by ram@…): Replying to [comment:18 dennisvd@…]:
Normally Globus releases this as part of their Globus Toolkit bundle. So we would have to track Globus Toolkit releases. I'm not sure how to do this.
Maybe something like the following: {{{ --- a/devel/grid-packaging-tools/Portfile +++ b/devel/grid-packaging-tools/Portfile @@ -8,6 +8,8 @@ PortSystem 1.0 name grid-packaging-tools version 3.6.3 +set globus_version 5.2.4 +set globus_branch [join [lrange [split ${globus_version} .] 0 1] .] revision 1 platforms darwin categories devel @@ -36,7 +38,7 @@ depends_run port:p5-archive-tar \ port:automake \ port:libtool -master_sites http://www.globus.org/ftppub/gt5/5.2/5.2.4/packages/src/ +master_sites http://www.globus.org/ftppub/gt5/${globus_branch}/${globus_version}/packages/src/ distname gpt-${version} @@ -58,3 +60,8 @@ post-destroot { ${worksrcpath}/LICENSE ${worksrcpath}/README \ ${destroot}${prefix}/share/doc/${name} } + +livecheck.type regex +livecheck.version ${globus_version} +livecheck.url http://www.globus.org/toolkit/downloads/latest- stable/ +livecheck.regex {Globus Toolkit (\d+(?:\.\d+)*) Download} }}}
Otherwise, how do I disable livecheck?
{{{ livecheck.type none }}}
Evidently, the GPT software has been adopted by Globus and integrated into their Globus Toolkit releases. I think the reference to the original developers is becoming less and less relevant, even if the documentation still points to them and they still have some claim of copyright. But the latest stable release (3.2) of NCSA doesn't look anything like what's currently in Globus Toolkit. So maybe the homepage should be updated.
Maybe use http://www.globus.org/toolkit? -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:19> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by ram@…): One problem with livecheck checking the globus version is that it won't handle the case of advisories, i.e. those from http://www.globus.org/toolkit/advisories.html, not sure how that could be handled. But checking the globus toolkit version is better than nothing. -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:21> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by dennisvd@…): Replying to [comment:21 ram@…]:
One problem with livecheck checking the globus version is that it won't handle the case of advisories, i.e. those from http://www.globus.org/toolkit/advisories.html, not sure how that could be handled. But checking the globus toolkit version is better than nothing.
It's a shame livecheck can only inspect a single URL. Otherwise a combination of http://www.globus.org/ftppub/gt5/5.2/5.2.4/{packages,updates}/src/ would be perfect. I think I'll stick to tracking just the bundled Globus Toolkit releases. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:22> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by dennisvd@…): I've updated the Portfile with the livecheck settings suggested by ram, and removed dependencies on autoconf, automake and libtool which should be automatically included by {{{use_autoreconf = yes}}} -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:23> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------------------- Reporter: dennisvd@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------------------- Comment (by ram@…): Replying to [comment:22 dennisvd@…]:
It's a shame livecheck can only inspect a single URL. Otherwise a combination of http://www.globus.org/ftppub/gt5/5.2/5.2.4/{packages,updates}/src/ would be perfect.
That would be nice. -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:24> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+------------------- Reporter: dennisvd@… | Owner: ram@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+------------------- Changes (by ram@…): * owner: macports-tickets@… => ram@… * cc: ram@… (removed) Comment: Looks good as far as I'm concerned. Just a quick, is there any reason why you've set revision to one as we start from zero and then increment? Let's leave it a day or so for other people to weigh in, if we hear nothing I'll get this committed tomorrow. -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:25> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+------------------- Reporter: dennisvd@… | Owner: ram@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+------------------- Comment (by dennisvd@…): Replying to [comment:25 ram@…]:
Just a quick, is there any reason why you've set revision to one as we start from zero and then increment?
I'm used to Debian and Fedora builds I guess, they start from 1...
Let's leave it a day or so for other people to weigh in, if we hear
nothing I'll get this committed tomorrow. Great, thanks! -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:26> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+------------------- Reporter: dennisvd@… | Owner: ram@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: grid-packaging-tools | -----------------------------------+------------------- Comment (by ram@…): Replying to [comment:26 dennisvd@…]:
I'm used to Debian and Fedora builds I guess, they start from 1...
OK, I'll reset this to zero when I commit. -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:27> MacPorts <http://www.macports.org/> Ports system for OS X
#38801: new port: grid-packaging-tools -----------------------------------+-------------------- Reporter: dennisvd@… | Owner: ram@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: grid-packaging-tools | -----------------------------------+-------------------- Changes (by ram@…): * status: new => closed * resolution: => fixed Comment: r107012 -- Ticket URL: <https://trac.macports.org/ticket/38801#comment:28> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts