On Friday 26 January 2007 00:01, Kaneri Warren wrote:
> Hi Mark,
>
> I am glad the RPM was a success! If you don't mind, I would like some
> feedback about this guide here:
> http://www.yoper.com/wiki/index.php?title=Developers:RPM_Howto_2.9x%283.0-B
>eta%29
>
Right, seem to be on the wiki now :)
The first place I ended up stuck was here -
" Pre-building the source package
a) Once in the "mach chroot" environment the first command to do is to
change into the BUILD directory. Therefore issue:
cd /usr/src/rpm/BUILD "
On my system, having followed the guide, I found /usr/src/rpm didn't exist -
it was /usr/src/yoper....
Not too hard to find the right path and change the instruction, but perhaps
needs to be clarified? I guess it depends which mach version you have. Mine
is 0.4.7
In the section called creating and running the spec file, I found it much
easier to copy the spec file to /MACH/usr/src/yoper/SPECS and then edit it
from another Konsole as the normal user (i.e not in the build environment or
even as root) with a simple
nano /MACH/usr/src/yoper/SPECS/some.spec
I wasn't sure if it would work or not, but it did :)
It is probably worth pointing out that to run rpmbuild -ba some.spec, you need
to cd into the SPECS directory - I didn't at first and got errors. Possibly I
discovered that because I edited the spec file as above rather than going
into the SPECS dir to do it.
For the validation part, I discovered that I didn't have the rpm building
tools installed, so I couldn't rebuild the src.rpm until I had added them to
my normal working environment - I suspect those who installed tyhe developers
stuff from the cd would be OK, but I simply installed the standard KDE
desktop when I put the Yoper test version on here. So it may be worth
mentioning to users that if they get a message about rpm tools, then they
need to install the relevant package :)
Those were the only little points where I was stuck - and I am pretty much
totally new to this lark, although I have seen mach before and run the
earlier version when it was first introduced.
The guide made it fairly clear how to proceed and I ended up with a couple of
rpms created :) I suspect they are pretty dire - I hope to learn how to make
them more organised later! But I wanted these two files and thought - well,
I might as well see if I can rpm them rather than just building from source
for my own needs.
Mark
_______________________________________________
yoper-dev mailing list
[email protected]
https://morpheus.pingos.org/cgi-bin/mailman/listinfo/yoper-dev