Author Topic: RPM Packages - 2025 ( For OS/2 Software in General)  (Read 13271 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
RPM Packages - 2025 ( For OS/2 Software in General)
« on: March 11, 2025, 03:46:25 am »
Hello.

I'm going to create some .rpm packages of OS/2 software that I use, and I would like to share it here. If there is any comment on improvements please let me know.

Regards
« Last Edit: March 12, 2025, 04:49:20 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM Packages - 2025 (Pentium 4)
« Reply #1 on: March 11, 2025, 03:49:38 am »
This is for DataSeeker.

Update: Files Removed. Newer version in following posts.
« Last Edit: March 23, 2025, 09:21:45 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM Packages - 2025 (Pentium 4)
« Reply #2 on: March 11, 2025, 03:53:46 am »
Here it is a simple one for FT.CMD.

« Last Edit: March 11, 2025, 03:51:21 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5355
  • Karma: +127/-1
    • View Profile
Re: RPM Packages - 2025 (Pentium 4)
« Reply #3 on: March 11, 2025, 04:06:25 am »
Hi Martin,
Here it is a simple one for FT.CMD.

Good work. Shouldn't a Rexx script be noarch rather then pentium4?

Remy

  • Hero Member
  • *****
  • Posts: 878
  • Karma: +14/-1
    • View Profile
Re: RPM Packages - 2025 (Pentium 4)
« Reply #4 on: March 11, 2025, 12:19:09 pm »
If interested, you can build a rpm package for AVxCAT  ;)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM Packages - 2025 (Pentium 4)
« Reply #5 on: March 11, 2025, 01:30:07 pm »
Hi Martin,
Here it is a simple one for FT.CMD.

Good work. Shouldn't a Rexx script be noarch rather then pentium4?
Thanks for the feedback.
I think you are right about this. I will fix it tonight.

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

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM Packages - 2025 (Pentium 4)
« Reply #6 on: March 11, 2025, 01:43:36 pm »
Hello Remy
If interested, you can build a rpm package for AVxCAT  ;)
I think it can be interesting to try it.

My issue with OS/2 native software (not ported from other sources), is where to put the files in the FHS structure. (I think it was discussed before). This is it because I want to adhere (as possible) to FHS and not just drop all files to /usr/bin

