Author Topic: RPM: Switching from i686 to Pentium4  (Read 19601 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
RPM: Switching from i686 to Pentium4
« on: February 25, 2022, 08:44:41 pm »
Hi

I refreshed my VM and I don't remember what I did last time to change everything to .pentium4.

Is there some trick or command to make RPM reinstall everything that I have oon i686 to pentium4 if it exists?

Currently I'm changing everything to .pentium4 one by one with ANPM.

The error says:
Code: [Select]
ERROR with transaction check vs depsolve:python(abi) = 2.7 is needed by python2-pycurl-
7.44.1-3.oc00.pentium4python27.dll is needed by python2-pycurl-7.44.1-3.oc00.pentium4python(abi) = 2.7 is needed by
(installed) urlgrabber-3.10.1-10.oc00.noarchpython(abi) = 2.7 is needed by (installed) yum-utils-
1.1.31-3.oc00.noarchpython(abi) = 2.7 is needed by (installed) python2-rpm-4.13.0-20.oc00.pentium4python(abi) = 2.7 is
 needed by (installed) yum-3.4.3-14.oc00.pentium4python(abi) = 2.7 is needed by (installed) yum-metadata-parser-
1.1.4-7.oc00.pentium4python27.dll is needed by (installed) python2-rpm-4.13.0-20.oc00.pentium4python27.dll is needed by
 (installed) hplip-libs-3.19.8-3.oc00.pentium4python27.dll is needed by (installed) yum-metadata-parser-
1.1.4-7.oc00.pentium4Please report this error at https://github.com/bitwiseworks/rpm-issues

Regards
« Last Edit: February 25, 2022, 09:16:27 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Andy Willis

  • Sr. Member
  • ****
  • Posts: 292
  • Karma: +7/-0
    • View Profile
Re: RPM: Switching from i686 to Pentium4
« Reply #1 on: February 26, 2022, 05:39:27 am »
I run this script to build a list of installed programs and it builds a cmd script to reinstall them.
It would probably be better to set it all in one install as some of the installs will have the others as dependencies and therefore will already be installed before the script hits that install but it then just says it is already installed at the latest version.
I then rename /usr and /etc and run the yum bootstrap (p4) and run the script created above.
It takes one argument, the name you want to call the script.
Code: [Select]
/* REXX to get just package names from RPM installed output */

rc = SysLoadFuncs()
Parse Arg fileout

rc = SysFileDelete(fileout)
fileinv = holdrpm.txt

address cmd 'yum list |grep install >'fileinv
do while Lines(fileinv)
  text = LineIn(fileinv)
  parse var text package'.'.
  rc = Lineout(fileout,'yum install -y 'package)
end
rc = SysFileDelete(fileinv)

I have not used the output but this makes one install line:
Code: [Select]
/* REXX to get just package names from RPM installed output */

rc = SysLoadFuncs()
Parse Arg fileout

rc = SysFileDelete(fileout)
fileinv = holdrpm.txt

address cmd 'yum list |grep install >'fileinv
list = ''
do while Lines(fileinv)
  text = LineIn(fileinv)
  parse var text package'.'.
  list = list || ' ' || package
end
rc = Lineout(fileout,'yum install -y 'list)
rc = SysFileDelete(fileinv)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM: Switching from i686 to Pentium4
« Reply #2 on: February 26, 2022, 03:12:00 pm »
Thanks Andy

I run the scripts, I have list of installed software and the "yum install -y  arch ..." command it produce to reinstall all things. Nice scripts.

But I got stock here:

I then rename /usr and /etc and run the yum bootstrap (p4) and run the script created above.

What is your method to rename /usr and /etc since it is locked?

I haven't run yum bootstrap in ages, how do you use that? do you download the "rpm-yum-bootstrap-1_5-p4.wpi" file from Netlabs and run that one?

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4786
  • Karma: +99/-1
    • View Profile
Re: RPM: Switching from i686 to Pentium4
« Reply #3 on: February 26, 2022, 04:59:42 pm »
Hi Martin, unlock \usr\lib\dll and maybe kill the odd program like the cups demon.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM: Switching from i686 to Pentium4
« Reply #4 on: February 27, 2022, 03:03:13 pm »
Thanks Dave. The unlock and killing CUPS process worked to rename /usr and /etc.

But now I have the issue that "rpm-yum-bootstrap-1_5-p4.wpi" demands for the Warpin Libc 0.6 runtime to be installed.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM: Switching from i686 to Pentium4
« Reply #5 on: February 27, 2022, 03:17:03 pm »
Hi

I went the other way and installed RPM with ANPM. So I reinstalled ANPM and it installed
http://repos.arcanoae.com/anpm/pentium4/rpm-yum-base-os2-pentium4-2021-10-23.exe

ANPM asked me if I wanted pentium4 or i686, so I got pentium4.

YUM and RPM seems to be working back and seems to be in "pentium4" mode now. Now I will install all the packages.

Regards
« Last Edit: February 27, 2022, 03:45:41 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4786
  • Karma: +99/-1
    • View Profile
Re: RPM: Switching from i686 to Pentium4
« Reply #6 on: February 27, 2022, 06:45:27 pm »
Thanks Dave. The unlock and killing CUPS process worked to rename /usr and /etc.

But now I have the issue that "rpm-yum-bootstrap-1_5-p4.wpi" demands for the Warpin Libc 0.6 runtime to be installed.

Regards

Glad you got it working. It does raise the question whether "rpm-yum-bootstrap-1_5-p4.wpi" would even work without a major hassle updating Python. Perhaps Bitwise should remove it and just rely on ANPM

Lars

  • Hero Member
  • *****
  • Posts: 1271
  • Karma: +65/-0
    • View Profile
Re: RPM: Switching from i686 to Pentium4
« Reply #7 on: March 01, 2022, 03:12:11 pm »
Netlabs has a newer one:

http://rpm.netlabs.org/bootstrap/rpm-yum-bootstrap-1_7-pentium4.zip

It's just not linked from the RPM main page. And it is not a WPI but a ZIP.


Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM: Switching from i686 to Pentium4
« Reply #8 on: March 01, 2022, 10:49:42 pm »
Hi

For the moment I think I completed the process to changing my ArcaOS 5.0.7 VM from i686 to Pentium4 by using ANPM. I think I will write the sequence on the OS2World wiki, just in case I forget about it on the future.

I will also see if I can update the link on the netlabs RPM project too.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

mauro

  • Sr. Member
  • ****
  • Posts: 408
  • Karma: +3/-0
    • View Profile
Re: RPM: Switching from i686 to Pentium4
« Reply #9 on: March 02, 2022, 03:07:43 pm »
Hi

For the moment I think I completed the process to changing my ArcaOS 5.0.7 VM from i686 to Pentium4 by using ANPM. I think I will write the sequence on the OS2World wiki, just in case I forget about it on the future.

I will also see if I can update the link on the netlabs RPM project too.

Regards

Hi Martin, please post the link when done, I'm interested as well.
Thank you

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM: Switching from i686 to Pentium4
« Reply #10 on: March 02, 2022, 05:48:02 pm »
Hi

Here it is what I wrote: "RPM: Switching from i686 to Pentium4"
Please notice it is experimental and it is not "one size fits all".

I also slip this topic from the other thread, even if it was related it took a different path.

Regards
« Last Edit: March 02, 2022, 05:51:28 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: RPM: Switching from i686 to Pentium4
« Reply #11 on: March 02, 2022, 10:15:09 pm »
I don't remember the rest of this thread. But wouldn't it suffice to just update os2-base? That changes the platform.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM: Switching from i686 to Pentium4
« Reply #12 on: March 02, 2022, 11:53:35 pm »
Hi. The issue that I found is that there are some packages that can not be changed from i686 to pentium4 without a reinstall. If I remember correctly you can't upgrade the rpm package to pentium4, an error shows up.

Regards.
« Last Edit: March 03, 2022, 02:11:20 am by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Silvan Scherrer

  • Full Member
  • ***
  • Posts: 200
  • Karma: +1/-0
    • View Profile
Re: RPM: Switching from i686 to Pentium4
« Reply #13 on: March 04, 2022, 08:57:37 am »
I don't remember the rest of this thread. But wouldn't it suffice to just update os2-base? That changes the platform.
Yes it does. And afterwards all new packages get updated to the right arch. Updating all is not needed as it gains nothing. Iirc this was discussed already several Times.
kind regards
Silvan
CTO bww bitwise works GmbH

Please help us with donations, so we can further work on OS/2 based projects. Our Shop is at https://www.bitwiseworks.com/shop/index.php

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM: Switching from i686 to Pentium4
« Reply #14 on: March 04, 2022, 02:18:26 pm »
... Iirc this was discussed already several Times.

Please let me know the links of the discussions.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.