From jengelh@inai.de  Thu Mar  7 18:25:25 2013
Received: (at submit) by bugs.x2go.org; 7 Mar 2013 17:25:25 +0000
Received: from ares07.inai.de (ares07.inai.de [5.9.24.206])
	by ymir (Postfix) with ESMTPS id 00D495DB0D
	for <submit@bugs.x2go.org>; Thu,  7 Mar 2013 18:25:25 +0100 (CET)
Received: by ares07.inai.de (Postfix, from userid 25121)
	id BFFE696A06C9; Thu,  7 Mar 2013 18:25:24 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by ares07.inai.de (Postfix) with ESMTP id 9F9D696A0684
	for <submit@bugs.x2go.org>; Thu,  7 Mar 2013 18:25:24 +0100 (CET)
Date: Thu, 7 Mar 2013 18:25:24 +0100 (CET)
From: Jan Engelhardt <jengelh@inai.de>
To: submit@bugs.x2go.org
Subject: nx-libs installs into wrong location
Message-ID: <alpine.LNX.2.01.1303071823160.24372@nerf07.vanv.qr>
User-Agent: Alpine 2.01 (LNX 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Package: nx-libs
Version: 3.5.0.17

Installation is done using

make install \
        INSTALL_DIR="install -dm0755" \
        INSTALL_FILE="install -pm0644" \
        INSTALL_PROGRAM="install -pm0755" \
        DESTDIR="/var/tmp/whatever" PREFIX="/usr" \
        NXLIBDIR="/usr/lib64/nx" X2GOLIBDIR="/usr/lib/x2go"

And at the end of the day, rpm notices the following broken link:

[  126s] ERROR: link target doesn't exist (neither in build root nor in
installed sys...
[  126s]   /usr/lib/x2go/bin/x2goagent -> /usr/lib/nx/bin/nxagent

This is because the top-level Makefile does a rather dumb command:

        cd $(DESTDIR)$(X2GOLIBDIR)/bin/ && ln -sf ../../nx/bin/nxagent 
x2goagent

so it creates a pointer to a non-existing target.
