Opened 19 years ago

Closed 15 years ago

Last modified 14 years ago

#8571 closed enhancement (fixed)

REF: Make MP download archives from a remote machine

Reported by: danielluke (Daniel J. Luke) Owned by: danielluke (Daniel J. Luke)
Priority: Low Milestone: MacPorts 1.9.0
Component: base Version:
Keywords: Cc: yeled@…, danchr (Dan Villiom Podlaski Christiansen)
Port:

Description (last modified by jmpalacios (Juan Manuel Palacios))

This patch adds support for a new conf key, remotearchiveurl, if archive mode and this key is set to a webserver having darwinports packages, it will download the pre-build packages from the URL and use the package to install the port (instead of building it).

Patch is a little rough (due to my lack of serious tcl-foo), but it seems to work pretty well for me right now.

Intended behavior is to look for a local archive first, then the remote archive (if necessary), and then if necessary build the port normally.

Since it's fairly easy to point apache to a darwinports packages directory, this makes maintaining ports on multiple machines take less time (as each port only needs to be built once).

If we ever get around to auto-building ports, we could conceivably make packages available this way as well.

Patch will be attached shortly.

Attachments (3)

dp_remote_archive.patch (3.9 KB) - added by danielluke (Daniel J. Luke) 19 years ago.
Enable archive mode to pull archives from a remote machine
dp_remote_archive.2.patch (3.9 KB) - added by danielluke (Daniel J. Luke) 19 years ago.
updated patch
dp_remote_archive.3.patch (4.0 KB) - added by danielluke (Daniel J. Luke) 19 years ago.
Updated patch

Download all attachments as: .zip

Change History (26)

Changed 19 years ago by danielluke (Daniel J. Luke)

Attachment: dp_remote_archive.patch added

Enable archive mode to pull archives from a remote machine

Changed 19 years ago by danielluke (Daniel J. Luke)

Attachment: dp_remote_archive.2.patch added

updated patch

comment:1 Changed 19 years ago by danielluke (Daniel J. Luke)

attachments.isobsolete: 01

comment:2 Changed 19 years ago by danielluke (Daniel J. Luke)

attachments.isobsolete: 01

Changed 19 years ago by danielluke (Daniel J. Luke)

Attachment: dp_remote_archive.3.patch added

Updated patch

comment:3 Changed 19 years ago by danielluke (Daniel J. Luke)

I'm running this on two machines and so far it looks good.

I'd like feedback, if possible. I think this would be useful for many users.

comment:4 Changed 19 years ago by danielluke (Daniel J. Luke)

Bueller?

comment:5 Changed 18 years ago by danielluke (Daniel J. Luke)

(In reply to comment #5)

Bueller?

Anyone else try this?

comment:6 Changed 18 years ago by yeled@…

Cc: yeled@… added

will test today

comment:7 Changed 18 years ago by danielluke (Daniel J. Luke)

(In reply to comment #7)

will test today

If you have a 10.4 machine, you can test with remotearchiveurl http://geeklair.net/packages

comment:8 Changed 18 years ago by yeled@…

thanks, it works - but it needs a certain feature - a cksum for each package.

also - if the download fails - i get a bus error...

comment:9 Changed 18 years ago by danielluke (Daniel J. Luke)

(In reply to comment #9)

thanks, it works - but it needs a certain feature - a cksum for each package.

Where would this checksum go? [do we need to ask maintainers to have 2 checksums in each portfile for this to work?]

Perhaps the remote archives could be gpg-signed instead? (or there could be a gpg-signed checksum file?)

If the remote host is trusted, why is it necessary (or is that your point?)?

also - if the download fails - i get a bus error...

updates to the patch are welcome :-)

comment:10 Changed 18 years ago by danielluke (Daniel J. Luke)

For better integration, I'm now thinking that this needs to be a new phase (ie, fetcharchive).

Otherwise, it interacts poorly with the upgrade code.

When I get some time, I'll code it up that way and see if I can include as much of Charlie's feedback as possible.

comment:11 Changed 18 years ago by yeled@…

thanks - I am not able to input any Tcl I'm afriad :)

comment:12 Changed 18 years ago by danielluke (Daniel J. Luke)

(In reply to comment #12)

thanks - I am not able to input any Tcl I'm afriad :)

I couldn't either before I decided to do this ;-)

comment:13 Changed 18 years ago by jmpp@…

Hey Daniel! As disussed yesterday through mail, I checked in my fix to get upgrade and archivemode working. I know this might break your patch here, but this "remotearchiveurl" thing is not yet complete and I feel the former is a rather important fix. Lets rethink your patch and try to get it working with the current sources, do let me know if you need my help (my tcl foo being most probably lower than everybody else's, maybe I can still provide ideas and testing).

-jmpp

comment:14 Changed 18 years ago by danielluke (Daniel J. Luke)

(In reply to comment #14)

Hey Daniel! As disussed yesterday through mail, I checked in my fix to get upgrade and archivemode working. I know this might break your patch here, but this "remotearchiveurl" thing is not yet complete and I feel the former is a rather important fix.

I think your decision was correct (I forgot that that change you proposed only broke my remotearchive stuff).

Lets rethink your patch and try to get it working with the current sources, do let me know if you need my help (my tcl foo being most probably lower than everybody else's, maybe I can still provide ideas and testing).

I was planning on re-writing it to make it a full stage and support gpg-signed archives anyway, as soon as I get some time.

I'll be sure to ask for testing help once I have something ready.

comment:15 Changed 18 years ago by markd@…

Type: defectenhancement

comment:16 Changed 18 years ago by danielluke (Daniel J. Luke)

Owner: changed from macports-tickets@… to dluke@…
Status: newassigned

comment:17 Changed 18 years ago by markd@…

Summary: Make dp download archives from a remote machineREF: Make MP download archives from a remote machine

comment:18 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Description: modified (diff)
Milestone: Feature Requests
Priority: ExpectedNice to have

Not too sure if this is still a wanted feature, if many users see the value in archivemode. But at least for tracking purposes I'm moving this ticket to the "Feature Requests" milestone. Any updates on it, Daniel?

-jmpp

comment:19 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Milestone: Feature RequestsMacPorts base enhancements

Milestone Feature Requests deleted

comment:20 Changed 17 years ago by nox@…

Cc: yeled@… added; yeled@… removed
Priority: Nice to haveLow
Version: 1.2

comment:21 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Ticket #10919 has been marked as duplicate of this one, noted here for tracking purposes.

-jmpp

comment:22 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 1.9.0
Resolution: fixed
Status: assignedclosed

comment:23 Changed 14 years ago by danchr (Dan Villiom Podlaski Christiansen)

Cc: danchr@… added

Cc Me!

Note: See TracTickets for help on using tickets.