Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611698 - FILESDIR points to wrong directory if ebuild is located in PORTDIR_OVERLAY
Summary: FILESDIR points to wrong directory if ebuild is located in PORTDIR_OVERLAY
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-04 12:36 UTC by sachse
Modified: 2017-03-05 23:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.txt,20.57 KB, text/plain)
2017-03-04 13:56 UTC, sachse
Details
emerge --info (with repos.conf) (emerge_info.txt,20.04 KB, text/plain)
2017-03-05 19:50 UTC, sachse
Details
repos.conf/local.conf (file_611698.txt,71 bytes, text/plain)
2017-03-05 19:51 UTC, sachse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sachse 2017-03-04 12:36:26 UTC
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/
Comment 1 Brian Evans (RETIRED) gentoo-dev 2017-03-04 13:55:15 UTC
FILESDIR points to the files subdirectory where the ebuild was sourced from.

You only copied the ebuild file and not the files subdirectory.
Comment 2 sachse 2017-03-04 13:56:29 UTC
Created attachment 465932 [details]
emerge --info
Comment 3 Brian Evans (RETIRED) gentoo-dev 2017-03-04 14:32:20 UTC
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.
Comment 4 sachse 2017-03-05 19:50:19 UTC
Created attachment 466080 [details]
emerge --info (with repos.conf)

now changed to repos.conf but this solves not the problem.
Comment 5 sachse 2017-03-05 19:51:32 UTC
Created attachment 466082 [details]
repos.conf/local.conf
Comment 6 Zac Medico gentoo-dev 2017-03-05 19:59:06 UTC
(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.
Comment 7 sachse 2017-03-05 23:22:00 UTC
thx - now it works