Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#671 closed defect (invalid)

port package does not include receipt file

Reported by: robert@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

In looking at the code while trying to address bug 648, I noticed that if I build, install, and package a port, it does not include the receipt file with the portname.pkg file that is created. This is not normally a problem, but in the process of trying to make the system so that you can use the pkg installer method of installing packages instead of using "port install", this is a big problem since the port system will not notice the pkg installed port without the receipt file present.

The attached patch is a simple fix to this problem. During the "port package" step, it copies the installed port receipt file into the destroot tree so the pkg gets created with it present. It then removes it from the destroot in case you do another install (don't want the receipt file to be a file present in itself). I have not looked at the mpkg code yet, so I suspect this fix will not be complete, or work correctly with mpkg files, but I wanted to get this bug logged with at least a start on the fix to the problem.

This approach allows multiple users to be working on various ports and share the pkg files. For example, user A creates a pkg file for port X. User B is working on port Y that depends on port X, so he asks user A to send the pkg file for port X. User B installs the pkg file, and now port Y can be built without having to actually download the source and build port X.

Attachments (1)

portpackage.patch (1.4 KB) - added by robert@… 21 years ago.
fix "port package" to include receipt file in pkg file.

Download all attachments as: .zip

Change History (3)

Changed 21 years ago by robert@…

Attachment: portpackage.patch added

fix "port package" to include receipt file in pkg file.

comment:1 Changed 21 years ago by robert@…

attachments.description: patches file base/src/port1.0/portpackage.tcl onlyfix "port package" to include receipt file in pkg file.

comment:2 Changed 21 years ago by robert@…

Resolution: invalid
Status: newclosed

Disregard this bug. This is the wrong way to handle this.

Note: See TracTickets for help on using tickets.