Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654640 - dev-embedded/arduino-1.8.5-r1 USE=doc - broken symbolic link because ${P} instead of ${PF} is used in /usr/share/arduino/reference -> /usr/share/doc/arduino-1.8.5/html/reference
Summary: dev-embedded/arduino-1.8.5-r1 USE=doc - broken symbolic link because ${P} ins...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-05-02 16:17 UTC by Thibaud CANALE
Modified: 2018-05-03 05:55 UTC (History)
1 user (show)

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


Attachments
emerge --info (file_654640.txt,7.64 KB, text/plain)
2018-05-02 16:17 UTC, Thibaud CANALE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thibaud CANALE 2018-05-02 16:17:42 UTC
Created attachment 529424 [details]
emerge --info

Hello,

Emerge creates a broken symbolic link for ebuild with revision, used wrong Portage variable in ebuild.

% ls -l /usr/share/arduino/reference 
lrwxrwxrwx 1 root root 43 mai    2 15:20 /usr/share/arduino/reference -> /usr/share/doc/arduino-1.8.5/html/reference
% ls -l /usr/share/doc/arduino-1.8.5/html/reference
ls: cannot access '/usr/share/doc/arduino-1.8.5/html/reference': No such file or directory
% ls -ld /usr/share/doc/arduino-1.8.5-r1/html/reference
drwxr-xr-x 6 root root 102 mai    2 15:20 /usr/share/doc/arduino-1.8.5-r1/html/reference/


Possible fix:
================================
--- a/dev-embedded/arduino/arduino-1.8.5-r1.ebuild	2018-04-16 18:09:01.000000000 +0200
+++ b/dev-embedded/arduino/arduino-1.8.5-r2.ebuild	2018-05-02 18:10:58.739545673 +0200
@@ -144,7 +144,7 @@
 		einstalldocs
 
 		# arduino expects its doc in its "main" directory. symlink it.
-		dosym "${EPREFIX}/usr/share/doc/${P}/html/reference" "${SHARE}/reference"
+		dosym "${EPREFIX}/usr/share/doc/${PF}/html/reference" "${SHARE}/reference"
 	fi
 
 	# Install menu and icons
================================

Thanks for support.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-05-03 05:55:04 UTC
Fixed in -r2. Thanks!