<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/dangole/tools, branch main</title>
<subtitle>Staging tree of Daniel Golle</subtitle>
<id>https://git.openwrt.org/openwrt/staging/dangole/atom?h=main</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/dangole/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/'/>
<updated>2024-05-23T09:49:03Z</updated>
<entry>
<title>tools: refresh all patches</title>
<updated>2024-05-23T09:49:03Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2024-05-18T19:14:20Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=337b0c80cbbb2c76e80f9f970b03decedcd4c827'/>
<id>urn:sha1:337b0c80cbbb2c76e80f9f970b03decedcd4c827</id>
<content type='text'>
Refresh all tools patches now that tools/refresh correctly works.

CI now checks for them and actively complain if tools have unrefreshed
patches.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
[ reword commit message ]
Link: https://github.com/openwrt/openwrt/pull/15524
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/lz4: remove patches</title>
<updated>2024-05-23T09:49:02Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2024-05-22T21:14:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=8097aa0b3291bb41409d386000f866573533e849'/>
<id>urn:sha1:8097aa0b3291bb41409d386000f866573533e849</id>
<content type='text'>
meson is used to build it since 291b137. No need to patch Makefiles.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/15524
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/padjffs2: use Host/Prepare/Default instead of raw commands</title>
<updated>2024-05-22T09:56:45Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-05-22T09:56:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=01048c7456785bc4a45452c84d8f31635e1fa60b'/>
<id>urn:sha1:01048c7456785bc4a45452c84d8f31635e1fa60b</id>
<content type='text'>
Now that Host/Prepare/Default is always defined, we can use that instead
of using raw commands to move files from the src directory to
HOST_BUILD_DIR.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/missing-macros: install files from HOST_BUILD_DIR instead of src</title>
<updated>2024-05-22T09:53:52Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-05-22T09:53:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=46bcbe42236bbe058eaeb89a0d1a4f22926cfdf9'/>
<id>urn:sha1:46bcbe42236bbe058eaeb89a0d1a4f22926cfdf9</id>
<content type='text'>
Install files from HOST_BUILD_DIR instead of src. These files are now
correctly copied to HOST_BUILD_DIR and can be referenced from there.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: mold: update to 2.31.0</title>
<updated>2024-05-09T08:45:29Z</updated>
<author>
<name>Sean Khan</name>
</author>
<published>2024-05-06T16:09:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=d03b567b668d14020396def542c0fc829c65d208'/>
<id>urn:sha1:d03b567b668d14020396def542c0fc829c65d208</id>
<content type='text'>
New:
- mold is now up to 10% faster when linking very large, debug
  info-enabled executables such as Blender (~1.8 GiB) or Clang (~3.8
  GiB), thanks to several improvements we've made to the string merging
  algorithm. (53ebcd8, d714301, 40f6b17, c9faf3d)
- -z start-stop-visibility=hidden is now supported so that
  linker-synthesized __start_&lt;section-name&gt; and __stop_&lt;section-name&gt;
  symbols can be completely hidden from other ELF modules. Previously,
  only -z start-stop-visibility=protected was supported. (99a5b15)
- -Bsymbolic-non-weak and -Bsymbolic-non-weak-functions options are now
  supported for compatibility with LLVM lld. Just like lld, these options
  control which symbols are exported as dynamic symbols.
  -Bsymbolic-non-weak makes the linker to export only weak symbols,
  whereas -Bsymbolic-non-weak-functions makes it to export only weak
  function symbols. (7d17aa8)

Bug fixes and compatibility improvements:

- Previously, if a linker script contains a newline character in the
  beginning four bytes of a file, it was not recognized as a linker
  script by mold. Now, mold allows newlines at the beginning of a file.
  (ea054cc)
- Under rare circumstances, the INPUT linker script command may have
  found a different file than GNU ld would. Now, mold's behavior aligns
  with GNU ld's. (163975d)
- Previously, the --repro option produced corrupted tar files. Now the
  bug has been fixed. (32c4a09)
