The new 001_add-main-makefile.full+lite.patch breaks the build here when not running make install as root, e.g. when building a package with make DESTDIR="foo" install:
make[1]: Leaving directory /build/src/nx-libs-3.5.0.16/nx-X11' if test -f bin/Makefile; then make -C bin install; fi make[1]: Entering directory
/build/src/nx-libs-3.5.0.16/bin'
install -d -o root -g root -m 755 /usr/local/lib/x2go/bin/
install: cannot create directory '/usr/local/lib/x2go': Permission denied
make[1]: *** [install] Error 1
This seems to be the cause:
+INSTALL_DIR=install -d -o root -g root -m 755 +INSTALL_FILE=install -o root -g root -m 644 +INSTALL_PROGRAM=install -o root -g root -m 755
-Andy ArchLinux
HI Andy,
please send a tested patch against the tarball of 3.5.0.16. Thanks!
Mike
On Sa 10 Nov 2012 21:58:50 CET Andreas Radke wrote:
The new 001_add-main-makefile.full+lite.patch breaks the build here when not running make install as root, e.g. when building a package with make DESTDIR="foo" install:
make[1]: Leaving directory
/build/src/nx-libs-3.5.0.16/nx-X11' if test -f bin/Makefile; then make -C bin install; fi make[1]: Entering directory
/build/src/nx-libs-3.5.0.16/bin' install -d -o root -g root -m 755 /usr/local/lib/x2go/bin/ install: cannot create directory '/usr/local/lib/x2go': Permission denied make[1]: *** [install] Error 1This seems to be the cause:
+INSTALL_DIR=install -d -o root -g root -m 755 +INSTALL_FILE=install -o root -g root -m 644 +INSTALL_PROGRAM=install -o root -g root -m 755
-Andy ArchLinux
X2Go-Dev mailing list X2Go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
--
DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
On Saturday 2012-11-10 22:25, Mike Gabriel wrote:
please send a tested patch against the tarball of 3.5.0.16. Thanks!
The new 001_add-main-makefile.full+lite.patch breaks the build here when not running make install as root, e.g. when building a package with make DESTDIR="foo" install:
make[1]: Leaving directory `/build/src/nx-libs-3.5.0.16/nx-X11' if test -f bin/Makefile; then make -C bin install; fi make[1]: Entering directory `/build/src/nx-libs-3.5.0.16/bin' install -d -o root -g root -m 755 /usr/local/lib/x2go/bin/ install: cannot create directory '/usr/local/lib/x2go': Permission denied make[1]: *** [install] Error 1
This seems to be the cause:
+INSTALL_DIR=install -d -o root -g root -m 755 +INSTALL_FILE=install -o root -g root -m 644 +INSTALL_PROGRAM=install -o root -g root -m 755
Yes and no. You mention DESTDIR, and you see that the directory it creates lacks "foo", so it can't be the -o root -g root. ---- Restore broken `make install DESTDIR=`, by adding $(DESTDIR) where necessary, as well as `mkdir -p`. --- bin/Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) Index: nx-libs-3.5.0.16/bin/Makefile =================================================================== --- nx-libs-3.5.0.16.orig/bin/Makefile +++ nx-libs-3.5.0.16/bin/Makefile @@ -17,13 +17,15 @@ X2GOLIBDIR=$(PREFIX)/lib/x2go echo "Nothing to do for $@..." install: - $(INSTALL_DIR) $(X2GOLIBDIR)/bin/ - ln -sf $(NXLIBDIR)/bin/nxagent $(X2GOLIBDIR)/bin/x2goagent - find nx* | while read file; do $(INSTALL_PROGRAM) $$file $(BINDIR)/; done - find x2go* | while read file; do $(INSTALL_PROGRAM) $$file $(BINDIR)/; done + mkdir -p $(DESTDIR)$(X2GOLIBDIR)/bin + $(INSTALL_DIR) $(DESTDIR)$(X2GOLIBDIR)/bin/ + ln -sf $(NXLIBDIR)/bin/nxagent $(DESTDIR)$(X2GOLIBDIR)/bin/x2goagent + mkdir -p $(DESTDIR)$(BINDIR) + find nx* | while read file; do $(INSTALL_PROGRAM) $$file $(DESTDIR)$(BINDIR)/; done + find x2go* | while read file; do $(INSTALL_PROGRAM) $$file $(DESTDIR)$(BINDIR)/; done uninstall: - find nx* | while read file; do rm -f $(BINDIR)/$$file; done - find x2go* | while read file; do rm -f $(BINDIR)/$$file; done - $(RM_FILE) $(X2GOLIBDIR)/bin/x2goagent - $(RM_DIR) $(X2GOLIBDIR)/bin/ + find nx* | while read file; do rm -f $(DESTDIR)$(BINDIR)/$$file; done + find x2go* | while read file; do rm -f $(DESTDIR)$(BINDIR)/$$file; done + $(RM_FILE) $(DESTDIR)$(X2GOLIBDIR)/bin/x2goagent + $(RM_DIR) $(DESTDIR)$(X2GOLIBDIR)/bin/
Hi Jan, hi all packagers, On So 11 Nov 2012 19:39:10 CET Jan Engelhardt wrote:
On Saturday 2012-11-10 22:25, Mike Gabriel wrote:
please send a tested patch against the tarball of 3.5.0.16. Thanks!
The new 001_add-main-makefile.full+lite.patch breaks the build here when not running make install as root, e.g. when building a package with make DESTDIR="foo" install:
make[1]: Leaving directory `/build/src/nx-libs-3.5.0.16/nx-X11' if test -f bin/Makefile; then make -C bin install; fi make[1]: Entering directory `/build/src/nx-libs-3.5.0.16/bin' install -d -o root -g root -m 755 /usr/local/lib/x2go/bin/ install: cannot create directory '/usr/local/lib/x2go': Permission denied make[1]: *** [install] Error 1
This seems to be the cause:
+INSTALL_DIR=install -d -o root -g root -m 755 +INSTALL_FILE=install -o root -g root -m 644 +INSTALL_PROGRAM=install -o root -g root -m 755
Yes and no. You mention DESTDIR, and you see that the directory it creates lacks "foo", so it can't be the -o root -g root.
Restore broken `make install DESTDIR=`, by adding $(DESTDIR) where necessary, as well as `mkdir -p`.
bin/Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-)
Index: nx-libs-3.5.0.16/bin/Makefile
--- nx-libs-3.5.0.16.orig/bin/Makefile +++ nx-libs-3.5.0.16/bin/Makefile @@ -17,13 +17,15 @@ X2GOLIBDIR=$(PREFIX)/lib/x2go echo "Nothing to do for $@..."
install:
- $(INSTALL_DIR) $(X2GOLIBDIR)/bin/
- ln -sf $(NXLIBDIR)/bin/nxagent $(X2GOLIBDIR)/bin/x2goagent
- find nx* | while read file; do $(INSTALL_PROGRAM) $$file $(BINDIR)/; done
- find x2go* | while read file; do $(INSTALL_PROGRAM) $$file $(BINDIR)/; done
- mkdir -p $(DESTDIR)$(X2GOLIBDIR)/bin
- $(INSTALL_DIR) $(DESTDIR)$(X2GOLIBDIR)/bin/
- ln -sf $(NXLIBDIR)/bin/nxagent $(DESTDIR)$(X2GOLIBDIR)/bin/x2goagent
- mkdir -p $(DESTDIR)$(BINDIR)
- find nx* | while read file; do $(INSTALL_PROGRAM) $$file $(DESTDIR)$(BINDIR)/; done
- find x2go* | while read file; do $(INSTALL_PROGRAM) $$file $(DESTDIR)$(BINDIR)/; done
uninstall:
- find nx* | while read file; do rm -f $(BINDIR)/$$file; done
- find x2go* | while read file; do rm -f $(BINDIR)/$$file; done
- $(RM_FILE) $(X2GOLIBDIR)/bin/x2goagent
- $(RM_DIR) $(X2GOLIBDIR)/bin/
- find nx* | while read file; do rm -f $(DESTDIR)$(BINDIR)/$$file; done
- find x2go* | while read file; do rm -f $(DESTDIR)$(BINDIR)/$$file; done
- $(RM_FILE) $(DESTDIR)$(X2GOLIBDIR)/bin/x2goagent
- $(RM_DIR) $(DESTDIR)$(X2GOLIBDIR)/bin/
THANKS! Committed: http://code.x2go.org/gitweb?p=nx-libs.git;a=commitdiff;h=5a640efd1002d5fadff... @all-packagers: please send in your patches against the revisited tarball installation method, so that we can quickly release 3.5.0.17 with all your patches in it. Also, if your packages install well again after adapting to the new tarball installer, please report back, so that I can stop waiting for patches and release 3.5.0.17. Mike -- DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148 GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
On Monday 2012-11-12 08:49, Mike Gabriel wrote:
make[1]: Leaving directory
/build/src/nx-libs-3.5.0.16/nx-X11' if test -f bin/Makefile; then make -C bin install; fi make[1]: Entering directory
/build/src/nx-libs-3.5.0.16/bin' install -d -o root -g root -m 755 /usr/local/lib/x2go/bin/ install: cannot create directory '/usr/local/lib/x2go': Permission denied make[1]: *** [install] Error 1[patch]
THANKS! Committed:
@all-packagers: please send in your patches against the revisited tarball installation method, so that we can quickly release 3.5.0.17 with all your patches in it. Also, if your packages install well again after adapting to the new tarball installer, please report back, so that I can stop waiting for patches and release 3.5.0.17.
There's more !@#$% spooky action with nx-libs-3.5.0.16 that I am not happy about. Suddenly it installs into /usr/local and there is no obvious way to make it not do that. I already do
make install PREFIX=/usr PROJECTROOT=/usr
and it still squats in /usr/local.
Hi Jan,
On Mi 14 Nov 2012 20:46:16 CET Jan Engelhardt wrote:
On Monday 2012-11-12 08:49, Mike Gabriel wrote:
make[1]: Leaving directory
/build/src/nx-libs-3.5.0.16/nx-X11' if test -f bin/Makefile; then make -C bin install; fi make[1]: Entering directory
/build/src/nx-libs-3.5.0.16/bin' install -d -o root -g root -m 755 /usr/local/lib/x2go/bin/ install: cannot create directory '/usr/local/lib/x2go': Permission denied make[1]: *** [install] Error 1[patch]
THANKS! Committed:
@all-packagers: please send in your patches against the revisited tarball installation method, so that we can quickly release 3.5.0.17 with all your patches in it. Also, if your packages install well again after
adapting to the new tarball installer, please report back, so that I can stop waiting for patches and release 3.5.0.17.There's more !@#$% spooky action with nx-libs-3.5.0.16 that I am not happy about. Suddenly it installs into /usr/local and there is no obvious way to make it not do that. I already do
make install PREFIX=/usr PROJECTROOT=/usr
and it still squats in /usr/local.
For Debian packaging I patch one file: http://code.x2go.org/gitweb?p=nx-libs.git;a=blob;f=debian/patches/016_nx-X11...
Of course, it would be much nicer to have the tarball much more
configurable, but currently it is a matter of time here.
The last versions installed to /usr/NX3, from my perspective a far
worse location...
Mike
--
DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...