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