SGUG-RSE Porting Guide

Unxmaal

Administrator
Feb 8, 2019
98
60
18
This is an overview for how to port things for RSE.

Prerequisites:

In your homedir on your IRIX host you should see :
~/rpmbuild
~/sgug-rse.git #cloned from sgidev/sgug-rse



Making a new port
Code:
cd ~/rpmbuild
rpm -Uvh http://fedora.mirrors.pair.com/linux/releases/31/Everything/source/tree/Packages/a/auto-destdir-1.11-16.fc31.src.rpm
Now try to build it!

Code:
rpmbuild -ba --undefine=_disable_source_fetch -ba SPECS/auto-destdir.spec
If it builds, sudo install it:

Code:
sudo rpm -Uvh /usr/people/edodd/rpmbuild/RPMS/mips/auto-destdir*.rpm
Adding a working spec to wip

On my IRIX host, in my git checkout "~/sgug-rse.git"

Code:
git checkout wip
cp ~/rpmbuild/SPECS/auto-destdir.spec ~/sgug-rse/packages/auto-destdir/SPECS/.
git add SPECS/auto-destdir.spec
git commit -m "added auto-destdir"
git push origin wip
If you're pushing a bunch of changes that you're not very sure about, you should consider creating your own fork of sgug-rse, creating branches there, then sending us Pull Requests for review.

-------------------------------------------------------------------------------------------------------------------------

Failure Scenario 1: something's wrong in the spec

First, copy the official FC31 spec file to "<packagename>.spec.origfedora" . Include this with your fixed spec.

Typically this happens when you're missing a dep. If you know you have a dep and it's named differently, comment the BuildDep line out; don't delete it.

There could also be a Linuxism, or some other problem.

Generally, please don't delete lines. Comment them out.

Failure Scenario 2: the source needs to be patched.

* cd ~/rpmbuild/SOURCES
* extract foo-bar.1.0.0.tar.gz
* cp -Ra foo-bar.1.0.0 foo-bar.1.0.0.orig
* cd foo-bar.1.0.0/
* Play some code golf!
* cd ~/rpmbuild/SOURCES
* diff -Naur foo-bar.1.0.0.orig foo-bar.1.0.0 > foo-bar.irixfixes.patch

In the spec file, we start our patch numbers at 100:

Code:
Patch100:    foo-bar.irixfixes.patch
You can look at other specs to see how to patch.

I prefer the lazy way
Code:
%autosetup -p1
Write out the spec file, then try to rpmbuild per above. If it works, great!

scp the patch and the spec, then git add, commit and push per above.
 

About us

  • Silicon Graphics User Group (SGUG) is a community for users, developers, and admirers of Silicon Graphics (SGI) products. We aim to be a friendly hobbyist community for discussing all aspects of SGIs, including use, software development, the IRIX Operating System, and troubleshooting, as well as facilitating hardware exchange.

User Menu