<div dir="ltr"><div>It seems that the LuaRocks package infrastructure expects to find the LUAFOO_ROCKSPEC file inside the LUAFOO_SUBDIR sources directory of the package to build it. This is a bit odd, as the rockspec is already downloaded or extracted from the source rock in the parent directory containing LUAFOO_SUBDIR, but the infrastructure relies on packages including that rockspec in their sources.<br></div><div><br></div><div>A condensed version of what the build appears to be doing is:</div><div><br></div><div>wget <a href="http://rocks.moonscript.org/lua-periphery-1.0.4-1.src.rock">http://rocks.moonscript.org/lua-periphery-1.0.4-1.src.rock</a> -O /path/to/buildroot/dl/ua-periphery-1.0.4-1.src.rock</div><div><br></div><div>cd /path/to/buildroot/output/build/ && luarocks unpack --force /path/to/dl/lua-periphery-1.0.4-1.src.rock</div><div><br></div><div>at which point is has:</div><div>    output/build/lua-periphery-1.0.4-1/lua-periphery/  (the sources)</div><div>    output/build/lua-periphery-1.0.4-1/lua-periphery-1.0.4-1.rockspec (the rockspec)</div><div><br></div><div>but then it descends into the sources and expects to find and build the rockspec file there:</div><div><br></div><div>cd /path/to/buildroot/output/build/lua-periphery-1.0.4-1/lua-periphery && luarocks make --keep lua-periphery-1.0.4-1.rockspec </div><div><br></div><div>This works for me and the other LuaRocks packages currently in buildroot, because they happen to version the rockspec with the rest of the sources, but in general it seems unusual. I've attached a full log of the build.</div><div><br></div><div>I've also noticed that legal-info licenses are stored one extra subdirectory deep, at output/legal-info/licenses/luafoo/$LUAFOO_SUBDIR/, e.g. lua-periphery below:</div><div><br></div><div>$ make legal-info</div><div>$ tree output/legal-info/licenses</div><div><div>output/legal-info/licenses</div><div>├── am33x-cm3</div><div>│   └── License.txt</div><div>├── busybox</div><div>│   └── LICENSE</div><div>├── linux</div><div>│   └── COPYING</div><div>├── lua</div><div>│   └── COPYRIGHT</div><div>├── lua-periphery</div><div>│   └── lua-periphery</div><div>│       └── LICENSE</div><div>├── uboot</div><div>│   └── Licenses</div><div>│       └── gpl-2.0.txt</div><div>└── uclibc</div><div>    └── COPYING.LIB</div></div><div>$</div><div><br></div><div>Thanks,</div><div>~vsergeev</div><div>Ivan Sergeev</div></div>