Click Here
home features news forums classifieds faqs links search
6078 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
Home
Features
News
Forums
Classifieds
Links
Downloads
Extras
OS4 Zone
IRC Network
AmigaWorld Radio
Newsfeed
Top Members
Amiga Dealers
Information
About Us
FAQs
Advertise
Polls
Terms of Service
Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
29 crawler(s) on-line.
 18 guest(s) on-line.
 2 member(s) on-line.


 BigD,  terminills

You are an anonymous user.
Register Now!
 terminills:  1 min ago
 BigD:  2 mins ago
 Rob:  7 mins ago
 Karlos:  9 mins ago
 PhantomInterrogative:  10 mins ago
 kolla:  30 mins ago
 Hypex:  38 mins ago
 Zendarion:  55 mins ago
 pixie:  1 hr 23 mins ago
 _ThEcRoW:  1 hr 36 mins ago

/  Forum Index
   /  Amiga OS4 Software
      /  LHA 2.12 bug (and xad issue, pg.2)
Register To Post

Goto page ( 1 | 2 | 3 | 4 | 5 Next Page )
PosterThread
MickJT 
LHA 2.12 bug (and xad issue, pg.2)
Posted on 1-Jan-2011 15:01:18
#1 ]
Cult Member
Joined: 13-Jan-2005
Posts: 525
From: Adelaide, South Australia

6.RAM Disk:> version c:lha
LhA 2.12 AOS4 Mar 13 2006
6.RAM Disk:> md5sum c:lha
c4df7dc66b0cf530d0065ba8d0e72cb7 c:lha

This needs an emergency fix. Since the 1st of January 2011, any files with the timestamp in the year 2011 or later that are added to an archive, have the timestamp recorded as being in 1980 (perhaps starting at 1980, then 1982, 82, etc..?).

Does someone here have the skills to patch this, pronto?

I have something to upload to OS4Depot but would rather have the timestamps correct before I do so.

Last edited by MickJT on 03-Jan-2011 at 05:42 PM.
Last edited by MickJT on 03-Jan-2011 at 03:23 PM.
Last edited by MickJT on 03-Jan-2011 at 03:21 PM.
Last edited by MickJT on 03-Jan-2011 at 03:19 PM.
Last edited by MickJT on 01-Jan-2011 at 03:36 PM.
Last edited by MickJT on 01-Jan-2011 at 03:02 PM.

 Status: Offline
Profile     Report this post  
Xenic 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 15:31:44
#2 ]
Super Member
Joined: 2-Feb-2004
Posts: 1246
From: Pennsylvania, USA

@MickJT
Confirmed here on my SAM Flex OS 4.1u2. I don't know if it's a new bug but I also noticed that any date that has odd seconds is changed to even seconds when archived. For example, "17-Oct-10 12:21:13" is changed to "17-Oct-10 12:21:12" when the file is added to an lha archive. Are the seconds altered for you too?


_________________
X1000 with 2GB memory & OS4.1FE

 Status: Offline
Profile     Report this post  
MickJT 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 15:33:42
#3 ]
Cult Member
Joined: 13-Jan-2005
Posts: 525
From: Adelaide, South Australia

@Xenic

Yes, I can confirm that too. Was that happening before 2011 too?

I'm going to say yes, because the file I added is from September '10

Last edited by MickJT on 01-Jan-2011 at 03:34 PM.

 Status: Offline
Profile     Report this post  
MickJT 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 15:42:37
#4 ]
Cult Member
Joined: 13-Jan-2005
Posts: 525
From: Adelaide, South Australia

I can also confirm the 68k version has the exact same two bugs.

 Status: Offline
Profile     Report this post  
Amigo1 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 15:49:35
#5 ]
Super Member
Joined: 24-Jun-2004
Posts: 1582
From: the Clouds

@MickJT

yes, same happens here..

OT. btw I just noticed lha can't shrink ILBM files to less than 96% of their original size.
A quick try with other compressors does not give better results. is there no way to compress those files?

 Status: Offline
Profile     Report this post  
Chain-Q 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 16:05:03
#6 ]
Cult Member
Joined: 31-Jan-2005
Posts: 823
From: Budapest, Hungary

@Xenic
The missing odd seconds might be related to the fact, that LHA is quite old and has MS-DOS origins. MS-DOS can't store odd seconds for a timestamp, as it has only five bits for seconds, instead of six, because of 16 bit limitations (5 bits for hours, 6 bits for minutes, and 5 bits for seconds, 5 + 6 + 5 = 16).

If LHA still uses a similar construct, I suspect that cannot be fixed, except via breaking the file format. This also affects other file formats like ZIP, which derives from the PKZIP format, which was also buildt on MS-DOS constructs.

Last edited by Chain-Q on 01-Jan-2011 at 04:07 PM.

_________________
MorphOS, classic Amiga, demoscene, and stuff
"When a bridge is not enough, build a Viaduct!"
"Strip the Amiga community of speculation and we can fit every forum on a 720k floppy" (by resle)

 Status: Offline
Profile     Report this post  
Tomppeli 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 16:32:45
#7 ]
Super Member
Joined: 18-Jun-2004
Posts: 1646
From: Home land of Santa, sauna, sisu and salmiakki

@Amigo1

ILBM files are compressed already by themselves.

_________________
Rock lobster bit me. My Workbench has always preferences. X1000 + AmigaOS4.1 FE
"Anyone can build a fast CPU. The trick is to build a fast system." -Seymour Cray

 Status: Offline
Profile     Report this post  
MickJT 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 17:14:05
#8 ]
Cult Member
Joined: 13-Jan-2005
Posts: 525
From: Adelaide, South Australia

This one from SVN is the latest version for Unix: http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/lha/trunk.tar.gz?root=lha&view=tar

This can store files with timestamps that have an odd number of seconds.

I can compile it here. It works, sort-of. It cannot do recursive directories unless in a bash shell, but then you end up with rogue 0 byte random filenames for some reason.

Edit: I now have a workaround for users of Dopus4 if anyone is desperate.
Edit2: Found later version (23rd October 2008). Updated link.

Last edited by MickJT on 01-Jan-2011 at 06:50 PM.
Last edited by MickJT on 01-Jan-2011 at 06:41 PM.
Last edited by MickJT on 01-Jan-2011 at 06:31 PM.
Last edited by MickJT on 01-Jan-2011 at 05:20 PM.

 Status: Offline
Profile     Report this post  
Xenic 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 17:23:04
#9 ]
Super Member
Joined: 2-Feb-2004
Posts: 1246
From: Pennsylvania, USA

@Amigo1
Palette mapped ILBM files are already small because only the necessary bitplanes are stored and there is also some simple compression. However, most 24bit & 32bit ILBM (IFF) files can be compressed with lha and other archivers. OS4.1 icon images will compress to about half their original size.

_________________
X1000 with 2GB memory & OS4.1FE

 Status: Offline
Profile     Report this post  
Xenic 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 17:29:06
#10 ]
Super Member
Joined: 2-Feb-2004
Posts: 1246
From: Pennsylvania, USA

@Chain-Q
I only noticed the missing odd seconds because I was checking out the 2011 date issue. I have checked several old archives and they all have even seconds. Thanks for the info.


_________________
X1000 with 2GB memory & OS4.1FE

 Status: Offline
Profile     Report this post  
whose 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 17:31:59
#11 ]
Cult Member
Joined: 21-Jun-2005
Posts: 893
From: Germany

@MickJT

Please, please, dont start to mix up lha, too. We already have too many different versions of several archivers, all with some quirks and inconsistencies to the other.

Best way would be to try to reach the last maintainer of Amiga lha, and finally convince him to actually open the source code to lha Amiga for other developers.

This way lha Amiga stays consistent over new versions and several potential bugs could finally be wiped out (there are several, beside this date "bug" you experienced today) by third party developers.

If you establish a version of lha, which works different to the "original" Amiga version, be it as temporary workaround or not, users will experience troubles in the near future.

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 18:18:22
#12 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3191
From: Beds, UK

The last website for LhA was lha.a1k.org.
I would suggest contacting whomever looks after a1k.org and ask them (the link for LhA is still on the top bar, but the LhA page itself no longer exists).

Failing that, one of the authors must have a copy of the latest source code.

In descending order of update date:
Sven Ottemann ac-logic freenet de
Jim Cooper
David Tritscher
Stefan Boberg

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
MickJT 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 18:32:48
#13 ]
Cult Member
Joined: 13-Jan-2005
Posts: 525
From: Adelaide, South Australia

@whose

I heard some years back that the LhA sourcecode had been lost. Was it ever recovered? I updated the link to the Unix version. Found an SVN trunk last updated in 2008. It does what I need for the short term, but doesn't support file comments.

Last edited by MickJT on 01-Jan-2011 at 06:50 PM.
Last edited by MickJT on 01-Jan-2011 at 06:41 PM.
Last edited by MickJT on 01-Jan-2011 at 06:33 PM.

 Status: Offline
Profile     Report this post  
tokai 
Re: LHA 2.12 Y2K11 bug
Posted on 1-Jan-2011 21:55:25
#14 ]
Regular Member
Joined: 28-Nov-2003
Posts: 124
From: binaryriot

@MickJT

Quote:
This needs an emergency fix.


http://twitter.com/morphosteam/status/21323035915067392

_________________
tokai.binaryriot.org binaryriot.de

 Status: Offline
Profile     Report this post  
Varthall 
Re: LHA 2.12 Y2K11 bug
Posted on 2-Jan-2011 0:03:04
#15 ]
Super Member
Joined: 17-Feb-2004
Posts: 1555
From: Up Rough

@all

I'd propose, as a temporary solution, a port of the latest Unix LHA as linked by MickJT to replace the following outdated Lha port:

http://os4depot.net/index.php?function=showfile&file=utility/archive/lha.tar.gz

with support for the basic stuff required on OS4, i.e. correct filetypes and support for file comments. Later we might think to try to get the sources and update the official Amiga version of LhA. The first step would have to be done ASAP, as we already have an archive on OS4Depot with all the timestamps wrong. This might lead to some confusion as Whose pointed out, but I think that is more important to have a temporary working LhA now, albeit it's simpler, slower and with different syntaxes as Mick has found out, rather than risk to have many wrong archives in the next weeks.

Varthall

_________________
AmigaOne XE - AmigaOS 4.1 - Freescale 7457 1GHz - 1GB ram
MPlayer for OS4: https://sourceforge.net/projects/mplayer-amigaos/

 Status: Offline
Profile     Report this post  
nbache 
Re: LHA 2.12 Y2K11 bug
Posted on 2-Jan-2011 0:44:32
#16 ]
Super Member
Joined: 8-Apr-2003
Posts: 1024
From: Copenhagen, Denmark

@Chris_Y

Quote:
Chris_Y wrote:
In descending order of update date:
Sven Ottemann ac-logic freenet de
Jim Cooper
David Tritscher
Stefan Boberg

I wouldn't bother trying to contact any of the above except Sven about this. As far as I remember, even Jim hasn't had a working Amiga for at least a decade. This was (I believe) one of the reasons Sven took over back then. But whether he can still be contacted, or someone else has access to the source code, I don't know.

Best regards,

Niels

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: LHA 2.12 Y2K11 bug
Posted on 2-Jan-2011 11:40:44
#17 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3191
From: Beds, UK

@tokai

Is MOS LhA based on the official Amiga LhA (I'm guessing so, if it has the same bug)?* If so, can they not at the very least produce a 68k binary as well? And preferably open source the code so we don't get stuck in this situation again in the future?

Given how widespread LhA is amonsgst the Amiga comunity, it seems a bit silly to keep this to themselves. Unless they would like to open loads of LhA archives created with the faulty version and have all their timestamps messed up.


* I've just had a nose through the binary:
Version 2.7.10
Copyright 1991-94 by Stefan Boberg.
Copyright 1998,1999 by Jim Cooper and David Tritscher.
Copyright 2000-2011 by Ralph Schmidt and Harry Sintone

So it looks like it is based on LhA 2.7 for other Amiga systems. We'd lose Sven's updates but that is certainly better than the alternative. It should be possible to check a lot of what is in the history to see if it is fixed or not in the MOS version.

Last edited by Chris_Y on 02-Jan-2011 at 11:49 AM.

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
aclogic 
Re: LHA 2.12 Y2K11 bug
Posted on 2-Jan-2011 12:01:27
#18 ]
Member
Joined: 17-Apr-2005
Posts: 34
From: Germany

A fixed version for AOS4 is in the upload-dir of os4Depot.
Versions for 68k will follow on aminet.


_________________
no RISC, no fun

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: LHA 2.12 Y2K11 bug
Posted on 2-Jan-2011 12:09:15
#19 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3191
From: Beds, UK

@aclogic

Yay! Thanks

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
whose 
Re: LHA 2.12 Y2K11 bug
Posted on 2-Jan-2011 12:13:35
#20 ]
Cult Member
Joined: 21-Jun-2005
Posts: 893
From: Germany

@aclogic

Thank you very much!

 Status: Offline
Profile     Report this post  
Goto page ( 1 | 2 | 3 | 4 | 5 Next Page )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle