[RPM] Doomsday 1.9.8 launcher shortcut
Hi!
I build RPM packages for RedHat Enterprise Linux and compatibles (CentOS, Scientific Linux, Oracle Linux, etc.) but I noticed two issues:
1. The "launch-doomsday" script is not installed by "make install". I have to manually install it inside the SPEC file for my RPMs.
2. The "launch-doomsday" script doesn't get the PYTHON variable replaced:
I suppose these two things work on your linux development platform (Debian/Ubuntu?) but in my opinion, these issues should be reviewed since clearly it doesn't work in RedHat (at least).
Edit: The SB_DIR variable is also not replaced (see above the cat of the file)
Thanks!!
I build RPM packages for RedHat Enterprise Linux and compatibles (CentOS, Scientific Linux, Oracle Linux, etc.) but I noticed two issues:
1. The "launch-doomsday" script is not installed by "make install". I have to manually install it inside the SPEC file for my RPMs.
2. The "launch-doomsday" script doesn't get the PYTHON variable replaced:
[gpulido@starscream ~]$ /usr/bin/launch-doomsday
bash: /usr/bin/launch-doomsday: PYTHON: bad interpreter: No such file or directory
[gpulido@starscream ~]$ cat /usr/bin/launch-doomsday
#!PYTHON
import os, sys
os.chdir('SB_DIR')
sys.path += '.'
import snowberry
[gpulido@starscream ~]$ uname -a
Linux starscream.cybertron.local 2.6.32-220.17.1.el6.i686 #1 SMP Thu Apr 26 13:37:46 EDT 2012 i686 i686 i386 GNU/Linux
[gpulido@starscream ~]$
I suppose these two things work on your linux development platform (Debian/Ubuntu?) but in my opinion, these issues should be reviewed since clearly it doesn't work in RedHat (at least).
Edit: The SB_DIR variable is also not replaced (see above the cat of the file)
Thanks!!
Comments
Here's the relevant part in build.pro. This takes care of the substitution of "PYTHON" and "SB_DIR" and the installation. Also note that this is only executed if your qmake CONFIG contains deng_snowberry.
Thanks!
I solved it by changing the configure line into this: It seems when the build is made for unix, it builds and installs snowberry with no problem (because deng_snowberry variable is defined for unix config file).
Regards
Mi repos are in http://gapf.insomnia247.nl/ or http://gapf.ninth.su (they are mirrors). Normally I only upload the RPM files because of space limits, but I can publish the SRC RPM and the SPEC files on request.
The RPM files are in http://gapf.insomnia247.nl/el/6/RPMS/ or http://gapf.ninth.su/el/6/RPMS/
Regards.
Regards,
German.