#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)
Change History (3)
Changed 21 years ago by robert@…
Attachment: | portpackage.patch added |
---|
comment:1 Changed 21 years ago by robert@…
attachments.description: | patches file base/src/port1.0/portpackage.tcl only → fix "port package" to include receipt file in pkg file. |
---|
comment:2 Changed 21 years ago by robert@…
Resolution: | → invalid |
---|---|
Status: | new → closed |
Disregard this bug. This is the wrong way to handle this.
fix "port package" to include receipt file in pkg file.