Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
0a7df077
Unverified
Commit
0a7df077
authored
Feb 10, 2017
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sunweaver-pr/use-rpath-for-nxagent' into 3.6.x
Attributes GH PR #313:
https://github.com/ArcticaProject/nx-libs/pull/313
parents
0a314adf
99c130f1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
48 additions
and
40 deletions
+48
-40
Makefile
Makefile
+18
-17
nxagent.in
bin/nxagent.in
+2
-3
nxproxy.in
bin/nxproxy.in
+2
-2
nxagent.install
debian/nxagent.install
+1
-1
016_nx-X11_install-location.debian.patch
debian/patches/016_nx-X11_install-location.debian.patch
+16
-8
rules
debian/rules
+1
-1
Imake.tmpl
nx-X11/config/cf/Imake.tmpl
+2
-2
X11.rules
nx-X11/config/cf/X11.rules
+2
-2
lnxLib.rules
nx-X11/config/cf/lnxLib.rules
+1
-1
nx-libs.spec
nx-libs.spec
+3
-3
No files found.
Makefile
View file @
0a7df077
...
@@ -9,14 +9,15 @@ COPY_DEREFERENCED=cp -RH
...
@@ -9,14 +9,15 @@ COPY_DEREFERENCED=cp -RH
RM_FILE
=
rm
-f
RM_FILE
=
rm
-f
RM_DIR
=
rmdir
-p
--ignore-fail-on-non-empty
RM_DIR
=
rmdir
-p
--ignore-fail-on-non-empty
ETCDIR_NX
?=
/etc/nxagent
ETCDIR_NX
?=
/etc/nxagent
PREFIX
?=
/usr/local
PREFIX
?=
/usr/local
BINDIR
?=
$(PREFIX)
/bin
BINDIR
?=
$(PREFIX)
/bin
LIBDIR
?=
$(PREFIX)
/lib
LIBDIR
?=
$(PREFIX)
/lib
USRLIBDIR
?=
$(LIBDIR)
SHLIBDIR
?=
$(LIBDIR)
INCLUDEDIR
?=
$(PREFIX)
/include
NXLIBDIR
?=
$(SHLIBDIR)
/nx
NXLIBDIR
?=
$(LIBDIR)
/nx
USRLIBDIR
?=
$(NXLIBDIR)
/X11
CONFIGURE
?=
./configure
INCLUDEDIR
?=
$(PREFIX)
/include
CONFIGURE
?=
./configure
NX_VERSION_MAJOR
=
$(
shell
./version.sh 1
)
NX_VERSION_MAJOR
=
$(
shell
./version.sh 1
)
NX_VERSION_MINOR
=
$(
shell
./version.sh 2
)
NX_VERSION_MINOR
=
$(
shell
./version.sh 2
)
...
@@ -71,7 +72,7 @@ build-full:
...
@@ -71,7 +72,7 @@ build-full:
cd
nxcompshad
&&
autoconf
&&
(${CONFIGURE})
&&
${MAKE}
cd
nxcompshad
&&
autoconf
&&
(${CONFIGURE})
&&
${MAKE}
cd
nx-X11
&&
${MAKE}
World
cd
nx-X11
&&
${MAKE}
World
USRLIBDIR
=
$(USRLIBDIR)
SHLIBDIR
=
$(SHLIBDIR)
cd
nxproxy
&&
autoconf
&&
(${CONFIGURE})
&&
${MAKE}
cd
nxproxy
&&
autoconf
&&
(${CONFIGURE})
&&
${MAKE}
...
@@ -143,13 +144,13 @@ install-full:
...
@@ -143,13 +144,13 @@ install-full:
cp
-a
"
$$
(string_rep "
$$
libpath
" "
$$
libfile
" "
$$
link
")"
"
$$
(string_rep "
$$
libdir
" exports .build-exports)"
;
\
cp
-a
"
$$
(string_rep "
$$
libpath
" "
$$
libfile
" "
$$
link
")"
"
$$
(string_rep "
$$
libdir
" exports .build-exports)"
;
\
done
;
done
;
$(INSTALL_DIR)
$(DESTDIR)$(SHLIBDIR)
$(COPY_SYMLINK)
nx-X11/.build-exports/lib/libNX_X11.so
$(DESTDIR)$(SHLIBDIR)/
$(COPY_SYMLINK)
nx-X11/.build-exports/lib/libNX_X11.so.6
$(DESTDIR)$(SHLIBDIR)/
$(COPY_DEREFERENCED)
nx-X11/.build-exports/lib/libNX_X11.so.6.2
$(DESTDIR)$(SHLIBDIR)/
$(INSTALL_DIR)
$(DESTDIR)$(USRLIBDIR)
$(INSTALL_DIR)
$(DESTDIR)$(USRLIBDIR)
$(COPY_SYMLINK)
nx-X11/.build-exports/lib/libNX_X11.so
$(DESTDIR)$(USRLIBDIR)/
$(INSTALL_SYMLINK)
../../libNX_X11.so.6
$(DESTDIR)$(USRLIBDIR)/libX11.so.6
$(COPY_SYMLINK)
nx-X11/.build-exports/lib/libNX_X11.so.6
$(DESTDIR)$(USRLIBDIR)/
$(INSTALL_SYMLINK)
../../libNX_X11.so.6.2
$(DESTDIR)$(USRLIBDIR)/libX11.so.6.2
$(COPY_DEREFERENCED)
nx-X11/.build-exports/lib/libNX_X11.so.6.2
$(DESTDIR)$(USRLIBDIR)/
$(INSTALL_DIR)
$(DESTDIR)$(USRLIBDIR)/nx-X11
$(INSTALL_SYMLINK)
../libNX_X11.so.6
$(DESTDIR)$(USRLIBDIR)/nx-X11/libX11.so.6
$(INSTALL_SYMLINK)
../libNX_X11.so.6.2
$(DESTDIR)$(USRLIBDIR)/nx-X11/libX11.so.6.2
.
replace.sh;
set
-x;
find
nx-X11/.build-exports/include/{nx*,GL}
-type
d
|
\
.
replace.sh;
set
-x;
find
nx-X11/.build-exports/include/{nx*,GL}
-type
d
|
\
while
read
dirname;
do
\
while
read
dirname;
do
\
...
@@ -185,14 +186,14 @@ uninstall-lite:
...
@@ -185,14 +186,14 @@ uninstall-lite:
$(RM_DIR)
$(DESTDIR)$(NXLIBDIR)/bin/
$(RM_DIR)
$(DESTDIR)$(NXLIBDIR)/bin/
$(RM_FILE)
$(DESTDIR)$(PREFIX)/share/man/man1/*.1
$(RM_FILE)
$(DESTDIR)$(PREFIX)/share/man/man1/*.1
$(RM_FILE)
$(DESTDIR)$(PREFIX)/share/nx/VERSION.nxproxy
$(RM_FILE)
$(DESTDIR)$(PREFIX)/share/nx/VERSION.nxproxy
$(RM_DIR)
$(DESTDIR)$(
NXLIBDIR
)/share/nx/
$(RM_DIR)
$(DESTDIR)$(
PREFIX
)/share/nx/
uninstall-full
:
uninstall-full
:
for
f
in
nxagent
;
do
\
for
f
in
nxagent
;
do
\
$(RM_FILE)
$(DESTDIR)$(BINDIR)
/
$$
f
;
done
$(RM_FILE)
$(DESTDIR)$(BINDIR)
/
$$
f
;
done
$(RM_FILE)
$(DESTDIR)$(PREFIX)/share/nx/VERSION.nxagent
$(RM_FILE)
$(DESTDIR)$(PREFIX)/share/nx/VERSION.nxagent
$(RM_DIR)
$(DESTDIR)$(
NXLIBDIR
)/share/nx/
$(RM_DIR)
$(DESTDIR)$(
PREFIX
)/share/nx/
if
test
-d
nx-X11;
then
\
if
test
-d
nx-X11;
then
\
if
test
-f
nxcompshad/Makefile;
then
${MAKE}
-C
nxcompshad
$@;
fi;
\
if
test
-f
nxcompshad/Makefile;
then
${MAKE}
-C
nxcompshad
$@;
fi;
\
...
...
bin/nxagent.in
View file @
0a7df077
...
@@ -15,11 +15,10 @@
...
@@ -15,11 +15,10 @@
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
# along with this program. If not, see http://www.gnu.org/licenses/.
NX_LIB
S
=
@@NXLIBDIR@@
NX_LIB
DIR
=
@@NXLIBDIR@@
# make sure nxagent starts properly with pam_tmpdir.so being in use
# make sure nxagent starts properly with pam_tmpdir.so being in use
NX_TEMP
=
${
NX_TEMP
:-
/tmp
}
NX_TEMP
=
${
NX_TEMP
:-
/tmp
}
export
NX_TEMP
export
NX_TEMP
export
LD_LIBRARY_PATH
=
@@NXLIBDIR@@-X11/
exec
$NX_LIB
S
/bin/
${
NXAPP
:-
"nxagent"
}
"
$@
"
exec
$NX_LIB
DIR
/bin/
${
NXAPP
:-
"nxagent"
}
"
$@
"
bin/nxproxy.in
View file @
0a7df077
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
# along with this program. If not, see http://www.gnu.org/licenses/.
NX_LIB
S
=
@@NXLIBDIR@@
NX_LIB
DIR
=
@@NXLIBDIR@@
# make sure nxagent starts properly with pam_tmpdir.so being in use
# make sure nxagent starts properly with pam_tmpdir.so being in use
NX_TEMP
=
${
NX_TEMP
:-
/tmp
}
NX_TEMP
=
${
NX_TEMP
:-
/tmp
}
export
NX_TEMP
export
NX_TEMP
exec
$NX_LIB
S
/bin/
${
NXAPP
:
=
"nxproxy"
}
"
$@
"
exec
$NX_LIB
DIR
/bin/
${
NXAPP
:
=
"nxproxy"
}
"
$@
"
debian/nxagent.install
View file @
0a7df077
...
@@ -4,7 +4,7 @@ usr/share/nx/rgb
...
@@ -4,7 +4,7 @@ usr/share/nx/rgb
usr
/
share
/
nx
/
VERSION
.
nxagent
usr
/
share
/
nx
/
VERSION
.
nxagent
usr
/
share
/
man
/
man1
/
nxagent
.
1
*
usr
/
share
/
man
/
man1
/
nxagent
.
1
*
usr
/
lib
/*/nx/bin/nxagent
usr
/
lib
/*/nx/bin/nxagent
usr/lib/*/
nx
-
X11
/
usr/lib/*/
nx
/
X11
/
usr
/
bin
/
nxagent
usr
/
bin
/
nxagent
usr
/
share
/
pixmaps
/
nxagent
.
xpm
usr
/
share
/
pixmaps
/
nxagent
.
xpm
etc
/
nxagent
/
nxagent
.
keyboard
etc
/
nxagent
/
nxagent
.
keyboard
debian/patches/016_nx-X11_install-location.debian.patch
View file @
0a7df077
Description: FHS adaptation for Debian packaging
Description: FHS adaptation for Debian packaging
On Debian, NX libraries and binaries are installed to
Abstract:
/usr/lib/nx.
On Debian, binaries are installed to /usr/<lib>/nx.
.
Also, a fake-libX11 library symlink is placed into
/usr/<lib>/nx/X11.
.
The given paths will be overridden by the Debian packaging
and modified into multi-arch paths.
Forwarded: not-needed
Forwarded: not-needed
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2012-12-31
Last-Update: 2017-02-08
--- a/nx-X11/config/cf/Imake.tmpl
--- a/nx-X11/config/cf/Imake.tmpl
+++ b/nx-X11/config/cf/Imake.tmpl
+++ b/nx-X11/config/cf/Imake.tmpl
@@ -7
49,7 +749
,7 @@
@@ -7
30,7 +730
,7 @@
#define AlternateUsrLibDir YES
#define AlternateUsrLibDir YES
#endif
#endif
#else
#else
-#define UsrLibDir Concat4(/usr/local,/,LibDirName,/nx)
-#define UsrLibDir Concat4(/usr/local,/,LibDirName,/nx
/X11
)
+#define UsrLibDir Concat4(/usr,/,LibDirName,/nx)
+#define UsrLibDir Concat4(/usr,/,LibDirName,/nx
/X11
)
#ifndef AlternateUsrLibDir
#ifndef AlternateUsrLibDir
#define AlternateUsrLibDir NO
#define AlternateUsrLibDir NO
#endif
#endif
@@ -7
67,7 +767
,7 @@
@@ -7
48,7 +748
,7 @@
#define AlternateUsrDataDir YES
#define AlternateUsrDataDir YES
#endif
#endif
#else
#else
...
@@ -26,7 +34,7 @@ Last-Update: 2012-12-31
...
@@ -26,7 +34,7 @@ Last-Update: 2012-12-31
#endif
#endif
--- a/nx-X11/config/cf/site.def
--- a/nx-X11/config/cf/site.def
+++ b/nx-X11/config/cf/site.def
+++ b/nx-X11/config/cf/site.def
@@ -
72,7 +72
,7 @@
@@ -
69,7 +69
,7 @@
#ifdef AfterVendorCF
#ifdef AfterVendorCF
#ifndef ProjectRoot
#ifndef ProjectRoot
...
...
debian/rules
View file @
0a7df077
...
@@ -51,7 +51,7 @@ override_dh_auto_install:
...
@@ -51,7 +51,7 @@ override_dh_auto_install:
override_dh_auto_build:
override_dh_auto_build:
PREFIX=/usr dh_auto_build --parallel -- CDEBUGFLAGS="$(CPPFLAGS) $(CFLAGS)" LOCAL_LDFLAGS="$(LDFLAGS)" SHLIBGLOBALSFLAGS='$(filter-out -pie,$(LDFLAGS))'
SHLIBDIR="$(LIBDIR)"
PREFIX=/usr dh_auto_build --parallel -- CDEBUGFLAGS="$(CPPFLAGS) $(CFLAGS)" LOCAL_LDFLAGS="$(LDFLAGS)" SHLIBGLOBALSFLAGS='$(filter-out -pie,$(LDFLAGS))'
override_dh_strip:
override_dh_strip:
dh_strip -plibnx-x11-6 --dbg-package=libnx-x11-6-dbg
dh_strip -plibnx-x11-6 --dbg-package=libnx-x11-6-dbg
...
...
nx-X11/config/cf/Imake.tmpl
View file @
0a7df077
...
@@ -723,12 +723,12 @@ TCLIBDIR = TclLibDir
...
@@ -723,12 +723,12 @@ TCLIBDIR = TclLibDir
#ifndef UsrLibDir
#ifndef UsrLibDir
#ifdef ProjectRoot
#ifdef ProjectRoot
#define UsrLibDir Concat4(ProjectRoot,/,LibDirName,/nx)
#define UsrLibDir Concat4(ProjectRoot,/,LibDirName,/nx
/X11
)
#ifndef AlternateUsrLibDir
#ifndef AlternateUsrLibDir
#define AlternateUsrLibDir YES
#define AlternateUsrLibDir YES
#endif
#endif
#else
#else
#define UsrLibDir Concat4(/usr/local,/,LibDirName,/nx)
#define UsrLibDir Concat4(/usr/local,/,LibDirName,/nx
/X11
)
#ifndef AlternateUsrLibDir
#ifndef AlternateUsrLibDir
#define AlternateUsrLibDir NO
#define AlternateUsrLibDir NO
#endif
#endif
...
...
nx-X11/config/cf/X11.rules
View file @
0a7df077
...
@@ -39,9 +39,9 @@
...
@@ -39,9 +39,9 @@
#endif
#endif
#ifdef X11ProjectRoot
#ifdef X11ProjectRoot
# define XUsrLibDirPath $(USRLIBDIR)
/nx
:$(XPROJECTROOT)
# define XUsrLibDirPath $(USRLIBDIR):$(XPROJECTROOT)
#else
#else
# define XUsrLibDirPath $(USRLIBDIR)
/nx
# define XUsrLibDirPath $(USRLIBDIR)
#endif
#endif
#ifdef UsrLibDirPath
#ifdef UsrLibDirPath
# undef UsrLibDirPath
# undef UsrLibDirPath
...
...
nx-X11/config/cf/lnxLib.rules
View file @
0a7df077
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#endif
#endif
#ifndef UseRpath
#ifndef UseRpath
#define UseRpath
NO
#define UseRpath
YES
#endif
#endif
#if UseElfFormat
#if UseElfFormat
...
...
nx-libs.spec
View file @
0a7df077
...
@@ -346,7 +346,7 @@ chmod a+x my_configure;
...
@@ -346,7 +346,7 @@ chmod a+x my_configure;
export SHLIBGLOBALSFLAGS="%{__global_ldflags}"
export SHLIBGLOBALSFLAGS="%{__global_ldflags}"
export LOCAL_LDFLAGS="%{__global_ldflags}"
export LOCAL_LDFLAGS="%{__global_ldflags}"
export CDEBUGFLAGS="%{__global_cppflags} %{__global_cflags}"
export CDEBUGFLAGS="%{__global_cppflags} %{__global_cflags}"
make %{?_smp_mflags} CONFIGURE="$PWD/my_configure" PREFIX=%{_prefix} LIBDIR=%{_libdir}
SHLIBDIR=%{_libdir}
make %{?_smp_mflags} CONFIGURE="$PWD/my_configure" PREFIX=%{_prefix} LIBDIR=%{_libdir}
%install
%install
make install \
make install \
...
@@ -515,8 +515,8 @@ rm -r %{buildroot}%{_includedir}/nx-X11/Xtrans
...
@@ -515,8 +515,8 @@ rm -r %{buildroot}%{_includedir}/nx-X11/Xtrans
%{_bindir}/nxagent
%{_bindir}/nxagent
%dir %{_libdir}/nx/bin
%dir %{_libdir}/nx/bin
%{_libdir}/nx/bin/nxagent
%{_libdir}/nx/bin/nxagent
%dir %{_libdir}/nx
-
X11
%dir %{_libdir}/nx
/
X11
%{_libdir}/nx
-
X11/libX11.so*
%{_libdir}/nx
/
X11/libX11.so*
%{_datadir}/pixmaps/nxagent.xpm
%{_datadir}/pixmaps/nxagent.xpm
%dir %{_datadir}/nx
%dir %{_datadir}/nx
%{_datadir}/nx/rgb
%{_datadir}/nx/rgb
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment