| 1 |
make-dfsg (4.4.1-1) unstable; urgency=medium |
| 2 |
|
| 3 |
This release has these backward-incompatible changes since 4.3: |
| 4 |
|
| 5 |
* GNU Make now uses temporary files in more situations than previous |
| 6 |
releases. If your build system sets TMPDIR (or TMP or TEMP on |
| 7 |
Windows) and deletes the contents during the build, or uses |
| 8 |
restrictive permissions, this may cause problems. You can choose an |
| 9 |
alternative temporary directory only for use by GNU Make by setting |
| 10 |
the new MAKE_TMPDIR environment variable before invoking make. Note |
| 11 |
that this value CANNOT be set inside the makefile, since make needs to |
| 12 |
find its temporary directory before the makefiles are parsed. |
| 13 |
|
| 14 |
* Previously each target in a explicit grouped target rule was |
| 15 |
considered individually: if the targets needed by the build were not |
| 16 |
out of date the recipe was not run even if other targets in the group |
| 17 |
were out of date. Now if any of the grouped targets are needed by the |
| 18 |
build, then if any of the grouped targets are out of date the recipe |
| 19 |
is run and all targets in the group are considered updated. |
| 20 |
|
| 21 |
* Previously if --no-print-directory was seen anywhere in the |
| 22 |
environment or command line it would take precedence over any |
| 23 |
--print-directory. Now, the last setting of directory printing |
| 24 |
options seen will be used, so a command line such as |
| 25 |
"--no-print-directory -w" _will_ show directory entry/exits. |
| 26 |
|
| 27 |
* Previously the order in which makefiles were remade was not explicitly |
| 28 |
stated, but it was (roughly) the inverse of the order in which they |
| 29 |
were processed by make. In this release, the order in which makefiles |
| 30 |
are rebuilt is the same order in which make processed them, and this |
| 31 |
is defined to be true in the GNU Make manual. |
| 32 |
|
| 33 |
* Previously only simple (one-letter) options were added to the |
| 34 |
MAKEFLAGS variable that was visible while parsing makefiles. Now, all |
| 35 |
options are available in MAKEFLAGS. If you want to check MAKEFLAGS |
| 36 |
for a one-letter option, expanding "$(firstword -$(MAKEFLAGS))" is a |
| 37 |
reliable way to return the set of one-letter options which can be |
| 38 |
examined via findstring, etc. |
| 39 |
|
| 40 |
* Previously makefile variables marked as export were not exported to |
| 41 |
commands started by the $(shell ...) function. Now, all exported |
| 42 |
variables are exported to $(shell ...). If this leads to recursion |
| 43 |
during expansion, then for backward-compatibility the value from the |
| 44 |
original environment is used. To detect this change search for |
| 45 |
'shell-export' in the .FEATURES variable. |
| 46 |
|
| 47 |
* In previous releases it was not well-defined when updates to MAKEFLAGS made |
| 48 |
inside a makefile would be visible. This release ensures they are |
| 49 |
visible immediately, even when invoking $(shell ...) functions. Also, |
| 50 |
command line variable assignments are now always present in MAKEFLAGS, |
| 51 |
even when parsing makefiles. |
| 52 |
|
| 53 |
-- Stephen Kitt <[email protected]> Thu, 07 Nov 2024 18:25:26 +0100 |
| 54 |
|
| 55 |
make-dfsg (4.3-3) unstable; urgency=medium |
| 56 |
|
| 57 |
* Fix ordering if include dirs |
| 58 |
There has been a long standind bug where INCLUDE_DIRS /usr/include is |
| 59 |
included twice. The more important problem is it is before the |
| 60 |
/usr/local/include. This commit fixes the ordering. So now |
| 61 |
/usr/local/include comes before /usr/include, which it should, but |
| 62 |
this is a change in behaviour. |
| 63 |
|
| 64 |
-- Manoj Srivastava <[email protected]> Fri, 05 Jun 2020 18:59:32 -0700 |
| 65 |
|
| 66 |
make-dfsg (4.3-1) unstable; urgency=medium |
| 67 |
|
| 68 |
* WARNING: Backward-incompatibility! |
| 69 |
Number signs (#) appearing inside a macro reference or function invocation |
| 70 |
no longer introduce comments and should not be escaped with backslashes: |
| 71 |
thus a call such as: |
| 72 |
foo := $(shell echo '#') |
| 73 |
is legal. Previously the number sign needed to be escaped, for example: |
| 74 |
foo := $(shell echo '\#') |
| 75 |
Now this latter will resolve to "\#". If you want to write makefiles |
| 76 |
portable to both versions, assign the number sign to a variable: |
| 77 |
H := \# |
| 78 |
foo := $(shell echo '$H') |
| 79 |
This was claimed to be fixed in 3.81, but wasn't, for some reason. |
| 80 |
To detect this change search for 'nocomment' in the .FEATURES variable. |
| 81 |
* WARNING: Backward-incompatibility! |
| 82 |
Previously appending using '+=' to an empty variable would result in a value |
| 83 |
starting with a space. Now the initial space is only added if the variable |
| 84 |
already contains some value. Similarly, appending an empty string does not |
| 85 |
add a trailing space. |
| 86 |
* NOTE: Deprecated behavior. |
| 87 |
Contrary to the documentation, suffix rules with prerequisites are being |
| 88 |
treated BOTH as simple targets AND as pattern rules. Further, the |
| 89 |
prerequisites are ignored by the pattern rules. POSIX specifies that in |
| 90 |
order to be a suffix rule there can be no prerequisites defined. In this |
| 91 |
release if POSIX mode is enabled then rules with prerequisites cannot be |
| 92 |
suffix rules. If POSIX mode is not enabled then the previous behavior is |
| 93 |
preserved (a pattern rule with no extra prerequisites is created) AND a |
| 94 |
warning about this behavior is generated: |
| 95 |
warning: ignoring prerequisites on suffix rule definition |
| 96 |
The POSIX behavior will be adopted as the only behavior in a future release |
| 97 |
of GNU make so please resolve any warnings. |
| 98 |
|
| 99 |
|
| 100 |
-- Manoj Srivastava <[email protected]> Wed, 20 May 2020 13:56:50 -0700 |
| 101 |
|
| 102 |
make-dfsg (4.1-2) unstable; urgency=low |
| 103 |
|
| 104 |
WARNING: Backward-incompatibility! |
| 105 |
|
| 106 |
The ar program in the binutils package in Debian is now configured |
| 107 |
with --enable-deterministic-archives. This change makes the archives |
| 108 |
reproducible, by setting the UID, GID, and timestamp to 0. However, |
| 109 |
when dealing with archives created with the libxx(*.o) style rules, |
| 110 |
make needs the timestamp of the file in order to decide to update it |
| 111 |
or not. With the current deterministic behavior of ar, the time stamp |
| 112 |
is always 0. This has consequences, since make will fall back to always |
| 113 |
adding each member to the archive, whether or not it is required. This |
| 114 |
is a change in behaviour, and, for instance, it makes make fail to |
| 115 |
build, failing 7 out of 10 archive tests. |
| 116 |
. |
| 117 |
Since binutils will create archive with time stamps set to 0 when |
| 118 |
running in "deterministic" mode, make will always try to update such |
| 119 |
members. When this is detected, make will emit a warning. |
| 120 |
. |
| 121 |
There is some online discussion: |
| 122 |
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798804 |
| 123 |
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798913 |
| 124 |
https://bugzilla.redhat.com/show_bug.cgi?id=1195883 |
| 125 |
|
| 126 |
-- Manoj Srivastava <[email protected]> Mon, 18 Jan 2016 16:09:19 -0800 |
| 127 |
|
| 128 |
make-dfsg (4.0-1) experimental; urgency=low |
| 129 |
|
| 130 |
WARNING: Backward-incompatibility! |
| 131 |
If .POSIX is specified, then make adheres to the POSIX backslash/newline |
| 132 |
handling requirements, which introduces the following changes to the |
| 133 |
standard backslash/newline handling in non-recipe lines: |
| 134 |
* Any trailing space before the backslash is preserved |
| 135 |
* Each backslash/newline (plus subsequent whitespace) is converted to a |
| 136 |
single space |
| 137 |
|
| 138 |
-- Manoj Srivastava <[email protected]> Sat, 12 Apr 2014 23:56:34 -0700 |
| 139 |
|
| 140 |
make-dfsg (3.82-1) experimental; urgency=low |
| 141 |
|
| 142 |
* New upstream release. A complete list of bugs fixed in this version is |
| 143 |
available here: http://sv.gnu.org/bugs/index.php?group=make&report_id=111&fix_release_id=104&set=custom |
| 144 |
* WARNING: Future backward-incompatibility! |
| 145 |
Wildcards are not documented as returning sorted values, but up to and |
| 146 |
including this release the results have been sorted and some makefiles |
| 147 |
are apparently depending on that. In the next release of GNU make, |
| 148 |
for performance reasons, we may remove that sorting. If your |
| 149 |
makefiles require sorted results from wildcard expansions, use the |
| 150 |
$(sort ...) function to request it explicitly. |
| 151 |
* WARNING: Backward-incompatibility! |
| 152 |
The POSIX standard for make was changed in the 2008 version in a |
| 153 |
fundamentally incompatible way: make is required to invoke the shell |
| 154 |
as if the '-e' flag were provided. Because this would break many |
| 155 |
makefiles that have been written to conform to the original text of |
| 156 |
the standard, the default behavior of GNU make remains to invoke the |
| 157 |
shell with simply '-c'. However, any makefile specifying the .POSIX |
| 158 |
special target will follow the new POSIX standard and pass '-e' to the |
| 159 |
shell. See also .SHELLFLAGS below. |
| 160 |
* WARNING: Backward-incompatibility! |
| 161 |
The '$?' variable now contains all prerequisites that caused the |
| 162 |
target to be considered out of date, even if they do not exist |
| 163 |
(previously only existing targets were provided in $?). |
| 164 |
* WARNING: Backward-incompatibility! |
| 165 |
As a result of parser enhancements, three backward-compatibility |
| 166 |
issues exist: first, a prerequisite containing an "=" cannot be |
| 167 |
escaped with a backslash any longer. You must create a variable |
| 168 |
containing an "=" and use that variable in the prerequisite. Second, |
| 169 |
variable names can no longer contain whitespace, unless you put the |
| 170 |
whitespace in a variable and use the variable. Third, in previous |
| 171 |
versions of make it was sometimes not flagged as an error for explicit |
| 172 |
and pattern targets to appear in the same rule. Now this is always |
| 173 |
reported as an error. |
| 174 |
* WARNING: Backward-incompatibility! |
| 175 |
The pattern-specific variables and pattern rules are now applied in |
| 176 |
the shortest stem first order instead of the definition order |
| 177 |
(variables and rules with the same stem length are still applied in |
| 178 |
the definition order). This produces the usually-desired behavior |
| 179 |
where more specific patterns are preferred. To detect this feature |
| 180 |
search for 'shortest-stem' in the .FEATURES special variable. |
| 181 |
* WARNING: Backward-incompatibility! |
| 182 |
The library search behavior has changed to be compatible with the |
| 183 |
standard linker behavior. Prior to this version for prerequisites |
| 184 |
specified using the -lfoo syntax make first searched for libfoo.so in |
| 185 |
the current directory, vpath directories, and system directories. If |
| 186 |
that didn't yield a match, make then searched for libfoo.a in these |
| 187 |
directories. Starting with this version make searches first for |
| 188 |
libfoo.so and then for libfoo.a in each of these directories in order. |
| 189 |
|
| 190 |
-- Manoj Srivastava <[email protected]> Mon, 18 Jul 2011 00:38:04 -0700 |
| 191 |
|
| 192 |
make (3.80+3.81.b3.1-1) unstable; urgency=low |
| 193 |
|
| 194 |
* WARNING: Backward-incompatibility! (this may help CDBS users) |
| 195 |
GNU make now implements a generic "second expansion" feature on the |
| 196 |
prerequisites of both explicit and implicit (pattern) rules. In order |
| 197 |
to enable this feature, the special target '.SECONDEXPANSION' must be |
| 198 |
defined before the first target which takes advantage of it. If this |
| 199 |
feature is enabled then after all rules have been parsed the |
| 200 |
prerequisites are expanded again, this time with all the automatic |
| 201 |
variables in scope. This means that in addition to using standard |
| 202 |
SysV $$@ in prerequisites lists, you can also use complex functions |
| 203 |
such as $$(notdir $$@) etc. This behavior applies to implicit rules, |
| 204 |
as well, where the second expansion occurs when the rule is matched. |
| 205 |
However, this means that you need to double-quote any "$" in your |
| 206 |
filenames; instead of "foo: boo$$bar" you now must write "foo: |
| 207 |
foo$$$$bar". Note that the SysV $$@ etc. feature, which used to be |
| 208 |
available by default, is now ONLY available when the .SECONDEXPANSION |
| 209 |
target is defined. If your makefiles take advantage of this SysV |
| 210 |
feature you will need to update them. |
| 211 |
* New special variables available in this release: |
| 212 |
- .INCLUDE_DIRS: Expands to a list of directories that make searches |
| 213 |
for included makefiles. |
| 214 |
* New functions available in this release: |
| 215 |
- $(info ...) prints its arguments to stdout. No makefile name or |
| 216 |
line number info, etc. is printed. |
| 217 |
- $(flavor ...) returns the flavor of a variable. |
| 218 |
|
| 219 |
-- Manoj Srivastava <[email protected]> Mon, 12 Dec 2005 13:38:47 -0600 |
| 220 |
|
| 221 |
make (3.80+3.81.b3-1) unstable; urgency=low |
| 222 |
|
| 223 |
* WARNING: Backward-incompatibility! |
| 224 |
GNU make now implements a generic "second expansion" feature on the |
| 225 |
prerequisites of both explicit and implicit (pattern) rules. After |
| 226 |
all rules have been parsed the prerequisites are expanded again, this |
| 227 |
time with all the automatic variables in scope. This means that in |
| 228 |
addition to using standard SysV $$@ in prerequisites lists, you can |
| 229 |
also use complex functions such as $$(notdir $$@) etc. This behavior |
| 230 |
applies to implicit rules, as well, where the second expansion occurs |
| 231 |
after the rule is matched. However, this means that you need to |
| 232 |
double-quote any "$" in your filenames; instead of "foo: boo$$bar" you |
| 233 |
now must write "foo: foo$$$$bar". |
| 234 |
* WARNING: Backward-incompatibility! |
| 235 |
In order to comply with POSIX, the way in which GNU make processes |
| 236 |
backslash-newline sequences in command strings has changed. See the |
| 237 |
GNU make manual section "Command Execution" for details. |
| 238 |
* New command-line option: -L (--check-symlink-times). On systems that |
| 239 |
support symbolic links, if this option is given then GNU make will use |
| 240 |
the most recent modification time of any symbolic links that are used |
| 241 |
to resolve target files. The default behavior remains as it always |
| 242 |
has: use the modification time of the actual target file only. |
| 243 |
* The "else" conditional line can now be followed by any other legal |
| 244 |
conditional on the same line: this does not increase the depth of the |
| 245 |
conditional nesting, so only one "endif" is required to close the |
| 246 |
conditional. |
| 247 |
* All pattern-specific variables that match a given target are now used |
| 248 |
(previously only the first match was used). |
| 249 |
* Target-specific variables can be marked as exportable using the |
| 250 |
"export" keyword. |
| 251 |
* In a recursive $(call ...) context, any extra arguments from the outer |
| 252 |
call are now masked in the context of the inner call. |
| 253 |
* Implemented a solution for the "thundering herd" problem with "-j -l". |
| 254 |
This version of GNU make uses an algorithm suggested by Thomas Riedl |
| 255 |
<[email protected]> to track the number of jobs started in the |
| 256 |
last second and artificially adjust GNU make's view of the system's |
| 257 |
load average accordingly. |
| 258 |
* New special variables available in this release: |
| 259 |
- .FEATURES: Contains a list of special features available in this |
| 260 |
version of GNU make. |
| 261 |
- .DEFAULT_GOAL: Set the name of the default goal make will |
| 262 |
use if no goals are provided on the command line. |
| 263 |
- MAKE_RESTARTS: If set, then this is the number of times this |
| 264 |
instance of make has been restarted (see "How Makefiles Are Remade" |
| 265 |
in the manual). |
| 266 |
- New automatic variable: $| (added in 3.80, actually): contains all |
| 267 |
the order-only prerequisites defined for the target. |
| 268 |
* New functions available in this release: |
| 269 |
- $(lastword ...) returns the last word in the list. This gives |
| 270 |
identical results as $(word $(words ...) ...), but is much faster. |
| 271 |
- $(abspath ...) returns the absolute path (all "." and ".." |
| 272 |
directories resolved, and any duplicate "/" characters removed) for |
| 273 |
each path provided. |
| 274 |
- $(realpath ...) returns the canonical pathname for each path |
| 275 |
provided. The canonical pathname is the absolute pathname, with |
| 276 |
all symbolic links resolved as well. |
| 277 |
- $(info ...) prints informative messages to stdout. No makefile |
| 278 |
name or line number info, etc. is printed, just the message. |
| 279 |
* Changes made for POSIX compatibility: |
| 280 |
- Only touch targets (under -t) if they have at least one command. |
| 281 |
- Setting the SHELL make variable does NOT change the value of the |
| 282 |
SHELL environment variable given to programs invoked by make. As |
| 283 |
an enhancement to POSIX, if you export the make variable SHELL then |
| 284 |
it will be set in the environment, just as before. |
| 285 |
|
| 286 |
-- Manoj Srivastava <[email protected]> Fri, 9 Dec 2005 21:28:14 -0600 |