Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480004 - app-admin/eselect-ruby - Add support for manpages compressed with xz
Summary: app-admin/eselect-ruby - Add support for manpages compressed with xz
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-07 00:24 UTC by Ryan Harris
Modified: 2013-08-14 12:11 UTC (History)
0 users

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


Attachments
patch for ruby.eselect (xz_manpage_support.patch,639 bytes, patch)
2013-08-07 00:26 UTC, Ryan Harris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Harris 2013-08-07 00:24:09 UTC
Currently eselect-ruby fails to set manpage symlink if they are compressed using xz.

Reproducible: Always

Steps to Reproduce:
1.Set PORTAGE_COMPRESS="xz" in make.conf
2. emerge ruby:${SLOT}
3. run eselect-ruby set <new_version>
Actual Results:  
Ruby manpage symlink points to non-existant manpage

Gentoo_Server rh1 # eselect ruby show
Current Ruby version:
  ruby18                    
Current Rubygems version:
  gem18                     
Gentoo_Server rh1 # man ruby
No manual entry for ruby
Gentoo_Server rh1 # ls -l /usr/share/man/man1/ | grep ruby
lrwxrwxrwx 1 root root     34 Aug  6 20:07 ruby.1.lzma -> //usr/share/man/man1/ruby18.1.lzma
-rw-r--r-- 1 root root   3836 Feb 12  2007 ruby18.1.xz
-rw-r--r-- 1 root root   5204 Dec  1  2010 ruby19.1.xz


Expected Results:  
Properly set manpage symlink:

Gentoo_Server rh1 # ls -l /usr/share/man/man1/ | grep ruby
lrwxrwxrwx 1 root root     31 Aug  6 20:20 ruby.1.xz -> /usr/share/man/man1/ruby18.1.xz
-rw-r--r-- 1 root root   3836 Feb 12  2007 ruby18.1.xz
-rw-r--r-- 1 root root   5204 Dec  1  2010 ruby19.1.xz
Comment 1 Ryan Harris 2013-08-07 00:26:09 UTC
Created attachment 355288 [details, diff]
patch for ruby.eselect

Adding patch just in case. It only requires a minor edit to 2 lines in ruby.eselect to fix it.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2013-08-07 00:51:41 UTC
Doesn't seem very future proof to hardcode a list of possible compressions. Somehow it should be ported to the manpage ".so links" like, for example:

$ cat /usr/share/man/man1/ruby.1
.so ruby${version}.1

As you can see, the manpage ".so links" are minimal one-liners, thus they don't need compression at all -- assuming it's easier to not compress it from eselect module.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2013-08-07 00:54:00 UTC
(In reply to Samuli Suominen from comment #2)
> $ cat /usr/share/man/man1/ruby.1
> .so ruby${version}.1

I mean, of course replace that $version in the example as appropiate like:

$ cat /usr/share/man/man1/ruby.1
.so ruby20.1
Comment 4 Alex Legler (RETIRED) archtester gentoo-dev Security 2013-08-14 12:11:41 UTC
Released in eselect-ruby-20130814.