I have /usr/portage/distfiles nfs shared, and emerge has broken because of
this;

>>> Emerging (1 of 3) net-wireless/wpa_supplicant-2.6-r3::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
bash: /usr/portage/distfiles/.__portage_test_write__: Is a directory
rm: cannot remove '/usr/portage/distfiles/.__portage_test_write__': Is a
directory

distfiles # ls -la
total 756
drwxrwxr-x   2 root    portage 188416 Oct 17 10:30 .
drwxr-xr-x 175 portage portage   4096 Mar 24  2017 ..
drwxrwxr-x   2 root    portage 188416 Oct 17 10:30
.pinentry-1.0.0.tar.bz2.portage_lockfile
drwxrwxr-x   2 root    portage 188416 Oct 17 10:30 .__portage_test_write__
drwxrwxr-x   2 root    portage 188416 Oct 17 10:30
.wpa_supplicant-2.6.tar.gz.portage_lockfile
distfiles # touch test
distfiles # ls -l
total 188
drwxrwxr-x 2 root portage 188416 Oct 17 10:31 test
distfiles # file *
test: directory
distfiles # ls *
ls: reading directory 'test': Not a directory
distfiles #

On the server they show up as files to both ls and file, so it appears to
be an NFS bug. Gentoo-sources 4.13.7 has the issue but 4.13.5 is ok.

Reply via email to