pkgutils: deprecate perverse configurations #5

Open
opened 2024-09-13 15:11:29 +02:00 by farkuhar · 1 comment
Member

As illustrated by Vitaly in August 2016, the current documentation does not warn users against clever definitions of PKGMK_PACKAGE_DIR or PKGMK_SOURCE_DIR. Some clever configurations are perfectly compatible with running pkgmk and pkgadd manually, but they break when the process is orchestrated by prt-get.

Attached is a patch that expands Pkgfile(5) and pkgmk.conf(5) to address Vitaly's report. Also included in the patch are some formatting fixes, and a section on the simple overlay proposal (#4).

As illustrated by Vitaly in [August 2016](https://lists.crux.nu/archives/list/crux-devel@lists.crux.nu/thread/BNW2BYKMQ5FJSJ3UKZ4KZVXSRVE7U4YW/), the current documentation does not warn users against clever definitions of PKGMK_PACKAGE_DIR or PKGMK_SOURCE_DIR. Some clever configurations are perfectly compatible with running pkgmk and pkgadd manually, but they break when the process is orchestrated by prt-get. Attached is a patch that expands Pkgfile(5) and pkgmk.conf(5) to address Vitaly's report. Also included in the patch are some formatting fixes, and a section on the simple overlay proposal (#4).
Author
Member

Heh, I needed to do sed -e "s,/usr/sources,/var/work/sources," on that patch. Looks like I went back and got ppetrov^s actual configuration after trying to reconstruct the example from memory, but only replaced the first of two appearances.

The original patch needed cleanup in other places, too. Rather than clutter this issue with more attachments and comments, I created a fork of tools/pkgutils and pushed a commit there. If I find more typos, I'll keep the forked repository updated.

Heh, I needed to do sed -e "s,/usr/sources,/var/work/sources," on that patch. Looks like I went back and got ppetrov^s actual configuration after trying to reconstruct the example from memory, but only replaced the first of two appearances. The original patch needed cleanup in other places, too. Rather than clutter this issue with more attachments and comments, I created a [fork of tools/pkgutils](https://git.crux.nu/farkuhar/pkgutils/) and pushed a commit there. If I find more typos, I'll keep the forked repository updated.
Sign in to join this conversation.
No Label
No Milestone
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ports/core#5
No description provided.