<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git, branch v12.0.0</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v12.0.0</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v12.0.0'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2019-06-03T04:55:22Z</updated>
<entry>
<title>Make 12.0.0 release</title>
<updated>2019-06-03T04:55:22Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-03T03:37:14Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=102e518d4d9e8132fb258770373b8d4dc8fcf392'/>
<id>urn:sha1:102e518d4d9e8132fb258770373b8d4dc8fcf392</id>
<content type='text'>
Fixes two API issues. Some backwards compatibility breakage was required
for the load_config()/write_config() message change, though the only
effect on most scripts will be less output on stdout unless/until
they're modified.

 - Commit bf36f5d ("Improve warning control API (with backwards
   compatibility)")

 - Commit 55bc8c3 ("Have load_config() and write_(min_)config() return
   messages")

Kconfiglib now also makes the version number available:

 - Commit 455e366 ("Add kconfiglib.VERSION")

These are longstanding issues. I don't know of any other ones that would
warrant breaking backwards compatibility. Not going on some API changing
spree.
</content>
</entry>
<entry>
<title>Improve warning control API (with backwards compatibility)</title>
<updated>2019-06-03T04:50:06Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-02T23:55:50Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=bf36f5de0f49d56975b1a844e25484ec385dc971'/>
<id>urn:sha1:bf36f5de0f49d56975b1a844e25484ec385dc971</id>
<content type='text'>
A wart of the warning control API (enable/disable_*_warnings()) is that
the current warning settings can't be queried. Querying warning settings
is useful in functions that want to temporarily enable/disable some
warning and then put things back to how they were.
kconfiglib.load_allconfig() ran into this, for example.

Make the internal warning control variables public (improve the naming
at the same time), and encourage just setting them directly. Keep the
old API for backwards compatibility.

Also remove _warn_redun_assign() and _warn_override(). They're trivial
and were called in a single place.
</content>
</entry>
<entry>
<title>Have load_config() and write_(min_)config() return messages</title>
<updated>2019-06-03T04:50:06Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-02T16:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=55bc8c380869ea663092212e8fe388ad7abae596'/>
<id>urn:sha1:55bc8c380869ea663092212e8fe388ad7abae596</id>
<content type='text'>
Hardcoding load_config() and write_(min_)config() to write any message
to stdout is awkward, because it means that the message can't be easily
reused when stdout is the wrong place to write it to (e.g. in
menuconfig/guiconfig). This gets extra bad now that there's also the "No
change to ..." message.

Modify load_config() and write_(min_)config() to return the message as a
string instead, and have them always return a message, instead of just
when 'filename' is None and verbose=True. This makes things flexible and
straightforward.

Use the new behavior in menuconfig.py and guiconfig.py. They now show
"No change to ..." when saving a file doesn't modify it.

Tools that want to write messages to stdout should now do
print(kconf.load_config()) / print(kconf.write_config()).

There's no clean way to preserve perfect backwards compatibility here,
but keep accepting the 'verbose' argument and print a deprecation
warning if a value is ever passed for it. That way, scripts will keep
running, though possibly with less output on stdout.

This changes the meaning of the load_config() return value as well,
though I suspect it was only ever used by the menuconfig/guiconfig
interfaces.

The new behavior applies for kconfiglib.VERSION &gt;= (12, 0, 0).
</content>
</entry>
<entry>
<title>Add kconfiglib.VERSION</title>
<updated>2019-06-03T02:42:35Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-03T02:03:57Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=455e3661c6f50b088b35a3b2662052e7e2a24769'/>
<id>urn:sha1:455e3661c6f50b088b35a3b2662052e7e2a24769</id>
<content type='text'>
Holds a (&lt;major&gt;, &lt;minor&gt;, &lt;patch&gt;) tuple, e.g. (12, 0, 0).
</content>
</entry>
<entry>
<title>Make 11.9.1 release</title>
<updated>2019-06-01T04:22:48Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-01T04:10:52Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=544888a059d1c066f00e2f0f174fb4199e349f52'/>
<id>urn:sha1:544888a059d1c066f00e2f0f174fb4199e349f52</id>
<content type='text'>
Fixes an obscure rsource crash, in commit 92791a3 ("Fix obscure crash
with rsource and $srctree pointing to a symlink").
</content>
</entry>
<entry>
<title>Fix obscure crash with rsource and $srctree pointing to a symlink</title>
<updated>2019-06-01T04:21:54Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-01T02:15:04Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=92791a3fe15bb2d5c14039fbd531be73255f0c6d'/>
<id>urn:sha1:92791a3fe15bb2d5c14039fbd531be73255f0c6d</id>
<content type='text'>
Sourcing a file with an absolute path and using rsource in it triggered
a relpath() between the absolute path and $srctree. Since e.g.
symlink/../bar/ = bar/ is not guaranteed for symlinks, this could lead
to the rsource'd file not being found if $srctree pointed to a symlink.

Switch to a simpler, more textual method for stripping $srctree from
glob results, which should be robust against symlink shenanigans. This
also makes the code a bit easier to follow.

Discovered by Marc Herbert.

Piggyback some minor cleanup.
</content>
</entry>
<entry>
<title>Make 11.9.0 release</title>
<updated>2019-05-31T00:16:52Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-05-31T00:16:52Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=f60f05c0ea0fcd0557b4e8f29f3b9d9471d011dd'/>
<id>urn:sha1:f60f05c0ea0fcd0557b4e8f29f3b9d9471d011dd</id>
<content type='text'>
Adds commit 175c1f5 ("Leave unchanged output files untouched"). This
avoids updating file modification timestamps when nothing has changed,
which can make it easier to avoid triggering redundant rebuilds.
</content>
</entry>
<entry>
<title>Comment nits</title>
<updated>2019-05-30T23:46:21Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-05-30T04:34:59Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=bc5583b316ed3c9765b5ccb9cdaad250b034858a'/>
<id>urn:sha1:bc5583b316ed3c9765b5ccb9cdaad250b034858a</id>
<content type='text'>
Remove some 'Note:'s, update some stuff.
</content>
</entry>
<entry>
<title>Leave unchanged output files untouched</title>
<updated>2019-05-30T22:08:14Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-05-29T05:29:20Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=175c1f5a363e51a76a7dc1fe807f7c3faf40ab23'/>
<id>urn:sha1:175c1f5a363e51a76a7dc1fe807f7c3faf40ab23</id>
<content type='text'>
Before writing a configuration file or header file, compare the old
contents of the file against the new contents. If there's no change,
skip the write, to avoid updating the file modification time.

This might avoid triggering redundant rebuilds depending on how the
build system is set up, and could allow for a simpler setup.
</content>
</entry>
<entry>
<title>Make 11.8.0 release</title>
<updated>2019-05-29T00:50:48Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-05-29T00:50:30Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=556dcdd252bd312b1da21f84f4775cbbba0dd8c4'/>
<id>urn:sha1:556dcdd252bd312b1da21f84f4775cbbba0dd8c4</id>
<content type='text'>
Adds commit 437c6cc ("Use os.replace() if available in _save_old()"),
which gives rename() semantics on Windows, avoiding copying the file.

This was cherry-picked out of a larger change re. avoiding touching
files whose contents haven't changed. Will come later.
</content>
</entry>
</feed>
