Re: [Emc-developers] RTAI Package Building Failure

2023-10-22 Thread Alec Ari via Emc-developers
I mostly figured this out, both the docs issue and the module building issue.

As for docs, the `nodocs` option is completely ignored. When I fixed that, I 
get:

# some clean-up
rm -f 
/home/ntu/linuxcnc/debian/tmp/usr/share/doc/linuxcnc/examples/sample-configs/*/*position*.txt
make[1]: Leaving directory '/home/ntu/linuxcnc'
   debian/rules override_dh_installdocs-arch
make[1]: Entering directory '/home/ntu/linuxcnc'
# Sample configs go in `usr/share/doc/linuxcnc` (not
# `.../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'
make: *** [debian/rules:43: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit 
status 2

So I'm leaving the always-on documentation build alone for now.

As for the failing modules, the problem is that when you build LinuxCNC Debian 
packages, you're in the top directory of LinuxCNC, _not_ the src directory. In 
linuxcnc/src/Makefile, the value of M is $(PWD) however when you build Debian 
packages, this value now needs to be M="$(PWD)/src"

How to conditionally set M=$(PWD) vs. M=$(PWD)/src depending on whether 
building a Debian package or not is beyond me, but that's the issue.

Alec


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] RTAI Package Building Failure

2023-10-22 Thread andy pugh
On Mon, 23 Oct 2023 at 00:15, Alec Ari via Emc-developers
 wrote:
>
> One thing to try, revert 3ee51e306bbe93d424dcdcc8429feaf0b9d6ef02

Yes, that looks promising.

> Thanks for the command lines, will dig soon.

You can also try ./debian/configure -r no-docs

(I tried --no-docs and that didn't work, but I am just leaving the
build to it rather than interrupt it and try again)

-- 
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] RTAI Package Building Failure

2023-10-22 Thread Alec Ari via Emc-developers
One thing to try, revert 3ee51e306bbe93d424dcdcc8429feaf0b9d6ef02

Thanks for the command lines, will dig soon.

Alec


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] RTAI Package Building Failure

2023-10-22 Thread andy pugh
On Sun, 22 Oct 2023 at 22:44, Alec Ari via Emc-developers
 wrote:
>
> What on the command line do you pass to trigger building LinuxCNC against 
> RTAI? I'll need the full ./debian/configure stuff and the dpkg-buildpackage 
> strings and whatever else is required. Treat me like I'm a total Debian noob 
> :)

I might be getting there with a whole bunch of links (rather than a
proper fix in the right place) but it's ignored my --no-docs and so
it's going to take a while.


There are only two commands, from the level that contains the debian folder.

./debian/configure -r
dpkg-buildpackage -b -uc


-- 
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] RTAI Package Building Failure

2023-10-22 Thread Alec Ari via Emc-developers
What on the command line do you pass to trigger building LinuxCNC against RTAI? 
I'll need the full ./debian/configure stuff and the dpkg-buildpackage strings 
and whatever else is required. Treat me like I'm a total Debian noob :)

Alec


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] RTAI Package Building Failure

2023-10-22 Thread Alec Ari via Emc-developers
I have hardly any experience writing Debian packages, and the ones for LinuxCNC 
are quite complicated. I will try building your tree on my Debian system soon 
and see if I can help at all. I hope someone else can chime in.

Alec


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] RTAI Package Building Failure

2023-10-22 Thread Andy Pugh


> On 22 Oct 2023, at 21:36, Alec Ari via Emc-developers 
>  wrote:
> 
> As a sanity check, have you done the same to ensure your RTAI environment is 
> all good? Just a quick run-in-place install for testing.

Yes, I have been building and running RIP with RTAI continuously. 

Compiling works fine, it’s (fairly) clearly something not quite right in the 
debian folder. 

___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] RTAI Package Building Failure

2023-10-22 Thread Alec Ari via Emc-developers
I have no idea where your problem might be coming from but I'm guessing it 
might be missing the "M" argument.

i.e.

$(PYTHON) modsilent.py $(MAKE) KBUILD_EXTRA_SYMBOLS=$(moduledir)/Module.symvers 
-C $(KERNELDIR) M=$(PWD) CC=$(CC) V=$(BUILD_VERBOSE) modules

For the record, I have been able to build and run LinuxCNC against RTAI GNU11 
and the new libm-kbuild branch by doing a classic ./configure rip install. Your 
problem must be stemming from the debian/ directory in LinuxCNC. As a sanity 
check, have you done the same to ensure your RTAI environment is all good? Just 
a quick run-in-place install for testing.

Alec


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


[Emc-developers] RTAI Package Building Failure

2023-10-22 Thread andy pugh
I reverted the change which removed the ability to build RTAI packages
(https://github.com/LinuxCNC/linuxcnc/commit/6f285604ac1a1b58b2d65d5904ffec3998a833ef
) and I have created a new branch to build RTAI debs
( https://github.com/LinuxCNC/linuxcnc/tree/andypugh/2.9_rtai )

However I am not getting a successful build:

See: https://paste.debian.net/1295890/

I can see what the issue is, I think. The system uses a Makefile in
usr/src/linux-headers. (KBuild?) to build the modules, and that it
being passed a too-short path:

scripts/Makefile.build:42: /home/andypugh/linuxcnc-dev/Makefile: No
such file or directory

Note that the /src/ is missing from the file path. I have got further
by adding a softlink to the Makefile in that spot, but then it fails
with /objects/

Does anyone know what needs to change to modify that path?

-- 
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] lcnc bug in master?

2023-10-22 Thread gene heskett

On 10/22/23 09:28, Rene Hopf via Emc-developers wrote:



On 16.10.23 00:00, gene heskett wrote:

On 10/14/23 10:17, gene heskett wrote:

On 10/14/23 09:13, Sam Sokolik wrote:
I have actually seen this playing with axis from master on 
bookworm.  At

some point the refresh button in axis just quits working.  You have to
physically re-open the gcode file for the changes to show up.  Then the
refresh button will work for a bit.

I thought it was just me...


https://github.com/LinuxCNC/linuxcnc/issues/2490
could this be related?



Nope, Sam, that green reload button (axis interface) has been funkity 
for quite some time, but seems to have gotten more like tits on a 
boar hog lately. At one point yesterday, I tried it, and got 
different code, that contained 2 lines I had removed from that file 
back in September when I decided to make two different programs out 
of it instead. This was a 30 line file, one operation in a while 
loop. Reloading by filename(menu->open) was the only way I could get 
the results I had just edited into the file, back into lcnc, the 
menu->reload was also getting old code. geany launched from the 
menu->edit.


That really ought to set a flag to do the reload automatically when 
geany exits.


I first thought geany was starting to do gedit's 54 pickup tricks but 
several subsequent cats of the file were correct but lcnc was 
reloading old code.


I just verified this on my sixty40 mill too, I have to use the 
menu->open pulldown to get the code I just edited 30 seconds before.

Cheers, Gene Heskett.


Cheers, Gene Heskett.


And that is still required a/o yesterdays update to master. I still have 
to use file->open  if I want to get the gcode I just edited 20 seconds 
ago.  My conclusion is that there is a cache someplace that is not being 
invalidated by the file->edit call. And only the file->open forces a 
re-read of the dirs contents.  The time lag, is the dir sort as the 
instant files name is vise-screw6.ngc and scrolling to the end in one 
mouse motion is foiled by the need to keep the mouse motion /ON/ the slider.
It would be most appreciated here if that vertical position of the mouse 
was frozen for as long as the button was down, then a single swipe of 
the mouse would move the slider to the end of the listing.  Yeah, I'm a 
picky being and that machines nc_files directory currently has 249 
entries. ;o)>


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] adding library requirement to pyvcp_widgets

2023-10-22 Thread andy pugh
On Sun, 22 Oct 2023 at 13:47, Thomas J Powderly  wrote:

> Any problems with adding importlib?

I don't see any, but I am not really one of the Pythonati.

-- 
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] lcnc bug in master?

2023-10-22 Thread Rene Hopf via Emc-developers



On 16.10.23 00:00, gene heskett wrote:

On 10/14/23 10:17, gene heskett wrote:

On 10/14/23 09:13, Sam Sokolik wrote:

I have actually seen this playing with axis from master on bookworm.  At
some point the refresh button in axis just quits working.  You have to
physically re-open the gcode file for the changes to show up.  Then the
refresh button will work for a bit.

I thought it was just me...


https://github.com/LinuxCNC/linuxcnc/issues/2490
could this be related?



Nope, Sam, that green reload button (axis interface) has been funkity 
for quite some time, but seems to have gotten more like tits on a boar 
hog lately. At one point yesterday, I tried it, and got different 
code, that contained 2 lines I had removed from that file back in 
September when I decided to make two different programs out of it 
instead. This was a 30 line file, one operation in a while loop. 
Reloading by filename(menu->open) was the only way I could get the 
results I had just edited into the file, back into lcnc, the 
menu->reload was also getting old code. geany launched from the 
menu->edit.


That really ought to set a flag to do the reload automatically when 
geany exits.


I first thought geany was starting to do gedit's 54 pickup tricks but 
several subsequent cats of the file were correct but lcnc was 
reloading old code.


I just verified this on my sixty40 mill too, I have to use the 
menu->open pulldown to get the code I just edited 30 seconds before.

Cheers, Gene Heskett.


Cheers, Gene Heskett.



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


[Emc-developers] adding library requirement to pyvcp_widgets

2023-10-22 Thread Thomas J Powderly

Hello

I am working on pyvcp_widgets, esp the bar widget.

I added a 'style' that is extreme simplistic,

its just a single line with a user defined 'thumb'

( thumb is old school for the indicator that moves along the length of the bar )

Anyways, rather than try to guess what shapes to allow,

I added a tag to the xml 'dwgf'

( dwgf for the drawing file, a tkinter polygon designed by user)
for example "emptyDiamond.py"https://lists.sourceforge.net/lists/listinfo/emc-developers