<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/xback/tools/elfutils, branch master</title>
<subtitle>Staging tree of Koen Vandeputte</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/xback/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/xback/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/xback/'/>
<updated>2026-10-08T07:50:39Z</updated>
<entry>
<title>tools/elfutils: fix the build on macOS</title>
<updated>2026-10-08T07:50:39Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-10-07T16:42:42Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/xback/commit/?id=f3c75e3562f2db1b0cbacea076f29fd431f70e01'/>
<id>urn:sha1:f3c75e3562f2db1b0cbacea076f29fd431f70e01</id>
<content type='text'>
The DEFAULT_INCLUDES override adds -I. to the src directory. There,
upstream deliberately clears DEFAULT_INCLUDES: with libc++, &lt;format&gt;
includes &lt;stack&gt;, which then resolves to the stack binary in src.

Leave out -I. for the src directory.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>tools/elfutils: update to 0.196</title>
<updated>2026-09-29T07:27:40Z</updated>
<author>
<name>Ivan Pavlov</name>
</author>
<published>2026-09-25T07:37:36Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/xback/commit/?id=a5bc79c39b3ddec0115984ad22e71659eedf55ff'/>
<id>urn:sha1:a5bc79c39b3ddec0115984ad22e71659eedf55ff</id>
<content type='text'>
To reduce the size of the downloaded source files, the version of tools library
has been aligned with the version used in the packages.

Release notes: https://inbox.sourceware.org/elfutils-devel/CAJDtP-QXj15OOpBxLdU+V1PZKM8YmnsE1eVy-R2R5xbE7Shk5A@mail.gmail.com/T/#u

Manually rebased patches:
 - 012-backport-mips-support-readelf.patch
 - 100-portability.patch

Removed patches:
 - 001-fix-backport-iquote-include.patch - fixed in [1]
 - 110-objects-manifest.patch - upstreamed

Include new submodule 'libdwfl_stacktrace' in makefile.
Changes from 8f920d2 are rolled back after fix [1]

1. https://sourceware.org/bugzilla/show_bug.cgi?id=33103

Fixes: https://github.com/openwrt/openwrt/commit/8f920d2f94b0878e9b4291ffa18cfc9e02828f77
Signed-off-by: Ivan Pavlov &lt;AuthorReflex@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/25388
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: cache the configure results of ten autotools tools</title>
<updated>2026-09-22T16:18:58Z</updated>
<author>
<name>John Crispin</name>
</author>
<published>2026-09-20T15:20:18Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/xback/commit/?id=cd322612ccb66e35878ed7f9d3e562f9f4b4bd09'/>
<id>urn:sha1:cd322612ccb66e35878ed7f9d3e562f9f4b4bd09</id>
<content type='text'>
These ten hold up the wall clock on their own. Their configure stages
run while nothing else does, because the tools build in dependency
order. Measured over a full build, cold cache against warm:

  sed        21.68 s -&gt; 1.22 s
  m4         21.48 s -&gt; 1.22 s
  findutils  19.47 s -&gt; 1.56 s
  tar        17.75 s -&gt; 1.47 s
  cpio       14.28 s -&gt; 1.26 s
  bison      12.81 s -&gt; 1.29 s
  patch      12.16 s -&gt; 1.31 s
  elfutils   26.58 s -&gt; 15.47 s

Each of the ten configures the same way with a warm cache as it does
without one. The check runs configure three times, without a cache, with
a cold cache and with a warm cache, and compares every file that
configure generates between the first and the last. ncurses fails that
check; these do not.

The only difference left is ac_ct_AR and ac_ct_RANLIB, which a cold run
fills through the fallback path of AC_CHECK_TOOL and a warm run leaves
empty. AR and RANLIB are correct in both, and no generated Makefile
reads the ac_ct_ form.

tools/cmake keeps its 33 s, the longest configure stage in the build. It
bootstraps with its own script rather than autoconf, so this does not
reach it.

Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</content>
</entry>
<entry>
<title>tools: elfutils: fix uio header inclusion</title>
<updated>2026-08-04T07:17:53Z</updated>
<author>
<name>Paweł Owoc</name>
</author>
<published>2026-08-02T06:51:39Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/xback/commit/?id=9452d9672165c2acfdb93824938b285bbf86be28'/>
<id>urn:sha1:9452d9672165c2acfdb93824938b285bbf86be28</id>
<content type='text'>
Fixes arm64 build failures by replacing &lt;linux/uio.h&gt; with POSIX &lt;sys/uio.h&gt;
to avoid header redefinition conflicts.

gnulib's fcntl.h ends up including glibc's fcntl.h and fcntl-linux.h
which includes glibc's types/struct_iovec.h,
thats where the redefinition happens.

the lines that use &lt;linux/uio.h&gt; are antiquated and were never necessary.
it can be traced back to the original 2014 change that added the file with aarch64 support
in upstream commit 66637fa21044ac0058b25522f473669e73de328b

it was never necessary to use the linux header over the glibc headers,
as elfutils only needs the iovec struct and that struct was present since glibc 2.0 in the 1990s

Signed-off-by: Paweł Owoc &lt;frut3k7@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/24539
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/elfutils: enable parallel building</title>
<updated>2025-07-26T12:38:09Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2024-09-25T08:28:41Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/xback/commit/?id=0b4ebe5dd3f87bcc60d29706a4f500cd7607b21e'/>
<id>urn:sha1:0b4ebe5dd3f87bcc60d29706a4f500cd7607b21e</id>
<content type='text'>
There are multiple subdirectories for elfutils
and more than one is not dependent on another,
so enabling parallel building can save time
if multiple cores are available.

The change in build time for the package
is as much as 20% when cores are not in use by other jobs.

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/elfutils: update to 0.192</title>
<updated>2025-07-26T12:38:09Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2024-10-21T19:31:29Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/xback/commit/?id=abf243eae87e4cf2886bfa4c6271e8bb3aebcb18'/>
<id>urn:sha1:abf243eae87e4cf2886bfa4c6271e8bb3aebcb18</id>
<content type='text'>
Update to the next release.

Removed upstream patch:
 - 000-backport-iquote-include.patch
 - 010-backport-mips-support-reloc.patch
 - 014-backport-mips-support-stack.patch
 - 015-backport-mips-support-regs.patch
 - 095-src-unused-variable.patch
 - 096-lib-config_h.patch
 - 097-libcpu-config_h.patch
 - 098-libdw-maintainer-clean.patch
 - 099-remove-unlocked-stdio.patch

Manually adjusted patch:
 - 012-backport-mips-support-readelf.patch
 - 013-backport-mips-support-elflint.patch
 - 101-shared-conditional.patch

All other patches are automatically refreshed.

Link: https://sourceware.org/pipermail/elfutils-devel/2024q4/007540.html
Tested-by: Georgi Valkov &lt;gvalkov@gmail.com&gt; # macOS
Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/elfutils: update MIPS support patches</title>
<updated>2025-07-26T12:38:08Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2024-10-21T13:47:25Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/xback/commit/?id=5bb84fb53bb5fa1215ddcd245ecdd94975484170'/>
<id>urn:sha1:5bb84fb53bb5fa1215ddcd245ecdd94975484170</id>
<content type='text'>
The original patch series partially added by commit
f97da2c61 ("tools/elfutils: add missing MIPS reloc support")
now has a v3 which has half of it's commits accepted.

To prepare for updating to the new release,
use the new series that includes backports.

Manually adjusted patch:
 - 010-backport-mips-support-reloc.patch

Add patch:
 - 011-backport-mips-support-strip.patch
 - 012-backport-mips-support-readelf.patch
 - 013-backport-mips-support-elflint.patch
 - 014-backport-mips-support-stack.patch
 - 015-backport-mips-support-regs.patch

Tested-by: Tony Ambardar &lt;itugrok@yahoo.com&gt;
Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/elfutils: add maintainer-clean to clean target</title>
<updated>2025-07-26T12:38:08Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2024-09-24T22:50:15Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/xback/commit/?id=c83941d288408308126a6f6bda12eca06a43253c'/>
<id>urn:sha1:c83941d288408308126a6f6bda12eca06a43253c</id>
<content type='text'>
Use the clean recipe during build, so that files already
generated by the bootstrapping within the release are removed
before the bootstrap script is run again.

Automake with modified rules must be ran
in order to generate a Makefile that does delete itself or libtool.

In order to enable rules for building what is removed,
maintainer mode is required for configuring.

Building from tracked sources only with maintainer mode
requires a lexical analyzer, so add dependency for bison.

Override an automake variable "am__CONFIG_DISTCLEAN_FILES"
in order to prevent removing config.status and other configure files
so that configure stage does not need to be ran twice.

The function obstack_printf() is not present on macOS,
so use the available gnulib module and their dependencies.

Many more modules from gnulib are now needed,
and some replacements of some functions must be skipped
to prevent build errors at link time.

Tested-by: Georgi Valkov &lt;gvalkov@gmail.com&gt; # macOS
Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/elfutils: backport version 0.192 portability patches</title>
<updated>2025-07-26T12:38:08Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2024-10-20T12:33:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/xback/commit/?id=c16ed51e0606833f9094f0d9b44f7db7f85b2988'/>
<id>urn:sha1:c16ed51e0606833f9094f0d9b44f7db7f85b2988</id>
<content type='text'>
These patches will be present in version 0.192 release.

Include them before the update
to support changes before updating
and in order to have a more organized git history.

Manually refreshed patch:
 - 110-objects-manifest.patch

Add patch:
 - 095-src-unused-variable.patch
 - 096-lib-config_h.patch
 - 097-libcpu-config_h.patch
 - 098-libdw-maintainer-clean.patch
 - 099-remove-unlocked-stdio.patch

Tested-by: Georgi Valkov &lt;gvalkov@gmail.com&gt; # macOS
Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/elfutils: replace dependency hack with upstream include path fix</title>
<updated>2025-07-26T12:38:08Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2024-10-20T11:49:50Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/xback/commit/?id=8f920d2f94b0878e9b4291ffa18cfc9e02828f77'/>
<id>urn:sha1:8f920d2f94b0878e9b4291ffa18cfc9e02828f77</id>
<content type='text'>
In order to solve the problem of the possibility that
the "stack" binary is incorrectly included as a header
while the compiler looks for the standard C++ header "stack",
a workaround forcing a dependency between building "stack"
and the C++ program was introduced.

This upstream fix uses the compiler "-iquote" option
in order to avoid looking for standard headers
in the current working directory
and blocks the default inclusion of "-I ."
to the compiler flags.

The upstream fix happens to be incomplete,
so add an extra patch to fix an additional instance
and then remove the workaround.

Also, adjust the way DEFAULT_INCLUDES is overridden
in the build Makefile by using the "-iquote" option
in the same manner in order to remove all instances
of the default inclusion for the current directory.

Tested-by: Georgi Valkov &lt;gvalkov@gmail.com&gt; # macOS
Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
</feed>
