Re: [Emc-developers] Fw: RTAI Package Building Failure
On Tue, 24 Oct 2023 at 23:46, Alec Ari via Emc-developers wrote: > mv debian/linuxcnc/usr/share/doc/linuxcnc/examples > debian/linuxcnc/usr/share/doc/linuxcnc > mv: cannot stat 'debian/linuxcnc/usr/share/doc/linuxcnc/examples': No such > file or directory I found that, though not the "why" it's https://github.com/LinuxCNC/linuxcnc/blob/master/debian/rules.in#L88 I think that the @MAIN_PACKAGE_NAME@ needs to be "/tmp", at least for the RTAI build. (no idea why, though) -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Fw: RTAI Package Building Failure
I am seeing something very strange, there are two files (Master_Documentation and drivers/mb2hal) that keep failing with: make[2]: *** No rule to make target 'depends/drivers/mb2hal.d', needed by 'Makefile'. Stop. make[2]: Leaving directory '/home/andypugh/linuxcnc-dev/src' make[1]: *** [debian/rules:55: override_dh_auto_build-arch] Error 2 And, sure enough, the files don't exist: These files also fail in every language directory too. But always the same two files. andypugh@rm-one:~/linuxcnc-dev$ ls -l src/depends/ drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 code drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 common drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 config drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 drivers drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 examples drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 gcode drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 getting-started drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 gui drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 hal drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 install drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 integrator drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 ladder drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 lathe drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 man1 drwxr-xr-x 2 andypugh andypugh 12288 Oct 25 00:21 man3 drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 man9 -rw-r--r-- 1 andypugh andypugh 1883 Oct 25 00:21 Master_Developer.d -rw-r--r-- 1 andypugh andypugh 0 Oct 25 00:21 Master_Documentation.d.tmp -rw-r--r-- 1 andypugh andypugh 1528 Oct 25 00:21 Master_Getting_Started.d -rw-r--r-- 1 andypugh andypugh 875 Oct 25 00:21 Master_Integrator.d drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 motion drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 plasma drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 remap drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 tooldatabase drwxr-xr-x 2 andypugh andypugh 4096 Oct 25 00:21 user There is a tmp file which isn't getting renamed (but it's also a zero-bytes zombie) -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Fw: RTAI Package Building Failure
I haven't been following the docs issue too closely but this is all dead code from what I gather: debian/configure: while test $# -ne 0; do case "$1" in noauto) BUILD_AUTO=false ;; rtai) BUILD_RTAI=true ;; rtai=*) BUILD_RTAI=true; RTAI_DEV=${1#rtai=} ;; xenomai) BUILD_XENOMAI=true ;; no-docs) unset ENABLE_BUILD_DOCUMENTATION ;; *) echo 1>&2 "Unknown feature: $1"; exit 99 ;; esac shift done So I made this patch: https://github.com/NTULINUX/linuxcnc-rtai-gnu11/commit/aadd9b81ee03b5054774df8ee55fffa6f91381ca Now when I run: ./debian/configure -r nodocs Docs don't get built but the build still fails to due examples missing: # `.../doc/linuxcnc`) because that's where the # `linuxcnc` launcher script looks for them, and that's # inconvenient to change. dh_installdocs --doc-main-package=linuxcnc --package=linuxcnc install -m0755 -d debian/linuxcnc/usr/share/doc/linuxcnc install -p -m0644 debian/copyright debian/linuxcnc/usr/share/doc/linuxcnc/copyright mkdir -p debian/linuxcnc/usr/share/doc/linuxcnc mv debian/linuxcnc/usr/share/doc/linuxcnc/examples debian/linuxcnc/usr/share/doc/linuxcnc mv: cannot stat 'debian/linuxcnc/usr/share/doc/linuxcnc/examples': No such file or directory make[1]: *** [debian/rules:88: override_dh_installdocs-arch] Error 1 make[1]: Leaving directory '/home/ntu/linuxcnc-rtai-gnu11' make: *** [debian/rules:43: binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2 Alec ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Fw: RTAI Package Building Failure
On Tue, 24 Oct 2023 at 01:41, Rod Webster wrote: > > > Still can't build a package, the system really does seem to be > > impossible to persuade to not build docs > > Steffan put a PR forward to enable this the debian way > https://github.com/LinuxCNC/linuxcnc/pull/2647 I can try it, but I am not sure that it will work. It will (I think) only affect override_dh_auto_build-indep: https://github.com/LinuxCNC/linuxcnc/blob/master/debian/rules.in#L57 But I think it still runs override_dh_installdocs-arch: https://github.com/LinuxCNC/linuxcnc/blob/master/debian/rules.in#L81 And here are un-switched docs-related actions also in: override_dh_auto_install-indep: override_dh_installdocs-indep: And even with these commented out, the system _still_ fails, complaining about missing docs packages files. It _really_ doesn't want to make debs without docs. Now, maybe I can change this with parameters to the dpkg-buildpackage command. -uc is right (sign after building) but possibly -T is relevant? -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers