Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462258 - app-misc/lfm - tries to open /usr/share/doc/lfm/readme
Summary: app-misc/lfm - tries to open /usr/share/doc/lfm/readme
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2013-03-19 01:05 UTC by Ellison Marks
Modified: 2020-01-22 20:13 UTC (History)
1 user (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 Ellison Marks 2013-03-19 01:05:06 UTC
From within LFM, you should be able to open the readme files using the help (f1) menu. This fails for two reason.

 1. The path is wrong or not set up correctly. LFM expects the files to live in /usr/share/doc/lfm. The actual path appends the version number to the directory (ie. /usr/share/doc/lfm-2.3)

 2. The doc files are compressed with bz2. LFM isn't expecting this and won't try to decompress them on the fly.

Related code seems to be in actions.py, def show_help(tab), line 867.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-19 13:40:18 UTC
Also:

$ ebuild lfm-2.3.ebuild install
Appending /newaches/gentoo/cvs/gentoo-x86 to PORTDIR_OVERLAY...
>>> Downloading 'http://www.terra.es/personal7/inigoserna/lfm/lfm-2.3.tar.gz'
--2013-03-19 14:37:58--  http://www.terra.es/personal7/inigoserna/lfm/lfm-2.3.tar.gz
Resolving www.terra.es (www.terra.es)... 208.84.244.10
Connecting to www.terra.es (www.terra.es)|208.84.244.10|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.terra.es/ [following]
--2013-03-19 14:37:59--  http://www.terra.es/
Reusing existing connection to www.terra.es:80.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.terra.es/portada/ [following]
--2013-03-19 14:37:59--  http://www.terra.es/portada/
Reusing existing connection to www.terra.es:80.
HTTP request sent, awaiting response... 200 OK
Length: 157839 (154K) [text/html]
Saving to: ‘/world/distfiles/lfm-2.3.tar.gz’

100%[==========================================================================================>] 157,839      222KB/s   in 0.7s

2013-03-19 14:38:00 (222 KB/s) - ‘/world/distfiles/lfm-2.3.tar.gz’ saved [157839/157839]

!!! Fetched file: lfm-2.3.tar.gz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      157839
!!! Expected: 119120
Refetching... File renamed to '/world/distfiles/lfm-2.3.tar.gz._checksum_failure_.jSevCD'

!!! Couldn't download 'lfm-2.3.tar.gz'. Aborting.

Perhaps HOMEPAGE/SRC_URI have moved?
Comment 2 Pacho Ramos gentoo-dev 2018-04-01 11:49:44 UTC
I was also trying to bump it to 3.1 but it fails to run with :S
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/lfm", line 23, in <module>
    from lfm.lfm import lfm_start
  File "/usr/lib64/python3.6/site-packages/lfm/lfm.py", line 39, in <module>
    from ui import run_app
  File "/usr/lib64/python3.6/site-packages/lfm/ui.py", line 10, in <module>
    from preferences import Config, load_colortheme, load_keys, History
  File "/usr/lib64/python3.6/site-packages/lfm/preferences.py", line 10, in <module>
    from utils import get_lfm_data_file_contents, ConfigParserWithComments, get_public_actions
  File "/usr/lib64/python3.6/site-packages/lfm/utils.py", line 496, in <module>
    from compress import get_compressed_file_engine, packagers_by_type, PackagerTAR
  File "/usr/lib64/python3.6/site-packages/lfm/compress.py", line 83, in <module>
    class PackagerTBZ2(PackagerBase):
  File "/usr/lib64/python3.6/site-packages/lfm/compress.py", line 88, in PackagerTBZ2
    uncompress_prog = compress_prog = SYSPROGS['bzip2']
NameError: name 'SYSPROGS' is not defined
Comment 3 Ben Kohler gentoo-dev 2020-01-22 20:10:12 UTC
The newest version 3.1 seems to install & load these docs from a new path that isnt affected by either of the aforementioned problems (versioned path or compression).

I'm also unable to reproduce problem in comment #2 but feel free to open a new bug report on that if it still exists after bump to 3.1.
Comment 4 Larry the Git Cow gentoo-dev 2020-01-22 20:13:03 UTC
The bug has been closed via the following commit(s):

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

commit 9e5b3e74c3404e383f3a0ca154e28bbd36ec8fef
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2020-01-22 20:12:33 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2020-01-22 20:12:50 +0000

    app-misc/lfm: bump to 3.1 w/ python3 support (and take pkg)
    
    Closes: https://bugs.gentoo.org/462258
    Closes: https://bugs.gentoo.org/705950
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 app-misc/lfm/Manifest       |  1 +
 app-misc/lfm/lfm-3.1.ebuild | 17 +++++++++++++++++
 app-misc/lfm/metadata.xml   |  5 ++++-
 3 files changed, 22 insertions(+), 1 deletion(-)