For DataSeeker I did:
Quote
%files
%{_bindir}/*.exe                               -> all .exe to /usr/bin
%{_bindir}/*.cmd                              -> all .exe to /usr/bin
%{_bindir}/*.dbg                               -> all .dbg to /usr/bin
%{_bindir}/*.nls                                -> all .nls to /usr/bin
%doc *.txt                                         -> all .txt to usr/share/<name of package>/doc
%doc COPYING                                   -> COPYING to usr/share/<name of package>/doc
/@unixroot/usr/share/os2/help/*.hlp    -> all .hlp to /usr/share/os2/help/
   

Usually the unix/linux ported software uses a lo the "/usr/share/<name of the package>" for extra stuff, but it does not work by default on regular OS/2 compiled apps.

And I think that I never learn how to make the RPM to install on C:\Programs\ or any other part of the hard drive. 

Comments are welcome.

Regards
« Last Edit: March 11, 2025, 02:33:17 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Remy

  • Hero Member
  • *****
  • Posts: 878
  • Karma: +14/-1
    • View Profile
Re: RPM Packages - 2025 (Pentium 4)
« Reply #7 on: March 11, 2025, 02:38:14 pm »
Hello Remy
If interested, you can build a rpm package for AVxCAT  ;)
I think it can be interesting to try it.

My issue with OS/2 native software (not ported from other sources), is where to put the files in the FHS structure. (I think it was discussed before)
For DataSeeker I did:
Quote
%files
%{_bindir}/*.exe                               -> all .exe to /usr/bin
%{_bindir}/*.cmd                              -> all .exe to /usr/bin
%{_bindir}/*.dbg                               -> all .dbg to /usr/bin
%{_bindir}/*.nls                                -> all .nls to /usr/bin
%doc *.txt                                         -> all .txt to usr/share/<name of package>/doc
%doc COPYING                                   -> COPYING to usr/share/<name of package>/doc
/@unixroot/usr/share/os2/help/*.hlp    -> all .hlp to /usr/share/os2/help/
   

Usually the unix/linux ported software uses a lo the "/usr/share/<name of the package>" for extra stuff, but it does not work by default on regular OS/2 compiled apps.

And I think that I never learn how to make the RPM to install on C:\Programs\ or any other part of the hard drive. 

Comments are welcome.

Regards

I'll update AVxCAT to allow easy RPM packaging using general @unixroot structure
(allowing subpath under AVxCAT install path or use recommended @unixroot paths when rpm installed for easy rpm packaging)
I'll tell it to ytou as soon it is ready as well destination path.     

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM Packages - 2025 (Pentium 4)
« Reply #8 on: March 11, 2025, 03:31:53 pm »
Hello Dave

Just another question here.

If I have no idea how to the OS/2 program was compiled, like DataSeeker, is it ok to put it on "pentium4"? I personally think it is no harm, but I don't know if it has deeper implications.

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

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM Packages - 2025 (Pentium 4)
« Reply #9 on: March 11, 2025, 03:50:35 pm »
Here it is FT with noarch.
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5355
  • Karma: +127/-1
    • View Profile
Re: RPM Packages - 2025 (Pentium 4)
« Reply #10 on: March 11, 2025, 05:22:00 pm »
Hello Dave

Just another question here.

If I have no idea how to the OS/2 program was compiled, like DataSeeker, is it ok to put it on "pentium4"? I personally think it is no harm, but I don't know if it has deeper implications.

Regards

The only harm is that someone with RPM setup for i686 won't be able to use the RPM. Reasons for using i686 include personal preference but more important, a system that doesn't support SSE[2] due to an old CPU or using an operating system that doesn't support SSE such as Warp 4 or older. I can't remember when our kernel started supporting SSE[2], might have been FP13-15 or a later kernel release.
Also not sure if RPM will work on older versions of OS/2.
The other question is do they need to be P4? IIRC, only GCC supports P4 so other programs could be i686. In theory a P4 system should be able to use i686 RPM's fine.
Edit: Even GCC defaults to i686 or i386 so without passing -march=pentium4 (and hopefully -mtune=generic or i686) most GCC programs can be i686 as well.
« Last Edit: March 11, 2025, 05:23:59 pm by Dave Yeo »

Andi B.

  • Hero Member
  • *****
  • Posts: 911
  • Karma: +16/-2
    • View Profile
Re: RPM Packages - 2025 (Pentium 4)
« Reply #11 on: March 11, 2025, 05:53:29 pm »
I don't think DataSeeker needs more than 686. It's compiled with VAC3.65. But I don't remember if I set any special option. OTOH there was no single report of anyone that it does not work on his system. So maybe even 386 is enough.

Remy

  • Hero Member
  • *****
  • Posts: 878
  • Karma: +14/-1
    • View Profile
Re: RPM Packages - 2025 (Pentium 4)
« Reply #12 on: March 11, 2025, 05:58:52 pm »

Quote
%files
%{_bindir}/*.exe                               -> all .exe to /usr/bin
%{_bindir}/*.cmd                              -> all .exe to /usr/bin
%{_bindir}/*.dbg                               -> all .dbg to /usr/bin
%{_bindir}/*.nls                                -> all .nls to /usr/bin
%doc *.txt                                         -> all .txt to usr/share/<name of package>/doc
%doc COPYING                                   -> COPYING to usr/share/<name of package>/doc
/@unixroot/usr/share/os2/help/*.hlp    -> all .hlp to /usr/share/os2/help/
   


I think that it would be better into:
%doc *.txt                                         -> all .txt to usr/share/doc/<name of package>
%doc COPYING                                   -> COPYING to usr/share/licenses/<name of package>

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: RPM Packages - 2025 (Pentium 4)
« Reply #13 on: March 11, 2025, 11:36:08 pm »
Hello

So, the suggestion for Data Seeker will be to put on 386, mostly for old hardware that uses RPM. I guess it will not produce any problem on modern hardware that it's default platform is pentium4.

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

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5355
  • Karma: +127/-1
    • View Profile
Re: RPM Packages - 2025 (Pentium 4)
« Reply #14 on: March 11, 2025, 11:46:28 pm »
The i386 repository went away long ago, so has to be i686. Shouldn't cause any problems, try installing it after building it. Or build both.