MantisBT - NetSurf
View Issue Details
0002150NetSurfGTK-specificpublic2014-06-13 10:532015-03-10 11:13
Reportersabotage_linux 
Assigned ToVincent Sanders 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
Platformsabotage linuxOSsabotage linuxOS Versionlatest
Product Version3.1 
Target Version3.2Fixed in Version3.2 
Fixed in CI build #
Reported in CI build #
URL of problem page
Summary0002150: make install logic for "C" language directory is wrong, Message file not found
Description1) g_get_language_names() returns "C"
2) make install produces invalid symlink: $prefix/share/netsurf/C/messages points to ../../../$DESTDIR/$prefix/share/netsurf/C/Messages (not existing)

in my case prefix is "" (i.e. empty, that means share goes to /share, bin to /bin, etc)
and DESTDIR is /opt/netsurf
$ la /share/netsurf/C/
lrwxrwxrwx 1 root root 45 Jun 13 12:05 Messages -> ../../../opt/netsurf/share/netsurf/C/Messages [imagine red color for symlink target]

i propose the following solution:
instead of symlinking all the files under C/ (to themselves with wrong path), just symlink en *directory* to C, i.e.
ln -sf en C
that way the symlink is always right, not matter where it ends up as long as en stays in the same base dir.
TagsNo tags attached.
Attached Files

Notes
(0000450)
Vincent Sanders   
2014-08-20 08:22   
restructured so all resources with language specialisation now fall back to the english versions.

Updated the install target appropriately
(0000725)
Vincent Sanders   
2015-03-10 11:13   
Confirmed fixed in 3.2 release

Issue History
2014-06-13 10:53sabotage_linuxNew Issue
2014-06-18 09:40Vincent SandersStatusnew => acknowledged
2014-08-18 10:56Vincent SandersProjectBuildsystem => NetSurf
2014-08-18 10:57Vincent SandersAssigned To => Vincent Sanders
2014-08-18 10:57Vincent SandersCategoryGeneral => GTK-specific
2014-08-18 10:57Vincent SandersProduct Version => 3.1
2014-08-18 10:57Vincent SandersTarget Version => 3.2
2014-08-20 08:22Vincent SandersNote Added: 0000450
2014-08-20 08:22Vincent SandersStatusacknowledged => resolved
2014-08-20 08:22Vincent SandersResolutionopen => fixed
2014-08-20 08:22Vincent SandersFixed in Version => 3.2
2015-03-10 11:13Vincent SandersNote Added: 0000725
2015-03-10 11:13Vincent SandersStatusresolved => closed