<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/compat/vcbuild, branch jch</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=jch</id>
<link rel='self' href='https://git.shady.money/git/atom?h=jch'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-10-17T18:42:27Z</updated>
<entry>
<title>mingw.c: Fix complier warnings for a 64 bit msvc</title>
<updated>2024-10-17T18:42:27Z</updated>
<author>
<name>Sören Krecker</name>
<email>soekkle@freenet.de</email>
</author>
<published>2024-10-17T17:18:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=386d372031a76e508591090b09630e1af72c5c9d'/>
<id>urn:sha1:386d372031a76e508591090b09630e1af72c5c9d</id>
<content type='text'>
Remove some complier warnings from msvc in compat/mingw.c for value
truncation from 64 bit to 32 bit integers.

Compiling compat/mingw.c under a 64 bit version of msvc produces
warnings. An "int" is 32 bit, and ssize_t or size_t should be 64 bit
long. Prepare compat/vcbuild/include/unistd.h to have a 64 bit type
_ssize_t, when _WIN64 is defined and 32 bit otherwise.

Further down in this include file, as before, ssize_t is defined as
_ssize_t, if needed.

Use size_t instead of int for all variables that hold the result of
strlen() or wcslen() (which cannot be negative).

Use ssize_t to hold the return value of read().

Signed-off-by: Sören Krecker &lt;soekkle@freenet.de&gt;
Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
</content>
</entry>
<entry>
<title>Makefile: stop hardcoding {command,config}-list.h</title>
<updated>2021-09-23T22:06:47Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-09-23T10:29:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7c3c0a99cc22279f7060ff2e73befbcd7d449896'/>
<id>urn:sha1:7c3c0a99cc22279f7060ff2e73befbcd7d449896</id>
<content type='text'>
Change various places that hardcode the names of these two files to
refer to either $(GENERATED_H), or to a new generated-hdrs
target. That target is consistent with the *-objs targets I recently
added in 029bac01a8 (Makefile: add {program,xdiff,test,git,fuzz}-objs
&amp; objects targets, 2021-02-23).

A subsequent commit will add a new generated hook-list.h. By doing
this refactoring we'll only need to add the new file to the
GENERATED_H variable, not EXCEPT_HDRS, the vcbuild/README etc.

Hardcoding command-list.h there seems to have been a case of
copy/paste programming in 976aaedca0 (msvc: add a Makefile target to
pre-generate the Visual Studio solution, 2019-07-29). The
config-list.h was added later in 709df95b78 (help: move
list_config_help to builtin/help, 2020-04-16).

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>ci(vs-build): stop passing the iconv library location explicitly</title>
<updated>2020-12-04T20:03:15Z</updated>
<author>
<name>Dennis Ameling</name>
<email>dennis@dennisameling.com</email>
</author>
<published>2020-12-04T14:22:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e66590348a78d69b08dff8f6a1d978982e61465a'/>
<id>urn:sha1:e66590348a78d69b08dff8f6a1d978982e61465a</id>
<content type='text'>
Something changed in `vcpkg` (which we use in our Visual C++ build to
provide the dependencies such as libcurl) and our `vs-build` job started
failing in CI. The reason is that we had a work-around in place to help
CMake find iconv, and this work-around is neither needed nor does it
work anymore.

For the full discussion with the vcpkg project, see this comment:
https://github.com/microsoft/vcpkg/issues/14780#issuecomment-735368280

Signed-off-by: Dennis Ameling &lt;dennis@dennisameling.com&gt;
Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>vcbuild: fix batch file name in README</title>
<updated>2020-09-03T17:19:48Z</updated>
<author>
<name>Orgad Shaneh</name>
<email>orgads@gmail.com</email>
</author>
<published>2020-09-02T20:18:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3384a1ef78cae095d527d106cc15ca13b075c05f'/>
<id>urn:sha1:3384a1ef78cae095d527d106cc15ca13b075c05f</id>
<content type='text'>
Signed-off-by: Orgad Shaneh &lt;orgads@gmail.com&gt;
Acked-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>vcbuild: fix library name for expat with make MSVC=1</title>
<updated>2020-09-03T17:19:42Z</updated>
<author>
<name>Orgad Shaneh</name>
<email>orgads@gmail.com</email>
</author>
<published>2020-09-02T20:16:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c2f3ef8d8f16bccd08f17d33f6a6e10f0e79cdb3'/>
<id>urn:sha1:c2f3ef8d8f16bccd08f17d33f6a6e10f0e79cdb3</id>
<content type='text'>
Signed-off-by: Orgad Shaneh &lt;orgads@gmail.com&gt;
Acked-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/msvc-build-fix'</title>
<updated>2020-06-18T04:54:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-06-18T04:54:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9906d5f8e9323724f74715740161e4a91f5d7f87'/>
<id>urn:sha1:9906d5f8e9323724f74715740161e4a91f5d7f87</id>
<content type='text'>
Workaround breakage in MSVC build, where "curl-config --cflags"
gives settings appropriate for GCC build.

