<div dir="ltr"><div dir="ltr">On Wed, Feb 17, 2021 at 1:53 PM Rich Shepard <<a href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 17 Feb 2021, B Watson wrote:<br>
<br>
> Are you sure you didn't run the script with the AVAHI variable set<br>
> in the environment?<br>
<br>
B,<br>
<br>
Yes.<br>
<br>
> From looking at the SlackBuild, it needs to be either unset, set to ""<br>
> (empty), or set to "no" (lowercase), to build without avahi. If it were<br>
> set to anything else (including for example "NO" or "false"), the<br>
> --disable-nmea-source option doesn't get passed to configure.<br>
<br>
On the SBo page I read,<br>
<br>
"avahi is an optional dependency, used for location sharing (by redshift,<br>
for example). To enable it, use the option AVAHI=yes<br>
<br>
AVAHI=yes ./geoclue2.Slackbuild"<br>
<br>
Since I don't want to enable it I did not add AVAHI=yes.<br>
<br>
That's also in the README file. I didn't see anything about setting AVAHI=no<br>
or anything else.<br>
<br>
> If you're using 'export AVAHI=<value>', you might have a leftover<br>
> value in your environment. Use 'unset AVAHI' to clear it out.<br>
<br>
There's no AVAHI here to export.<br>
<br>
If AVAHI is not on the system how would it be in the environment?<br>
<br>
My web search showed me that AVAHI is a networking implentation which<br>
enables programs to publish and discover services and hosts running on a<br>
local network. If it's part of core Slackware then it's missing here after<br>
my running 'slackpkg upgrade-all'.<br>
<br>
> In general, when the README says 'set VARIABLE=value in the<br>
> environment', the script specifically looks for 'value',<br>
> case-sensitive. 'Value' or 'VALUE' won't match.<br>
<br>
When package maintainers write 'to add this option use this in front of the<br>
build script' and I don't want to add it I've always left it off.<br>
<br>
> Also, you can try forcing the issue with AVAHI="no" in the env. That<br>
> should work.<br>
<br>
Worth a try. Command line: AVAHI=no ./geoclue2.SlackBuild &> geoclue2-build.log<br>
<br>
Same results. Build log attached.<br></blockquote><div><br></div><div>I don't know what to tell you. The SlackBuild defaults to disabling nmea unless the AVAHI variable is set to anything other than "no". If it is left unset, nmea is disabled.</div><div><br></div><font face="monospace">avahi_opts='--disable-nmea-source'<br></font><div><font face="monospace">[ "${AVAHI:-no}" != "no" ] && avahi_opts='' </font></div><div><font face="monospace"><br></font></div><div>The only other thing to check would be running the script with bash -x to see everything bash sees when it's running the script. This way it would be able to tell you what happens with the above code block.</div><div><br></div><div>Jeremy</div></div></div>