Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712742 - dev-embedded/arduino-1.8.7 installs broken symlink in /usr/share/arduino/arduino-builder
Summary: dev-embedded/arduino-1.8.7 installs broken symlink in /usr/share/arduino/ardu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords: PullRequest
: 720686 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-03-15 18:03 UTC by Andrei Slavoiu
Modified: 2020-07-03 05:07 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2020-03-15 18:03:53 UTC
After install, the symlink points to:
# ls -l /usr/share/arduino/arduino-builder 
lrwxrwxrwx 1 root root 28 mar 15 16:29 /usr/share/arduino/arduino-builder -> ../../../bin/arduino-builder
# ls -l /usr/share/arduino/../../../bin/arduino-builder
ls: cannot access '/usr/share/arduino/../../../bin/arduino-builder': No such file or directory

The correct path contains only 2 ".."
# ls -l /usr/share/arduino/../../bin/arduino-builder
-rwxr-xr-x 1 root root 13972853 mar 15 16:26 /usr/share/arduino/../../bin/arduino-builder

Reproducible: Always
Comment 1 Robert Forsman 2020-04-29 16:39:30 UTC
I worked around this using

cd /usr/share/arduino
rm arduino-builder;ln -s ../../bin/arduino-builder

But clearly it would be better if the symlink were correct at install time.
Comment 2 Larry the Git Cow gentoo-dev 2020-06-30 04:34:30 UTC
The bug has been closed via the following commit(s):

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

commit f98546fd3b510fa250336ee2ee947af0d925d201
Author:     Marcin Deranek <marcin.deranek@booking.com>
AuthorDate: 2020-04-29 18:33:34 +0000
Commit:     Matthias Schwarzott <zzam@gentoo.org>
CommitDate: 2020-06-30 03:52:25 +0000

    dev-embedded/arduino: Fix broken arduino-builder symlink
    
    Closes: https://bugs.gentoo.org/712742
    Signed-off-by: Marcin Deranek <marcin.deranek@slonko.net>
    Closes: https://github.com/gentoo/gentoo/pull/15569
    Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>

 dev-embedded/arduino/arduino-1.8.5-r2.ebuild | 2 +-
 dev-embedded/arduino/arduino-1.8.7.ebuild    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 3 Matthias Schwarzott gentoo-dev 2020-07-03 05:07:29 UTC
*** Bug 720686 has been marked as a duplicate of this bug. ***