#emc-devel | Logs for 2009-07-09

[04:04:47] <mozmck> does comp.g just get renamed to comp and copied on install?
[10:21:07] <t> :[Global Notice] Hi, it seems the EU/US connectivity went for a moment there causing a rather noticable split. It seems stable now but we're investigating the cause. Sorry for the noise and thanks for using freenode! :)
[12:02:25] <jepler> mozmck: comp.g gets preprocessed to comp.py gets copied to comp
[12:11:25] <BigJohnT> looks like a little bug in stepconf http://www.linuxcnc.org/component/option,com_kunena/Itemid,20/func,view/catid,16/id,490/lang,en/
[12:15:02] <jepler> ah crap
[12:15:06] <jepler> probably my fault
[12:15:19] <jepler> I backported something and then didn't test it
[12:17:56] <jepler> probably this can be worked around by turning off the "create symlink" checkbox in stepconf
[12:18:31] <jepler> (huh, and it's wrong in master as well as v2_3_branch)
[12:20:37] <jepler> (after hitting forward once, you reach the page that says 'do you wish to'. it's the checkbox labeled 'create a desktop shortcut (symlink) to configuration files' that should be turned off to work around the bug.
[12:23:04] <CIA-1> EMC: 03jepler 07master * rfe99ee07e9b1 10/src/emc/usr_intf/stepconf/stepconf.py: fix "global name 'machinename' is not defined"
[12:23:05] <CIA-1> EMC: 03jepler 07v2_3_branch * r1ec852f73a1e 10/src/emc/usr_intf/stepconf/stepconf.py: fix "global name 'machinename' is not defined"
[12:23:06] <CIA-1> EMC: 03jepler 07v2_3_branch * rd4a642fcb69e 10/debian/changelog: note new fix
[12:30:16] <BigJohnT> anyone know the link for submitting a patch with git for someone without commit?
[12:31:41] <jepler> git format-patch
[12:31:41] <jepler> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Git#Send_patches_through_e_mail_or_the_web
[12:32:17] <BigJohnT> jepler: thanks, I need to clean my glasses I think :)
[12:32:28] <BigJohnT> I looked right at that page
[12:32:29] <jepler> hmmm, buildbot runtests fails when you left emc running on that machine
[12:32:35] <jepler> BigJohnT: no problem
[12:49:25] <jepler> where are the docs about how waiting for spindle at speed works?
[12:49:40] <cradek> it may be in "emc's interface to hal"
[12:50:23] <jepler> yeah
[13:17:53] <mozmck> jepler: what kind of processing does comp.g go through?
[13:19:13] <jepler> mozmck: it's processed by "yapps"
[13:19:37] <mozmck> I found that Makefile.modinc did not get installed on my system (using make install)
[13:19:57] <jepler> the top part of comp.g isn't python. "yapps" turns the top part into Python code that can parse the grammar specified by that part
[13:20:06] <mozmck> I see.
[13:20:34] <mozmck> Figured out that it was hardcoded to copy to /etc/emc2, which did not exist
[13:20:40] <jepler> $(FILE) Makefile.modinc $(DESTDIR)/etc/emc2
[13:20:59] <mozmck> all the other configs went to /usr/local/etc/emc2
[13:21:24] <mozmck> my question is, should anything go to /usr/local/etc/emc2, or should it all go to /etc/emc2?
[13:21:53] <jepler> it should go in $(sysconfdir)
[13:22:05] <jepler> $(sysconfdir) should be used instead of explicitly referring to /etc or /usr/local/etc
[13:22:34] <jepler> well .. almost everywhere
[13:22:55] <mozmck> sysconfdir is /usr/local/etc in my case. I made a patch to change that, but wasn't sure if maybe everything should go to /etc/emc2 instead regardless where emc2 was installed...
[13:23:29] <jepler> for instance: $(FILE) ../tcl/TkEmc $(DESTDIR)/etc/X11/app-defaults
[13:23:44] <mozmck> yeah, I've seen that.
[13:23:48] <jepler> I'd have to research to find out what, if anything, would make tkemc look in $(sysconfdir) or whether it always looks in /etc for app-defaults
[13:24:27] <mozmck> one reason for my question is that I noticed in the hardy packages all the configs go to /etc/emc2, not /usr/etc/emc2
[13:24:44] <jepler> basically, I only care if "make install" works for making the debian packages with --prefix=/usr --sysconfdir=/etc -- if somebody else cares, he's welcome to be the champion of "make install"
[13:24:50] <mozmck> ...which is where they would go with make install --prefix=/usr
[13:24:52] <jepler> make a package or use run-in-place; anything else will lead to tears
[13:25:06] <jepler> the debian package build specifies --sysconfdir=/etc
[13:26:46] <mozmck> :) well, it all works great here except for the few small things like this that I've found.
[13:26:49] <jepler> in 2.3 the sample configs are moved to ${prefix}/share/doc
[13:27:05] <jepler> you may have leftover files in /etc from a 2.2 install because debian does special things with /etc files
[13:27:10] <mozmck> I see. and the bitmaps?
[13:27:43] <mozmck> I was actually looking at the .deb file to see where things went...
[13:27:44] <jepler> probably more things should be moved out of /etc
[13:28:05] <jepler> were you looking at a 2.3 deb?
[13:28:37] <mozmck> Ok. So then my change to $(FILE) Makefile.modinc $(DESTDIR)$(sysconfdir)/etc/emc2 is good?
[13:28:37] <mozmck> yes
[13:28:39] <jepler> patches that improve "make install" to /usr/local will be considered as long as they don't interfere with working packages
[13:28:58] <jepler> it's good, except that you may have to change comp to know where to look as well -- is the path hardcoded there?
[13:29:32] <jepler> well, and the other question: is Makefile.modinc really an "etc file" or should it be in some other location
[13:29:49] <jepler> it's not a file that it typically makes sense for a user to customize by editing
[13:30:18] <mozmck> ok, the samples in the 2.3 .deb are install in /usr/share/doc/emc2/examples
[13:30:36] <mozmck> Makefile.modinc went to /etc/emc2
[13:31:02] <mozmck> I don't know where it should go.
[13:31:29] <jepler> http://www.pathname.com/fhs/pub/fhs-2.3.html
[13:31:35] <mozmck> comp was looking in /usr/local/etc, it is not hardcoded
[13:32:18] <mozmck> I put a print statement in comp to see where it actually was looking before I moved Makefile.modinc
[13:33:37] <mozmck> only reason I installed to /usr/local is that is the default prefix on debian and ubuntu
[13:34:36] <jepler> boy I am having trouble saying what I mean today
[13:35:06] <jepler> there are at least three things that are getting all mixed up
[13:36:08] <jepler> 1. I think it's fine to fix problems that appear when different paths are given to configure than the ones used when building a package
[13:36:51] <jepler> 2. "etc" (whether it's /etc or /usr/local/etc) is probably the wrong directory for Makefile.modinc to go into anyway; it might make sense to consider that issue at the same time
[13:37:06] <jepler> 3. In your place, I'd use --enable-run-in-place and forget about the problems of installing with --prefix=/usr/local
[13:37:56] <mozmck> :) that's what I got from what you said.
[13:37:58] <jepler> OK
[13:38:02] <jepler> maybe I was clearer than I thought
[13:38:23] <mozmck> maybe I was the one that wasn't clear enough...
[13:38:51] <mozmck> I used make install when I first installed here so I just stayed with it.
[13:39:32] <mozmck> the few minor issues I found I figured I would fix in case someone else was as bull-headed as me and had to use make install :)
[13:39:33] <jepler> (back in the days we first wanted to make ubuntu packages, a couple of us just threw it together with more regard to whether it ran than whether it was right .. prior to that, the equivalent of "--enable-run-in-place" was the only option available; like a lot of things that work, it didn't get the attention it needed after that)
[13:39:55] <jepler> most people are shooting themselves in the foot when they "make install", because they're on ubuntu systems where they've also had a package installed at some point in the past or will at some point in the future
[13:40:15] <mozmck> I haven't had a package here because this is 9.04
[13:40:37] <jepler> "debian/configure -r" or "debian/configure sim", then fakeroot debian/rules binary
[13:40:37] <mozmck> now, my router in the shop uses hardy...
[13:40:42] <jepler> you'll probably get a useful package
[13:40:47] <jepler> but you could just as well use --enable-run-in-place
[13:40:49] <jepler> anyway, bbl
[13:41:07] <mozmck> ok. thanks. bbl
[18:03:32] <micges> there is no mention about 2.3.2 on main linuxcnc.org page
[18:39:44] <alex_joni> micges: that was me hanging behind
[18:39:45] <alex_joni> jas
[18:45:25] <micges> alex_joni: technical question: to make motion consistent (joints_axes3) it must be renamed few of commands, is it ok to do that?
[19:05:01] <alex_joni> micges: not sure
[19:05:09] <alex_joni> it's mostly estetical
[19:05:28] <micges> yep
[19:05:47] <alex_joni> if you feel like working on it, and this is in your way.. I have no problems with it :D
[19:13:03] <alex_joni> micges: sourceforge & linuxcnc announcements for 2.3.2 done
[19:13:25] <micges> cool
[19:13:41] <cradek> thanks alex