LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   ARJ file compressor for x86_64-bit? (http://www.linuxquestions.org/questions/linux-software-2/arj-file-compressor-for-x86_64-bit-4175447625/)

stf92 01-28-2013 11:11 PM

ARJ file compressor for x86_64-bit?
 
Hi: I looked in google and searched in LQ, but the combination ARJ - 64 bits - Linux seems to have bad luck. Although the ARJ official page offers no newer then ARJ32. Perhaps if I try to get some other software compatible with the ARJ archive format?

knudfl 01-29-2013 03:43 AM

There is an endless number of binary arj packages for x86_64.

... Debian, Fedora, CentOS, Arch, Suse, Mandriva ..

stf92 01-29-2013 07:58 AM

Quote:

Originally Posted by knudfl (Post 4879694)
There is an endless number of binary arj packages for x86_64.

... Debian, Fedora, CentOS, Arch, Suse, Mandriva ..

Would you point to one in particular (tarball)?

pan64 01-29-2013 08:27 AM

http://rpm.pbone.net/index.php3/stat...86_64.rpm.html ?
http://www.openmamba.org/distributio...pkg=arj.x86_64 ?
...

knudfl 01-29-2013 09:08 AM

Quote:

Would you point to one in particular (tarball) ?
Well, you will get one, if you do like mentioned in your other arj thread,
post # 4.

Comment the line BuildRequires : autoconf
in arj.spec : # BuildRequires : autoconf
( You have no autoconf rpm in your "rpm data base" )
... and automatic patching will happen by $ rpmbuild -bb arj.spec
The build result is in ~rpm*/RPMS/x86_64/
.. and the patched arj in ~rpm*/BUILD/arj-*


Also : # src2pkg arj-3.10.22.tar.gz
.. will automatically include any patches in the same directory.
I.e. src2pkg is the recommended method, if you don't want to use a Slackbuild script.

-

stf92 01-29-2013 09:46 AM

Quote:

Originally Posted by knudfl (Post 4879910)
Also : # src2pkg arj-3.10.22.tar.gz
.. will automatically include any patches in the same directory.

-

Oh no. I downloaded src2pkg yesterday (gnashley's signature) and then used it for the first time on arj-3.10.22.tar.gz, after reading src2pkg documentation. But it failed:
Code:

semoi@darkstar:~/src/test1$ v
total 668
-rw-r--r-- 1 semoi semoi 431467 2013-01-29 12:27 arj-3.10.22.tar.gz
-rw-r--r-- 1 semoi semoi  61440 2013-01-29 12:28 arj_3.10.22-10.debian.tar
semoi@darkstar:~/src/test1$

Here you see the tarball and the .debian.tar (the patch) in the same directory. However,
Code:

semoi@darkstar:~/src/test1$ src2pkg arj-3.10.22.tar.gz
Found source archive: arj-3.10.22.tar.gz
Deleting old build files - Done
Creating working directories:
  PKG_DIR=/tmp/arj-3.10.22-x86_64-1
  SRC_DIR=/tmp/arj-3.10.22-src-1
Unpacking source archive - Done
Correcting source permissions - Done
Checking for patches - None found
Skipping configuration: Nothing to be done
Continuing - We found at least one makefile
Compiling sources - Using: 'make'
ERROR! Compiling source code has failed.
This usually happens because of missing libraries, or
badly written Makefiles or configure scripts.
Sorry! No Dependency or Requirements information found.

semoi@darkstar:~/src/test1$

But you can read 'Checking for patches - None found' in the code block! It's only a matter of making src2pkg know the patch pathname!

knudfl 01-29-2013 10:31 AM

# 6
arj_3.10.22-10.debian.tar is not a patch.
Patches are text files, suffix .patch : name.patch

And : Do not use Debian patches.
Many of those are Debian only specific.

Please use the three mentioned Fedora 17 patches,
your other arj thread, post # 4.

-

stf92 01-29-2013 11:10 AM

Those three files are components of the rpm package. You mean I must extract them from the rmp package?

stf92 01-29-2013 12:17 PM

Alright. I done
Code:

rpm -Uvh arj-3.10.22-14.fc17.src.rpm
and got /root/rpmbuild/SPECS/arj.spec. Then I did
Code:

~/rpmbuild/SPECS/# rpmbuild -bb arj.spec
error: failed build dependencies:
    autoconf is needed by arj-3.10.22-14.x86_64

But I saw that 'Build Requires: autoconf' was NOT commented, so I left as it was!

knudfl 01-29-2013 12:37 PM

# 9 :

Either delete the line, or add a hash mark : # Build Requires: autoconf

And : It's $ rpmbuild -bb , not # rpmbuild -bb

No reason to use root for the build.

-

stf92 01-29-2013 02:21 PM

Done. Now I have ~/rpmbuild/RPMS/x86_64/arj-3.1.22-14.x86_64.rpm. Next I did:
Code:

rpm --install ~/rpmbuild/RPMS/x86_64/arj-3.1.22-14.x86_64.rpm
but got
Code:

Error: Failed dependencies:
    /bin/sh is needed by arj-3.1.22-14.x86_64

As /bin/sh is linked to /bin/bash, I cannot know if I have sh. In case I have the sh command interpreter I guess it would be easy to set things right?

knudfl 01-29-2013 02:35 PM

# 11.

You'd still have no entries in the "rpm data base", as your OS isn't rpm based.
Hence no '/bin/sh' in the "rpm data base file list".
'rpm' will look there for installed packages, nowhere else.

Your options are : 'rpm2tgz arj-3.1.22-14.x86_64.rpm' to get a Slackware package.

Or : # rpm -Uvh --nodeps rpm2tgz arj-3.1.22-14.x86_64.rpm
.. to ignore the dependency.

-

stf92 01-29-2013 05:06 PM

I did rpm2tgz arj-3.1.22-14.x86_64.rpm. Thank you very much for the "tour". All's working fine.


All times are GMT -5. The time now is 07:09 PM.