Skip to content

Commit 3051867

Browse files
authored
Merge branch '3.6.x' into mesa_7_7_branch
2 parents 6175f31 + 3731a99 commit 3051867

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+5182
-3739
lines changed

Makefile

Lines changed: 20 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SHLIBDIR ?= $(LIBDIR)
2323
NXLIBDIR ?= $(SHLIBDIR)/nx
2424
USRLIBDIR ?= $(NXLIBDIR)/X11
2525
INCLUDEDIR ?= $(PREFIX)/include
26-
CONFIGURE ?= ./configure --prefix=$(DESTDIR)$(PREFIX) --libexecdir=$(NXLIBDIR)/bin
26+
CONFIGURE ?= ./configure --prefix=$(PREFIX)
2727

2828
# use Xfont2 if available in the build env
2929
FONT_DEFINES ?= $(shell pkg-config --modversion xfont2 1>/dev/null 2>/dev/null && echo "-DHAS_XFONT2")
@@ -61,12 +61,12 @@ NX_XTRANS_HEADERS = \
6161
$(NULL)
6262

6363
%:
64-
if test -f nxcomp/Makefile; then ${MAKE} -C nxcomp $@; fi
65-
if test -f nxproxy/Makefile; then ${MAKE} -C nxproxy $@; fi
64+
if test -f nxcomp/Makefile; then ${MAKE} -C nxcomp "$@"; fi
65+
if test -f nxproxy/Makefile; then ${MAKE} -C nxproxy "$@"; fi
6666
if test -d nx-X11; then \
67-
if test -f nx-X11/lib/Makefile; then ${MAKE} -C nx-X11/lib $@; fi; \
68-
if test -f nxcompshad/Makefile; then ${MAKE} -C nxcompshad $@; fi; \
69-
if test -f nx-X11/Makefile; then ${MAKE} -C nx-X11 $@; fi; \
67+
if test -f nx-X11/lib/Makefile; then ${MAKE} -C nx-X11/lib "$@"; fi; \
68+
if test -f nxcompshad/Makefile; then ${MAKE} -C nxcompshad "$@"; fi; \
69+
if test -f nx-X11/Makefile; then ${MAKE} -C nx-X11 "$@"; fi; \
7070
fi
7171

7272
# clean auto-generated files
@@ -75,8 +75,6 @@ NX_XTRANS_HEADERS = \
7575
rm -Rf nx-X11/extras/Mesa/.pc/; \
7676
rm -f nx-X11/config/cf/nxversion.def; \
7777
rm -f nx-X11/config/cf/date.def; \
78-
rm -f bin/nxagent; \
79-
rm -f bin/nxproxy; \
8078
${MAKE} clean-env; \
8179
fi
8280

@@ -168,30 +166,24 @@ install-lite:
168166
# install nxcomp library
169167
$(MAKE) -C nxcomp install
170168

171-
# install nxproxy wrapper script
172-
$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
173-
sed -e 's|@@NXLIBDIR@@|$(NXLIBDIR)|g' bin/nxproxy.in > bin/nxproxy
174-
$(INSTALL_PROGRAM) bin/nxproxy $(DESTDIR)$(BINDIR)
175-
176169
# install the nxproxy executable and its man page
177170
$(MAKE) -C nxproxy install
178171

179172
install-full:
180-
# install nxagent wrapper script
181-
$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
182-
sed -e 's|@@NXLIBDIR@@|$(NXLIBDIR)|g' bin/nxagent.in > bin/nxagent
183-
$(INSTALL_PROGRAM) bin/nxagent $(DESTDIR)$(BINDIR)
184-
185173
$(MAKE) -C nxcompshad install
186174

175+
$(INSTALL_DIR) $(DESTDIR)$(BINDIR)/bin
176+
$(INSTALL_PROGRAM) nx-X11/programs/Xserver/nxagent $(DESTDIR)$(BINDIR)
177+
187178
$(INSTALL_DIR) $(DESTDIR)$(PREFIX)/share/pixmaps
188179
$(INSTALL_FILE) nx-X11/programs/Xserver/hw/nxagent/nxagent.xpm $(DESTDIR)$(PREFIX)/share/pixmaps
189180

190181
$(INSTALL_DIR) $(DESTDIR)$(PREFIX)/share/nx
191182
$(INSTALL_FILE) nx-X11/programs/Xserver/Xext/SecurityPolicy $(DESTDIR)$(PREFIX)/share/nx
192183

184+
# FIXME: Drop this symlink for 3.6.0. Requires that third party frameworks like X2Go have become aware of this...
193185
$(INSTALL_DIR) $(DESTDIR)$(NXLIBDIR)/bin
194-
$(INSTALL_PROGRAM) nx-X11/programs/Xserver/nxagent $(DESTDIR)$(NXLIBDIR)/bin
186+
$(INSTALL_SYMLINK) $(BINDIR)/nxagent $(DESTDIR)$(NXLIBDIR)/bin/nxagent
195187