- mold generally guarantees that its output is reproducible, meaning that
  if you run the linker with the exact same command line options and
  input files, the output is guaranteed to be bit-for-bit identical to
  the previous outputs. However, under rare circumstances, it might
  produce different output due to a bug. It's reported that this
  nondeterminism caused random crashes for some programs (#1247). This
  bug has been fixed. (6463a7c)
- mold no longer sets the address of the .text section as the entry point
  address if --entry option is not given, just like LLVM lld. (020b1a7)
- [RISC-V] __global_pointer$ symbol is now exported from executables as
  required by the processor-specific ABI. (3df7c8e)
- [ARM32] --long-plt option is now recognized as known option by mold.
  mold ignores the option, though, because the PLTs generated by our
  linker is always long. (d432e98)

Release Notes:
https://github.com/rui314/mold/releases/tag/v2.31.0

Signed-off-by: Sean Khan &lt;datapronix@protonmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/15403
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: add more linux include files to fix x86 build on macos</title>
<updated>2024-05-07T10:50:27Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2024-05-07T10:18:08Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=c3d4598c0129671d534e5556d25b00229fc22095'/>
<id>urn:sha1:c3d4598c0129671d534e5556d25b00229fc22095</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>tools: pkgconf: provide prefix for host and hostpkg stagind directory</title>
<updated>2024-05-05T15:22:26Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-04-11T15:02:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=49a64c954109a7af9e64e3ea8d84ae5b3004435f'/>
<id>urn:sha1:49a64c954109a7af9e64e3ea8d84ae5b3004435f</id>
<content type='text'>
Some package might require to fix their pkg-config file to point to host
or hostpkg file. This is the case for glib2 library that provides with
pkg-config variables, tools to generates files from xml. Those tools
should use the host binary instead of the targets one to correctly build
packages that makes use of such tools.

Link: https://github.com/openwrt/openwrt/pull/15134
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>gengetopt: backport patch fixing support for c++17</title>
<updated>2024-05-01T13:45:25Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-05-01T13:42:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=a8bfdf2ed4d930ca5a31b5c4bc7061ad5ef11ba3'/>
<id>urn:sha1:a8bfdf2ed4d930ca5a31b5c4bc7061ad5ef11ba3</id>
<content type='text'>
Backport patch fixing support for c++17 that got merged upstream in
gengetopt.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/elfutils: remove dirname</title>
<updated>2024-04-30T11:37:59Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2024-04-30T09:08:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=00ff73ec6e815d9e82ef9164d23d445a2346579e'/>
<id>urn:sha1:00ff73ec6e815d9e82ef9164d23d445a2346579e</id>
<content type='text'>
In the 0.191 update dirname was used instead of &lt;libgen.h&gt; to fix the
poisoned basename error:
/usr/include/libgen.h:35:9: error: attempt to use poisoned "basename"
       35 | #define basename        __xpg_basename

However, doing this has lead to libelf.a pulling in xmalloc, xstrdup and
friends and statically linking them thus leading to a symbol name conflict
with FRR host build and anything else that links against libelf and uses
xmalloc and friends.

Well, it turns out that upstream has added a helper[1] for basename so it
can compile with musl 1.2.5 which dropped the basename declaration, but it
also means that we must NOT include &lt;libgen.h&gt; and that poisoned error is
intentional and added to prevent duplicate basename definitions.
This also means that for macOS we dont need to do any additional header
inclusions as the new helper takes care of basename.

So, to fix the symbol conflict we can simply drop the &lt;dirname.h&gt; inclusion
and build from elfutils.

Tested on Fedora 40 as well as macOS 14.4.1.

[1] https://sourceware.org/git/?p=elfutils.git;a=commit;h=a2194f6b305bf0d0b9dd49dccd0a5c21994c8eea

Fixes: #24030
Fixes: b6f025b42429 ("tools/elfutils: update to 1.91")

Link: https://github.com/openwrt/openwrt/pull/15337
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/expat: fix PKG_CPE_ID</title>
<updated>2024-04-27T21:37:57Z</updated>
<author>
<name>Fabrice Fontaine</name>
</author>
<published>2024-04-26T09:24:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=ff59f3f4bdb56c779579aaa11b815f4c83abbac5'/>
<id>urn:sha1:ff59f3f4bdb56c779579aaa11b815f4c83abbac5</id>
<content type='text'>
cpe:/a:libexpat_project:libexpat is the correct CPE ID for expat:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:libexpat:libexpat

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)

Signed-off-by: Fabrice Fontaine &lt;fontaine.fabrice@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/15291
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
</feed>
