Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 166583
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 159100
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jon Ward <astralsin@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
quake1-data-2.40-r1.ebuild New ebuild gets along better with lha. text/plain John R. Graham 2007-07-23 04:03 0000 2.07 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 166583 depends on: Show dependency tree
Bug 166583 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-02-12 22:21 0000
I get an error concerning incorrect usage of the -q option of lha

Reproducible: Always

Steps to Reproduce:
1.put quake cd in tray and mount it
2.export CD_ROOT=/mount/point
3.emerge quake1-data

Actual Results:  
>>> Unpacking resource.1 to /var/tmp/portage/games-fps/quake1-data-2.40/work
lha: invalid option -- q
usage: lha [-]<commands>[<options>] [-<options> ...] archive_file [file...]
  commands:  [axelvudmcpt]
  options:   [q[012]vnfto[567]dizg012e[w=<dir>|x=<pattern>]]
  long options: --system-kanji-code={euc,sjis,utf8,cap}
                --archive-kanji-code={euc,sjis,utf8,cap}
                --extract-broken-archive
                --help
                --version

!!! ERROR: games-fps/quake1-data-2.40 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_unpack
  ebuild.sh, line 751:   Called qa_call 'src_unpack'
  environment, line 3178:   Called src_unpack
  quake1-data-2.40.ebuild, line 47:   Called die

!!! failure unpacking resource.1


Expected Results:  
it should have installed quake1-data

------- Comment #1 From Paul Bredbury 2007-02-13 18:28:41 0000 -------
Use the lha ebuild from bug #159100. Then "man lha" shows that the "q" option
is valid. It's the lha ebuild currently marked stable in Portage that's wrong.

------- Comment #2 From Andreas Stangl 2007-07-02 15:25:18 0000 -------
simply remove the "q" option from the quake1-data.ebuild in
/usr/portage/games-fps/ and do a gentle "ebuild quake-1-data.ebuild digest" and
you can install quake1-data without any problems.

Use this "dirty trick" until the lha-guys wake up ;-)

------- Comment #3 From Sonic Lux 2007-07-15 22:54:44 0000 -------
the trick with the removal of the "q" works for me too.
please update the ebuild

------- Comment #4 From John R. Graham 2007-07-23 04:03:40 0000 -------
Created an attachment (id=125720) [details]
New ebuild gets along better with lha.

There are two issues with lha, but both of them are intentional, so to speak.
1) lha-114i-r6 uses the glibc getopt family of functions to parse the command
line as opposed to the home-grown parser used by prior version.  This has
regrettably caused a subtle syntax difference with the "q" option, which now
must come lasts if its parameter is missing.
2) lha has always depended on the file name to identify and skip MS-DOS self
extraction code.  This ebuild contains an lha self extracting file named
"resource.1".  It has to be named something.exe for lha to properly recognize
its contents.

The attached ebuild rectifies both of these issues.

- John

------- Comment #5 From Chris Gianelloni (RETIRED) 2007-07-24 20:06:22 0000 -------

*** This bug has been marked as a duplicate of bug 159100 ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug