Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
98 user(s) are online (58 user(s) are browsing Forums)

Members: 0
Guests: 98

more...

Headlines

 
  Register To Post  

New Rar for AmigaOS 4.1
Not too shy to talk
Not too shy to talk


See User information

Hi, everybody.


The new version of Rar is not compatible with previous versions, is there anyone working on the version for AmigaOS 4.1?

Thanks, and Happy New Year.

Virginio

AmigaOne X5000 OS4.1 FEU1 And Lubuntu 10.04
1200 towered with Blizzard PPC - BVision and Mediator
And a new fantastic Chameleon64
Go to top
Re: New Rar for AmigaOS 4.1
Just can't stay away
Just can't stay away


See User information
@RIBDEVIL
Are you referring to the XAD RAR that's included with OS4.x or the one at Aminet (xad_rar)?

Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450

Go to top
Re: New Rar for AmigaOS 4.1
Not too shy to talk
Not too shy to talk


See User information
@xenic

Sorry, I have not explained well.
I mean that the new version (5.50 from 2017) of winrar or rar.exe under the command line, is not compatible with the versions of AmigaOS that currently exist.
And every time more compressed files appear in this format. For example, the Amiga CD32 Alternate Covers CDs can not be decompressed, it does not give an error, but no file appears.

Virginio

AmigaOne X5000 OS4.1 FEU1 And Lubuntu 10.04
1200 towered with Blizzard PPC - BVision and Mediator
And a new fantastic Chameleon64
Go to top
Re: New Rar for AmigaOS 4.1
Home away from home
Home away from home


See User information
@xenic

He's talking about the command line tool: 3.9.7 on OS4Depot.

and probably this one: 5.50 WinRAR...not sure if this possible to port though (or even open sourced...i don't see a source download on a quick check)

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: New Rar for AmigaOS 4.1
Quite a regular
Quite a regular


See User information
I'll have a look at the latest open source UnRAR and see if it can be easily ported.

Go to top
Re: New Rar for AmigaOS 4.1
Not too shy to talk
Not too shy to talk


See User information
@MickJT

Thanks. Mick

Happy New Year for ALL Amigans and family.

Virginio

AmigaOne X5000 OS4.1 FEU1 And Lubuntu 10.04
1200 towered with Blizzard PPC - BVision and Mediator
And a new fantastic Chameleon64
Go to top
Re: New Rar for AmigaOS 4.1
Home away from home
Home away from home


See User information
Latest source should be here: https://github.com/pmachapman/unrar

Go to top
Re: New Rar for AmigaOS 4.1
Quite a regular
Quite a regular


See User information
I was going to download it from https://www.rarlab.com/rar_add.htm

Edit: Unfortunately it uses a lot of functions not in our SDK, such as swprintf.


Edited by MickJT on 2017/12/31 8:39:28
Go to top
Re: New Rar for AmigaOS 4.1
Home away from home
Home away from home


See User information
@Mick
I also have a look at this, and there is not much missing. Only those ones:

wint_t putwchar (wchar_t wc);
long int wcstol (const wchar_tstrwchar_t** endptrint base);
wchar_tfgetws (wchar_twsint numFILEstream);
int vfwprintf (FILEstream, const wchar_tformatva_list arg);
int vswprintf (wchar_t wssize_t len, const wchar_t formatva_list arg );
int swprintfwchar_tbufferstd::size_t size, const wchar_tformat, ... );


Also our old newlib port miss sys/statvfs.h with fsblkcnt_t support, which is also as above funcions can be added directly to port. Sources:

/*
 * Copyright (C) 2016 Eistec AB
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License v2.1. See the file LICENSE in the top level
 * directory for more details.
 */

/* If building on native we need to use the system libraries instead */
#ifdef CPU_NATIVE
#pragma GCC system_header
/* without the GCC pragma above #include_next will trigger a pedantic error */
#include_next <sys/statvfs.h    >
#else
#ifndef SYS_STATVFS_H
#define SYS_STATVFS_H

#include <sys/types.h> /* for fsblkcnt_t, fsfilcnt_t */
/* newlib support for fsblkcnt_t was only recently added to the newlib git
 * repository, commit f3e587d30a9f65d0c6551ad14095300f6e81672e, 15 apr 2016.
 * Will be included in release 2.5.0, around new year 2016/2017.
 * We provide the below workaround if the used tool chain is too old. */
#ifndef _FSBLKCNT_T_DECLARED        /* for statvfs() */
#include <stdint.h>
/* Default to 32 bit file sizes on newlib platforms */
typedef uint32_t fsblkcnt_t;
typedef uint32_t fsfilcnt_t;
#define _FSBLKCNT_T_DECLARED
#endif
#ifdef __cplusplus
extern "C" {
#endif

struct statvfs {
    
unsigned long f_bsize;   
    
unsigned long f_frsize;  
    
fsblkcnt_t f_blocks;     
    
fsblkcnt_t f_bfree;      
    
fsblkcnt_t f_bavail;     
    
fsfilcnt_t f_files;      
    
fsfilcnt_t f_ffree;      
    
fsfilcnt_t f_favail;     
    
unsigned long f_fsid;    
    
unsigned long f_flag;    
    
unsigned long f_namemax
};

enum {
    
ST_RDONLY 1,        /* Mount read-only.  */
    
ST_NOSUID 2,        /* Ignore suid and sgid bits.  */
};

#ifdef __cplusplus
}
#endif

#endif /* SYS_STATVFS_H */

#endif /* CPU_NATIVE */



Once i define it all, and do little changes in uowners.cpp (replacing lchown on chown), it compile all obects , and want to be linked.

There is my part of makefile as well:

CXX=ppc-amigaos-c++
CXXFLAGS=-O2
DEFINES
=-DBIG_ENDIAN -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_BSD_COMPAT
STRIP
=ppc-amigaos-strip
AR
=ppc-amigaos-ar
LDFLAGS
=-static -lz -lstdc++
DESTDIR=/usr



After sources of above functions will be added to port, and all will be links, then there need to be done usuall amiga specific changes (sources of diffs for which i found in morphos and 68k ports of old versions from the page where you download current sources).

In others words, it can be done more or less easy, imho.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: New Rar for AmigaOS 4.1
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Thanks for the interest.
I hope you have a happy and prosperous year 2018.

Virginio

AmigaOne X5000 OS4.1 FEU1 And Lubuntu 10.04
1200 towered with Blizzard PPC - BVision and Mediator
And a new fantastic Chameleon64
Go to top
Re: New Rar for AmigaOS 4.1
Quite a regular
Quite a regular


See User information
The latest RAR5-compatible unrar uses various unicode wide-string functions, but I was once corrected when I said those are not available in any OS4 C libraries.

This is just like television, only you can see much further.
Go to top
Re: New Rar for AmigaOS 4.1
Home away from home
Home away from home


See User information
@BSzili

There is wide char support in clib2 for certain, whether sufficient for this purpose I don't know.


Go to top
Re: New Rar for AmigaOS 4.1
Quite a regular
Quite a regular


See User information
@broadblues
Thanks, I hoped somebody who knows more about this would chime in. If it has wide character support then vfwprintf and the rest should be in the C library as well. Without those you can't do much with wide char strings. These are the relevant headers:
https://github.com/adtools/clib2/blob/ ... r/library/include/wchar.h
https://github.com/adtools/clib2/blob/ ... /library/include/wctype.h

This is just like television, only you can see much further.
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project