New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #10919 (closed enhancement: duplicate)

Opened 5 years ago

Last modified 4 years ago

RFE: Download MP archives from a remote machine

Reported by: elcascador@… Owned by: darwinports-bugs@…
Priority: Normal Milestone:
Component: base Version:
Keywords: new feature binhost Cc: markd@…, dluke@…
Port:

Description

Hello,

I've hacked binhost support into MacPorts. Packages, when portarchivemode set in the configuration, will be downloaded from portarchivebinhost if not present in the portarchivepath.

The code works like this: - check if package is available in portarchivepath (normal macports behavior) - if not, check if package is available in the portarchivebinhost and download it to portarchivepath - continue normal behavior

Attachments

portunarchive.diff Download (2.5 KB) - added by elcascador@… 5 years ago.
portunarchive patch
darwinports.tcl.diff Download (2.1 KB) - added by elcascador@… 5 years ago.
darwinports.tcp patch
ports.conf Download (102 bytes) - added by elcascador@… 5 years ago.
extra variable needed in ports.conf

Change History

Changed 5 years ago by elcascador@…

portunarchive patch

Changed 5 years ago by elcascador@…

darwinports.tcp patch

Changed 5 years ago by elcascador@…

extra variable needed in ports.conf

Changed 5 years ago by markd@…

  • summary changed from binhost support to RFE: patches to add binhost support

Changed 5 years ago by markd@…

  • type changed from defect to enhancement

Changed 5 years ago by markd@…

  • cc markd@…, dluke@… added

I haven't looked at the patches, but is the intent for this ticket the same as in ticket #8571?

Changed 5 years ago by pipping@…

  • milestone set to Port Enhancements

Changed 5 years ago by pipping@…

  • component changed from base to ports

Changed 5 years ago by dluke@…

It's basically the same intent (and approach) as in the patch I submitted (great minds really do think alike).

Of course, it will suffer from the same problems (poor interaction with upgrade, mainly). This could be worked around by making changes to the portarchive phase, but it is probably cleaner to add a 'remote fetch' phase instead.

We probably also want to have some sort of package checksum or verification (gpg signing?) when downloading the remote package.

... and finally, there are some issues with cross-system packages (everything pretty much works if you have the same version of Mac OS X on both machines, but you can have unexpected failures otherwise), so we probably should at least think about handling that in some way.

Changed 5 years ago by markd@…

  • summary changed from RFE: patches to add binhost support to RFE: Download MP archives from a remote machine

Changed summary line.

Changed 5 years ago by jmpp@…

  • component changed from ports to base
  • milestone changed from Port Enhancements to Feature Requests

Changed 5 years ago by jmpp@…

  • milestone changed from Feature Requests to MacPorts base enhancements

Milestone Feature Requests deleted

Changed 5 years ago by nox@…

  • priority changed from Important to High
  • version 1.3.2 deleted

Changed 5 years ago by nox@…

This ticket is a duplicate of #8571.

Changed 4 years ago by jmpp@…

  • priority changed from High to Normal
  • status changed from new to closed
  • resolution set to duplicate
  • milestone MacPorts base enhancements deleted

Closing as duplicate of #8571

-jmpp

Note: See TracTickets for help on using tickets.