lp:make

Created by Colin Watson and last modified
Get this branch:
bzr branch lp:make

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
VCS imports
Project:
GNU Make
Status:
Development

Import details

Import Status: Reviewed

This branch is an import of the HEAD branch of the Git repository at git://git.sv.gnu.org/make.git.

The next import is scheduled to run .

Last successful import was .

Import started on izar and finished taking 10 seconds — see the log
Import started on izar and finished taking 10 seconds — see the log
Import started on izar and finished taking 10 seconds — see the log
Import started on izar and finished taking 10 seconds — see the log
Import started on izar and finished taking 10 seconds — see the log
Import started on izar and finished taking 10 seconds — see the log
Import started on izar and finished taking 10 seconds — see the log
Import started on alnitak and finished taking 10 seconds — see the log
Import started on alnitak and finished taking 10 seconds — see the log
Import started on izar and finished taking 10 seconds — see the log

Recent revisions

2700. By Eli Zaretskii on 2021-05-29

[SV 58656] Fix mtime for large files on MS-Windows

In MSVC builds, 'stat' fails when called on files larger than
2GB. Call '_stat64' instead to work around this.

* src/remake.c (STAT): Define to '_stat64' for MSVC builds.
(name_mtime) [WINDOWS32]: Use STAT instead of 'stat'.
Suggested by Makoto Kato <email address hidden>.

2699. By Paul Smith on 2021-03-28

Fix build and test issues on Windows

* src/dep.h (DEP): Remove extraneous semicolon.
* src/dir.c (find_directory) [W32]: Replace removed variable.
* tests/scripts/features/include: Allow the extra default makefile
searched for on Windows.
* tests/scripts/functions/file: Use $(info ...) to avoid "command
too long" errors on Windows.

2698. By Tobias Stoeckmann <email address hidden> on 2021-03-28

* src/remake.c (name_mtime): Reserve space for nul in readlink result

Copyright-paperwork-exempt: yes

2697. By Cao jin <email address hidden> on 2021-03-25

* doc/make.texi (Call Function): Apply consistent formatting

Copyright-paperwork-exempt: yes

2696. By Pete Dietl on 2021-03-25

* src/job.c (child_execute_job): Update gnulib find_in_given_path()

Copyright-paperwork-exempt: yes

2695. By Mike Frysinger on 2021-03-25

* doc/make.texi (Automatic Variables): Relocate the $? example

Copyright-paperwork-exempt: yes

2694. By Paul Smith on 2021-03-15

[SV 58497] Ensure $(file <) newline removal succeeds

Keep a count of bytes read rather than comparing pointers since the
variable_buffer might get reallocated.

Bug and patch by Ken Tossell <email address hidden>
Regression tests by Dmitry Goncharov <email address hidden>
Tweaked by Paul Smith <email address hidden>

* src/function.c (func_file): Use bytes read rather than a pointer.
* tests/scripts/functions/file: Provide various tests for reading
empty files, files with/without newlines, and large files.

2693. By Dmitry Goncharov <email address hidden> on 2021-03-15

[SV 60188] Explicit prereqs cannot be intermediate files

If a prereq of a pattern is an explicit target, it should not be
considered an intermediate file.

(Minor tweaks by Paul Smith <email address hidden>)

* src/dep.h (struct nameseq): Add is_explicit flag.
* src/implicit.c (struct patdeps): Ditto.
(pattern_search): Set the is_explicit flag appropriately for each
prerequisite, based on whether it contained a pattern or not.
Update the help output to note implicit vs. explicit prereqs.
* tests/scripts/features/double_colon: Add tests.
* tests/scripts/features/grouped_targets: Ditto.
* tests/scripts/features/patternrules: Ditto.
* tests/scripts/features/se_implicit: Ditto.
* tests/scripts/features/statipattrules: Ditto.

2692. By Paul Smith on 2021-03-15

* tests/scripts/features/exec: Small cleanup

2691. By Paul Smith on 2021-03-15

Ensure variable_buffer is always set.

Initialize the global variable_buffer in main() so that it is never
a null pointer. Then invoking variable_expand("") is never needed:
simply use the variable_buffer pointer when we want to restart the
variable buffer. The main point of this simplification is not to
keep a separate pointer to the beginning of the buffer: this is
dangerous because the buffer may be re-allocated. Instead always
use the variable_buffer pointer itself.

* src/variable.h (initialize_variable_output): Publish.
* src/expand.c (initialize_variable_output): Remove static.
* src/main.c (main): Initialize variable_buffer.
* src/file.c (enter_prereqs): Don't call variable_expand("") and
don't save a separate buffer pointer than might be outdated.
(expand_deps): Ditto.
* src/read.c (record_files): Ditto.
* src/remake.c (library_search): Ditto.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers