[Slackbuilds-users] geoclue2: wants optional dependencies [RESOLVED]

B Watson yalhcru at gmail.com
Wed Feb 17 19:23:05 UTC 2021


On 2/17/21, Rich Shepard <rshepard at appl-ecosys.com> wrote:
>
> A build log with STDOUT and STDERR redirected to it is attached. While
> geoclue built geoclue2 still will not. It's still looking for:
> configure: error: Package requirements (
>                          avahi-client >= 0.6.10
>                          avahi-glib >= 0.6.10) were not met

Are you sure you didn't run the script with the AVAHI variable set
in the environment? From looking at the SlackBuild, it needs to be
either unset, set to "" (empty), or set to "no" (lowercase), to build
without avahi. If it were set to anything else (including for example
"NO" or "false"), the --disable-nmea-source option doesn't get passed
to configure.

If you're using 'export AVAHI=<value>', you might have a leftover
value in your environment. Use 'unset AVAHI' to clear it out.

Also, you can try forcing the issue with AVAHI="no" in the env. That
should work.

In general, when the README says 'set VARIABLE=value in the
environment', the script specifically looks for 'value',
case-sensitive. 'Value' or 'VALUE' won't match.

Since it looks like you're using the command line to run SlackBuild
scripts, you can do a temporary environment variable setting. Instead
of this:

export AVAHI=no
./avahi.SlackBuild

...which leaves the 'AVAHI=no' in the environment... you can:

AVAHI=no ./avahi.SlackBuild

...which sets AVAHI=no only in the child process (in this case, the
SlackBuild script), not the current shell that was used to run the
command.

The other things you can do: any time you suspect your environment has
junk in it, you can run "env" to see the whole thing. And you can set
it all back to defaults by exiting the shell and logging in again (or
starting up a new X terminal, if that's what you're using).


More information about the SlackBuilds-users mailing list