Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143277 - nxnode-base-2.0.0 (nx-overlay), fails patching
Summary: nxnode-base-2.0.0 (nx-overlay), fails patching
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo NX Server project
URL:
Whiteboard:
Keywords:
: 143299 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-08 19:04 UTC by Craig
Modified: 2007-03-17 13:16 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of a failed patch during emerge of nxbase-2.0.0 (nxnode.patch.log,11.87 KB, text/plain)
2006-08-08 19:05 UTC, Craig
Details
output of nxspool build (nxspool__build_output.txt,9.45 KB, text/plain)
2006-08-09 12:40 UTC, Francesco Musso
Details
Bugfix for nxcompext-makefile patch (nxcompext-makefile.patch,780 bytes, patch)
2006-09-01 14:41 UTC, Oskari Rauta
Details | Diff
Bugfix for nxnode-base (nxnode-base-2.0.0-r1.ebuild,3.72 KB, application/octet-stream)
2006-09-01 14:47 UTC, Oskari Rauta
Details
nxnode-base-2.0.0-r1.ebuild (nxnode-base-2.0.0-r1.ebuild,3.73 KB, application/octet-stream)
2006-09-01 15:29 UTC, Oskari Rauta
Details
log file for the patching action (nxnode-fix-nxcomp-paths.patch-8911.out,11.39 KB, text/plain)
2006-09-12 13:45 UTC, Leo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig 2006-08-08 19:04:42 UTC
I may be doing this the wrong way, But I was trying to regain the use that the blocking nxssh and nxproxy give with nxnode. (I'm assuming this is the correct thing to do). Upon trying to emerge nxnode (FROM NX OVERLAYS) I received the following error:

 * Applying nxcompext-makefile.patch ...                                                                       [ ok ]
 * Applying nxspool-gcc4.patch ...                                                                                                                     [ ok ]
 * Applying nxnode-fix-nxcomp-paths.patch ...

 * Failed Patch: nxnode-fix-nxcomp-paths.patch !
 *  ( /usr/portage/local/layman/nx/net-misc/nxnode-base/files/2.0.0/nxnode-fix-nxcomp-paths.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/nxnode-base-2.0.0/temp/nxnode-fix-nxcomp-paths.patch-6560.out


!!! ERROR: net-misc/nxnode-base-2.0.0 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_unpack
  ebuild.sh, line 709:   Called src_unpack
  nxnode-base-2.0.0.ebuild, line 71:   Called epatch '/usr/portage/local/layman/nx/net-misc/nxnode-base/files/2.0.0/nxnode-fix-nxcomp-paths.patch'
  eutils.eclass, line 333:   Called die

The contents of the patch logfile are attached. I'm nowhere yet up to speed with patching, so I'll log a bug just in case. My (messy) emerge info: 

 # emerge --info
Portage 2.1.1_pre4-r2 (default-linux/x86/2005.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.12.4
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -mmmx -msse -msse2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /usr/NX/etc /usr/NX/home /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.iinet.net.au/pub/Gentoo/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/vmware /usr/portage/local/layman/nx"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa amarok amd apache2 apm arts asf avi bash-completion berkdb bidi bitmap-fonts bluetooth bzip2 cdda cddb cdio cdparanoia cdr cdrom cgi cli commercial crypt css cups curl dba dbus directfb divx4linux dlloader dri dts dvd dvdr dvdread eds encode esd examples exif expat fam fastcgi fat fbcon fbdev ffmpeg fglrx firefox flac fltk foomaticdb fortran freetype ftp gd gif glut gmail gmailtimestamps gmp gnome gnutls gpgme gpm gstreamer gtk gtk2 hal hardenedphp hpn httpd idn ieee1394 imagemagick imlib irmc isdnlog jack java javascript jikes jit jpeg jpeg2k jpg junit kde kdehiddenvisibility kernel_linux kipi lcms libcaca libclamav libg++ libwww linguas-en_gb live lm_sensors logitech-mouse lzo mad mailbox maildir matroska mhash mjpeg mmx mmx2 mmxext mono motif mozilla mp3 mpeg mpeg2 mpeg4 mplayer mysql nas ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl openssh openssl oss pam pam-mysql pcre pdflib pear perl php pic png pppd procmail python qt qt3 qt4 quicktime readline real reflection reiserfs ruby samba scp sdk sdl session sftp slang snmp snortsame spell spl sse sse2 ssl stream subtitles svg svga tcltk tcpd theora tiff truetype truetype-fonts type1 type1-fonts udev unicode usb userland_GNU v4l vcd vhosts video_cards_nvidia vlm vorbis win32codecs wma wxwindows xcomposite xine xinerama xml xml2 xmms xorg xprint xscreensaver xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

At the moment I have regained full use of NX by emergeing nxssh and nxproxy, but this puts a block in a "-puDv world" so I need to unmerge them at the start of each world update then emerge them again after.
Comment 1 Craig 2006-08-08 19:05:39 UTC
Created attachment 93811 [details]
Output of a failed patch during emerge of nxbase-2.0.0

Added output of patch.
Comment 2 Alexander Skwar 2006-08-09 12:12:02 UTC


The following command gets run to apply the patch:

patch -p0 -g0 -E --no-backup-if-mismatch <
/0b/Gentoo/portage/local-tree/overlays/nx/testing/net-misc/nxnode-base/files/2.0.0/nxnode-fix-nxcomp-paths.patch

When I manually change that to "patch -p1 ...", the patch applies ALMOST:

[10:25:07
vz6tml@dewup-ww02:/0b/Gentoo/portage/tmp/portage/nxnode-base-2.0.0/work] $ sudo
patch -p1 -g0 -E --no-backup-if-mismatch <
/0b/Gentoo/portage/local-tree/overlays/nx/testing/net-misc/nxnode-base/files/2.0.0/nxnode-fix-nxcomp-paths.patch
Password:
patching file nx-X11/lib/X11/Imakefile
patching file nx-X11/programs/Xserver/Imakefile
patching file nx-X11/programs/Xserver/hw/nxagent/Imakefile
patching file nx-X11/programs/Xserver/os/Imakefile
patching file nxcompext/Makefile.in
Hunk #1 FAILED at 31.
1 out of 1 hunk FAILED -- saving rejects to file nxcompext/Makefile.in.rej

See attachment (id=93832)   for Makefile.in.rej
Comment 3 Alexander Skwar 2006-08-09 12:12:57 UTC
*** Bug 143299 has been marked as a duplicate of this bug. ***
Comment 4 Francesco Musso 2006-08-09 12:40:12 UTC
Created attachment 93865 [details]
output of nxspool build
Comment 5 Francesco Musso 2006-08-09 12:40:59 UTC
The patching of nxcompext/Makefile.in fails because the patch file nxnode-fix-nxcomp-paths.patch IS NOT up to date with the patching that already occurred in the nxcompext-makefile.patch (regarding compiler flags for the CXXFLAGS var).

However fixing this by updating the patch and 
then doing 

ebuild /usr/local/overlays/nx/net-misc/nxnode-base/nxnode-base-2.0.0.ebuild digest
ebuild /usr/local/overlays/nx/net-misc/nxnode-base/nxnode-base-2.0.0.ebuild qmerge

fails AGAIN, this time during the building of nxspool :((






How can we get past this?
Is there some obscure dependency or is there a simple way to bypass the building of nxspool for those of us that don't need it?


THANKS
Comment 6 Oskari Rauta 2006-09-01 14:41:18 UTC
Created attachment 95680 [details, diff]
Bugfix for nxcompext-makefile patch


I re-created this patch and now it works, but it must be applied after other patches. Works with 2.0.0-r1 which I uploaded here also.

 -Oskari Rauta
Comment 7 Oskari Rauta 2006-09-01 14:47:24 UTC
Created attachment 95681 [details]
Bugfix for nxnode-base

This is a bugfix to nxnode-base-2.0.0.ebuild.
To properly make it work, you also need to download re-created patch nxcompext-makefile.patch which I also uploaded here. (Attachment 95680 [details, diff])

What's new?
I changed order of patching, now patches are applied succesfully.

After this I encountered earlier here described problem about missing proto.h.
I identified this problem to be caused because proto.h and some other header files need to be generated after make clean or fresh install. Unfortunately makefile doesn't seem to work as these files are not created by ebuld 2.0.0, so I added line

"emake proto_exists || die "Unable to generate prototype headers."

to ebuild just before emake || die "Unable to build nxspool"

This forces generation of headers in case that they are missing.

 -Oskari Rauta
Comment 8 Oskari Rauta 2006-09-01 15:29:02 UTC
Created attachment 95685 [details]
nxnode-base-2.0.0-r1.ebuild

Fixed configuration issue with nxdesktop..

 -Oskari Rauta
Comment 9 Oskari Rauta 2006-09-01 15:57:50 UTC
There still is some issues with esd, hopefully someone will fix these (while compiling, there's notification that esd.h is missing for some components, propably sound will be played anyway, but wouldn't it be nice to get full available functionality?)

Well, now it compiles and installs.
Comment 10 Leo 2006-09-12 13:44:41 UTC
hi all, 
i'm trying to install this package but I only having problems.:-(
if I try the nxnode-base-2.0.0.ebuild here is the problem I get:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
if test -z "" ; then \
   cd `dirname nxpasswd` && \
   ln -s `basename nxpasswd.man` `basename nxpasswd._man`; \
else \
             cpp -undef -traditional  -D__apploaddir__=/usr/lib/X11/app-defaults -D__appmansuffix__=1x -D__filemansuffix__=5x _libmansuffix__=3x -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/usr -D__xconfigfilexorg.conf -D__xconfigdir__=/usr/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 6 8 99 903 | sed 's/ /./g' -e 's/^/Version\\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 6 8 99 903 | sed -e 's/ /./g' -e 's/^/Version /'` X.Org"  \
     < nxpasswd.man | sed -e '/^#  *[0-9][0-9]*  *.*$/d'                        -e '/^#line  *[0-9][0-9]*  *.*$/d'            e '/^[  ]*XCOMM$/s/XCOMM/#/'                    -e '/^[         ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/'                        -e '/^*XHASH/s/XHASH/#/'                      -e '/\@\@$/s/\@\@$/\\/' >nxpasswd._man; \
fi
make[2]: Leaving directory `/var/tmp/portage/nxnode-base-2.0.0/work/nxviewer/nxpasswd'
make[1]: Leaving directory `/var/tmp/portage/nxnode-base-2.0.0/work/nxviewer'

Built nxviewer nxpasswd.

 * econf: updating nx-X11/lib/Xft/config/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating nx-X11/lib/Xft/config/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating nx-X11/lib/fontconfig/config/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating nx-X11/lib/fontconfig/config/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating nx-X11/extras/expat/conftools/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating nx-X11/extras/expat/conftools/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating nx-X11/extras/FreeType/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating nx-X11/extras/FreeType/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating nx-X11/extras/freetype2/builds/unix/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating nx-X11/extras/freetype2/builds/unix/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating nx-X11/programs/xterm/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating nx-X11/programs/xterm/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating nxspool/source/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating nxspool/source/config.sub with /usr/share/gnuconfig/config.sub
 * disabling confcache, binary cannot be found
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --synfdir=/etc --localstatedir=/var/lib --prefix=/usr/NX --mandir=/usr/share/man --sharedir=/usr/share --build=i686-pc-linux-gnu
nxdesktop build configuration script

Target directories:
 --prefix=PREFIX         location for architecture-independent files
 --exec-prefix=EPREFIX   location for architecture-dependent files
 --bindir=BINDIR         location for program binaries [EPREFIX/bin]
 --mandir=MANDIR         location for man pages [PREFIX/man]
 --sharedir=SHAREDIR     location for architecture-independent shared files [PREFIX/share/rdesktop]

Build configuration:
 --with-x=DIR            look for X Window System at DIR/include, DIR/lib
 --with-openssl=DIR      look for OpenSSL at DIR/include, DIR/lib
 --with-egd-socket=PATH  look for Entropy Gathering Daemon socket at PATH
 --with-libvncserver     make rdp2vnc
 --with-libvncserver-config=CMD
                         use CMD as libvncserver-config
 --with-debug            enable protocol debugging output
 --with-debug-kbd        enable debugging of keyboard handling
 --with-debug-rdp5       enable debugging of RDP5 code
 --with-debug-clipboard  enable debugging of clipboard code
 --with-ipv6             enable support for IPv6
 --without-sound         disable support for sound redirection
 --with-sound=ARG        only detect sound-support for "oss" or "esd" or "sun" (and BSD)
 --with-openssl-static   compiles OpenSSL staticly


!!! ERROR: net-misc/nxnode-base-2.0.0 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  nxnode-base-2.0.0.ebuild, line 102:   Called econf '--prefix=/usr/NX' '--mandir=/usr/share/man' '--sharedir=/usr/share'
  ebuild.sh, line 541:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I've also tryed also to install the nxnode-base-2.0.0-r1.ebuild with the patch here but it seems there are some problems with the patch :-(
here is the log

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

* Applying nxnode-fix-nxcomp-paths.patch ...

 * Failed Patch: nxnode-fix-nxcomp-paths.patch !
 *  ( /usr/local/portage/layman/nx/net-misc/nxnode-base/files/2.0.0/nxnode-fix-nxcomp-paths.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/nxnode-base-2.0.0-r1/temp/nxnode-fix-nxcomp-paths.patch-8911.out


!!! ERROR: net-misc/nxnode-base-2.0.0-r1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_unpack
  ebuild.sh, line 711:   Called src_unpack
  nxnode-base-2.0.0-r1.ebuild, line 70:   Called epatch '/usr/local/portage/layman/nx/net-misc/nxnode-base/files/2.0.0/nxnode--nxcomp-paths.patch'
  eutils.eclass, line 341:   Called die

!!! Failed Patch: nxnode-fix-nxcomp-paths.patch!
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'

++++++++++++++++++++++++++++++++++++++++++++++++

for the log see the attached file
Comment 11 Leo 2006-09-12 13:45:34 UTC
Created attachment 96825 [details]
log file for the patching action
Comment 12 Bernard Cafarelli gentoo-dev 2007-03-17 13:16:21 UTC
Overlay NX 2.x stuff is now in net-misc/nx (whith patches that apply cleanly ;) )