Summary: | put tailored copies of <bsd.prog.mk>, <bsd.lib.mk>, etc in Mk/ | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | John Marino <marino> |
Component: | Ports Framework | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> |
Status: | Closed Overcome By Events | ||
Severity: | Affects Only Me | CC: | marino, portmgr |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
John Marino
![]() ![]() Don't assign the PR to anyone, but CC portmgr@ I would like to start working on this personally, soon. The idea would be to copy over latest share/mk from FreeBSD, strip out anything world-specific or not required for ports, e.g. usr/share/mk/bsd.lib.mk => Mk/bsd.ports.lib.mk usr/share/mk/bsd.prog.mk => Mk/bsd.ports.prog.mk (others?) Those have a lot of includes, so I'd want to eliminate as many as possible or use ports versions, otherwise a bunch of other mk files would have to get sucked in. It would be helpful to get hints/guidelines/advice before starting. does anyone have any to offer? The end game would be to convert ports from using <bsd.prog.mk> (etc) to <bsd.ports.prog.mk> and add a check to portlint for the former. i took a closer look -- this is not going to be easy at all. There are many includes, each which pull in other includes -- definitely overkill. I'm guessing most of the users of <bsd.prog.mk> and <bsd.lib.mk> are just taking shortcuts and a highly cut-down version would fit the needs of 95% but no matter how you slice it, this is a big job. <prog> pulls in: .include <bsd.init.mk> .include <bsd.compiler.mk> .include <bsd.libnames.mk> .include <bsd.nls.mk> .include <bsd.files.mk> .include <bsd.incs.mk> .include <bsd.links.mk> .include <bsd.man.mk> .include <bsd.dep.mk> .include <bsd.obj.mk> .include <bsd.sys.mk> <lib> pulls in: .include <bsd.init.mk> .include <bsd.libnames.mk> .include <bsd.symver.mk> .include <bsd.nls.mk> .include <bsd.files.mk> .include <bsd.incs.mk> .include <bsd.links.mk> .include <bsd.man.mk> .include <bsd.dep.mk> .include <bsd.obj.mk> .include <bsd.sys.mk> I'm going to withdraw this request. I tried implementing an alternative a few months ago and it's not simple at all. |