* js/msvc-build-fix:
  msvc: fix "REG_STARTEND" issue
</content>
</entry>
<entry>
<title>msvc: fix "REG_STARTEND" issue</title>
<updated>2020-06-04T22:52:21Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2020-06-04T21:09:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bb0e43d8a1ae8489071573c5323c28ed2935a354'/>
<id>urn:sha1:bb0e43d8a1ae8489071573c5323c28ed2935a354</id>
<content type='text'>
In 897d68e7af82 (Makefile: use curl-config --cflags, 2020-03-26), we
taught the build process to use `curl-config --cflags` to make sure that
it can find cURL's headers.

In the MSVC build, this is completely bogus because we're running in a
Git for Windows SDK whose `curl-config` supports the _GCC_ build.

Let's just ignore each and every `-I&lt;path&gt;` option where `&lt;path&gt;` points
to GCC/Clang specific headers.

Reported by Jeff Hostetler in
https://github.com/microsoft/git/issues/275.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'es/bugreport'</title>
<updated>2020-05-01T20:39:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-05-01T20:39:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dd094c2b75401f6e1e53e7a5bbfca3c66c44f556'/>
<id>urn:sha1:dd094c2b75401f6e1e53e7a5bbfca3c66c44f556</id>
<content type='text'>
The "bugreport" tool.

* es/bugreport:
  bugreport: drop extraneous includes
  bugreport: add compiler info
  bugreport: add uname info
  bugreport: gather git version and build info
  bugreport: add tool to generate debugging info
  help: move list_config_help to builtin/help
</content>
</entry>
<entry>
<title>help: move list_config_help to builtin/help</title>
<updated>2020-04-16T22:22:16Z</updated>
<author>
<name>Emily Shaffer</name>
<email>emilyshaffer@google.com</email>
</author>
<published>2020-04-16T21:18:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=709df95b788990472775a63e8b15af3ddd0c822e'/>
<id>urn:sha1:709df95b788990472775a63e8b15af3ddd0c822e</id>
<content type='text'>
Starting in 3ac68a93fd2, help.o began to depend on builtin/branch.o,
builtin/clean.o, and builtin/config.o. This meant that help.o was
unusable outside of the context of the main Git executable.

To make help.o usable by other commands again, move list_config_help()
into builtin/help.c (where it makes sense to assume other builtin libraries
are present).

When command-list.h is included but a member is not used, we start to
hear a compiler warning. Since the config list is generated in a fairly
different way than the command list, and since commands and config
options are semantically different, move the config list into its own
header and move the generator into its own script and build rule.

For reasons explained in 976aaedc (msvc: add a Makefile target to
pre-generate the Visual Studio solution, 2019-07-29), some build
artifacts we consider non-source files cannot be generated in the
Visual Studio environment, and we already have some Makefile tweaks
to help Visual Studio to use generated command-list.h header file.
Do the same to a new generated file, config-list.h, introduced by
this change.

Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Emily Shaffer &lt;emilyshaffer@google.com&gt;
</content>
</entry>
<entry>
<title>Sync with maint</title>
<updated>2020-01-16T23:18:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-01-16T23:18:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=232378479ee6c66206d47a9be175e3a39682aea6'/>
<id>urn:sha1:232378479ee6c66206d47a9be175e3a39682aea6</id>
<content type='text'>
* maint:
  msvc: accommodate for vcpkg's upgrade to OpenSSL v1.1.x
</content>
</entry>
</feed>
