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

Bug 735718

Summary: dev-embedded/arduino-1.8.7 installs files with broken symlink
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED FIXED    
Severity: normal CC: c.h.l, sultan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
ebuild patch

Description Agostino Sarubbo gentoo-dev 2020-08-03 09:36:34 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-embedded/arduino-1.8.7 installs files with broken symlink.
Discovered on: amd64 (internal ref: tinderbox)
Comment 1 Agostino Sarubbo gentoo-dev 2020-08-03 09:36:39 UTC
Created attachment 652654 [details]
build.log

build log and emerge --info
Comment 2 Christoph Loehr 2020-09-03 20:23:03 UTC
I assume you mean the symlink to /usr/share/arduino-builder/platform.txt.

The problem is caused by arduino-builder-1.5.4, which does not create/install a platform.txt anymore.

I ran into this problem with a fresh install of arduino. Compiling/uploading a sketch failed with the following error message:

"fork/exec {runtime.tools.ctags.path}/ctags: no such file or directory"

arduino-ctags should be called, but this info is however in the (missing) platform.txt.

As a workaround I have copied a platform.txt from an older version of arduino-builder in the files directory and added the following line

doins ${FILESDIR}/platform.txt

at the end of the src_compile() section of the arduino-builder-1.5.4.ebuild.

Hope, that helps solving the issue.

Please let me know if additional information or help with testing is needed.

CHL
Comment 3 Stephan Hartmann (RETIRED) gentoo-dev 2020-09-04 13:55:16 UTC
Created attachment 658394 [details, diff]
ebuild patch

Can you test attached patch to ebuild please?
Comment 4 Larry the Git Cow gentoo-dev 2020-09-06 18:46:37 UTC
The bug has been closed via the following commit(s):

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

commit 7a8d3ae51d5629d43cd80c01db3498da65e1f62a
Author:     Stephan Hartmann <sultan@gentoo.org>
AuthorDate: 2020-09-05 16:49:15 +0000
Commit:     Stephan Hartmann <sultan@gentoo.org>
CommitDate: 2020-09-06 18:45:44 +0000

    dev-embedded/arduino-builder: re-add missing platform.txt
    
    Closes: https://bugs.gentoo.org/735718
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Stephan Hartmann <sultan@gentoo.org>

 ...r-1.5.4.ebuild => arduino-builder-1.5.4-r1.ebuild} |  3 ++-
 dev-embedded/arduino-builder/files/platform.txt       | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)