Opened 18 years ago

Closed 17 years ago

#10919 closed enhancement (duplicate)

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@…, danielluke (Daniel J. Luke)
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 (3)

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

Download all attachments as: .zip

Change History (15)

Changed 18 years ago by elcascador@…

Attachment: portunarchive.diff added

portunarchive patch

Changed 18 years ago by elcascador@…

Attachment: darwinports.tcl.diff added

darwinports.tcp patch

Changed 18 years ago by elcascador@…

Attachment: ports.conf added

extra variable needed in ports.conf

comment:1 Changed 18 years ago by markd@…

Summary: binhost supportRFE: patches to add binhost support

comment:2 Changed 18 years ago by markd@…

Type: defectenhancement

comment:3 Changed 18 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?

comment:4 Changed 18 years ago by pipping@…

Milestone: Port Enhancements

comment:5 Changed 18 years ago by pipping@…

Component: baseports

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

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.

comment:7 Changed 18 years ago by markd@…

Summary: RFE: patches to add binhost supportRFE: Download MP archives from a remote machine

Changed summary line.

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

Component: portsbase
Milestone: Port EnhancementsFeature Requests

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

Milestone: Feature RequestsMacPorts base enhancements

Milestone Feature Requests deleted

comment:10 Changed 17 years ago by nox@…

Priority: ImportantHigh
Version: 1.3.2

comment:11 Changed 17 years ago by nox@…

This ticket is a duplicate of #8571.

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

Milestone: MacPorts base enhancements
Priority: HighNormal
Resolution: duplicate
Status: newclosed

Closing as duplicate of #8571

-jmpp

Note: See TracTickets for help on using tickets.