Opened 5 years ago
Last modified 12 months ago
#58647 assigned defect
github portgroup: possible worksrcdir mismatch for ports with `github.tarball_from archive`
Reported by: | yan12125 (Chih-Hsuan Yen) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | portgroup | Cc: | cooljeanius (Eric Gallager) |
Port: | github |
Description
For example, in port py-curl, I use the following lines to utilize the github portgroup:
github.setup pycurl pycurl 7_43_0_3 REL_ github.tarball_from archive
In the downloaded tarball, the top level directory is pycurl-REL_7_43_0_3
, while the value of worksrcdir
, which is set to distname
as usual, is ${github.project}-${github.version}
, or pycurl-7_43_0_3
(REL_
prefix is gone). For MacPorts 2.5.4, such a mismatch leads to build failures like (1). For MacPorts git-master, building py-curl is OK as a symlink will be created in certain scenarios (2). I consider (2) a workaround, and worksrcdir should be fixed in the github portgroup. A possible solution is using worksrcdir ${github.project}-${git.branch}
for ports using github.tarball_from archive
.
Change History (3)
comment:1 Changed 3 years ago by mascguy (Christopher Nielsen)
Owner: | set to ryandesign |
---|---|
Status: | new → assigned |
comment:2 Changed 2 years ago by mascguy (Christopher Nielsen)
Keywords: | portgroup added |
---|
Add keyword portgroup, to pg-related tickets
comment:3 Changed 12 months ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
Assigning to Ryan, as he's in the process of fixing:
https://github.com/macports/macports-ports/commit/c9d43d56b90a7a10090ca07d92052b7196e986c8#r69982428