Bug 191705 - security/openconnect: removal of USE_AUTOTOOLS broke build
Summary: security/openconnect: removal of USE_AUTOTOOLS broke build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Tijl Coosemans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-07 15:55 UTC by Lawrence Chen
Modified: 2014-07-07 18:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lawrence Chen 2014-07-07 15:55:09 UTC
FreeBSD 9.2-RELEASE-p7 #0: Tue Jun  3 11:05:13 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC 

/usr/ports/security/openconnect 255# make
===>  License LGPL21 accepted by the user
===>  Found saved configuration for openconnect-5.03_4
===>   openconnect-5.03_4 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by openconnect-5.03_4 for building
===>  Extracting for openconnect-5.03_4
=> SHA256 Checksum OK for openconnect-5.03.tar.gz.
===>  Patching for openconnect-5.03_4
===>  Applying FreeBSD patches for openconnect-5.03_4
===>   openconnect-5.03_4 depends on executable: gmake - found
===>   openconnect-5.03_4 depends on executable: pkgconf - found
===>   openconnect-5.03_4 depends on shared library: libxml2.so - found (/usr/local/lib/libxml2.so.2.9.1)
===>  Configuring for openconnect-5.03_4
configure: loading site script /usr/ports/Templates/config.site
checking pkg-config is at least version 0.9.0... yes
checking build system type... amd64-portbld-freebsd9.2
checking host system type... amd64-portbld-freebsd9.2
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether gmake sets $(MAKE)... yes
checking whether gmake supports nested variables... yes
checking whether gmake supports nested variables... (cached) yes
checking for style of include used by gmake... GNU
checking for gcc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... gcc3
checking for fdevname_r... yes
checking for getline... (cached) yes
checking for strcasestr... yes
checking for asprintf... (cached) yes
checking for supported compiler flags...  -Wall -Wextra -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Werror=pointer-to-int-cast -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wnested-externs -Wpointer-arith -Wwrite-strings
checking for socket... yes
checking for inet_aton... (cached) yes
checking for __android_log_vprint... no
checking for __android_log_vprint in -llog... no
checking for OPENSSL... no
checking for OpenSSL without pkg-config... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for fgrep... (cached) /usr/bin/fgrep
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/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... (cached) 262144
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert amd64-portbld-freebsd9.2 file names to amd64-portbld-freebsd9.2 format... func_convert_file_noop
checking how to convert amd64-portbld-freebsd9.2 file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... cpp
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd9.2 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 if library symbol versioning is available... GNU ld 2.17.50 [FreeBSD] 2007-07-03
  Supported emulations:
   elf_x86_64_fbsd
   elf_i386_fbsd
yes (with --version-script)
checking for LIBXML2... yes
checking for ZLIB... no
checking for zlib without pkg-config... yes
checking if_tun.h usability... no
checking if_tun.h presence... no
checking for if_tun.h... no
checking linux/if_tun.h usability... no
checking linux/if_tun.h presence... no
checking for linux/if_tun.h... no
checking for net/if_tun.h... (cached) yes
checking for ENGINE_by_id() in OpenSSL... yes
checking for dtls1_stop_timer() in OpenSSL... yes
checking for python... /usr/local/bin/python
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating openconnect.pc
config.status: creating po/Makefile
config.status: creating www/Makefile
config.status: creating libopenconnect.map
config.status: creating openconnect.8
config.status: creating www/styles/Makefile
config.status: creating www/inc/Makefile
config.status: creating www/images/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
===>  Building for openconnect-5.03_4
Making all in www
gmake[1]: Entering directory `/usr/ports/security/openconnect/work/openconnect-5.03/www'
 cd .. && /bin/sh /usr/ports/security/openconnect/work/openconnect-5.03/missing automake-1.13 --foreign www/Makefile
/usr/ports/security/openconnect/work/openconnect-5.03/missing: automake-1.13: not found
WARNING: 'automake-1.13' is missing on your system.
         You should only need it if you modified 'Makefile.am' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'automake' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
gmake[1]: *** [Makefile.in] Error 127
gmake[1]: Leaving directory `/usr/ports/security/openconnect/work/openconnect-5.03/www'
gmake: *** [all-recursive] Error 1
*** [do-build] Error code 1

Stop in /usr/ports/security/openconnect.
*** [stage] Error code 1

Stop in /usr/ports/security/openconnect.


===========

Adding back:

USE_AUTOTOOLS= aclocal automake
ACLOCAL_ARGS=  -I .
AUTOMAKE_ARGS= --add-missing

was enough to get build to work again for me. Though the message says autoconf is also needed, perhaps it finds that automatically since all the autotools already exist on my system.

Or the problem is that its automake-1.14 that's already installed on my system that prevented the original build from working.
Comment 1 commit-hook freebsd_committer freebsd_triage 2014-07-07 18:27:19 UTC
A commit references this bug:

Author: tijl
Date: Mon Jul  7 18:26:46 UTC 2014
New revision: 361112
URL: http://svnweb.freebsd.org/changeset/ports/361112

Log:
  - Depend on python to build documentation
  - Apply patch to Makefile.in instead of Makefile.am to avoid autotools

  PR:		191705

Changes:
  head/security/openconnect/Makefile
  head/security/openconnect/files/patch-www_Makefile.am
  head/security/openconnect/files/patch-www__Makefile.in
Comment 2 Tijl Coosemans freebsd_committer freebsd_triage 2014-07-07 18:28:21 UTC
Thanks for the report.  Fixed in r361112.