Hallo Gerard,
On 17.06.24 11:02, Gerard Salvatella wrote:
> Several binaries, such as `swupdate`, `swupdate.debug` or `libswupdate`,
> contain absolute paths (e.g. `/path/to/git/core/swupdate.c` or
> `/path/to/git/core/handler.c`).
Is this still an issue ? I fixed this last year with:
commit e4ff96a314953273c9573d01307a8cf68199c184
Author: Stefano Babic <
sba...@denx.de>
Date: Wed Apr 5 15:40:45 2023 +0200
Add __FILE_NAME__ macro to remove full path in log
So the stripped version (target) shouldn't have any full path. Full path
are still present in the unstripped version.
Which version is affected ? If I run current version, I do not see the
full path, just the relative one in the logs.
> This leads to unreproducible builds,
> specially in build systems like yocto/bitbake, where warnings of the
> following type show up: `File /usr/bin/swupdate in package swupdate
> contains reference to TMPDIR`.
This is something else - and yes, SWUpdate is using the TMPDIR variable.
And it has always used, so changing raises a compatibility issue.
bitbake checks if the binary contains reference to host TMPDIR, that is
/tmp, but this is also the reference on the target and it is used.
Anyway, this has nothing to do with reproducible build, it is another QA
issue, and SWUpdate is *using* TMPDIR. I guess that the QA is away if
SWUpdate points to /run/..., but if the directory was not created,
SWUpdate does not start. So it is a compatibility issue.
>
> These paths should be made relative, which is most likely solvable from
> the `Makefiles`.
Makefile are using CURDIR to get the list of source files, and CURDIR is
the absolute path set by make for the working directory.
> Could someone with more expertise in the project point
> me to where I should be looking for (Makefile variables, etc)? I'd be
> happy to issue some patches.
>
Best regards,
Stefano Babic
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swupdate+u...@googlegroups.com
> <mailto:
swupdate+u...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/swupdate/e14ede86-4f43-4107-b7f9-2cef4535de1en%40googlegroups.com <
https://groups.google.com/d/msgid/swupdate/e14ede86-4f43-4107-b7f9-2cef4535de1en%40googlegroups.com?utm_medium=email&utm_source=footer>.