[Slackbuilds-users] geoclue2: wants optional dependencies

Rich Shepard rshepard at appl-ecosys.com
Wed Feb 17 20:52:56 UTC 2021


On Wed, 17 Feb 2021, B Watson wrote:

> Are you sure you didn't run the script with the AVAHI variable set
> in the environment?

B,

Yes.

> 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.

On the SBo page I read,

"avahi is an optional dependency, used for location sharing (by redshift,
for example).  To enable it, use the option AVAHI=yes

   AVAHI=yes ./geoclue2.Slackbuild"

Since I don't want to enable it I did not add AVAHI=yes.

That's also in the README file. I didn't see anything about setting AVAHI=no
or anything else.

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

There's no AVAHI here to export.

If AVAHI is not on the system how would it be in the environment?

My web search showed me that AVAHI is a networking implentation which
enables programs to publish and discover services and hosts running on a
local network. If it's part of core Slackware then it's missing here after
my running 'slackpkg upgrade-all'.

> 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.

When package maintainers write 'to add this option use this in front of the
build script' and I don't want to add it I've always left it off.

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

Worth a try. Command line: AVAHI=no ./geoclue2.SlackBuild &> geoclue2-build.log

Same results. Build log attached.

Thanks,

Rich
-------------- next part --------------
geoclue-2.4.7/
geoclue-2.4.7/.version
geoclue-2.4.7/configure.ac
geoclue-2.4.7/po/
geoclue-2.4.7/po/POTFILES.in
geoclue-2.4.7/po/Makefile.in.in
geoclue-2.4.7/po/POTFILES.skip
geoclue-2.4.7/po/LINGUAS
geoclue-2.4.7/intltool-extract.in
geoclue-2.4.7/m4/
geoclue-2.4.7/m4/gnome-compiler-flags.m4
geoclue-2.4.7/m4/lt~obsolete.m4
geoclue-2.4.7/m4/ltoptions.m4
geoclue-2.4.7/m4/ltsugar.m4
geoclue-2.4.7/m4/libtool.m4
geoclue-2.4.7/m4/intltool.m4
geoclue-2.4.7/m4/ltversion.m4
geoclue-2.4.7/m4/gtk-doc.m4
geoclue-2.4.7/NEWS
geoclue-2.4.7/Makefile.decl
geoclue-2.4.7/src/
geoclue-2.4.7/src/gclue-web-source.c
geoclue-2.4.7/src/gclue-client-interface.c
geoclue-2.4.7/src/gclue-config.c
geoclue-2.4.7/src/gclue-service-manager.c
geoclue-2.4.7/src/gclue-client-info.c
geoclue-2.4.7/src/gclue-3g-tower.h
geoclue-2.4.7/src/geocode-glib/
geoclue-2.4.7/src/geocode-glib/geocode-forward.h
geoclue-2.4.7/src/geocode-glib/geocode-forward.c
geoclue-2.4.7/src/geocode-glib/geocode-glib-private.h
geoclue-2.4.7/src/geocode-glib/geocode-bounding-box.h
geoclue-2.4.7/src/geocode-glib/geocode-location.c
geoclue-2.4.7/src/geocode-glib/geocode-enum-types.c
geoclue-2.4.7/src/geocode-glib/geocode-error.c
geoclue-2.4.7/src/geocode-glib/Makefile.in
geoclue-2.4.7/src/geocode-glib/geocode-glib.h
geoclue-2.4.7/src/geocode-glib/geocode-glib.c
geoclue-2.4.7/src/geocode-glib/geocode-reverse.h
geoclue-2.4.7/src/geocode-glib/geocode-place.c
geoclue-2.4.7/src/geocode-glib/geocode-location.h
geoclue-2.4.7/src/geocode-glib/geocode-place.h
geoclue-2.4.7/src/geocode-glib/geocode-error.h
geoclue-2.4.7/src/geocode-glib/geocode-bounding-box.c
geoclue-2.4.7/src/geocode-glib/Makefile.am
geoclue-2.4.7/src/geocode-glib/geocode-enum-types.h
geoclue-2.4.7/src/geocode-glib/geocode-reverse.c
geoclue-2.4.7/src/gclue-config.h
geoclue-2.4.7/src/gclue-nmea-source.h
geoclue-2.4.7/src/gclue-error.c
geoclue-2.4.7/src/gclue-service-location.c
geoclue-2.4.7/src/gclue-location-interface.c
geoclue-2.4.7/src/gclue-3g.c
geoclue-2.4.7/src/gclue-client-info.h
geoclue-2.4.7/src/compass-interface.h
geoclue-2.4.7/src/net.hadess.SensorProxy.xml
geoclue-2.4.7/src/gclue-nmea-source.c
geoclue-2.4.7/src/wpa_supplicant-interface.h
geoclue-2.4.7/src/wpa_supplicant-interface.c
geoclue-2.4.7/src/gclue-service-client.c
geoclue-2.4.7/src/gclue-modem-gps.c
geoclue-2.4.7/src/gclue-location.c
geoclue-2.4.7/src/Makefile.in
geoclue-2.4.7/src/gclue-wifi.h
geoclue-2.4.7/src/gclue-3g.h
geoclue-2.4.7/src/fi.w1.wpa_supplicant1.xml
geoclue-2.4.7/src/gclue-locator.c
geoclue-2.4.7/src/gclue-compass.c
geoclue-2.4.7/src/gclue-modem-gps.h
geoclue-2.4.7/src/gclue-web-source.h
geoclue-2.4.7/src/gclue-wifi.c
geoclue-2.4.7/src/org.freedesktop.GeoClue2.Manager.xml
geoclue-2.4.7/src/gclue-location-source.c
geoclue-2.4.7/src/gclue-location-interface.h
geoclue-2.4.7/src/agent/
geoclue-2.4.7/src/agent/Makefile.in
geoclue-2.4.7/src/agent/geoclue-agent-interface.c
geoclue-2.4.7/src/agent/org.freedesktop.GeoClue2.Agent.xml
geoclue-2.4.7/src/agent/Makefile.am
geoclue-2.4.7/src/agent/geoclue-agent-interface.h
geoclue-2.4.7/src/gclue-service-location.h
geoclue-2.4.7/src/gclue-mozilla.h
geoclue-2.4.7/src/gclue-locator.h
geoclue-2.4.7/src/gclue-service-client.h
geoclue-2.4.7/src/gclue-compass.h
geoclue-2.4.7/src/gclue-mozilla.c
geoclue-2.4.7/src/gclue-modem-manager.h
geoclue-2.4.7/src/gclue-error.h
geoclue-2.4.7/src/gclue-cdma.h
geoclue-2.4.7/src/compass-interface.c
geoclue-2.4.7/src/gclue-manager-interface.c
geoclue-2.4.7/src/gclue-marshal.list
geoclue-2.4.7/src/Makefile.am
geoclue-2.4.7/src/gclue-marshal.h
geoclue-2.4.7/src/gclue-client-interface.h
geoclue-2.4.7/src/org.freedesktop.GeoClue2.Client.xml
geoclue-2.4.7/src/gclue-modem.h
geoclue-2.4.7/src/gclue-service-manager.h
geoclue-2.4.7/src/gclue-location-source.h
geoclue-2.4.7/src/gclue-marshal.c
geoclue-2.4.7/src/geoclue.pc.in
geoclue-2.4.7/src/org.freedesktop.GeoClue2.Location.xml
geoclue-2.4.7/src/gclue-location.h
geoclue-2.4.7/src/gclue-modem-manager.c
geoclue-2.4.7/src/gclue-modem.c
geoclue-2.4.7/src/gclue-manager-interface.h
geoclue-2.4.7/src/gclue-cdma.c
geoclue-2.4.7/src/gclue-main.c
geoclue-2.4.7/public-api/
geoclue-2.4.7/public-api/gclue-enum-types.c
geoclue-2.4.7/public-api/gclue-enums.h
geoclue-2.4.7/public-api/Makefile.in
geoclue-2.4.7/public-api/gclue-enum-types.h
geoclue-2.4.7/public-api/Makefile.am
geoclue-2.4.7/config.h.in
geoclue-2.4.7/aclocal.m4
geoclue-2.4.7/Makefile.in
geoclue-2.4.7/demo/
geoclue-2.4.7/demo/where-am-i.c
geoclue-2.4.7/demo/gclue-service-agent.h
geoclue-2.4.7/demo/geoclue-demo-agent.desktop.in.in
geoclue-2.4.7/demo/Makefile.in
geoclue-2.4.7/demo/agent.c
geoclue-2.4.7/demo/Makefile.am
geoclue-2.4.7/demo/geoclue-where-am-i.desktop.in.in
geoclue-2.4.7/demo/gclue-service-agent.c
geoclue-2.4.7/configure
geoclue-2.4.7/docs/
geoclue-2.4.7/docs/lib/
geoclue-2.4.7/docs/lib/version.xml.in
geoclue-2.4.7/docs/lib/Makefile.in
geoclue-2.4.7/docs/lib/Makefile.am
geoclue-2.4.7/docs/lib/libgeoclue-docs.xml
geoclue-2.4.7/docs/version.xml.in
geoclue-2.4.7/docs/Makefile.in
geoclue-2.4.7/docs/geoclue-docs.xml
geoclue-2.4.7/docs/Makefile.am
geoclue-2.4.7/build-aux/
geoclue-2.4.7/build-aux/install-sh
geoclue-2.4.7/build-aux/config.sub
geoclue-2.4.7/build-aux/compile
geoclue-2.4.7/build-aux/depcomp
geoclue-2.4.7/build-aux/Makefile.in
geoclue-2.4.7/build-aux/ar-lib
geoclue-2.4.7/build-aux/ltmain.sh
geoclue-2.4.7/build-aux/missing
geoclue-2.4.7/build-aux/config.guess
geoclue-2.4.7/build-aux/gclue-enums-template.h
geoclue-2.4.7/build-aux/Makefile.am
geoclue-2.4.7/build-aux/gclue-enums-template.c
geoclue-2.4.7/README
geoclue-2.4.7/gtk-doc.make
geoclue-2.4.7/libgeoclue/
geoclue-2.4.7/libgeoclue/gclue-client.h
geoclue-2.4.7/libgeoclue/gclue-helpers.c
geoclue-2.4.7/libgeoclue/gclue-simple.h
geoclue-2.4.7/libgeoclue/gclue-location.c
geoclue-2.4.7/libgeoclue/Makefile.in
geoclue-2.4.7/libgeoclue/gclue-manager.h
geoclue-2.4.7/libgeoclue/gclue-helpers.h
geoclue-2.4.7/libgeoclue/libgeoclue.pc.in
geoclue-2.4.7/libgeoclue/gclue-manager.c
geoclue-2.4.7/libgeoclue/gclue-client.c
geoclue-2.4.7/libgeoclue/Makefile.am
geoclue-2.4.7/libgeoclue/gclue-simple.c
geoclue-2.4.7/libgeoclue/gclue-location.h
geoclue-2.4.7/libgeoclue/geoclue.h
geoclue-2.4.7/COPYING
geoclue-2.4.7/intltool-update.in
geoclue-2.4.7/Makefile.am
geoclue-2.4.7/data/
geoclue-2.4.7/data/geoclue.service.in
geoclue-2.4.7/data/org.freedesktop.GeoClue2.service.in
geoclue-2.4.7/data/Makefile.in
geoclue-2.4.7/data/org.freedesktop.GeoClue2.Agent.conf.in
geoclue-2.4.7/data/org.freedesktop.GeoClue2.conf.in
geoclue-2.4.7/data/geoclue.conf.in
geoclue-2.4.7/data/Makefile.am
geoclue-2.4.7/COPYING.LIB
geoclue-2.4.7/intltool-merge.in
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking for desktop-file-validate... desktop-file-validate
checking build system type... x86_64-slackware-linux-gnu
checking host system type... x86_64-slackware-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-slackware-linux/bin/ld
checking if the linker (/usr/x86_64-slackware-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-slackware-linux-gnu file names to x86_64-slackware-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-slackware-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-slackware-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.22... yes
checking whether NLS is requested... yes
checking for intltool >= 0.40.0... 0.51.0 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.22.2
checking for XML::Parser... ok
checking for sin in -lm... yes
checking for gtk-doc... yes
checking for gtkdoc-check... gtkdoc-check.test
checking for gtkdoc-check... /usr/bin/gtkdoc-check
checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for GTKDOC_DEPS... yes
checking for GEOCLUE... yes
checking for gobject-introspection... yes
checking for LIBGEOCLUE... yes
checking for ModemManager... yes
checking for NMEA_SOURCE... no
configure: error: Package requirements (
                        avahi-client >= 0.6.10
                        avahi-glib >= 0.6.10) were not met:

No package 'avahi-client' found
No package 'avahi-glib' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables NMEA_SOURCE_CFLAGS
and NMEA_SOURCE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


More information about the SlackBuilds-users mailing list