Opened 20 months ago
Closed 20 months ago
#67058 closed defect (fixed)
gfxutil @1.83b: wrong worksrcdir
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | i0ntempest |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | ||
Port: | gfxutil |
Description
sh: line 0: cd: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_gfxutil/gfxutil/work/gfxutil-1.83b: No such file or directory
worksrcdir
is wrong. There is no directory gfxutil-1.83b; it's called acidanthera-gfxutil-2f6f1b1.
Change History (6)
comment:1 Changed 20 months ago by i0ntempest
comment:2 follow-up: 3 Changed 20 months ago by jmroot (Joshua Root)
Yes, either set worksrcdir to the actual name of the extracted source directory where you want the build commands to be run, or rename the directory in post-extract to match the default worksrcdir value. The GitHub portgroup attempts to rename the directory for you since they often have hashes in their names, but it can only do that if there is one directory in the workpath.
comment:3 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to jmroot:
The GitHub portgroup attempts to rename the directory for you since they often have hashes in their names, but it can only do that if there is one directory in the workpath.
Yes, that's the situation now, with MacPorts 2.8.1. MacPorts 2.8.0 was able to build this port as is.
comment:4 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)
comment:5 Changed 20 months ago by jmroot (Joshua Root)
Feel free to bring it back if it still does something useful. The gitlab portgroup had very similar code commented out with comments indicating that it was no longer needed (due to the previous symlinking behaviour in base), and I didn't get any feedback on the changes at the time.
comment:6 Changed 20 months ago by i0ntempest
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I have seen this before once, I think it's caused by a recent change in MacPorts base iirc? How do I go with fixing this, just overwrite
worksrcdir
variable?