While working on ebuild for net-wireless/hostapd-2.6. If ebuild is located in PORTDIR all is fine but if the same ebuild is located in PORTDIR_OVERLAY installation phase will fail because FILESDIR points to wrong directory. Reproducible: Always Steps to Reproduce: 1. cd /usr/local/portage/net-wireless/hostapd 2. cp -av /usr/portage/net-wireless/hostapd/hostapd-2.6.ebuild . 3. ebuild hostapd-2.6.ebuild digest 4. emerge hostapd Actual Results: >>> Install hostapd-2.6 into /var/tmp/portage/net-wireless/hostapd-2.6/image/ category net-wireless !!! newinitd: /usr/local/portage/net-wireless/hostapd/files/hostapd-init.d does not exist Expected Results: >>> Install hostapd-2.6 into /var/tmp/portage/net-wireless/hostapd-2.6/image/ category net-wireless >>> Completed installing hostapd-2.6 into /var/tmp/portage/net-wireless/hostapd-2.6/image/
FILESDIR points to the files subdirectory where the ebuild was sourced from. You only copied the ebuild file and not the files subdirectory.
Created attachment 465932 [details] emerge --info
I should also mention that 'emerge hostapd' installed from your local overlay with the incomplete file tree since it has a higher priority. The beginning and end of the log will show this as ::x-portage in your case. Emerge is working as it should. FWIW, you should stop using PORTDIR_OVERLAY as it is deprecated in favour of writing a repos.conf entry.
Created attachment 466080 [details] emerge --info (with repos.conf) now changed to repos.conf but this solves not the problem.
Created attachment 466082 [details] repos.conf/local.conf
(In reply to sachse from comment #0) > While working on ebuild for net-wireless/hostapd-2.6. > > If ebuild is located in PORTDIR all is fine but if the same ebuild is > located in PORTDIR_OVERLAY installation phase will fail because FILESDIR > points to wrong directory. > > Reproducible: Always > > Steps to Reproduce: > 1. cd /usr/local/portage/net-wireless/hostapd > 2. cp -av /usr/portage/net-wireless/hostapd/hostapd-2.6.ebuild . As noted in comment #1, you also need to copy the files direcory, as follows: cp -av /usr/portage/net-wireless/hostapd/files ./files (In reply to sachse from comment #5) > Created attachment 466082 [details] > repos.conf/local.conf Looks good.
thx - now it works