Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 640376

Summary: app-text/hunspell-1.6.2 : ERROR:root:Failed to create symlink: opts=Namespace(dest=b /var/tmp/portage/app-text/hunspell-1.6.2/image/usr/share/doc/hunspell-1.6.2/ , diroptions= -m0755 , distdir=b /var/tmp/distfiles/ , enable_co
Product: Portage Development Reporter: Toralf Förster <toralf>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: andig.mail, leonchik1976, mgmadden, tka
Priority: Normal Keywords: REGRESSION
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 637452    
Attachments: emerge-info.txt
app-text:hunspell-1.6.2:20171209-093635.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2017-12-09 14:35:28 UTC
make[2]: Leaving directory '/var/tmp/portage/app-text/hunspell-1.6.2/work/hunspell-1.6.2'
make[1]: Leaving directory '/var/tmp/portage/app-text/hunspell-1.6.2/work/hunspell-1.6.2'
ERROR:root:Failed to create symlink: opts=Namespace(dest=b'/var/tmp/portage/app-text/hunspell-1.6.2/image/usr/share/doc/hunspell-1.6.2/', diroptions='-m0755', distdir=b'/var/tmp/distfiles/', enable_copy_xattr=True, helper='dodoc', helpers_can_die=True, insoptions='-m0644', preserve_symlinks=True, recursive=True, sources=[b'AUTHORS', b'ChangeLog', b'NEWS', b'README', b'THANKS', b'TODO', b'license.hunspell', b'AUTHORS.myspell', b'README.myspell', b'license.myspell', b'README.md'], strict_option=False, xattr_exclude='btrfs.* security.evm security.ima \tsecurity.selinux system.nfs4_acl user.xdg.*'), relpath=b'README', source_root=b''
Traceback (most recent call last):
  File "/usr/lib/portage/python3.5/doins.py", line 409, in _doins
    os.symlink(linkto, dest)

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib-hardened_libressl-test_20171208-170410

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv app-text/hunspell
[ebuild  N    ] app-text/hunspell-1.6.2  USE="ncurses nls readline -static-libs" L10N="-af -bg -ca -cs -cy -da -de -de-1901 -el -en -eo -es -et -fo -fr -ga -gl -he -hr -hu -ia -id -is -it -kk -km -ku -lt -lv -mi -mk -ms -nb -nl -nn -pl -pt -pt-BR -ro -ru -sk -sl -sq -sv -sw -tn -uk -zu"
Comment 1 Toralf Förster gentoo-dev 2017-12-09 14:35:31 UTC
Created attachment 509036 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-12-09 14:35:35 UTC
Created attachment 509038 [details]
app-text:hunspell-1.6.2:20171209-093635.log
Comment 3 Toralf Förster gentoo-dev 2017-12-09 14:35:38 UTC
Created attachment 509040 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-12-09 14:35:42 UTC
Created attachment 509042 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-12-09 14:35:45 UTC
Created attachment 509044 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-12-09 14:35:48 UTC
Created attachment 509046 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-12-09 14:35:51 UTC
Created attachment 509048 [details]
temp.tbz2
Comment 8 Zac Medico gentoo-dev 2017-12-10 07:56:05 UTC
The problem is that the prior shutil.rmtree call fails on regular files:

NotADirectoryError: [Errno 20] Not a directory: '/var/tmp/portage/app-text/hunspell-1.6.2/work/hunspell-1.6.2/README.md'
Comment 9 Larry the Git Cow gentoo-dev 2017-12-10 08:55:50 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=992b4ffdcbf469db543c9cab90a5f7a3a4125c97

commit 992b4ffdcbf469db543c9cab90a5f7a3a4125c97
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2017-12-10 08:34:23 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2017-12-10 08:54:21 +0000

    bin/doins.py: remove file before creating symlink (bug 640376)
    
    Fixes: d9522ba661b5 ("Rewrite doins in python (bug 624526)")
    Bug: https://bugs.gentoo.org/640376

 bin/doins.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)}
Comment 10 Geoff Madden 2017-12-10 11:14:19 UTC
Why does this need python ?????
Ihave just uncompressed,run the setup procedures recommended in the file
compiled and installed,the only hassle i have is hunspell done this way is not
recognised by the system,I've run libtool and ldconfig & updated the environment
to no avail
Comment 11 Zac Medico gentoo-dev 2017-12-10 20:54:41 UTC
(In reply to Geoff Madden from comment #10)
> Why does this need python ?????

The goal was to optimize it by doing everything in a single process instead of using a bunch of calls to the traditional 'install' command (doins supports recursion, which can mean hundreds or even thousands of files). It just happens that python was chosen, but it could easily be done in C if someone has the time.
Comment 12 Larry the Git Cow gentoo-dev 2017-12-11 00:22:00 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f134d2906e43edf5d594808798c375a220d560bc

commit f134d2906e43edf5d594808798c375a220d560bc
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2017-12-11 00:18:05 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2017-12-11 00:21:52 +0000

    sys-apps/portage: remove 2.3.17 due to bug 640376
    
    Bug: https://bugs.gentoo.org/640376
    Package-Manager: Portage-2.3.17, Repoman-2.3.6

 sys-apps/portage/Manifest              |   1 -
 sys-apps/portage/portage-2.3.17.ebuild | 258 ---------------------------------
 2 files changed, 259 deletions(-)}
Comment 13 Larry the Git Cow gentoo-dev 2017-12-11 04:25:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1ac087e2aa2dc358636acd6131c1563ebca19cb

commit e1ac087e2aa2dc358636acd6131c1563ebca19cb
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2017-12-11 04:07:21 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2017-12-11 04:25:09 +0000

    sys-apps/portage: version bump to 2.3.18
    
      #640290 - PORTAGE_XATTR_EXCLUDE: add common user.* attributes
      #640318 - handle binary package IUSE_IMPLICIT divergence
      #640376 - doins: remove file before creating symlink
      #640450 - fix binary package extraction for USERLAND_BSD
    
    Closes: https://bugs.gentoo.org/640376
    Package-Manager: Portage-2.3.18, Repoman-2.3.6

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-2.3.18.ebuild | 258 +++++++++++++++++++++++++++++++++
 2 files changed, 259 insertions(+)
Comment 14 Arfrever Frehtes Taifersar Arahesis 2017-12-13 07:55:33 UTC
*** Bug 640818 has been marked as a duplicate of this bug. ***