[llvm] r202720 - Add patch level to llvm version in CMake and Autoconf
Tom Stellard
tom at stellard.net
Tue Mar 4 10:42:42 PST 2014
On Tue, Mar 04, 2014 at 07:08:36PM +0100, Laurent Carlier wrote:
> Le lundi 3 mars 2014, 15:22:01 Tom Stellard a écrit :
> > Author: tstellar
> > Date: Mon Mar 3 09:22:00 2014
> > New Revision: 202720
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=202720&view=rev
> > Log:
> > Add patch level to llvm version in CMake and Autoconf
> >
> > The shared library generated by autoconf will now be called
> > libLLVM-$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)$(VERSION_SUFFIX).
> > so and a symlink named
> > libLLVM-$(VERSION_MAJOR).$(VERSION_MINOR)$(VERSION_SUFFIX).so will
> > also be created in the install directory.
> >
> > Modified:
> > llvm/trunk/CMakeLists.txt
> > llvm/trunk/Makefile.config.in
> > llvm/trunk/Makefile.rules
> > llvm/trunk/autoconf/configure.ac
> > llvm/trunk/configure
> > llvm/trunk/include/llvm/Config/config.h.in
> > llvm/trunk/tools/llvm-shlib/Makefile
> >
> > Modified: llvm/trunk/CMakeLists.txt
> > URL:
> > http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=202720&r1
> > =202719&r2=202720&view=diff
> >
> ===========================================================================
> > === --- llvm/trunk/CMakeLists.txt (original)
> > +++ llvm/trunk/CMakeLists.txt Mon Mar 3 09:22:00 2014
> > @@ -27,9 +27,10 @@ set(CMAKE_MODULE_PATH
> >
> > set(LLVM_VERSION_MAJOR 3)
> > set(LLVM_VERSION_MINOR 5)
> > +set(LLVM_VERSION_PATCH 0)
> >
> > if (NOT PACKAGE_VERSION)
> > - set(PACKAGE_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}svn")
> > + set(PACKAGE_VERSION
> > "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}svn")
> > endif()
> >
> > option(LLVM_INSTALL_TOOLCHAIN_ONLY "Only include toolchain files in the
> > 'install' target." OFF) @@ -60,6 +61,7 @@
> > set(CPACK_PACKAGE_INSTALL_DIRECTORY "LLV
> > set(CPACK_PACKAGE_VENDOR "LLVM")
> > set(CPACK_PACKAGE_VERSION_MAJOR ${LLVM_VERSION_MAJOR})
> > set(CPACK_PACKAGE_VERSION_MINOR ${LLVM_VERSION_MINOR})
> > +set(CPACK_PACKAGE_VERSION_PATCH ${LLVM_VERSION_PATCH})
> > set(CPACK_PACKAGE_VERSION ${PACKAGE_VERSION})
> > set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.TXT")
> > if(WIN32 AND NOT UNIX)
> >
> > Modified: llvm/trunk/Makefile.config.in
> > URL:
> > http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.config.in?rev=20272
> > 0&r1=202719&r2=202720&view=diff
> >
> ===========================================================================
> > === --- llvm/trunk/Makefile.config.in (original)
> > +++ llvm/trunk/Makefile.config.in Mon Mar 3 09:22:00 2014
> > @@ -17,6 +17,8 @@ LLVMPackageName := @PACKAGE_TARNAME@
> > LLVMVersion := @PACKAGE_VERSION@
> > LLVM_VERSION_MAJOR := @LLVM_VERSION_MAJOR@
> > LLVM_VERSION_MINOR := @LLVM_VERSION_MINOR@
> > +LLVM_VERSION_PATCH := @LLVM_VERSION_PATCH@
> > +LLVM_VERSION_SUFFIX := @LLVM_VERSION_SUFFIX@
> > LLVM_CONFIGTIME := @LLVM_CONFIGTIME@
> >
> >
> ###########################################################################
> >
> > Modified: llvm/trunk/Makefile.rules
> > URL:
> > http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=202720&r1
> > =202719&r2=202720&view=diff
> >
> ===========================================================================
> > === --- llvm/trunk/Makefile.rules (original)
> > +++ llvm/trunk/Makefile.rules Mon Mar 3 09:22:00 2014
> > @@ -787,7 +787,7 @@ else
> > Ranlib = ranlib
> > endif
> >
> > -AliasTool = ln -s
> > +AliasTool = ln -sf
> >
> > #----------------------------------------------------------
> > # Get the list of source files and compute object file
> > @@ -1151,15 +1151,19 @@ ifdef LIBRARYNAME
> >
> > # Make sure there isn't any extraneous whitespace on the LIBRARYNAME option
> > LIBRARYNAME := $(strip $(LIBRARYNAME))
> > +LIBRARYALIASNAME := $(strip $(LIBRARYALIASNAME))
> > ifdef LOADABLE_MODULE
> > BaseLibName.A := $(LIBRARYNAME).a
> > BaseLibName.SO := $(LIBRARYNAME)$(SHLIBEXT)
> > +BaseAliasName.SO := $(LIBRARYALIASNAME)$(SHLIBEXT)
> > else
> > BaseLibName.A := lib$(LIBRARYNAME).a
> > BaseLibName.SO := $(SharedPrefix)$(LIBRARYNAME)$(SHLIBEXT)
> > +BaseAliasName.SO := $(SharedPrefix)$(LIBRARYALIASNAME)$(SHLIBEXT)
> > endif
> > LibName.A := $(LibDir)/$(BaseLibName.A)
> > LibName.SO := $(SharedLibDir)/$(BaseLibName.SO)
> > +AliasName.SO := $(SharedLibDir)/$(BaseAliasName.SO)
> > LibName.O := $(LibDir)/$(LIBRARYNAME).o
> >
> > #---------------------------------------------------------
> > @@ -1213,12 +1217,17 @@ else
> > DestSharedLibDir := $(DESTDIR)$(PROJ_libdir)
> > endif
> > DestSharedLib := $(DestSharedLibDir)/$(BaseLibName.SO)
> > +DestSharedAlias := $(DestSharedLibDir)/$(BaseAliasName.SO)
> >
> > install-local:: $(DestSharedLib)
> >
> > $(DestSharedLib): $(LibName.SO) $(DestSharedLibDir)
> > $(Echo) Installing $(BuildMode) Shared Library $(DestSharedLib)
> > $(Verb) $(INSTALL) $(LibName.SO) $(DestSharedLib)
> > +ifdef SHARED_ALIAS
> > + $(Echo) Creating alias from $(DestSharedLib) to $(DestSharedAlias)
> > + $(Verb) $(AliasTool) $(DestSharedLib) $(DestSharedAlias)
> > +endif
> >
> > uninstall-local::
> > $(Echo) Uninstalling $(BuildMode) Shared Library $(DestSharedLib)
> >
> > Modified: llvm/trunk/autoconf/configure.ac
> > URL:
> > http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=20
> > 2720&r1=202719&r2=202720&view=diff
> >
> ===========================================================================
> > === --- llvm/trunk/autoconf/configure.ac (original)
> > +++ llvm/trunk/autoconf/configure.ac Mon Mar 3 09:22:00 2014
> > @@ -31,9 +31,22 @@ dnl===
> > dnl===---------------------------------------------------------------------
> > --=== dnl Initialize autoconf and define the package name, version number
> > and dnl address for reporting bugs.
> > -AC_INIT([LLVM],[3.5svn],[http://llvm.org/bugs/])
> > -LLVM_DEFINE_SUBST([LLVM_VERSION_MAJOR], [3], [Major version of the LLVM
> > API]) -LLVM_DEFINE_SUBST([LLVM_VERSION_MINOR], [5], [Minor version of the
> > LLVM API]) +
> > +AC_INIT([LLVM],[3.5.0svn],[http://llvm.org/bugs/])
> > +
> > +LLVM_VERSION_MAJOR=3
> > +LLVM_VERSION_MINOR=5
> > +LLVM_VERSION_PATCH=0
> > +LLVM_VERSION_SUFFIX=svn
> > +
> > +AC_DEFINE_UNQUOTED([LLVM_VERSION_MAJOR], $LLVM_VERSION_MAJOR, [Major
> > version of the LLVM API]) +AC_DEFINE_UNQUOTED([LLVM_VERSION_MINOR],
> > $LLVM_VERSION_MINOR, [Minor version of the LLVM API])
> > +AC_DEFINE_UNQUOTED([LLVM_VERSION_PATCH], $LLVM_VERSION_PATCH, [Patch
> > version of the LLVM API]) +
> > +AC_SUBST([LLVM_VERSION_MAJOR])
> > +AC_SUBST([LLVM_VERSION_MINOR])
> > +AC_SUBST([LLVM_VERSION_PATCH])
> > +AC_SUBST([LLVM_VERSION_SUFFIX])
> >
> > dnl Provide a copyright substitution and ensure the copyright notice is
> > included dnl in the output of --version option of the generated configure
> > script.
> >
> > Modified: llvm/trunk/configure
> > URL:
> > http://llvm.org/viewvc/llvm-project/llvm/trunk/configure?rev=202720&r1=2027
> > 19&r2=202720&view=diff
> >
> ===========================================================================
> > === --- llvm/trunk/configure (original)
> > +++ llvm/trunk/configure Mon Mar 3 09:22:00 2014
> > @@ -1,6 +1,6 @@
> > #! /bin/sh
> > # Guess values for system-dependent variables and create Makefiles.
> > -# Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
> > +# Generated by GNU Autoconf 2.60 for LLVM 3.5.0svn.
> > #
> > # Report bugs to <http://llvm.org/bugs/>.
> > #
> > @@ -561,8 +561,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
> > # Identity of this package.
> > PACKAGE_NAME='LLVM'
> > PACKAGE_TARNAME='llvm'
> > -PACKAGE_VERSION='3.5svn'
> > -PACKAGE_STRING='LLVM 3.5svn'
> > +PACKAGE_VERSION='3.5.0svn'
> > +PACKAGE_STRING='LLVM 3.5.0svn'
> > PACKAGE_BUGREPORT='http://llvm.org/bugs/'
> >
> > ac_unique_file="lib/IR/Module.cpp"
> > @@ -641,6 +641,8 @@ host_alias
> > target_alias
> > LLVM_VERSION_MAJOR
> > LLVM_VERSION_MINOR
> > +LLVM_VERSION_PATCH
> > +LLVM_VERSION_SUFFIX
> > LLVM_COPYRIGHT
> > CC
> > CFLAGS
> > @@ -1324,7 +1326,7 @@ if test "$ac_init_help" = "long"; then
> > # Omit some internal or obsolete options to make the list less imposing.
> > # This message is too long to be a string in the A/UX 3.1 sh.
> > cat <<_ACEOF
> > -\`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
> > +\`configure' configures LLVM 3.5.0svn to adapt to many kinds of systems.
> >
> > Usage: $0 [OPTION]... [VAR=VALUE]...
> >
> > @@ -1390,7 +1392,7 @@ fi
> >
> > if test -n "$ac_init_help"; then
> > case $ac_init_help in
> > - short | recursive ) echo "Configuration of LLVM 3.5svn:";;
> > + short | recursive ) echo "Configuration of LLVM 3.5.0svn:";;
> > esac
> > cat <<\_ACEOF
> >
> > @@ -1561,7 +1563,7 @@ fi
> > test -n "$ac_init_help" && exit $ac_status
> > if $ac_init_version; then
> > cat <<\_ACEOF
> > -LLVM configure 3.5svn
> > +LLVM configure 3.5.0svn
> > generated by GNU Autoconf 2.60
> >
> > Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
> > @@ -1577,7 +1579,7 @@ cat >config.log <<_ACEOF
> > This file contains any messages produced by compilers while
> > running configure, to aid debugging if configure makes a mistake.
> >
> > -It was created by LLVM $as_me 3.5svn, which was
> > +It was created by LLVM $as_me 3.5.0svn, which was
> > generated by GNU Autoconf 2.60. Invocation command line was
> >
> > $ $0 $@
> > @@ -1931,21 +1933,29 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
> >
> >
> >
> > +LLVM_VERSION_MAJOR=3
> > +LLVM_VERSION_MINOR=5
> > +LLVM_VERSION_PATCH=0
> > +LLVM_VERSION_SUFFIX=svn
> >
> > -cat >>confdefs.h <<\_ACEOF
> > -#define LLVM_VERSION_MAJOR 3
> > -_ACEOF
> >
> > -LLVM_VERSION_MAJOR='3'
> > +cat >>confdefs.h <<_ACEOF
> > +#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
> > +_ACEOF
> >
> >
> > +cat >>confdefs.h <<_ACEOF
> > +#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
> > +_ACEOF
> >
> >
> > -cat >>confdefs.h <<\_ACEOF
> > -#define LLVM_VERSION_MINOR 5
> > +cat >>confdefs.h <<_ACEOF
> > +#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
> > _ACEOF
> >
> > -LLVM_VERSION_MINOR='5'
> > +
> > +
> > +
> >
> >
> >
> > @@ -19829,7 +19839,7 @@ exec 6>&1
> > # report actual input values of CONFIG_FILES etc. instead of their
> > # values after options handling.
> > ac_log="
> > -This file was extended by LLVM $as_me 3.5svn, which was
> > +This file was extended by LLVM $as_me 3.5.0svn, which was
> > generated by GNU Autoconf 2.60. Invocation command line was
> >
> > CONFIG_FILES = $CONFIG_FILES
> > @@ -19882,7 +19892,7 @@ Report bugs to <bug-autoconf at gnu.org>."
> > _ACEOF
> > cat >>$CONFIG_STATUS <<_ACEOF
> > ac_cs_version="\\
> > -LLVM config.status 3.5svn
> > +LLVM config.status 3.5.0svn
> > configured by $0, generated by GNU Autoconf 2.60,
> > with options \\"`echo "$ac_configure_args" | sed 's/^ //;
> > s/[\\""\`\$]/\\\\&/g'`\\"
> >
> > @@ -20122,6 +20132,8 @@ host_alias!$host_alias$ac_delim
> > target_alias!$target_alias$ac_delim
> > LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
> > LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
> > +LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
> > +LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
> > LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
> > CC!$CC$ac_delim
> > CFLAGS!$CFLAGS$ac_delim
> > @@ -20178,8 +20190,6 @@ ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIV
> > EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
> > DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
> > DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
> > -KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
> > -JIT!$JIT$ac_delim
> > _ACEOF
> >
> > if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97;
> > then @@ -20221,6 +20231,8 @@ _ACEOF
> > ac_delim='%!_!# '
> > for ac_last_try in false false false false false :; do
> > cat >conf$$subs.sed <<_ACEOF
> > +KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
> > +JIT!$JIT$ac_delim
> > TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
> > TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
> > ENABLE_DOCS!$ENABLE_DOCS$ac_delim
> > @@ -20316,8 +20328,6 @@ LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_deli
> > LLVM_INFODIR!$LLVM_INFODIR$ac_delim
> > LLVM_MANDIR!$LLVM_MANDIR$ac_delim
> > LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
> > -BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
> > -ALL_BINDINGS!$ALL_BINDINGS$ac_delim
> > _ACEOF
> >
> > if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97;
> > then @@ -20359,6 +20369,8 @@ _ACEOF
> > ac_delim='%!_!# '
> > for ac_last_try in false false false false false :; do
> > cat >conf$$subs.sed <<_ACEOF
> > +BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
> > +ALL_BINDINGS!$ALL_BINDINGS$ac_delim
> > OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
> > ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
> > RPATH!$RPATH$ac_delim
> > @@ -20368,7 +20380,7 @@ LIBOBJS!$LIBOBJS$ac_delim
> > LTLIBOBJS!$LTLIBOBJS$ac_delim
> > _ACEOF
> >
> > - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7;
> > then + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` =
> > 9; then break
> > elif $ac_last_try; then
> > { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
> >
> > Modified: llvm/trunk/include/llvm/Config/config.h.in
> > URL:
> > http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Config/config.h
> > .in?rev=202720&r1=202719&r2=202720&view=diff
> >
> ===========================================================================
> > === --- llvm/trunk/include/llvm/Config/config.h.in (original)
> > +++ llvm/trunk/include/llvm/Config/config.h.in Mon Mar 3 09:22:00 2014
> > @@ -591,6 +591,9 @@
> > /* Minor version of the LLVM API */
> > #undef LLVM_VERSION_MINOR
> >
> > +/* Patch version of the LLVM API */
> > +#undef LLVM_VERSION_PATCH
> > +
> > /* The shared library extension */
> > #undef LTDL_SHLIB_EXT
> >
> >
> > Modified: llvm/trunk/tools/llvm-shlib/Makefile
> > URL:
> > http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-shlib/Makefile?re
> > v=202720&r1=202719&r2=202720&view=diff
> >
> ===========================================================================
> > === --- llvm/trunk/tools/llvm-shlib/Makefile (original)
> > +++ llvm/trunk/tools/llvm-shlib/Makefile Mon Mar 3 09:22:00 2014
> > @@ -10,10 +10,12 @@
> > LEVEL := ../..
> >
> > LIBRARYNAME = LLVM-$(LLVMVersion)
> > +LIBRARYALIASNAME =
> > LLVM-$(LLVM_VERSION_MAJOR).$(LLVM_VERSION_MINOR)$(LLVM_VERSION_SUFFIX)
> >
> > NO_BUILD_ARCHIVE := 1
> > LINK_LIBS_IN_SHARED := 1
> > SHARED_LIBRARY := 1
> > +SHARED_ALIAS := 1
> >
> > include $(LEVEL)/Makefile.config
> >
>
> It seems thos patch annoy ldconfig:
>
> ldconfig: /usr/lib/libLLVM-3.5.0svn.so is not a symbolic link
>
Does this break anything or is it just a warning? Do you have any
suggestions for how to fix this?
Thanks,
Tom
> --
> Laurent Carlier
> ArchLinux Developer
> http://www.archlinux.org
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list