OS/2, eCS & ArcaOS - Technical > Programming

Trying to build my First RPM Package

(1/9) > >>

Martin Iturbide:
Hi.

I'm trying to build my first RPM package for a little game called "RollBall". For the moment it is a very simple installer with one "RollBall.exe" file and one "RollBall.txt" file. That's all.

I had installed "rpm-build" and on the "home" directory created the "rpmbuild" directory structure.  I also created the RollBall.specs file with some samples that Andy Willis provided me.

When I run the "rpmbuild -bb specs\RollBall.spec" command to create the package I get this error:


--- Quote ---+ /@unixroot/usr/lib/rpm/pc/brp-strip-os2 C:\Home/rpmbuild/BUILD/ --no-debuginfo

/@unixroot/var/tmp/rpm-tmp.ykbSb3: 42: /@unixroot/var/tmp/rpm-tmp.ykbSb3: /@unix
root/usr/lib/rpm/pc/: not found
error: Bad exit status from /@unixroot/var/tmp/rpm-tmp.ykbSb3 (%install)


RPM build errors:
    Bad exit status from /@unixroot/var/tmp/rpm-tmp.ykbSb3 (%install)

--- End quote ---

Does anybody knows on which package is the "brp-strip-os2" program? I'm attaching my files in case someone will like to give more comments (constructive comments) about the RollBall.specs file.

Regards

Dave Yeo:
Here, it is in "os2-rpm-build"

Martin Iturbide:
Thanks Dave. I installed it.

I got a different error now.


--- Quote ---+ cp -p RollBall.txt C:/Home/rpmbuild/BUILDROOT/RollBall-1.00-1.oc00.i386/@unixr
oot/usr/share/doc/RollBall-1.00
+ /@unixroot/usr/lib/rpm/brp-compress ./@unixroot
+ /@unixroot/usr/lib/rpm/pc/brp-strip-os2 C:\Home/rpmbuild/BUILD/ --no-debuginfo

SYS1003: The syntax of the command is incorrect.
error: File not found: C:/Home/rpmbuild/BUILDROOT/RollBall-1.00-1.oc00.i386/@uni
xroot/usr/bin/*.exe
+ umask 022
+ export SHELL=/@unixroot/usr/bin/sh.exe
+ export CONFIG_SHELL=/@unixroot/usr/bin/sh.exe
+ export MAKESHELL=/@unixroot/usr/bin/sh.exe
+ cd C:\Home/rpmbuild/BUILD
+ DOCDIR=C:/Home/rpmbuild/BUILDROOT/RollBall-1.00-1.oc00.i386/@unixroot/usr/shar
e/doc/RollBall-1.00
+ export DOCDIR
+ /@unixroot/usr/bin/mkdir.exe -p C:/Home/rpmbuild/BUILDROOT/RollBall-1.00-1.oc0
0.i386/@unixroot/usr/share/doc/RollBall-1.00
+ cp -pr RollBall.txt C:/Home/rpmbuild/BUILDROOT/RollBall-1.00-1.oc00.i386/@unix
root/usr/share/doc/RollBall-1.00
+ exit 0
    File not found: C:/Home/rpmbuild/BUILDROOT/RollBall-1.00-1.oc00.i386/@unixro
ot/usr/bin/*.exe


--- End quote ---

Is there any recommendation so I can capture all the console output?

Any help is welcome to be able to create my first RPM. If there is a different approach to create RPMs is also welcome.

Regards

Dave Yeo:

--- Quote ---Is there any recommendation so I can capture all the console output?
--- End quote ---


--- Code: ---cmd 2>&1 | tee cmd.log
--- End code ---
substituting your executable for cmd.

Herwig Bauernfeind:
There is a logs subdirectory under rpmbuild the complete logs are there.

Navigation

[0] Message Index

[#] Next page

Go to full version