Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234732 - dev-tex/sketch-0.2.131 and media-gfx/skencil-0.6.18_pre20080519 file collision '/usr/bin/sketch'
Summary: dev-tex/sketch-0.2.131 and media-gfx/skencil-0.6.18_pre20080519 file collisio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-14 13:56 UTC by Kornel
Modified: 2010-11-30 03:08 UTC (History)
4 users (show)

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


Attachments
Fix by removing unneeded symlink (skencil-0.6.18_pre20080519-r1.ebuild.patch,409 bytes, patch)
2009-03-21 16:18 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kornel 2008-08-14 13:56:40 UTC
dev-tex/sketch-0.2.131 and media-gfx/skencil-0.6.18_pre20080519 install a file in the same place /usr/bin/sketch

Reproducible: Always

Steps to Reproduce:
1. Install both packages.
Actual Results:  
Collision occured

Expected Results:  
There's no collision.

kornel@gentoo ~ $ emerge -pv sketch skencil

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-tex/sketch-0.2.131  USE="doc -examples" 0 kB
[ebuild   R   ] media-gfx/skencil-0.6.18_pre20080519  USE="nls" 839 kB

Total: 2 packages (2 reinstalls), Size of downloads: 839 kB
kornel@gentoo ~ $ portageq owners / /usr/bin/sketch
dev-tex/sketch-0.2.131
        /usr/bin/sketch
media-gfx/skencil-0.6.18_pre20080519
        /usr/bin/sketch
Comment 1 Dmitry Dzhus 2008-08-14 19:53:55 UTC
I didn't know that another program named Sketch «existed» some day.

Suggestions to fix the collisions I can make right now are:

1. Kill Skencil's `/usr/bin/sketch` symlink. In Skencil, both `/usr/bin/sketch and `/usr/bin/skencil` point to the same place, which is `../lib/skencil-0.6.17/skencil.py`. Give a notice upon the package installation about this change. «Skencil» is the «official» program name today, so users are expected to run it typing `skencil`.

2. Rename `/usr/bin/sketch` of Skencil to `/usr/bin/sketch-skencil`, rename `/usr/bin/sketch` of Sketch (the TeX-oriented one) to `/usr/bin/sketch-tex`; maintain a `/usr/bin/sketch` _symlink_ via eselect.
Comment 2 Alexis Ballier gentoo-dev 2008-08-14 20:43:20 UTC
(In reply to comment #1)

> Suggestions to fix the collisions I can make right now are:
> 
> 1. Kill Skencil's `/usr/bin/sketch` symlink. In Skencil, both `/usr/bin/sketch
> and `/usr/bin/skencil` point to the same place, which is
> `../lib/skencil-0.6.17/skencil.py`. Give a notice upon the package installation
> about this change. «Skencil» is the «official» program name today, so users
> are expected to run it typing `skencil`.

I prefer this (and that's what debian is doing afaict if that's worth anything)
Comment 3 Dmitry Dzhus 2008-08-30 14:46:17 UTC
I believe now it's up to Hanno to take some action regarding this issue.
Comment 4 Andrew Savchenko gentoo-dev 2009-03-21 15:13:05 UTC
Problem is still present for skensil-0.6.18_pre20080519-r1 and sketch-0.2.141.
Comment 5 Andrew Savchenko gentoo-dev 2009-03-21 16:18:37 UTC
Created attachment 185748 [details, diff]
Fix by removing unneeded symlink
Comment 6 Dmitry Dzhus 2009-05-02 09:30:10 UTC
It will be great if someone finally commits this fix to the tree.
Comment 7 Hanno Böck gentoo-dev 2010-11-30 03:08:17 UTC
skencil 0.6 is broken, will add skencil 1.0 alpha which no longer sets a symlink, so no collission any more.