Hi guys, I''ve been trying to get my Xen 4.2 RPMs to build on both EL5 and EL6 systems. I''m just about there but I''ve noticed one issue which I''m not 100% sure of the best way to resolve. /usr/sbin/xend is a simple python launcher that runs fine as is on EL6, but in EL5 it comes up with: # service xend start Starting xend daemon: Unknown option: -s Unknown option: -s usage: /usr/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ... Try `python -h'' for more information. The standard hashbang line for xend is: #!/usr/bin/python -Es EL5 seems to run python 2.4.3 which doesn''t have the -s option. So, what would be the best way to work around this? I could patch out the -s when building the RPMs, however would that have any effect on EL6 systems? -- Steven Haigh Email: netwiz@crc.id.au Web: http://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 Fax: (03) 8338 0299 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
On Sun, 14 Oct 2012, Steven Haigh wrote:> Hi guys, > > I''ve been trying to get my Xen 4.2 RPMs to build on both EL5 and EL6 systems. > I''m just about there but I''ve noticed one issue which I''m not 100% sure of > the best way to resolve. > > /usr/sbin/xend is a simple python launcher that runs fine as is on EL6, but > in EL5 it comes up with: > > # service xend start > Starting xend daemon: Unknown option: -s > Unknown option: -s > usage: /usr/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ... > Try `python -h'' for more information. > > The standard hashbang line for xend is: > #!/usr/bin/python -Es > > EL5 seems to run python 2.4.3 which doesn''t have the -s option.That isn''t a standard xen line, it is a hack I put into the Fedora code to try to get xend to work better with selinux in recent Fedora versions (the switch to systemd might also have been a factor). You can probably safely throw away the xend.selinux.fixes.patch (or that part of it) for EL5 and EL6 as I think the selinux problems came later. Michael Young
On Sun, Oct 14, 2012 at 09:20:04AM +0100, M A Young wrote:> > > On Sun, 14 Oct 2012, Steven Haigh wrote: > > >Hi guys, > > > >I''ve been trying to get my Xen 4.2 RPMs to build on both EL5 and > >EL6 systems. I''m just about there but I''ve noticed one issue which > >I''m not 100% sure of the best way to resolve. > > > >/usr/sbin/xend is a simple python launcher that runs fine as is on > >EL6, but in EL5 it comes up with: > > > ># service xend start > >Starting xend daemon: Unknown option: -s > >Unknown option: -s > >usage: /usr/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ... > >Try `python -h'' for more information. > > > >The standard hashbang line for xend is: > >#!/usr/bin/python -Es > > > >EL5 seems to run python 2.4.3 which doesn''t have the -s option. > > That isn''t a standard xen line, it is a hack I put into the Fedora > code to try to get xend to work better with selinux in recent Fedora > versions (the switch to systemd might also have been a factor). You > can probably safely throw away the xend.selinux.fixes.patch (or that > part of it) for EL5 and EL6 as I think the selinux problems came > later. >For rhel5 you might also want this patch: "libfsimage: add ext4 support for CentOS 5.x": http://xenbits.xen.org/hg/xen-unstable.hg/rev/98e1ba6a672a which adds pygrub ext4 support on el5 using e4fsprogs. -- Pasi