<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">On 9 Apr 2020, at 5:29 pm, Joshua Root <jmr@macports.org> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>On 2020-4-10 02:08 , Edward Maros wrote:</span><br><blockquote type="cite"><span>I have a project that does not distribute any files by default. Instead,</span><br></blockquote><blockquote type="cite"><span>all distributed are part of various subports. This is because this</span><br></blockquote><blockquote type="cite"><span>package only provides language bindings (python, etc.) for a dependent</span><br></blockquote><blockquote type="cite"><span>package. I am getting the error message:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>:error:destroot No files have been installed in the destroot directory!</span><br></blockquote><blockquote type="cite"><span>:error:destroot Please make sure that this software supports 'make install DESTDIR=${destroot}' or implement an alternative destroot mechanism in the Portfile.</span><br></blockquote><blockquote type="cite"><span>:error:destroot Files might have been installed directly into your system, check before proceeding.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Is there a way to set a subport to be built by default?</span><br></blockquote><blockquote type="cite"><span>Is there a way to have an empty package?</span><br></blockquote><span></span><br><span>Add code to the Portfile to install at least one file into the destroot.</span><br><span>This can be as simple as a README saying "This port is just a stub."</span><br><span>This is what the python portgroup does for example.</span><br></div></blockquote><div><br></div>Just to add, by convention these readme files are added to the share/doc area, under a port specific sub-dir. see for instance<div><br></div><div><a href="https://github.com/macports/macports-ports/blob/202eaebc57fa1551ee7d8a03a9f893030f404a61/lang/gcc8/Portfile#L294">https://github.com/macports/macports-ports/blob/202eaebc57fa1551ee7d8a03a9f893030f404a61/lang/gcc8/Portfile#L294</a></div><div><br></div><div>Which is just the first port that springs to my mind that I know does this.</div><div><br></div><div>Chris<br><div><br><blockquote type="cite"><div dir="ltr"><span></span><br><span>- Josh</span><br></div></blockquote></div></div></body></html>