You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ri...@apache.org on 2026/05/04 15:09:48 UTC
svn commit: r1933812 - subversion/trunk
Author: rinrab
Date: Mon May 4 15:09:48 2026
New Revision: 1933812
Log:
cmake: Import targets.cmake before processing dependencies; This would allow
potentially refering to those targets in dependency search. Although cmake
allows to link a non-existing target, the target that it is linked to has to be
declared before.
* CMakeLists.txt
(target_exports, ra-libs, fs-libs, the-include): Move them up.
Modified:
subversion/trunk/CMakeLists.txt
Modified: subversion/trunk/CMakeLists.txt
==============================================================================
--- subversion/trunk/CMakeLists.txt Mon May 4 14:59:52 2026 (r1933811)
+++ subversion/trunk/CMakeLists.txt Mon May 4 15:09:48 2026 (r1933812)
@@ -244,6 +244,62 @@ endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/build/cmake")
+function(target_exports target_name)
+ if (WIN32)
+ set(filter_names
+ # svn_config_enumerator_t looks like (to our regex) a
+ # function declaration for svn_boolean_t
+ "svn_boolean_t"
+ # Not available on Windows
+ "svn_auth_get_keychain_simple_provider"
+ "svn_auth_get_keychain_ssl_client_cert_pw_provider"
+ "svn_auth_get_gnome_keyring_simple_provider"
+ "svn_auth_get_gnome_keyring_ssl_client_cert_pw_provider"
+ "svn_auth_get_kwallet_simple_provider"
+ "svn_auth_get_kwallet_ssl_client_cert_pw_provider"
+ "svn_auth_gnome_keyring_version"
+ "svn_auth_kwallet_version"
+ "svn_auth_get_gpg_agent_simple_provider"
+ "svn_auth_gpg_agent_version"
+ # Unavailable in release mode
+ "svn_fs_base__trail_debug"
+ )
+
+ set(def_file_path ${CMAKE_BINARY_DIR}/${target_name}.def)
+ set(headers)
+
+ foreach(file ${ARGN})
+ list(APPEND headers "${CMAKE_CURRENT_SOURCE_DIR}/${file}")
+ endforeach()
+
+ add_custom_command(
+ OUTPUT "${def_file_path}"
+ DEPENDS ${headers}
+ COMMAND ${CMAKE_COMMAND}
+ "-DEXPORT_HEADER_FILE_PATHS=${headers}"
+ "-DEXPORT_DEF_FILE_PATH=${def_file_path}"
+ "-DEXPORT_BLACKLIST=${filter_names}"
+ -P "${CMAKE_CURRENT_SOURCE_DIR}/build/cmake/extractor.cmake"
+ WORKING_DIRECTORY "${SERF_SOURCE_DIR}"
+ )
+
+ target_sources("${target_name}" PRIVATE "${def_file_path}")
+ endif()
+endfunction()
+
+if (NOT EXISTS "${CMAKE_SOURCE_DIR}/build/cmake/targets.cmake")
+ message(SEND_ERROR
+ "The 'build/cmake/targets.cmake' file does NOT exist. "
+ "Use the following command to generate it:\n"
+ " python gen-make.py -t cmake"
+ )
+endif()
+
+add_library(ra-libs INTERFACE)
+add_library(fs-libs INTERFACE)
+
+include("build/cmake/targets.cmake")
+
# Require pkg-config if we are going to use it, to show the `Found PkgConfig`
# meassge and insure it has actually been found. (yea, this invokes the module
# for second time, but we are guaranteed to from it to not perform actual look
@@ -606,49 +662,6 @@ if(SVN_ENABLE_SWIG_RUBY)
swig_target_external_runtime(external-ruby ruby)
endif()
-function(target_exports target_name)
- if (WIN32)
- set(filter_names
- # svn_config_enumerator_t looks like (to our regex) a
- # function declaration for svn_boolean_t
- "svn_boolean_t"
- # Not available on Windows
- "svn_auth_get_keychain_simple_provider"
- "svn_auth_get_keychain_ssl_client_cert_pw_provider"
- "svn_auth_get_gnome_keyring_simple_provider"
- "svn_auth_get_gnome_keyring_ssl_client_cert_pw_provider"
- "svn_auth_get_kwallet_simple_provider"
- "svn_auth_get_kwallet_ssl_client_cert_pw_provider"
- "svn_auth_gnome_keyring_version"
- "svn_auth_kwallet_version"
- "svn_auth_get_gpg_agent_simple_provider"
- "svn_auth_gpg_agent_version"
- # Unavailable in release mode
- "svn_fs_base__trail_debug"
- )
-
- set(def_file_path ${CMAKE_BINARY_DIR}/${target_name}.def)
- set(headers)
-
- foreach(file ${ARGN})
- list(APPEND headers "${CMAKE_CURRENT_SOURCE_DIR}/${file}")
- endforeach()
-
- add_custom_command(
- OUTPUT "${def_file_path}"
- DEPENDS ${headers}
- COMMAND ${CMAKE_COMMAND}
- "-DEXPORT_HEADER_FILE_PATHS=${headers}"
- "-DEXPORT_DEF_FILE_PATH=${def_file_path}"
- "-DEXPORT_BLACKLIST=${filter_names}"
- -P "${CMAKE_CURRENT_SOURCE_DIR}/build/cmake/extractor.cmake"
- WORKING_DIRECTORY "${SERF_SOURCE_DIR}"
- )
-
- target_sources("${target_name}" PRIVATE "${def_file_path}")
- endif()
-endfunction()
-
### Checks
include(CheckIncludeFiles)
@@ -774,17 +787,6 @@ if (MSVC)
)
endif()
-if (NOT EXISTS "${CMAKE_SOURCE_DIR}/build/cmake/targets.cmake")
- message(SEND_ERROR
- "The 'build/cmake/targets.cmake' file does NOT exist. "
- "Use the following command to generate it:\n"
- " python gen-make.py -t cmake"
- )
-endif()
-
-add_library(ra-libs INTERFACE)
-add_library(fs-libs INTERFACE)
-
if(SVN_ENABLE_NLS)
# Note: when installing these dependecies with vcpkg, you will need to
# install 'gettext' package with 'tools' feature. Use the following command
@@ -866,8 +868,6 @@ set(CMAKE_IMPORT_LIBRARY_PREFIX "lib")
# (just svn_subr-1.[lib|a])
set(CMAKE_STATIC_LIBRARY_PREFIX "")
-include("build/cmake/targets.cmake")
-
if(SVN_ENABLE_TESTS)
find_package(Python3 COMPONENTS Interpreter REQUIRED)
set(run_tests_script "${CMAKE_CURRENT_SOURCE_DIR}/build/run_tests.py")
Re: svn commit: r1933812 - subversion/trunk
Posted by Ivan Zhakov <iv...@apache.org>.
On Tue, 12 May 2026 at 11:18, Jun Omae <ju...@gmail.com> wrote:
> On 2026/05/11 3:50, Timofei Zhakov wrote:
> > On Fri, May 8, 2026 at 4:30 AM Jun Omae <ju...@gmail.com> wrote:
> >>
> >> On 2026/05/07 20:59, Jun Omae wrote:
> >>> On 2026/05/05 0:09, rinrab@apache.org wrote:
> >>>> Author: rinrab
> >>>> Date: Mon May 4 15:09:48 2026
> >>>> New Revision: 1933812
> >>>>
> >>>> Log:
> >>>> cmake: Import targets.cmake before processing dependencies; This
> would allow
> >>>> potentially refering to those targets in dependency search. Although
> cmake
> >>>> allows to link a non-existing target, the target that it is linked to
> has to be
> >>>> declared before.
> >>>>
> >>>> * CMakeLists.txt
> >>>> (target_exports, ra-libs, fs-libs, the-include): Move them up.
> >>>>
> >>>> Modified:
> >>>> subversion/trunk/CMakeLists.txt
> >>> Encountered another issue with SVN_ENABLE_NLS=ON on macOS and
> Windows....
> >>>
> >>> [[[
> >>> FAILED: [code=1] libsvn_delta-1.0.16.0.dylib
> >>> : && /usr/bin/cc -dynamiclib -Wl,-headerpad_max_install_names
> -current_version 0.16.0 -o libsvn_delta-1.0.16.0.dylib ...
> >>> Undefined symbols for architecture x86_64:
> >>> "_libintl_dgettext", referenced from:
> >>> _write_handler in svndiff.c.o
> >>> _write_handler in svndiff.c.o
> >>> _write_handler in svndiff.c.o
> >>> _close_handler in svndiff.c.o
> >>> _svn_txdelta_read_svndiff_window in svndiff.c.o
> >>> _read_window_header in svndiff.c.o
> >>> _read_window_header in svndiff.c.o
> >>> _read_window_header in svndiff.c.o
> >>> _read_window_header in svndiff.c.o
> >>> _read_window_header in svndiff.c.o
> >>> _read_window_header in svndiff.c.o
> >>> ...
> >>> ld: symbol(s) not found for architecture x86_64
> >>> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> >>> ]]]
> >>>
> >>> [[[
> >>>
> V:\usr\src\subversion\subversion.git\Release\cmake\svn_private_config.h(126,11):
> >>> error C1083: Cannot open include file: 'libintl.h':
> >>> No such file or directory
> [V:\usr\src\subversion\subversion.git\Release\cmake\libsvn_fs_util.vcxproj]
> >>> (compiling source file '../../subversion/libsvn_fs_util/fs-util.c')
> >>> ]]]
> >> Proposed patch, cmake-nls-r1933902.patch.txt, attached.
> >>
> >> * Find gettext and intl packages before include(../targets.cmake).
> >> * Use include_directories("${Intl_INCLUDE_DIRS}") rather than
> >> set_target_properties(Intl::Intl PROPERTIES
> INTERFACE_INCLUDE_DIRECTORIES "${Intl_INCLUDE_DIRS}" ...)
> >> because svn_private_config.h globally includes <libintl.h>.
> >>
> >> I confirmed that the builds successfully on Ubuntu, macOS and Windows.
> >
> > Your fix looks fine. Again, I'm really really sorry for the need for
> > those follow-ups.
>
> Thanks for the reviewing. Committed in r1934074.
>
> > Now as I think, it might be better to revert this change. I wanted to
> > move this include to the top because I need the targets available to
> > tune a tiny thing in one of the dependencies but I don't know I might
> > have simply done it with this specific one so I don't break the trunk
> > once again. Thoughts?
>
> I think the reverting is not needed. Current builds successfully. Many
> changes already exist after this change. I don't think It is simple to
> revert this change.
>
> The builds are prone to break on macOS and Windows that it needs *.h and
> *.lib files in non-standard locations. It might to be good to enable
> SVN_ENABLE_NLS, SVN_ENABLE_APACHE_MODULES, ... in auto-builds.
>
> +1 to have CI build with all features enabled.
> E.g.
> [[[
> diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
> index 64634c2be..285680697 100644
> --- a/.github/workflows/cmake.yml
> +++ b/.github/workflows/cmake.yml
> @@ -154,14 +154,15 @@ jobs:
> libexpat1-dev
> zlib1g-dev
> libsqlite3-dev
> + apache2-dev
>
Probably needs 'gettext' package too.
> ninja-build
> ${{ matrix.extra_packages }}
>
> - name: Install dependencies (Mac OS, homebrew)
> if: runner.os == 'macOS'
> run: |
> - $packages = @('apr', 'apr-util', 'expat', 'sqlite',
> 'apache-serf')
> - brew install ninja $packages
> + $packages = @('apr', 'apr-util', 'expat', 'sqlite',
> 'apache-serf', 'gettext')
> + brew install ninja apache2 $packages
> $PKG_CONFIG_PATH = `
> $packages | `
> % { "$(& brew --prefix $_)/lib/pkgconfig" } | `
> @@ -184,6 +185,8 @@ jobs:
> -DBUILD_SHARED_LIBS=${{ matrix.build_shared }}
> -DSVN_ENABLE_TESTS=ON
> -DSVN_ENABLE_RA_SERF=ON
> + -DSVN_ENABLE_NLS=ON
> + -DSVN_ENABLE_APACHE_MODULES=${{ runner.os != 'Windows' && 'ON'
> || 'OFF' }}
> -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/installdir
> -DVCPKG_TARGET_TRIPLET=${{ matrix.vcpkg_triplet }}
> -DSVN_TEST_CONFIGURE_FOR_PARALLEL=ON
> ]]]
>
> --
> Jun Omae <ju...@gmail.com> (大前 潤)
>
--
Ivan Zhakov
Re: svn commit: r1933812 - subversion/trunk
Posted by Timofei Zhakov <ti...@chemodax.net>.
On Fri, May 15, 2026 at 3:42 PM Jun Omae <ju...@gmail.com> wrote:
>
> On 2026/05/14 20:51, Timofei Zhakov wrote:
> > On Tue, May 12, 2026 at 11:16 AM Jun Omae <ju...@gmail.com> wrote:
> >>
> >> On 2026/05/11 3:50, Timofei Zhakov wrote:
> >>> On Fri, May 8, 2026 at 4:30 AM Jun Omae <ju...@gmail.com> wrote:
> >>>>
> >>>> On 2026/05/07 20:59, Jun Omae wrote:
> >>>>> On 2026/05/05 0:09, rinrab@apache.org wrote:
> >>>>>> Author: rinrab
> >>>>>> Date: Mon May 4 15:09:48 2026
> >>>>>> New Revision: 1933812
> >>>>>>
> >>>>>> Log:
> >>>>>> cmake: Import targets.cmake before processing dependencies; This would allow
> >>>>>> potentially refering to those targets in dependency search. Although cmake
> >>>>>> allows to link a non-existing target, the target that it is linked to has to be
> >>>>>> declared before.
> >>>>>>
> >>>>>> * CMakeLists.txt
> >>>>>> (target_exports, ra-libs, fs-libs, the-include): Move them up.
> >>>>>>
> >>>>>> Modified:
> >>>>>> subversion/trunk/CMakeLists.txt
> >>>>> Encountered another issue with SVN_ENABLE_NLS=ON on macOS and Windows....
> >>>>>
> >>>>> [[[
> >>>>> FAILED: [code=1] libsvn_delta-1.0.16.0.dylib
> >>>>> : && /usr/bin/cc -dynamiclib -Wl,-headerpad_max_install_names -current_version 0.16.0 -o libsvn_delta-1.0.16.0.dylib ...
> >>>>> Undefined symbols for architecture x86_64:
> >>>>> "_libintl_dgettext", referenced from:
> >>>>> _write_handler in svndiff.c.o
> >>>>> _write_handler in svndiff.c.o
> >>>>> _write_handler in svndiff.c.o
> >>>>> _close_handler in svndiff.c.o
> >>>>> _svn_txdelta_read_svndiff_window in svndiff.c.o
> >>>>> _read_window_header in svndiff.c.o
> >>>>> _read_window_header in svndiff.c.o
> >>>>> _read_window_header in svndiff.c.o
> >>>>> _read_window_header in svndiff.c.o
> >>>>> _read_window_header in svndiff.c.o
> >>>>> _read_window_header in svndiff.c.o
> >>>>> ...
> >>>>> ld: symbol(s) not found for architecture x86_64
> >>>>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> >>>>> ]]]
> >>>>>
> >>>>> [[[
> >>>>> V:\usr\src\subversion\subversion.git\Release\cmake\svn_private_config.h(126,11):
> >>>>> error C1083: Cannot open include file: 'libintl.h':
> >>>>> No such file or directory [V:\usr\src\subversion\subversion.git\Release\cmake\libsvn_fs_util.vcxproj]
> >>>>> (compiling source file '../../subversion/libsvn_fs_util/fs-util.c')
> >>>>> ]]]
> >>>> Proposed patch, cmake-nls-r1933902.patch.txt, attached.
> >>>>
> >>>> * Find gettext and intl packages before include(../targets.cmake).
> >>>> * Use include_directories("${Intl_INCLUDE_DIRS}") rather than
> >>>> set_target_properties(Intl::Intl PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${Intl_INCLUDE_DIRS}" ...)
> >>>> because svn_private_config.h globally includes <libintl.h>.
> >>>>
> >>>> I confirmed that the builds successfully on Ubuntu, macOS and Windows.
> >>>
> >>> Your fix looks fine. Again, I'm really really sorry for the need for
> >>> those follow-ups.
> >>
> >> Thanks for the reviewing. Committed in r1934074.
> >>
> >>> Now as I think, it might be better to revert this change. I wanted to
> >>> move this include to the top because I need the targets available to
> >>> tune a tiny thing in one of the dependencies but I don't know I might
> >>> have simply done it with this specific one so I don't break the trunk
> >>> once again. Thoughts?
> >>
> >> I think the reverting is not needed. Current builds successfully. Many
> >> changes already exist after this change. I don't think It is simple to
> >> revert this change.
> >
> > Okay.
> >
> >> The builds are prone to break on macOS and Windows that it needs *.h and
> >> *.lib files in non-standard locations. It might to be good to enable
> >> SVN_ENABLE_NLS, SVN_ENABLE_APACHE_MODULES, ... in auto-builds.
> >
> > I'm also +1 to have those options enabled on our CI.
> >
> >> E.g.
> >> [[[
> >> diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
> >> index 64634c2be..285680697 100644
> >> --- a/.github/workflows/cmake.yml
> >> +++ b/.github/workflows/cmake.yml
> >> @@ -154,14 +154,15 @@ jobs:
> >> libexpat1-dev
> >> zlib1g-dev
> >> libsqlite3-dev
> >> + apache2-dev
> >> ninja-build
> >> ${{ matrix.extra_packages }}
> >>
> >> - name: Install dependencies (Mac OS, homebrew)
> >> if: runner.os == 'macOS'
> >> run: |
> >> - $packages = @('apr', 'apr-util', 'expat', 'sqlite', 'apache-serf')
> >> - brew install ninja $packages
> >> + $packages = @('apr', 'apr-util', 'expat', 'sqlite', 'apache-serf', 'gettext')
> >> + brew install ninja apache2 $packages
> >> $PKG_CONFIG_PATH = `
> >> $packages | `
> >> % { "$(& brew --prefix $_)/lib/pkgconfig" } | `
> >> @@ -184,6 +185,8 @@ jobs:
> >> -DBUILD_SHARED_LIBS=${{ matrix.build_shared }}
> >> -DSVN_ENABLE_TESTS=ON
> >> -DSVN_ENABLE_RA_SERF=ON
> >> + -DSVN_ENABLE_NLS=ON
> >> + -DSVN_ENABLE_APACHE_MODULES=${{ runner.os != 'Windows' && 'ON' || 'OFF' }}
> >> -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/installdir
> >> -DVCPKG_TARGET_TRIPLET=${{ matrix.vcpkg_triplet }}
> >> -DSVN_TEST_CONFIGURE_FOR_PARALLEL=ON
> >> ]]]
> Thanks for the feedback. Pushed the changes in r1934221.
Yes, thank you so much!
--
Timofei Zhakov
Re: svn commit: r1933812 - subversion/trunk
Posted by Daniel Sahlberg <da...@gmail.com>.
fre 15 maj 2026 kl. 15:42 skrev Jun Omae <ju...@gmail.com>:
> On 2026/05/14 20:51, Timofei Zhakov wrote:
> > On Tue, May 12, 2026 at 11:16 AM Jun Omae <ju...@gmail.com> wrote:
> >>
> >> On 2026/05/11 3:50, Timofei Zhakov wrote:
> >>> On Fri, May 8, 2026 at 4:30 AM Jun Omae <ju...@gmail.com> wrote:
> >>>>
> >>>> On 2026/05/07 20:59, Jun Omae wrote:
> >>>>> On 2026/05/05 0:09, rinrab@apache.org wrote:
> >>>>>> Author: rinrab
> >>>>>> Date: Mon May 4 15:09:48 2026
> >>>>>> New Revision: 1933812
> >>>>>>
> >>>>>> Log:
> >>>>>> cmake: Import targets.cmake before processing dependencies; This
> would allow
> >>>>>> potentially refering to those targets in dependency search.
> Although cmake
> >>>>>> allows to link a non-existing target, the target that it is linked
> to has to be
> >>>>>> declared before.
> >>>>>>
> >>>>>> * CMakeLists.txt
> >>>>>> (target_exports, ra-libs, fs-libs, the-include): Move them up.
> >>>>>>
> >>>>>> Modified:
> >>>>>> subversion/trunk/CMakeLists.txt
> >>>>> Encountered another issue with SVN_ENABLE_NLS=ON on macOS and
> Windows....
> >>>>>
> >>>>> [[[
> >>>>> FAILED: [code=1] libsvn_delta-1.0.16.0.dylib
> >>>>> : && /usr/bin/cc -dynamiclib -Wl,-headerpad_max_install_names
> -current_version 0.16.0 -o libsvn_delta-1.0.16.0.dylib ...
> >>>>> Undefined symbols for architecture x86_64:
> >>>>> "_libintl_dgettext", referenced from:
> >>>>> _write_handler in svndiff.c.o
> >>>>> _write_handler in svndiff.c.o
> >>>>> _write_handler in svndiff.c.o
> >>>>> _close_handler in svndiff.c.o
> >>>>> _svn_txdelta_read_svndiff_window in svndiff.c.o
> >>>>> _read_window_header in svndiff.c.o
> >>>>> _read_window_header in svndiff.c.o
> >>>>> _read_window_header in svndiff.c.o
> >>>>> _read_window_header in svndiff.c.o
> >>>>> _read_window_header in svndiff.c.o
> >>>>> _read_window_header in svndiff.c.o
> >>>>> ...
> >>>>> ld: symbol(s) not found for architecture x86_64
> >>>>> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> >>>>> ]]]
> >>>>>
> >>>>> [[[
> >>>>>
> V:\usr\src\subversion\subversion.git\Release\cmake\svn_private_config.h(126,11):
> >>>>> error C1083: Cannot open include file: 'libintl.h':
> >>>>> No such file or directory
> [V:\usr\src\subversion\subversion.git\Release\cmake\libsvn_fs_util.vcxproj]
> >>>>> (compiling source file '../../subversion/libsvn_fs_util/fs-util.c')
> >>>>> ]]]
> >>>> Proposed patch, cmake-nls-r1933902.patch.txt, attached.
> >>>>
> >>>> * Find gettext and intl packages before include(../targets.cmake).
> >>>> * Use include_directories("${Intl_INCLUDE_DIRS}") rather than
> >>>> set_target_properties(Intl::Intl PROPERTIES
> INTERFACE_INCLUDE_DIRECTORIES "${Intl_INCLUDE_DIRS}" ...)
> >>>> because svn_private_config.h globally includes <libintl.h>.
> >>>>
> >>>> I confirmed that the builds successfully on Ubuntu, macOS and Windows.
> >>>
> >>> Your fix looks fine. Again, I'm really really sorry for the need for
> >>> those follow-ups.
> >>
> >> Thanks for the reviewing. Committed in r1934074.
> >>
> >>> Now as I think, it might be better to revert this change. I wanted to
> >>> move this include to the top because I need the targets available to
> >>> tune a tiny thing in one of the dependencies but I don't know I might
> >>> have simply done it with this specific one so I don't break the trunk
> >>> once again. Thoughts?
> >>
> >> I think the reverting is not needed. Current builds successfully. Many
> >> changes already exist after this change. I don't think It is simple to
> >> revert this change.
> >
> > Okay.
> >
> >> The builds are prone to break on macOS and Windows that it needs *.h and
> >> *.lib files in non-standard locations. It might to be good to enable
> >> SVN_ENABLE_NLS, SVN_ENABLE_APACHE_MODULES, ... in auto-builds.
> >
> > I'm also +1 to have those options enabled on our CI.
> >
> >> E.g.
> >> [[[
> >> diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
> >> index 64634c2be..285680697 100644
> >> --- a/.github/workflows/cmake.yml
> >> +++ b/.github/workflows/cmake.yml
> >> @@ -154,14 +154,15 @@ jobs:
> >> libexpat1-dev
> >> zlib1g-dev
> >> libsqlite3-dev
> >> + apache2-dev
> >> ninja-build
> >> ${{ matrix.extra_packages }}
> >>
> >> - name: Install dependencies (Mac OS, homebrew)
> >> if: runner.os == 'macOS'
> >> run: |
> >> - $packages = @('apr', 'apr-util', 'expat', 'sqlite',
> 'apache-serf')
> >> - brew install ninja $packages
> >> + $packages = @('apr', 'apr-util', 'expat', 'sqlite',
> 'apache-serf', 'gettext')
> >> + brew install ninja apache2 $packages
> >> $PKG_CONFIG_PATH = `
> >> $packages | `
> >> % { "$(& brew --prefix $_)/lib/pkgconfig" } | `
> >> @@ -184,6 +185,8 @@ jobs:
> >> -DBUILD_SHARED_LIBS=${{ matrix.build_shared }}
> >> -DSVN_ENABLE_TESTS=ON
> >> -DSVN_ENABLE_RA_SERF=ON
> >> + -DSVN_ENABLE_NLS=ON
> >> + -DSVN_ENABLE_APACHE_MODULES=${{ runner.os != 'Windows' &&
> 'ON' || 'OFF' }}
> >> -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/installdir
> >> -DVCPKG_TARGET_TRIPLET=${{ matrix.vcpkg_triplet }}
> >> -DSVN_TEST_CONFIGURE_FOR_PARALLEL=ON
> >> ]]]
> Thanks for the feedback. Pushed the changes in r1934221.
>
> --
> Jun Omae <ju...@gmail.com> (大前 潤)
Really great - thanks Jun and Timofei!
/Daniel
Re: svn commit: r1933812 - subversion/trunk
Posted by Jun Omae <ju...@gmail.com>.
On 2026/05/14 20:51, Timofei Zhakov wrote:
> On Tue, May 12, 2026 at 11:16 AM Jun Omae <ju...@gmail.com> wrote:
>>
>> On 2026/05/11 3:50, Timofei Zhakov wrote:
>>> On Fri, May 8, 2026 at 4:30 AM Jun Omae <ju...@gmail.com> wrote:
>>>>
>>>> On 2026/05/07 20:59, Jun Omae wrote:
>>>>> On 2026/05/05 0:09, rinrab@apache.org wrote:
>>>>>> Author: rinrab
>>>>>> Date: Mon May 4 15:09:48 2026
>>>>>> New Revision: 1933812
>>>>>>
>>>>>> Log:
>>>>>> cmake: Import targets.cmake before processing dependencies; This would allow
>>>>>> potentially refering to those targets in dependency search. Although cmake
>>>>>> allows to link a non-existing target, the target that it is linked to has to be
>>>>>> declared before.
>>>>>>
>>>>>> * CMakeLists.txt
>>>>>> (target_exports, ra-libs, fs-libs, the-include): Move them up.
>>>>>>
>>>>>> Modified:
>>>>>> subversion/trunk/CMakeLists.txt
>>>>> Encountered another issue with SVN_ENABLE_NLS=ON on macOS and Windows....
>>>>>
>>>>> [[[
>>>>> FAILED: [code=1] libsvn_delta-1.0.16.0.dylib
>>>>> : && /usr/bin/cc -dynamiclib -Wl,-headerpad_max_install_names -current_version 0.16.0 -o libsvn_delta-1.0.16.0.dylib ...
>>>>> Undefined symbols for architecture x86_64:
>>>>> "_libintl_dgettext", referenced from:
>>>>> _write_handler in svndiff.c.o
>>>>> _write_handler in svndiff.c.o
>>>>> _write_handler in svndiff.c.o
>>>>> _close_handler in svndiff.c.o
>>>>> _svn_txdelta_read_svndiff_window in svndiff.c.o
>>>>> _read_window_header in svndiff.c.o
>>>>> _read_window_header in svndiff.c.o
>>>>> _read_window_header in svndiff.c.o
>>>>> _read_window_header in svndiff.c.o
>>>>> _read_window_header in svndiff.c.o
>>>>> _read_window_header in svndiff.c.o
>>>>> ...
>>>>> ld: symbol(s) not found for architecture x86_64
>>>>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>>>>> ]]]
>>>>>
>>>>> [[[
>>>>> V:\usr\src\subversion\subversion.git\Release\cmake\svn_private_config.h(126,11):
>>>>> error C1083: Cannot open include file: 'libintl.h':
>>>>> No such file or directory [V:\usr\src\subversion\subversion.git\Release\cmake\libsvn_fs_util.vcxproj]
>>>>> (compiling source file '../../subversion/libsvn_fs_util/fs-util.c')
>>>>> ]]]
>>>> Proposed patch, cmake-nls-r1933902.patch.txt, attached.
>>>>
>>>> * Find gettext and intl packages before include(../targets.cmake).
>>>> * Use include_directories("${Intl_INCLUDE_DIRS}") rather than
>>>> set_target_properties(Intl::Intl PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${Intl_INCLUDE_DIRS}" ...)
>>>> because svn_private_config.h globally includes <libintl.h>.
>>>>
>>>> I confirmed that the builds successfully on Ubuntu, macOS and Windows.
>>>
>>> Your fix looks fine. Again, I'm really really sorry for the need for
>>> those follow-ups.
>>
>> Thanks for the reviewing. Committed in r1934074.
>>
>>> Now as I think, it might be better to revert this change. I wanted to
>>> move this include to the top because I need the targets available to
>>> tune a tiny thing in one of the dependencies but I don't know I might
>>> have simply done it with this specific one so I don't break the trunk
>>> once again. Thoughts?
>>
>> I think the reverting is not needed. Current builds successfully. Many
>> changes already exist after this change. I don't think It is simple to
>> revert this change.
>
> Okay.
>
>> The builds are prone to break on macOS and Windows that it needs *.h and
>> *.lib files in non-standard locations. It might to be good to enable
>> SVN_ENABLE_NLS, SVN_ENABLE_APACHE_MODULES, ... in auto-builds.
>
> I'm also +1 to have those options enabled on our CI.
>
>> E.g.
>> [[[
>> diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
>> index 64634c2be..285680697 100644
>> --- a/.github/workflows/cmake.yml
>> +++ b/.github/workflows/cmake.yml
>> @@ -154,14 +154,15 @@ jobs:
>> libexpat1-dev
>> zlib1g-dev
>> libsqlite3-dev
>> + apache2-dev
>> ninja-build
>> ${{ matrix.extra_packages }}
>>
>> - name: Install dependencies (Mac OS, homebrew)
>> if: runner.os == 'macOS'
>> run: |
>> - $packages = @('apr', 'apr-util', 'expat', 'sqlite', 'apache-serf')
>> - brew install ninja $packages
>> + $packages = @('apr', 'apr-util', 'expat', 'sqlite', 'apache-serf', 'gettext')
>> + brew install ninja apache2 $packages
>> $PKG_CONFIG_PATH = `
>> $packages | `
>> % { "$(& brew --prefix $_)/lib/pkgconfig" } | `
>> @@ -184,6 +185,8 @@ jobs:
>> -DBUILD_SHARED_LIBS=${{ matrix.build_shared }}
>> -DSVN_ENABLE_TESTS=ON
>> -DSVN_ENABLE_RA_SERF=ON
>> + -DSVN_ENABLE_NLS=ON
>> + -DSVN_ENABLE_APACHE_MODULES=${{ runner.os != 'Windows' && 'ON' || 'OFF' }}
>> -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/installdir
>> -DVCPKG_TARGET_TRIPLET=${{ matrix.vcpkg_triplet }}
>> -DSVN_TEST_CONFIGURE_FOR_PARALLEL=ON
>> ]]]
Thanks for the feedback. Pushed the changes in r1934221.
--
Jun Omae <ju...@gmail.com> (大前 潤)
Re: svn commit: r1933812 - subversion/trunk
Posted by Timofei Zhakov <ri...@apache.org>.
On Tue, May 12, 2026 at 11:16 AM Jun Omae <ju...@gmail.com> wrote:
>
> On 2026/05/11 3:50, Timofei Zhakov wrote:
> > On Fri, May 8, 2026 at 4:30 AM Jun Omae <ju...@gmail.com> wrote:
> >>
> >> On 2026/05/07 20:59, Jun Omae wrote:
> >>> On 2026/05/05 0:09, rinrab@apache.org wrote:
> >>>> Author: rinrab
> >>>> Date: Mon May 4 15:09:48 2026
> >>>> New Revision: 1933812
> >>>>
> >>>> Log:
> >>>> cmake: Import targets.cmake before processing dependencies; This would allow
> >>>> potentially refering to those targets in dependency search. Although cmake
> >>>> allows to link a non-existing target, the target that it is linked to has to be
> >>>> declared before.
> >>>>
> >>>> * CMakeLists.txt
> >>>> (target_exports, ra-libs, fs-libs, the-include): Move them up.
> >>>>
> >>>> Modified:
> >>>> subversion/trunk/CMakeLists.txt
> >>> Encountered another issue with SVN_ENABLE_NLS=ON on macOS and Windows....
> >>>
> >>> [[[
> >>> FAILED: [code=1] libsvn_delta-1.0.16.0.dylib
> >>> : && /usr/bin/cc -dynamiclib -Wl,-headerpad_max_install_names -current_version 0.16.0 -o libsvn_delta-1.0.16.0.dylib ...
> >>> Undefined symbols for architecture x86_64:
> >>> "_libintl_dgettext", referenced from:
> >>> _write_handler in svndiff.c.o
> >>> _write_handler in svndiff.c.o
> >>> _write_handler in svndiff.c.o
> >>> _close_handler in svndiff.c.o
> >>> _svn_txdelta_read_svndiff_window in svndiff.c.o
> >>> _read_window_header in svndiff.c.o
> >>> _read_window_header in svndiff.c.o
> >>> _read_window_header in svndiff.c.o
> >>> _read_window_header in svndiff.c.o
> >>> _read_window_header in svndiff.c.o
> >>> _read_window_header in svndiff.c.o
> >>> ...
> >>> ld: symbol(s) not found for architecture x86_64
> >>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> >>> ]]]
> >>>
> >>> [[[
> >>> V:\usr\src\subversion\subversion.git\Release\cmake\svn_private_config.h(126,11):
> >>> error C1083: Cannot open include file: 'libintl.h':
> >>> No such file or directory [V:\usr\src\subversion\subversion.git\Release\cmake\libsvn_fs_util.vcxproj]
> >>> (compiling source file '../../subversion/libsvn_fs_util/fs-util.c')
> >>> ]]]
> >> Proposed patch, cmake-nls-r1933902.patch.txt, attached.
> >>
> >> * Find gettext and intl packages before include(../targets.cmake).
> >> * Use include_directories("${Intl_INCLUDE_DIRS}") rather than
> >> set_target_properties(Intl::Intl PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${Intl_INCLUDE_DIRS}" ...)
> >> because svn_private_config.h globally includes <libintl.h>.
> >>
> >> I confirmed that the builds successfully on Ubuntu, macOS and Windows.
> >
> > Your fix looks fine. Again, I'm really really sorry for the need for
> > those follow-ups.
>
> Thanks for the reviewing. Committed in r1934074.
>
> > Now as I think, it might be better to revert this change. I wanted to
> > move this include to the top because I need the targets available to
> > tune a tiny thing in one of the dependencies but I don't know I might
> > have simply done it with this specific one so I don't break the trunk
> > once again. Thoughts?
>
> I think the reverting is not needed. Current builds successfully. Many
> changes already exist after this change. I don't think It is simple to
> revert this change.
Okay.
> The builds are prone to break on macOS and Windows that it needs *.h and
> *.lib files in non-standard locations. It might to be good to enable
> SVN_ENABLE_NLS, SVN_ENABLE_APACHE_MODULES, ... in auto-builds.
I'm also +1 to have those options enabled on our CI.
> E.g.
> [[[
> diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
> index 64634c2be..285680697 100644
> --- a/.github/workflows/cmake.yml
> +++ b/.github/workflows/cmake.yml
> @@ -154,14 +154,15 @@ jobs:
> libexpat1-dev
> zlib1g-dev
> libsqlite3-dev
> + apache2-dev
> ninja-build
> ${{ matrix.extra_packages }}
>
> - name: Install dependencies (Mac OS, homebrew)
> if: runner.os == 'macOS'
> run: |
> - $packages = @('apr', 'apr-util', 'expat', 'sqlite', 'apache-serf')
> - brew install ninja $packages
> + $packages = @('apr', 'apr-util', 'expat', 'sqlite', 'apache-serf', 'gettext')
> + brew install ninja apache2 $packages
> $PKG_CONFIG_PATH = `
> $packages | `
> % { "$(& brew --prefix $_)/lib/pkgconfig" } | `
> @@ -184,6 +185,8 @@ jobs:
> -DBUILD_SHARED_LIBS=${{ matrix.build_shared }}
> -DSVN_ENABLE_TESTS=ON
> -DSVN_ENABLE_RA_SERF=ON
> + -DSVN_ENABLE_NLS=ON
> + -DSVN_ENABLE_APACHE_MODULES=${{ runner.os != 'Windows' && 'ON' || 'OFF' }}
> -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/installdir
> -DVCPKG_TARGET_TRIPLET=${{ matrix.vcpkg_triplet }}
> -DSVN_TEST_CONFIGURE_FOR_PARALLEL=ON
> ]]]
>
> --
> Jun Omae <ju...@gmail.com> (大前 潤)
--
Timofei Zhakov
Re: svn commit: r1933812 - subversion/trunk
Posted by Jun Omae <ju...@gmail.com>.
On 2026/05/11 3:50, Timofei Zhakov wrote:
> On Fri, May 8, 2026 at 4:30 AM Jun Omae <ju...@gmail.com> wrote:
>>
>> On 2026/05/07 20:59, Jun Omae wrote:
>>> On 2026/05/05 0:09, rinrab@apache.org wrote:
>>>> Author: rinrab
>>>> Date: Mon May 4 15:09:48 2026
>>>> New Revision: 1933812
>>>>
>>>> Log:
>>>> cmake: Import targets.cmake before processing dependencies; This would allow
>>>> potentially refering to those targets in dependency search. Although cmake
>>>> allows to link a non-existing target, the target that it is linked to has to be
>>>> declared before.
>>>>
>>>> * CMakeLists.txt
>>>> (target_exports, ra-libs, fs-libs, the-include): Move them up.
>>>>
>>>> Modified:
>>>> subversion/trunk/CMakeLists.txt
>>> Encountered another issue with SVN_ENABLE_NLS=ON on macOS and Windows....
>>>
>>> [[[
>>> FAILED: [code=1] libsvn_delta-1.0.16.0.dylib
>>> : && /usr/bin/cc -dynamiclib -Wl,-headerpad_max_install_names -current_version 0.16.0 -o libsvn_delta-1.0.16.0.dylib ...
>>> Undefined symbols for architecture x86_64:
>>> "_libintl_dgettext", referenced from:
>>> _write_handler in svndiff.c.o
>>> _write_handler in svndiff.c.o
>>> _write_handler in svndiff.c.o
>>> _close_handler in svndiff.c.o
>>> _svn_txdelta_read_svndiff_window in svndiff.c.o
>>> _read_window_header in svndiff.c.o
>>> _read_window_header in svndiff.c.o
>>> _read_window_header in svndiff.c.o
>>> _read_window_header in svndiff.c.o
>>> _read_window_header in svndiff.c.o
>>> _read_window_header in svndiff.c.o
>>> ...
>>> ld: symbol(s) not found for architecture x86_64
>>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>>> ]]]
>>>
>>> [[[
>>> V:\usr\src\subversion\subversion.git\Release\cmake\svn_private_config.h(126,11):
>>> error C1083: Cannot open include file: 'libintl.h':
>>> No such file or directory [V:\usr\src\subversion\subversion.git\Release\cmake\libsvn_fs_util.vcxproj]
>>> (compiling source file '../../subversion/libsvn_fs_util/fs-util.c')
>>> ]]]
>> Proposed patch, cmake-nls-r1933902.patch.txt, attached.
>>
>> * Find gettext and intl packages before include(../targets.cmake).
>> * Use include_directories("${Intl_INCLUDE_DIRS}") rather than
>> set_target_properties(Intl::Intl PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${Intl_INCLUDE_DIRS}" ...)
>> because svn_private_config.h globally includes <libintl.h>.
>>
>> I confirmed that the builds successfully on Ubuntu, macOS and Windows.
>
> Your fix looks fine. Again, I'm really really sorry for the need for
> those follow-ups.
Thanks for the reviewing. Committed in r1934074.
> Now as I think, it might be better to revert this change. I wanted to
> move this include to the top because I need the targets available to
> tune a tiny thing in one of the dependencies but I don't know I might
> have simply done it with this specific one so I don't break the trunk
> once again. Thoughts?
I think the reverting is not needed. Current builds successfully. Many
changes already exist after this change. I don't think It is simple to
revert this change.
The builds are prone to break on macOS and Windows that it needs *.h and
*.lib files in non-standard locations. It might to be good to enable
SVN_ENABLE_NLS, SVN_ENABLE_APACHE_MODULES, ... in auto-builds.
E.g.
[[[
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 64634c2be..285680697 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -154,14 +154,15 @@ jobs:
libexpat1-dev
zlib1g-dev
libsqlite3-dev
+ apache2-dev
ninja-build
${{ matrix.extra_packages }}
- name: Install dependencies (Mac OS, homebrew)
if: runner.os == 'macOS'
run: |
- $packages = @('apr', 'apr-util', 'expat', 'sqlite', 'apache-serf')
- brew install ninja $packages
+ $packages = @('apr', 'apr-util', 'expat', 'sqlite', 'apache-serf', 'gettext')
+ brew install ninja apache2 $packages
$PKG_CONFIG_PATH = `
$packages | `
% { "$(& brew --prefix $_)/lib/pkgconfig" } | `
@@ -184,6 +185,8 @@ jobs:
-DBUILD_SHARED_LIBS=${{ matrix.build_shared }}
-DSVN_ENABLE_TESTS=ON
-DSVN_ENABLE_RA_SERF=ON
+ -DSVN_ENABLE_NLS=ON
+ -DSVN_ENABLE_APACHE_MODULES=${{ runner.os != 'Windows' && 'ON' || 'OFF' }}
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/installdir
-DVCPKG_TARGET_TRIPLET=${{ matrix.vcpkg_triplet }}
-DSVN_TEST_CONFIGURE_FOR_PARALLEL=ON
]]]
--
Jun Omae <ju...@gmail.com> (大前 潤)
Re: svn commit: r1933812 - subversion/trunk
Posted by Timofei Zhakov <ri...@apache.org>.
On Fri, May 8, 2026 at 4:30 AM Jun Omae <ju...@gmail.com> wrote:
>
> On 2026/05/07 20:59, Jun Omae wrote:
> > On 2026/05/05 0:09, rinrab@apache.org wrote:
> >> Author: rinrab
> >> Date: Mon May 4 15:09:48 2026
> >> New Revision: 1933812
> >>
> >> Log:
> >> cmake: Import targets.cmake before processing dependencies; This would allow
> >> potentially refering to those targets in dependency search. Although cmake
> >> allows to link a non-existing target, the target that it is linked to has to be
> >> declared before.
> >>
> >> * CMakeLists.txt
> >> (target_exports, ra-libs, fs-libs, the-include): Move them up.
> >>
> >> Modified:
> >> subversion/trunk/CMakeLists.txt
> > Encountered another issue with SVN_ENABLE_NLS=ON on macOS and Windows....
> >
> > [[[
> > FAILED: [code=1] libsvn_delta-1.0.16.0.dylib
> > : && /usr/bin/cc -dynamiclib -Wl,-headerpad_max_install_names -current_version 0.16.0 -o libsvn_delta-1.0.16.0.dylib ...
> > Undefined symbols for architecture x86_64:
> > "_libintl_dgettext", referenced from:
> > _write_handler in svndiff.c.o
> > _write_handler in svndiff.c.o
> > _write_handler in svndiff.c.o
> > _close_handler in svndiff.c.o
> > _svn_txdelta_read_svndiff_window in svndiff.c.o
> > _read_window_header in svndiff.c.o
> > _read_window_header in svndiff.c.o
> > _read_window_header in svndiff.c.o
> > _read_window_header in svndiff.c.o
> > _read_window_header in svndiff.c.o
> > _read_window_header in svndiff.c.o
> > ...
> > ld: symbol(s) not found for architecture x86_64
> > clang: error: linker command failed with exit code 1 (use -v to see invocation)
> > ]]]
> >
> > [[[
> > V:\usr\src\subversion\subversion.git\Release\cmake\svn_private_config.h(126,11):
> > error C1083: Cannot open include file: 'libintl.h':
> > No such file or directory [V:\usr\src\subversion\subversion.git\Release\cmake\libsvn_fs_util.vcxproj]
> > (compiling source file '../../subversion/libsvn_fs_util/fs-util.c')
> > ]]]
> Proposed patch, cmake-nls-r1933902.patch.txt, attached.
>
> * Find gettext and intl packages before include(../targets.cmake).
> * Use include_directories("${Intl_INCLUDE_DIRS}") rather than
> set_target_properties(Intl::Intl PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${Intl_INCLUDE_DIRS}" ...)
> because svn_private_config.h globally includes <libintl.h>.
>
> I confirmed that the builds successfully on Ubuntu, macOS and Windows.
Your fix looks fine. Again, I'm really really sorry for the need for
those follow-ups.
Now as I think, it might be better to revert this change. I wanted to
move this include to the top because I need the targets available to
tune a tiny thing in one of the dependencies but I don't know I might
have simply done it with this specific one so I don't break the trunk
once again. Thoughts?
--
Timofei Zhakov
Re: svn commit: r1933812 - subversion/trunk
Posted by Jun Omae <ju...@gmail.com>.
On 2026/05/07 20:59, Jun Omae wrote:
> On 2026/05/05 0:09, rinrab@apache.org wrote:
>> Author: rinrab
>> Date: Mon May 4 15:09:48 2026
>> New Revision: 1933812
>>
>> Log:
>> cmake: Import targets.cmake before processing dependencies; This would allow
>> potentially refering to those targets in dependency search. Although cmake
>> allows to link a non-existing target, the target that it is linked to has to be
>> declared before.
>>
>> * CMakeLists.txt
>> (target_exports, ra-libs, fs-libs, the-include): Move them up.
>>
>> Modified:
>> subversion/trunk/CMakeLists.txt
> Encountered another issue with SVN_ENABLE_NLS=ON on macOS and Windows....
>
> [[[
> FAILED: [code=1] libsvn_delta-1.0.16.0.dylib
> : && /usr/bin/cc -dynamiclib -Wl,-headerpad_max_install_names -current_version 0.16.0 -o libsvn_delta-1.0.16.0.dylib ...
> Undefined symbols for architecture x86_64:
> "_libintl_dgettext", referenced from:
> _write_handler in svndiff.c.o
> _write_handler in svndiff.c.o
> _write_handler in svndiff.c.o
> _close_handler in svndiff.c.o
> _svn_txdelta_read_svndiff_window in svndiff.c.o
> _read_window_header in svndiff.c.o
> _read_window_header in svndiff.c.o
> _read_window_header in svndiff.c.o
> _read_window_header in svndiff.c.o
> _read_window_header in svndiff.c.o
> _read_window_header in svndiff.c.o
> ...
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> ]]]
>
> [[[
> V:\usr\src\subversion\subversion.git\Release\cmake\svn_private_config.h(126,11):
> error C1083: Cannot open include file: 'libintl.h':
> No such file or directory [V:\usr\src\subversion\subversion.git\Release\cmake\libsvn_fs_util.vcxproj]
> (compiling source file '../../subversion/libsvn_fs_util/fs-util.c')
> ]]]
Proposed patch, cmake-nls-r1933902.patch.txt, attached.
* Find gettext and intl packages before include(../targets.cmake).
* Use include_directories("${Intl_INCLUDE_DIRS}") rather than
set_target_properties(Intl::Intl PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${Intl_INCLUDE_DIRS}" ...)
because svn_private_config.h globally includes <libintl.h>.
I confirmed that the builds successfully on Ubuntu, macOS and Windows.
--
Jun Omae <ju...@gmail.com> (大前 潤)
Re: svn commit: r1933812 - subversion/trunk
Posted by Jun Omae <ju...@gmail.com>.
On 2026/05/05 0:09, rinrab@apache.org wrote:
> Author: rinrab
> Date: Mon May 4 15:09:48 2026
> New Revision: 1933812
>
> Log:
> cmake: Import targets.cmake before processing dependencies; This would allow
> potentially refering to those targets in dependency search. Although cmake
> allows to link a non-existing target, the target that it is linked to has to be
> declared before.
>
> * CMakeLists.txt
> (target_exports, ra-libs, fs-libs, the-include): Move them up.
>
> Modified:
> subversion/trunk/CMakeLists.txt
Encountered another issue with SVN_ENABLE_NLS=ON on macOS and Windows....
[[[
FAILED: [code=1] libsvn_delta-1.0.16.0.dylib
: && /usr/bin/cc -dynamiclib -Wl,-headerpad_max_install_names -current_version 0.16.0 -o libsvn_delta-1.0.16.0.dylib ...
Undefined symbols for architecture x86_64:
"_libintl_dgettext", referenced from:
_write_handler in svndiff.c.o
_write_handler in svndiff.c.o
_write_handler in svndiff.c.o
_close_handler in svndiff.c.o
_svn_txdelta_read_svndiff_window in svndiff.c.o
_read_window_header in svndiff.c.o
_read_window_header in svndiff.c.o
_read_window_header in svndiff.c.o
_read_window_header in svndiff.c.o
_read_window_header in svndiff.c.o
_read_window_header in svndiff.c.o
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
]]]
[[[
V:\usr\src\subversion\subversion.git\Release\cmake\svn_private_config.h(126,11):
error C1083: Cannot open include file: 'libintl.h':
No such file or directory [V:\usr\src\subversion\subversion.git\Release\cmake\libsvn_fs_util.vcxproj]
(compiling source file '../../subversion/libsvn_fs_util/fs-util.c')
]]]
--
Jun Omae <ju...@gmail.com> (大前 潤)
Re: svn commit: r1933812 - subversion/trunk
Posted by Timofei Zhakov <ri...@apache.org>.
On Wed, May 6, 2026 at 10:17 AM Jun Omae <ju...@gmail.com> wrote:
>
> On 2026/05/06 15:30, Timofei Zhakov wrote:
> >> Ad hoc patch:
> >>
> >> [[[
> >> diff --git a/CMakeLists.txt b/CMakeLists.txt
> >> index c161b7030..0ba7d260e 100644
> >> --- a/CMakeLists.txt
> >> +++ b/CMakeLists.txt
> >> @@ -231,6 +231,14 @@ endif()
> >>
> >> if (SVN_ENABLE_SWIG_PERL OR SVN_ENABLE_SWIG_PYTHON OR SVN_ENABLE_SWIG_RUBY)
> >> include(UseSWIG)
> >> + set(SWIG_INCLUDE_DIRECTORIES
> >> + ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig/include
> >> + ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig
> >> + ${CMAKE_CURRENT_SOURCE_DIR}/subversion/include
> >> +
> >> + ${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy
> >> + ${CMAKE_CURRENT_BINARY_DIR}
> >> + )
> >> endif()
> >>
> >> # Setup modules path
> >> @@ -559,15 +567,6 @@ if(SVN_ENABLE_SWIG_PERL OR SVN_ENABLE_SWIG_PYTHON OR SVN_ENABLE_SWIG_RUBY)
> >>
> >> file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy")
> >>
> >> - set(SWIG_INCLUDE_DIRECTORIES
> >> - ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig/include
> >> - ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig
> >> - ${CMAKE_CURRENT_SOURCE_DIR}/subversion/include
> >> -
> >> - ${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy
> >> - ${CMAKE_CURRENT_BINARY_DIR}
> >> - )
> >> -
> >> add_library(external-swig INTERFACE)
> >>
> >> file(GLOB swig_headers_input "${CMAKE_CURRENT_SOURCE_DIR}/subversion/include/*.h")
> >> ]]]
> >>
> >
> > Of course. This patch solves the problem.
> >
> > Do you want to go ahead and commit it or I can do so if you want?
> >
>
> Thanks for the reviewing! Committed in r1933880.
Thanks!
--
Timofei Zhakov
Re: svn commit: r1933812 - subversion/trunk
Posted by Jun Omae <ju...@gmail.com>.
On 2026/05/06 15:30, Timofei Zhakov wrote:
>> Ad hoc patch:
>>
>> [[[
>> diff --git a/CMakeLists.txt b/CMakeLists.txt
>> index c161b7030..0ba7d260e 100644
>> --- a/CMakeLists.txt
>> +++ b/CMakeLists.txt
>> @@ -231,6 +231,14 @@ endif()
>>
>> if (SVN_ENABLE_SWIG_PERL OR SVN_ENABLE_SWIG_PYTHON OR SVN_ENABLE_SWIG_RUBY)
>> include(UseSWIG)
>> + set(SWIG_INCLUDE_DIRECTORIES
>> + ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig/include
>> + ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig
>> + ${CMAKE_CURRENT_SOURCE_DIR}/subversion/include
>> +
>> + ${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy
>> + ${CMAKE_CURRENT_BINARY_DIR}
>> + )
>> endif()
>>
>> # Setup modules path
>> @@ -559,15 +567,6 @@ if(SVN_ENABLE_SWIG_PERL OR SVN_ENABLE_SWIG_PYTHON OR SVN_ENABLE_SWIG_RUBY)
>>
>> file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy")
>>
>> - set(SWIG_INCLUDE_DIRECTORIES
>> - ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig/include
>> - ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig
>> - ${CMAKE_CURRENT_SOURCE_DIR}/subversion/include
>> -
>> - ${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy
>> - ${CMAKE_CURRENT_BINARY_DIR}
>> - )
>> -
>> add_library(external-swig INTERFACE)
>>
>> file(GLOB swig_headers_input "${CMAKE_CURRENT_SOURCE_DIR}/subversion/include/*.h")
>> ]]]
>>
>
> Of course. This patch solves the problem.
>
> Do you want to go ahead and commit it or I can do so if you want?
>
Thanks for the reviewing! Committed in r1933880.
--
Jun Omae <ju...@gmail.com> (大前 潤)
Re: svn commit: r1933812 - subversion/trunk
Posted by Timofei Zhakov <ri...@apache.org>.
On Tue, May 5, 2026 at 11:33 AM Jun Omae <ju...@gmail.com> wrote:
>
> On 2026/05/05 17:45, Timofei Zhakov wrote:
> > On Tue, May 5, 2026 at 1:38 AM Jun Omae <ju...@gmail.com> wrote:
> >>
> >> On 2026/05/05 0:09, rinrab@apache.org wrote:
> >>> Author: rinrab
> >>> Date: Mon May 4 15:09:48 2026
> >>> New Revision: 1933812
> >>>
> >>> Log:
> >>> cmake: Import targets.cmake before processing dependencies; This would allow
> >>> potentially refering to those targets in dependency search. Although cmake
> >>> allows to link a non-existing target, the target that it is linked to has to be
> >>> declared before.
> >>>
> >>> * CMakeLists.txt
> >>> (target_exports, ra-libs, fs-libs, the-include): Move them up.
> >>>
> >>> Modified:
> >>> subversion/trunk/CMakeLists.txt
> >> After r1933812, cmake is failing with SVN_ENABLE_SWIG_* options.
> >>
> >> [[[
> >> CMake Error at build/cmake/targets.cmake:2626 (swig_add_library):
> >> Unknown CMake command "swig_add_library".
> >> Call Stack (most recent call first):
> >> CMakeLists.txt:290 (include)
> >> ]]]
> >
> > Oopsie, should be fixed in r1933842.
>
>
> Thanks. However, builds of *.i files are failing....
Ohphf, I'm stupid, sorry. Something didn't quite recompile for me.
> [[[
> cd /home/jun66j5/src/subversion.git/out && /usr/bin/cmake -E make_directory /home/jun66j5/src/subversion.git/out/CMakeFiles/python_delta.dir /home/jun66j5/src/subversion.git/out/PythonPackages/libsvn /home/jun66j5/src/subversion.git/out/PythonPackages/libsvn && /usr/bin/cmake -E env SWIG_LIB= /home/jun66j5/swig/4.4.1/bin/swig -python -nofastunpack -outdir /home/jun66j5/src/subversion.git/out/PythonPackages/libsvn -interface _delta -o /home/jun66j5/src/subversion.git/out/PythonPackages/libsvn/svn_deltaPYTHON_wrap.c /home/jun66j5/src/subversion.git/subversion/bindings/swig/svn_delta.i
> /home/jun66j5/src/subversion.git/subversion/bindings/swig/svn_delta.i:24: Error: Unable to find 'svn_global.swg'
> /home/jun66j5/src/subversion.git/subversion/bindings/swig/core.i:26: Error: Unable to find 'svn_global.swg'
> /home/jun66j5/src/subversion.git/subversion/bindings/swig/core.i:827: Error: Unable to find 'svn_error_codes_h.swg'
> /home/jun66j5/src/subversion.git/subversion/bindings/swig/core.i:828: Error: Unable to find 'svn_time_h.swg'
> ...
> ]]]
>
> The SWIG_INCLUDE_DIRECTORIES variable is used from targets.cmake
> but it appears that the variable is modified after include(targets.cmake).
>
> Ad hoc patch:
>
> [[[
> diff --git a/CMakeLists.txt b/CMakeLists.txt
> index c161b7030..0ba7d260e 100644
> --- a/CMakeLists.txt
> +++ b/CMakeLists.txt
> @@ -231,6 +231,14 @@ endif()
>
> if (SVN_ENABLE_SWIG_PERL OR SVN_ENABLE_SWIG_PYTHON OR SVN_ENABLE_SWIG_RUBY)
> include(UseSWIG)
> + set(SWIG_INCLUDE_DIRECTORIES
> + ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig/include
> + ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig
> + ${CMAKE_CURRENT_SOURCE_DIR}/subversion/include
> +
> + ${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy
> + ${CMAKE_CURRENT_BINARY_DIR}
> + )
> endif()
>
> # Setup modules path
> @@ -559,15 +567,6 @@ if(SVN_ENABLE_SWIG_PERL OR SVN_ENABLE_SWIG_PYTHON OR SVN_ENABLE_SWIG_RUBY)
>
> file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy")
>
> - set(SWIG_INCLUDE_DIRECTORIES
> - ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig/include
> - ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig
> - ${CMAKE_CURRENT_SOURCE_DIR}/subversion/include
> -
> - ${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy
> - ${CMAKE_CURRENT_BINARY_DIR}
> - )
> -
> add_library(external-swig INTERFACE)
>
> file(GLOB swig_headers_input "${CMAKE_CURRENT_SOURCE_DIR}/subversion/include/*.h")
> ]]]
>
Of course. This patch solves the problem.
Do you want to go ahead and commit it or I can do so if you want?
--
Timofei Zhakov
Re: svn commit: r1933812 - subversion/trunk
Posted by Jun Omae <ju...@gmail.com>.
On 2026/05/05 17:45, Timofei Zhakov wrote:
> On Tue, May 5, 2026 at 1:38 AM Jun Omae <ju...@gmail.com> wrote:
>>
>> On 2026/05/05 0:09, rinrab@apache.org wrote:
>>> Author: rinrab
>>> Date: Mon May 4 15:09:48 2026
>>> New Revision: 1933812
>>>
>>> Log:
>>> cmake: Import targets.cmake before processing dependencies; This would allow
>>> potentially refering to those targets in dependency search. Although cmake
>>> allows to link a non-existing target, the target that it is linked to has to be
>>> declared before.
>>>
>>> * CMakeLists.txt
>>> (target_exports, ra-libs, fs-libs, the-include): Move them up.
>>>
>>> Modified:
>>> subversion/trunk/CMakeLists.txt
>> After r1933812, cmake is failing with SVN_ENABLE_SWIG_* options.
>>
>> [[[
>> CMake Error at build/cmake/targets.cmake:2626 (swig_add_library):
>> Unknown CMake command "swig_add_library".
>> Call Stack (most recent call first):
>> CMakeLists.txt:290 (include)
>> ]]]
>
> Oopsie, should be fixed in r1933842.
Thanks. However, builds of *.i files are failing....
[[[
cd /home/jun66j5/src/subversion.git/out && /usr/bin/cmake -E make_directory /home/jun66j5/src/subversion.git/out/CMakeFiles/python_delta.dir /home/jun66j5/src/subversion.git/out/PythonPackages/libsvn /home/jun66j5/src/subversion.git/out/PythonPackages/libsvn && /usr/bin/cmake -E env SWIG_LIB= /home/jun66j5/swig/4.4.1/bin/swig -python -nofastunpack -outdir /home/jun66j5/src/subversion.git/out/PythonPackages/libsvn -interface _delta -o /home/jun66j5/src/subversion.git/out/PythonPackages/libsvn/svn_deltaPYTHON_wrap.c /home/jun66j5/src/subversion.git/subversion/bindings/swig/svn_delta.i
/home/jun66j5/src/subversion.git/subversion/bindings/swig/svn_delta.i:24: Error: Unable to find 'svn_global.swg'
/home/jun66j5/src/subversion.git/subversion/bindings/swig/core.i:26: Error: Unable to find 'svn_global.swg'
/home/jun66j5/src/subversion.git/subversion/bindings/swig/core.i:827: Error: Unable to find 'svn_error_codes_h.swg'
/home/jun66j5/src/subversion.git/subversion/bindings/swig/core.i:828: Error: Unable to find 'svn_time_h.swg'
...
]]]
The SWIG_INCLUDE_DIRECTORIES variable is used from targets.cmake
but it appears that the variable is modified after include(targets.cmake).
Ad hoc patch:
[[[
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c161b7030..0ba7d260e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -231,6 +231,14 @@ endif()
if (SVN_ENABLE_SWIG_PERL OR SVN_ENABLE_SWIG_PYTHON OR SVN_ENABLE_SWIG_RUBY)
include(UseSWIG)
+ set(SWIG_INCLUDE_DIRECTORIES
+ ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig/include
+ ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig
+ ${CMAKE_CURRENT_SOURCE_DIR}/subversion/include
+
+ ${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy
+ ${CMAKE_CURRENT_BINARY_DIR}
+ )
endif()
# Setup modules path
@@ -559,15 +567,6 @@ if(SVN_ENABLE_SWIG_PERL OR SVN_ENABLE_SWIG_PYTHON OR SVN_ENABLE_SWIG_RUBY)
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy")
- set(SWIG_INCLUDE_DIRECTORIES
- ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig/include
- ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig
- ${CMAKE_CURRENT_SOURCE_DIR}/subversion/include
-
- ${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy
- ${CMAKE_CURRENT_BINARY_DIR}
- )
-
add_library(external-swig INTERFACE)
file(GLOB swig_headers_input "${CMAKE_CURRENT_SOURCE_DIR}/subversion/include/*.h")
]]]
--
Jun Omae <ju...@gmail.com> (大前 潤)
Re: svn commit: r1933812 - subversion/trunk
Posted by Timofei Zhakov <ri...@apache.org>.
On Tue, May 5, 2026 at 1:38 AM Jun Omae <ju...@gmail.com> wrote:
>
> On 2026/05/05 0:09, rinrab@apache.org wrote:
> > Author: rinrab
> > Date: Mon May 4 15:09:48 2026
> > New Revision: 1933812
> >
> > Log:
> > cmake: Import targets.cmake before processing dependencies; This would allow
> > potentially refering to those targets in dependency search. Although cmake
> > allows to link a non-existing target, the target that it is linked to has to be
> > declared before.
> >
> > * CMakeLists.txt
> > (target_exports, ra-libs, fs-libs, the-include): Move them up.
> >
> > Modified:
> > subversion/trunk/CMakeLists.txt
> After r1933812, cmake is failing with SVN_ENABLE_SWIG_* options.
>
> [[[
> CMake Error at build/cmake/targets.cmake:2626 (swig_add_library):
> Unknown CMake command "swig_add_library".
> Call Stack (most recent call first):
> CMakeLists.txt:290 (include)
> ]]]
Oopsie, should be fixed in r1933842.
--
Timofei Zhakov
Re: svn commit: r1933812 - subversion/trunk
Posted by Jun Omae <ju...@gmail.com>.
On 2026/05/05 0:09, rinrab@apache.org wrote:
> Author: rinrab
> Date: Mon May 4 15:09:48 2026
> New Revision: 1933812
>
> Log:
> cmake: Import targets.cmake before processing dependencies; This would allow
> potentially refering to those targets in dependency search. Although cmake
> allows to link a non-existing target, the target that it is linked to has to be
> declared before.
>
> * CMakeLists.txt
> (target_exports, ra-libs, fs-libs, the-include): Move them up.
>
> Modified:
> subversion/trunk/CMakeLists.txt
After r1933812, cmake is failing with SVN_ENABLE_SWIG_* options.
[[[
CMake Error at build/cmake/targets.cmake:2626 (swig_add_library):
Unknown CMake command "swig_add_library".
Call Stack (most recent call first):
CMakeLists.txt:290 (include)
]]]
--
Jun Omae <ju...@gmail.com> (大前 潤)