How to download xzm from other arch than the running system?

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

How to download xzm from other arch than the running system?

Post#1 by Rava » 10 Aug 2014, 11:04

Hi,

I am running x86-64 current stable Porteus, but need to download Alpine for current i686 Porteus.

I know there was a hidden folder on http://ponce.cc/porteus/i486/ that got the modules... but I cannot recall it's name...

Is there a way to tell usm to look for a certain arch, or do I need to hack a setup file for the moment to make usm think it's another arch? Or does it just rely on uname ?

Code: Select all

root@porteus:/x/porteus# usm -s Alpine

alpine-2.11-x86_64-1.txz was found in slackware
Packages found:   1 

Use:   usm -i <package>  for more info
Use:   usm -g <package>  to download
sadly, the man page of usm hat no hits searching for "FILES" (or "file") (as in: its setup file(s), or for "setup"

Code: Select all

root@porteus:/x/porteus# man usm|grep -i config
root@porteus:/x/porteus# man usm|grep -i setup
root@porteus:/x/porteus# man usm|grep -i file
root@porteus:/x/porteus# 
And I want the xzm, not txz when available...
Last edited by Rava on 10 Aug 2014, 11:42, edited 1 time in total.
Cheers!
Yours Rava

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: How to download xzm from other arch than the running sys

Post#2 by donald » 10 Aug 2014, 11:33

Hi Rava
do you mean
http://ponce.cc/mirrors/slackware-14.1/source/n/alpine/

more results with a google search: alpine site:ponce.cc

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: How to download xzm from other arch than the running sys

Post#3 by Rava » 10 Aug 2014, 11:35

donald wrote:Hi Rava
do you mean
http://ponce.cc/mirrors/slackware-14.1/source/n/alpine/

more results with a google search: alpine site:ponce.cc
Or with duckduckgo's quick syntax: alpine ponce.cc!

But that's just one of many existing slackware source mirrors with .SlackBuild files... I wanted to know how to get the finished, ready for download alpine-2.11-i486.xzm or alpine-2.11-i486-1.xzm

//
Donald, ich habe vergessen es explizit im originalen Artikel zu erwähnen das ich xzm suche; ist jetzt die letzte Zeile,
Cheers!
Yours Rava

tome
Contributor
Contributor
Posts: 675
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Russia is causing the immense damage to humanity
Contact:

Re: How to download xzm from other arch than the running sys

Post#4 by tome » 10 Aug 2014, 14:09

I know there was a hidden folder on http://ponce.cc/porteus/i486/ that got the modules... but I cannot recall it's name...
- it was for previous Porteus versions, now it is deleted because we have USM.
You have mind and feelings. Be wise and clever.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: How to download xzm from other arch than the running sys

Post#5 by Rava » 10 Aug 2014, 20:57

tome wrote:it was for previous Porteus versions, now it is deleted because we have USM.
Now, hopefully usm can be convinced downloading what someone needs/wants, then, as in: the other arch...
Cheers!
Yours Rava

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: How to download xzm from other arch than the running sys

Post#6 by brokenman » 10 Aug 2014, 21:33

Now, hopefully usm can be convinced downloading what someone needs/wants, then, as in: the other arch...
It is possible but not default. In most cases, what people need/want are packages for the arch they are using.

You may be able to use /etc/usm/usm.conf to download packages for a different arch. Have a read of it then test it to see if it works for your purpose.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: How to download xzm from other arch than the running sys

Post#7 by Rava » 10 Aug 2014, 22:31

brokenman wrote:It is possible but not default. In most cases, what people need/want are packages for the arch they are using.
I fully agree!
brokenman wrote:You may be able to use /etc/usm/usm.conf to download packages for a different arch. Have a read of it then test it to see if it works for your purpose.
Neato, I will look into it and give you the heads up. But now it's time to say *g'night folks!*
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: How to download xzm from other arch than the running sys

Post#8 by Rava » 13 Aug 2014, 19:55

root@porteus:/# (geany /etc/usm/usm.conf &)

Code: Select all

################################
# DO NOT EDIT BELOW THIS POINT
# OR A PUPPY DOG COULD DIE!
################################
# Uncomment and set this value to overide automated detection
# Used for development and troubleshooting only
# ARCH=x86_64
So, the code for x86_64 is x86_64. Don't laugh, sometimes it's written as x86-64 :(

But what is the code for i686? i686? x86?

Seems, soon a puppy dies... I presume it's that kind of puppy.
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: How to download xzm from other arch than the running sys

Post#9 by beny » 13 Aug 2014, 20:14

i486 this is the code when you have a slackbuild for the 64 bit and need to build a x86 32 bit sotware

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: How to download xzm from other arch than the running sys

Post#10 by Rava » 13 Aug 2014, 20:42

^
(Running x86-64 trying to get a i486 / x86 /i686 module)
I set ARCH=i486, and started usmgui... searching for "Alpine", but again I get the same result as above: alpine-2.11-x86_64-1.txz

Trying usm:

Code: Select all

root@porteus:~# usm -s Alpine

alpine-2.11-x86_64-1.txz was found in slackware
Packages found:   1 
What's going wrong here? Do I need to first get whole new databases? Are the databases only my arch, that is: x86_64?

(Since our Porteus brokenman is the programmer of usm, he should know!)
Cheers!
Yours Rava

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: How to download xzm from other arch than the running sys

Post#11 by brokenman » 13 Aug 2014, 21:28

Do I need to first get whole new databases?
Yes. You will need to update the databases so it downloads the i486 databases. Working in fresh mode, make the change in usm.conf and then do:

Code: Select all

usm -u all
mkdir /tmp/un
cp -a --parents /var/usm /tmp/un
rm -rf /tmp/un/var/usm/local
dir2xzm /tmp/un /tmp/usm-database32.xzm
Then you can just activate this module whenever you want to test with the 32bit module. It would really be much tidier to boot into a 32bit system to accomplish your task.

EDIT: Please remember if you are trying to resolve any dependencies using this method you will surely fail. You can search for packages, but any dep resolution will be trying to resolve against 64bit binaries.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: How to download xzm from other arch than the running sys

Post#12 by Rava » 13 Aug 2014, 22:29

^
I see, so it will only make sense for a single program that not needs any further dep.

Still, I will try it and give you the heads up. Now I am just too curious to get it working like I want in the end...

And I believe ARCH=i486 as suggested by beny is the correct string?
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: How to download xzm from other arch than the running sys

Post#13 by beny » 14 Aug 2014, 10:38

rava when you use usm into a 64 bit system please search in /var/usm the packages list are only for the x86_64 bit system,i have check in my system i486 and i have also the ponce repository in i486 arch so if you want downloads differet arch you have to use a standalone downloads method i think... or take a repository config that point to i486 and see if you have luck,

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: How to download xzm from other arch than the running sys

Post#14 by brokenman » 14 Aug 2014, 11:41

And I believe ARCH=i486 as suggested by beny is the correct string?
Correct.
I see, so it will only make sense for a single program that not needs any further dep.
Correct

usm -s vlc is no problem as it is only searching the newly updated i486 database files.
usm -g vlc
is a problem as it will try to run ldd against the currently installed binaries (64bit)
How do i become super user?
Wear your underpants on the outside and put on a cape.

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: How to download xzm from other arch than the running sys

Post#15 by beny » 14 Aug 2014, 15:41

and at the end, you can do a chroot of a 32 bit system into a 64 bit so you have a whole 32 bit environment into a 64 bit,this is used by the slackware packager when they have build 32 bit software but do not have a 32 slackware installed in

Post Reply