With recently commited fixes, LIRC builds successfully on my system:
OS X 10.10.5
XCode 7.2
During the build, however, clang emits a number of warnings. Rather than try to enumerate them here, refer to the attached build log and search for "warning: ". The warnings include simple code correctness issues (unused variable, unused function, type mismatches), etc.
Also noted is that daemon is deprecated on OS X and has been for ~10 years. On OS X, daemons are run by the launchd system and are prohibited from daemonizing. Since LIRC provides --nodaemon flags, this hasn't been a problem. I doubt Apple will yank out daemon as it would break a lot of multi-platfrom systems. But you never know.
Some of the warnings are quite trivial and some may even be false positivies.
Offered for your consideration.
Most things looks like the can be postponed until next release. However, we have
Could you check if attached patch solves this?
Sorry, no joy.
The configure tests seem to have worked. config.h includes
and
Not sure what the problem is.
Nor am I, but it looks bad. First, can you double-check that plugin/audio.c contains these lines:
Assuming this is OK, can you check if /usr/include/uitil.h contains openpty(...), possibly in a file included from util.h
I confirm that those lines are in plugins/audio.c
/usr/include/util.h includes:
Is it possible that Lirc's own util.h is being found before /usr/include/util.h ?
Ah, what a good catch! This is certainly the issue, stay tuned!
New patches... but this time I have pushed a new macos branch since the patch will not apply cleanly (it's not at the top). Can you check the new macos branch, making a new clone (it's rebased).
I confirm that the code builds (patch no longer applied) and that the plugins/audio.c warning is now gone.
We also have
What this says is that the python3 command isn't available for users. While the build code uses the complete PYTHON as defined by ./configure, the installed tools relies on that the python3 command is available. Enabling the --enable-python3-fix configure option is the simple solution, but might possibly interfere with other packages. Packaging-wise I guess that lirc installing a system-wide pyhton3 command isn't ideal, but I have no other solution. Is there some python dependency which can be used? Can a python3 symlink be installed somewhere else?
Last edit: Alec Leamas 2016-10-20
My port does two steps that I think get around this issue.
1) The port ensures that Python 3.4 is installed. During Lirc's configure stage, the port sets an environment variable to point to it: 'PYTHON=/opt/local/bin/python3.4'.
2) My port changes the shebang line in all of Lirc's python scripts (AFAIK) to reference the MacPorts Python 3.4:
MacPorts uses TCL under the hood. Essentially this does a 'sed' on each of the scripts. The ${pythonbin} variable is set earlier to '/opt/local/bin/python3.4'.
This is a fairly common practise in MacPorts. Unless I've missed some scripts, I think this should work.
BTW, I was able to run the lirc-setup script with a graphical user interface. However, every time I tried to select a configuration, it seemed to come back as missing. Didn't spend much time on it. Once we get the patches worked out, I'll have another try.
OK, that should work. Perhaps we should actually fix this upstream, but let's leave it for now.
BTW, Most of these files are not installed: data2hdwb, data2table, make_rel_symlink(2), check_configs,
Since the package builds I'm closing this one. Please file new for bugs in the MacOS version if required. Thanks for all work!