Ticket #16379 (closed submission: wontfix)
New port cilk-5.4.6
| Reported by: | ddugovic@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | cilk compiler lack-of-interest | Cc: | ryandesign@… |
| Port: |
Description
$ sudo port install Portfile changed since last build; discarding previous state. ---> Fetching cilk ---> Attempting to fetch cilk-5.4.6.tar.gz from http://supertech.csail.mit.edu/cilk/cilk-5.4.6.tar.gz ---> Attempting to fetch cilk-5.4.6.tar.gz from http://svn.macports.org/repository/macports/distfiles/cilk ---> Attempting to fetch cilk-5.4.6.tar.gz from http://svn.macports.org/repository/macports/distfiles/general/ ---> Attempting to fetch cilk-5.4.6.tar.gz from http://svn.macports.org/repository/macports/downloads/cilk Error: Target org.macports.fetch returned: fetch failed Error: Status 1 encountered during processing.
Attachments
Change History
comment:1 Changed 5 years ago by blb@…
- Milestone changed from Port Enhancements to Port Submissions
- Summary changed from cilk-5.4.6 org.macports.fetch error - Fetch failed to New port cilk-5.4.6 org.macports.fetch error - Fetch failed
Changed 5 years ago by ddugovic@…
Updated work-in-progress Portfile for GPL cilk-5.4.6 compiler
comment:2 Changed 5 years ago by ddugovic@…
Thanks for the advice. Sure, I'd be glad to maintain this project, although I don't expect to be making enhancements to the compiler anytime soon.
I've got a couple remaining questions:
- I looked at the portfiles categories; what would be the best place to put this project?
- I know the source code is GPL-licensed, so does that mean I can mirror it at sourceforge (or elsewhere)?
- There's two compilers; cilkc generates executables and cilk2c generates C code. Is there a MacPorts convention for indicating this?
I've updated the Portfile attached to this ticket; I'm not sure if I need the destroot.destdir at all, but other than that, the Id, and the categories, it seems reasonably complete.
comment:3 Changed 5 years ago by ryandesign@…
- Cc ryandesign@… added
- Summary changed from New port cilk-5.4.6 org.macports.fetch error - Fetch failed to New port cilk-5.4.6
Some suggestions:
- remove "revision 1"; the first revision of a given version should be 0
- category should be "lang"
- remove "--prefix=${prefix}" from configure.args; MacPorts already puts that in configure.pre_args for you
- add "use_parallel_build yes" to speed up the build on multi-processor systems
- remove "destroot.destdir" declaration; it seems to be irrelevant here
- remove "--mandir" argument from configure.args; cilk does not install any manpages
- since homepage and master_sites are the same, use the one as a variable in the other
See Portfile2 which includes these changes.
The GPL says you may redistribute it, so you can mirror it anywhere you like. MacPorts will automatically mirror it at http://distfiles.macports.org/cilk/ as soon as the port is committed.
This port you're submitting seems to only provide cilkc. Is cilk2c a different package? If so, it should get a separate port. If, on the other hand, cilk2c can be generated from this same source code via some configure options or similar, then a single port could install both.
comment:4 Changed 5 years ago by ddugovic@…
Thanks Ryan for the changes & explanation about mirroring.
This package includes both compilers, cilkc (cilk compiler) and cilk2c (cilk-to-C compiler). I'll double-check the configure options (& similar), but they might both be installed by default.
comment:5 Changed 5 years ago by ryandesign@…
I installed the port from the portfile, and only ended up with a cilkc binary. There was no cilk2c binary installed.


If you remove the archive name from the master_sites entry:
fetch should work for you then.
Some other notes: do you want to be the maintainer? Remove the ${destroot} from configure.args, or it'll always expect to find stuff there, which is incorrect (the ${destroot} in destroot.destdir should be doing the right thing).