196188
$(INSTALL_DIR) $(DESTDIR)$(PREFIX)/share/man/man1/
197189
$(INSTALL_FILE) nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1 $(DESTDIR)$(PREFIX)/share/man/man1/
@@ -242,29 +234,20 @@ uninstall:
242234
[ ! -d nx-X11 ] || $(MAKE) uninstall-full
243235

244236
uninstall-lite:
245-
if test -f nxcomp/Makefile; then ${MAKE} -C nxcomp $@; fi
246-
247-
# uninstall nproxy wrapper script
248-
$(RM_FILE) $(DESTDIR)$(BINDIR)/nxproxy
249-
# FIXME: don't use uninstall rule in nxproxy/Makefile.in, let's do
250-
# it on our own for now...
251-
$(RM_FILE) $(DESTDIR)$(NXLIBDIR)/bin/nxproxy
252-
$(RM_DIR) $(DESTDIR)$(NXLIBDIR)/bin/
253-
$(RM_FILE) $(DESTDIR)$(PREFIX)/share/man/man1/*.1
237+
if test -f nxcomp/Makefile; then ${MAKE} -C nxcomp "$@"; fi
238+
if test -f nxproxy/Makefile; then ${MAKE} -C nxproxy "$@"; fi
239+
254240
$(RM_FILE) $(DESTDIR)$(PREFIX)/share/nx/VERSION.nxproxy
255241
$(RM_DIR) $(DESTDIR)$(PREFIX)/share/nx/
256242

257243
uninstall-full:
258-
for f in nxagent; do \
259-
$(RM_FILE) $(DESTDIR)$(BINDIR)/$$f; done
244+
if test -f nxcompshad/Makefile; then ${MAKE} -C nxcompshad "$@"; fi
245+
if test -f nx-X11/lib/Makefile; then ${MAKE} -C nx-X11/lib "$@"; fi
246+
247+
$(RM_FILE) $(DESTDIR)$(BINDIR)/nxagent
260248

261249
$(RM_FILE) $(DESTDIR)$(PREFIX)/share/nx/VERSION.nxagent
262250
$(RM_DIR) $(DESTDIR)$(PREFIX)/share/nx/
263251

264-
if test -d nx-X11; then \
265-
if test -f nxcompshad/Makefile; then ${MAKE} -C nxcompshad $@; fi; \
266-
if test -f nx-X11/Makefile; then \
267-
if test -d $(NXLIBDIR); then rm -rf $(NXLIBDIR); fi; \
268-
if test -d $(INCLUDEDIR)/nx; then rm -rf $(INCLUDEDIR)/nx; fi; \
269-
fi; \
270-
fi
252+
if test -d $(DESTDIR)$(NXLIBDIR); then rm -rf $(DESTDIR)$(NXLIBDIR); fi
253+
if test -d $(DESTDIR)$(INCLUDEDIR)/nx; then rm -rf $(DESTDIR)$(INCLUDEDIR)/nx; fi

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ The end result is RPMs under ~/result that you can install (or upgrade to) using
136136

137137
Assuming:
138138

139-
1. The current version is 3.5.99* (specified in debian/changelog)
139+
1. The current version is 3.5.99\* (specified in debian/changelog)
140140

141141
Prerequisites:
142142

@@ -150,3 +150,12 @@ debuild -uc -us
150150
cd ..
151151
sudo dpkg -i *3.5.99*.deb
152152
```
153+
154+
## Building on Windows
155+
156+
The only components that can be built on Windows at the time of writing are `nxcomp` and `nxproxy` (with the latter utilizing the former).
157+
158+
**The next section is only relevant for git-based source code builds. Released tarballs do not require special handling.**
159+
160+
Since this project makes use of UNIX-style symlinks, it is imperative to clone the repository using Cygwin's git binary. MSYS(2) git is not able to handle UNIX-style symlinks.
161+
Make sure that all build utilities are Cygwin-based. Non-Cygwin binaries will bail out with errors during the build process or insert garbage.

bin/nxagent.in

Lines changed: 0 additions & 24 deletions
This file was deleted.

bin/nxproxy.in

Lines changed: 0 additions & 24 deletions
This file was deleted.

debian/nxagent.install

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
etc/nxagent/keystrokes.cfg
22
usr/share/nx/VERSION.nxagent
33
usr/share/man/man1/nxagent.1*
4-
usr/lib/*/nx/bin/nxagent
54
usr/lib/*/nx/X11/
65
usr/bin/nxagent
76
usr/share/pixmaps/nxagent.xpm
87
etc/nxagent/nxagent.keyboard
8+
# FIXME: compatibility symlink, drop for 3.6.0 release
9+
usr/lib/*/nx/bin/nxagent

debian/nxproxy.install

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
usr/lib/*/nx/bin/nxproxy
21
usr/bin/nxproxy
32
usr/share/man/man1/nxproxy.1*
43
usr/share/nx/VERSION.nxproxy

0 commit comments

Comments
 (0)