<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/rules.mk, branch v23.05.2</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v23.05.2</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v23.05.2'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2023-06-12T20:10:20Z</updated>
<entry>
<title>treewide: add ORIG_PATH variable</title>
<updated>2023-06-12T20:10:20Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2023-05-25T06:31:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=948dc515dc5afca45a233471535e7c463866c9a9'/>
<id>urn:sha1:948dc515dc5afca45a233471535e7c463866c9a9</id>
<content type='text'>
Add a variable that stores the original value of $PATH
in the host system's shell, before Make alters it.

This can be useful for when it is necessary
to ignore symlinks and programs made by the build system.

Define this new variable before all instances of
'export PATH:=' or similar.

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
(cherry picked from commit d87a8aa148ddf93b199a759deb088fff73787025)
</content>
</entry>
<entry>
<title>tools: add gnulib source</title>
<updated>2023-05-04T04:07:27Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2023-03-22T22:29:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=fe33d5ba13370027165b9acf2bd895f5b4d9a4ea'/>
<id>urn:sha1:fe33d5ba13370027165b9acf2bd895f5b4d9a4ea</id>
<content type='text'>
By having a local copy of gnulib, we can:
import the latest macro fixes into any package,
get rid of some statically stored macros that were otherwise missing,
bootstrap GNU tools with the latest relevant source
without having to wait for a release or rely on git submodules,
and possibly more...

The patch assists in bootstrapping by ignoring
the building of po files using gettext,
and also to allow a user-defined path to a program
to include parameters.

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
</content>
</entry>
<entry>
<title>prereq-build: add check for true and false</title>
<updated>2023-05-04T04:07:23Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2023-04-20T16:31:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=ffd7c05aa72ee56b836903159540f9470aeef121'/>
<id>urn:sha1:ffd7c05aa72ee56b836903159540f9470aeef121</id>
<content type='text'>
Some uses cases, like with autotools, need a path for 'true'
if we use them to force something to skip.

This will work by default on Linux hosts,
and require MacOS hosts to get coreutils,
which is currently installed in the CI
for 'macos-latest' host.

In the future, prereq stage can be reworked
to search for the actual binary
instead of relying on env.

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
</content>
</entry>
<entry>
<title>rules.mk: add FILECMD variable</title>
<updated>2023-03-26T22:41:50Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2023-03-14T09:10:50Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=2bb8e4a88149e09389b409517219b4ade4e7578e'/>
<id>urn:sha1:2bb8e4a88149e09389b409517219b4ade4e7578e</id>
<content type='text'>
Some packages using Libtool have the possibility
of using this environment variable if set,
instead of the direct command for "file" using PATH,
or the need to patch a hard-coded path.

This is a new feature of Libtool 2.4.7

Ref: bf261073d ("tools/libtool: bump to 2.4.7")
Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
</content>
</entry>
<entry>
<title>Remove ccache wrappers</title>
<updated>2023-03-05T16:48:31Z</updated>
<author>
<name>Paul Fertser</name>
</author>
<published>2023-01-20T15:25:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=5a1eb3bb2c27ede3046bb2977008c74a04681db9'/>
<id>urn:sha1:5a1eb3bb2c27ede3046bb2977008c74a04681db9</id>
<content type='text'>
These wrappers are not needed as CC doesn't need to be a single word.

a53b084e497a9f1629a2caada833ebe14a6838b7 which introduced the wrappers
doesn't explain why they were really needed and why only for the target
and not for the host.

Moreover, name of the wrappers breaks a ccache assumption: since
v4.0-3-g6a92b4cd3a67 it has special handling for "chained" invocation
such as "ccache ccache gcc" where it skips all the "ccache*" names in
the middle and proceeds to run as if it was started as "ccache
gcc"[1][2].

This becomes important when a build system sees ccache in the PATH and
automatically enables it by prepending to CC. An example of such a
system would be autosetup as used by jimtcl. With the wrappers it breaks
as the command line ends up being just "ccache -Os..." because
"ccache_cc" gets skipped as it starts with "ccache".

[1] https://github.com/ccache/ccache/blob/master/src/ccache.cpp#L2105
[2] https://github.com/ccache/ccache/blob/master/src/Util.cpp#L802

Reported-by: Karl Palsson &lt;karlp@etactica.com&gt;
Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
</content>
</entry>
<entry>
<title>treewide: derive host and hostpkg path from STAGING_DIR</title>
<updated>2023-01-09T20:33:20Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-12-02T19:56:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=2a3283643ccf77b55d67c7a3f96d40576227499c'/>
<id>urn:sha1:2a3283643ccf77b55d67c7a3f96d40576227499c</id>
<content type='text'>
STAGING_DIR may be provided from command line. We currently hardcoded
STAGING_DIR_HOST and STAGING_DIR_HOSTPKG to the default location but we
currently have some relocatable patch that derive the path from
STAGING_DIR.

Fix this and correctly derive STAGING_DIR_HOST and STAGING_DIR_HOSTPKG
from STAGING_DIR.

The intention is to fix inconsistency from the relocatable patch and the
use of STAGING_DIR_HOST that is always hardcoded.
This with a wrong configuration may end up in broken state with some
host tools expecing a PATH from STAGING_DIR and others using library
from the default staging_dir/host path.

To save downstream project the original implementation is saved while
fixing the inconsistency between patch and .mk.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>rules: drop -Wno-error additional flags from default TARGET_CFLAGS</title>
<updated>2022-12-26T11:59:18Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-07-17T11:26:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=5db4fbad4f55acf1a1bcc8b9685e2581789226a5'/>
<id>urn:sha1:5db4fbad4f55acf1a1bcc8b9685e2581789226a5</id>
<content type='text'>
We currently enable -Wno-error=unused-but-set-variable and
-Wno-error=unused-result by default on every compile package.

While this is (relatively) unharmful, we should follow other project
direction and starts enforcing good code quality. For example the linux
kernel recently started to enforce Wall by default and clean code is
mandatory for inclusion.

Drop for good these flags and and make it mandatory to correctly handle
return values at least with a warning log if they are not strictly error
condition.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>rules: fix broken commitcount on alpine system</title>
<updated>2022-12-18T13:19:07Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-12-17T15:39:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=eb7ffeafbfa78235b05abb4ae479376150d7a814'/>
<id>urn:sha1:eb7ffeafbfa78235b05abb4ae479376150d7a814</id>
<content type='text'>
To generate commitcount we use grep --max-count. This is not present on
alpine grep and cause wrong generation. Use -m as it's just the short
version of --max-count and more portable.

Fixes: #11200
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>rules.mk: move DOWNLOAD_CHECK_CERTIFICATE to include/download.mk</title>
<updated>2022-10-05T15:49:19Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-10-03T22:30:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=7df959449cabee021aa42cab3a7172e0972a79a7'/>
<id>urn:sha1:7df959449cabee021aa42cab3a7172e0972a79a7</id>
<content type='text'>
Move DOWNLOAD_CHECK_CERTIFICATE to include/download.mk as it's a better
place than exporting it in the global rules.mk makefile.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>rules.mk: add option to download files into a subdirectory</title>
<updated>2022-09-22T20:48:35Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2022-08-03T17:01:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=59db286814be3ebc1fb9d9ec580945920c2d68e7'/>
<id>urn:sha1:59db286814be3ebc1fb9d9ec580945920c2d68e7</id>
<content type='text'>
Some packages download a single raw file or set of raw files
instead of an archive.

The filenames of these download files have names and version numbers
that do not directly correspond to the name and version of the package
as it is defined in its Makefile.

To better organize downloaded files, this adds the option of
creating a subdirectory in the download directory for these files
that can be named with package specific variables.

DL_DIR is now a recursively expanded variable
since the value now depends on whether DL_SUBDIR is defined.

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
</content>
</entry>
</feed>
