sysui build problem

View: New views
3 Messages — Rating Filter:   Alert me  

sysui build problem

by Bradley Bolen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello.

I get the following build problem in sysui on a Fedora 9 system with RPM version 4.4.2.3.  I found one email chain that looked similar (discussing RPM version 4.6) that suggested prepending "LD_PRELOAD=/lib/libnss3.so" to the rpmbuild command, however I still get the same error.

I am able to successfully build if I comment out the last two lines in /usr/lib/rpm/brp-python-bytecompile that generate the python byte compiled files.  I don't know if this would cause a problem later when I go to execute an application.  I would also prefer my build to run to completion without having this manual step.

Has anyone encountered this before?

Thanks,
Bradley Bolen

build -- version: -

=============
Building module sysui
/usr/OOO310_m11/sysui/desktop/cleanversion
-------------
/usr/OOO310_m11/sysui/desktop/share
-------------
/usr/OOO310_m11/sysui/desktop/redhat
-------------
rm -f /usr/OOO310_m11/sysui/unxlngi6.pro/bin/desktop-integration/openoffice.org-redhat-menus-*
rm: No match.
env LD_PRELOAD=/lib/libnss3.so rpmbuild -bb redhat-menus.spec --define "_rpmdir /usr/OOO310_m11/sysui/unxlngi6.pro/bin/desktop-integration" --define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
                --buildroot /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch \
                --define "_builddir /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org" \
                --define "productname OpenOffice.org" \
                --define "pkgprefix openoffice.org3.1" \
                --define "unixfilename openoffice.org3" \
                --define "iconprefix openofficeorg3" \
                --define "version 3.1" \
                --define "release 9399"
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.92016
+ umask 022
+ cd /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org
+ LANG=C
+ export LANG
+ unset DISPLAY
+ export NO_BRP_STALE_LINK_ERROR=yes
+ NO_BRP_STALE_LINK_ERROR=yes
+ mkdir -p /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch
+ export DESTDIR=/usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch
+ DESTDIR=/usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch
+ export KDEMAINDIR=/usr
+ KDEMAINDIR=/usr
+ export GNOMEDIR=/usr
+ GNOMEDIR=/usr
+ export GNOME_MIME_THEME=hicolor
+ GNOME_MIME_THEME=hicolor
+ ./create_tree.sh
Copying icons ..
Copying GNOME icons ..
Creating legacy mimetype symlinks for GNOME ..
+ mkdir -p /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch/usr/share/applnk-redhat/Office
++ cat launcherlist
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/writer.desktop /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch/usr/share/applnk-redhat/Office/openoffice.org3-writer.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/calc.desktop /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch/usr/share/applnk-redhat/Office/openoffice.org3-calc.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/draw.desktop /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch/usr/share/applnk-redhat/Office/openoffice.org3-draw.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/impress.desktop /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch/usr/share/applnk-redhat/Office/openoffice.org3-impress.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/math.desktop /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch/usr/share/applnk-redhat/Office/openoffice.org3-math.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/base.desktop /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch/usr/share/applnk-redhat/Office/openoffice.org3-base.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/printeradmin.desktop /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch/usr/share/applnk-redhat/Office/openoffice.org3-printeradmin.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/startcenter.desktop /usr/OOO310_m11/sysui/unxlngi6.pro/misc/openoffice.org-redhat-menus-3.1-9399.noarch/usr/share/applnk-redhat/Office/openoffice.org3-startcenter.desktop
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
/usr/OOO310_m11/solver/310/unxlngi6.pro/lib/python/site.py:150: Warning: 'with' will become a reserved keyword in Python 2.6
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/OOO310_m11/solver/310/unxlngi6.pro/lib/python/compileall.py", line 15, in <module>
    import os
  File "/usr/OOO310_m11/solver/310/unxlngi6.pro/lib/python/os.py", line 757
    bs = b""
           ^
SyntaxError: invalid syntax
/usr/OOO310_m11/solver/310/unxlngi6.pro/lib/python/site.py:150: Warning: 'with' will become a reserved keyword in Python 2.6
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/OOO310_m11/solver/310/unxlngi6.pro/lib/python/compileall.py", line 15, in <module>
    import os
  File "/usr/OOO310_m11/solver/310/unxlngi6.pro/lib/python/os.py", line 757
    bs = b""
           ^
SyntaxError: invalid syntax
error: Bad exit status from /var/tmp/rpm-tmp.92016 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.92016 (%install)
dmake:  Error code 1, while making '/usr/OOO310_m11/sysui/unxlngi6.pro/bin/desktop-integration/openoffice.org-redhat-menus-3.1-9399.noarch.rpm'

ERROR: Error 65280 occurred while making /usr/OOO310_m11/sysui/desktop/redhat
rmdir /tmp/4214



     

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: sysui build problem

by Christian Lohmaier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Bradley, *,

On Thu, Jul 9, 2009 at 7:02 PM, Bradley Bolen<bradleybolen@...> wrote:
>
> I get the following build problem in sysui on a Fedora 9 system with RPM version 4.4.2.3.  I found one email chain that looked similar (discussing RPM version 4.6) that suggested prepending "LD_PRELOAD=/lib/libnss3.so" to the rpmbuild command, however I still get the same error.

Another stupid (IMHO of course) change Fedora did to its default configuration.
They now require that python stuff is precompiled everytime. But they
didn't make that configurable.

Neither the python interpreter to run is configurable (although the
actual script that is invoked would handle it as first parameter), nor
can you disable it by some variable like you can for other
os_post_install actions. And the one that is the most stupid about it:
It doesn't even bother to check whether there is python files to
compile in the first place.

I did run into the same problem on the fedora tinderbox. My solution
is to filter out the complete pyhon one from the  _:os_install_post
macro (involves a little trickery because of the mult-line nature of
the property), but more simple is to just disable it completely.
There's nothing to strip, etc. in the desktop-integratoin rpms anyway.
(--define "__os_install_post /bin/true" or similar)

The tinderbox is offline at the moment (due to vacation), so I cannot
post the exact patch. But can do so in about a week

ciao
Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Parent Message unknown Re: sysui build problem

by Bradley Bolen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> but more simple is to just disable it
> completely.
> There's nothing to strip, etc. in the desktop-integratoin
> rpms anyway.
> (--define "__os_install_post /bin/true" or similar)

Thank you, Christian!  This approach worked for me.

Brad


     

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...