Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug #432 Attempt to use local libopts to fix Travis CI #433

Merged
merged 14 commits into from
Jan 18, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bug #432 revert to to libopts 41.0.16
  • Loading branch information
fklassen committed Jan 17, 2018
commit 00a7b918014446a58fd8db61470327c5d69eadb8
20 changes: 14 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ AM_WITH_DMALLOC
dnl People building from GitHub need the same version of Autogen as I'm using
dnl or specify --disable-local-libopts to force using source in `libopts/`
dnl directory
MAINTAINER_AUTOGEN_VERSION=5.18.12
MAINTAINER_AUTOGEN_VERSION=5.18.4

AC_CONFIG_MACRO_DIR([m4])

Expand Down Expand Up @@ -196,12 +196,12 @@ if test -n "${AUTOGEN}" ; then
AUTOGEN_MAJOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1)
AUTOGEN_MINOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2)
AUTOGEN_BUILD=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 3)
if (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -eq 18 && test ${AUTOGEN_BUILD} -lt 12) ||
if (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -eq 18 && test ${AUTOGEN_BUILD} -lt 4) ||
(test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 18) ||
test ${AUTOGEN_MAJOR} -lt 5 ; then
AC_MSG_RESULT(no)
if test "x$enable_local_libopts" == "xno"; then
AC_MSG_ERROR([${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Upgrade to 5.18.12 or higher])
AC_MSG_ERROR([${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Upgrade to 5.18.4 or higher])
fi
AUTOGEN_VERSION="${AUTOGEN_VERSION} - downlevel"
else
Expand Down Expand Up @@ -260,18 +260,26 @@ AC_CHECK_TYPE(u_int32_t, uint32_t)
AC_CHECK_TYPE(u_int64_t, uint64_t)

dnl OS X SDK 10.11 throws lots of unnecessary macro warnings
wno_format=""
wno_macro_redefined=""
case $host in
*-apple-darwin*)
AC_MSG_CHECKING(for $CC -Wno-macro-redefined)
OLD_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Wno-macro-redefined"
wno_macro_redefined=""
CFLAGS="$CFLAGS -Wno-macro-redefined -Werror"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h>
int main(int argc, char *argv[]) { return(0); }]])],
[ AC_MSG_RESULT(yes)
wno_macro_redefined="-Wno-macro-redefined" ],
[ AC_MSG_RESULT(no) ])
CFLAGS="$OLD_CFLAGS $wno_macro_redefined"
CFLAGS="$CFLAGS -Wno-format -Werror"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h>
int main(int argc, char *argv[]) { return(0); }]])],
[ AC_MSG_RESULT(yes)
wno_format="-Wno-format" ],
[ AC_MSG_RESULT(no) ])
CFLAGS="$OLD_CFLAGS $wno_format"
;;
esac

Expand Down Expand Up @@ -373,7 +381,7 @@ AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug], [Enable debugging code and support for the -d option]),
[ if test x$enableval = xyes; then
debug=yes
CFLAGS="${USER_CFLAGS} -g -O0 -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros $wno_format_contains_nul"
CFLAGS="${USER_CFLAGS} -g -O0 -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros $wno_format_contains_nul $wno_format"
# We may also want to add:
# -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
debug_flag=DEBUG
Expand Down
2 changes: 1 addition & 1 deletion libopts/COPYING.gplv3
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 1992-2015 by Bruce Korb - all rights reserved
Copyright (C) 1992-2014 by Bruce Korb - all rights reserved
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down
2 changes: 1 addition & 1 deletion libopts/COPYING.lgplv3
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 1992-2015 by Bruce Korb - all rights reserved
Copyright (C) 1992-2014 by Bruce Korb - all rights reserved
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down
1 change: 0 additions & 1 deletion libopts/COPYING.mbsd
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Copyright (C) 1992-2015 by Bruce Korb - all rights reserved
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

Expand Down
12 changes: 6 additions & 6 deletions libopts/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ noinst_LTLIBRARIES = libopts.la
endif
libopts_la_SOURCES = libopts.c
libopts_la_CPPFLAGS = -I$(srcdir)
libopts_la_LDFLAGS = -version-info 41:1:16
libopts_la_LDFLAGS = -version-info 41:0:16
EXTRA_DIST =
BUILT_SOURCES =
MOSTLYCLEANFILES =
Expand Down Expand Up @@ -40,11 +40,11 @@ EXTRA_DIST += \
COPYING.gplv3 COPYING.lgplv3 COPYING.mbsd \
MakeDefs.inc README ag-char-map.h \
alias.c ao-strs.c ao-strs.h \
autoopts.c autoopts.h autoopts/options.h \
autoopts/project.h autoopts/usage-txt.h boolean.c \
check.c compat/_Noreturn.h compat/compat.h \
compat/pathfind.c compat/snprintf.c compat/strchr.c \
compat/strdup.c compat/windows-config.h configfile.c \
autoopts/options.h autoopts/project.h autoopts/usage-txt.h \
autoopts.c autoopts.h boolean.c \
check.c compat/strdup.c compat/snprintf.c \
compat/compat.h compat/_Noreturn.h compat/pathfind.c \
compat/windows-config.h compat/strchr.c configfile.c \
cook.c enum.c env.c \
file.c find.c genshell.c \
genshell.h gettext.h init.c \
Expand Down
2 changes: 1 addition & 1 deletion libopts/README
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ These macros work as follows:

LICENSING:

This material is Copyright (C) 1992-2015 by Bruce Korb. You are
This material is Copyright (C) 1992-2014 by Bruce Korb. You are
licensed to use this under the terms of either the GNU Lesser General
Public License (see: COPYING.lgpl), or, at your option, the modified
Berkeley Software Distribution License (see: COPYING.mbsd). Both of
Expand Down
4 changes: 2 additions & 2 deletions libopts/ag-char-map.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
* 29 bits for 46 character classifications
* generated by char-mapper on 08/29/16 at 14:35:22
* generated by char-mapper on 08/30/14 at 10:36:23
*
* This file contains the character classifications
* used by AutoGen and AutoOpts for identifying tokens.
* The table is static scope, so %guard is empty.
*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
* AutoOpts is Copyright (C) 1992-2016 by Bruce Korb - all rights reserved
* AutoOpts is Copyright (C) 1992-2014 by Bruce Korb - all rights reserved
*
* AutoOpts is available under any one of two licenses. The license
* in use must be one of these two and the choice is under the control
Expand Down
2 changes: 1 addition & 1 deletion libopts/alias.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
* AutoOpts is Copyright (C) 1992-2016 by Bruce Korb - all rights reserved
* AutoOpts is Copyright (C) 1992-2014 by Bruce Korb - all rights reserved
*
* AutoOpts is available under any one of two licenses. The license
* in use must be one of these two and the choice is under the control
Expand Down
Loading