Skip to content

Fix reproduce functionality for shared libraries with sysroot marker#1450

Merged
Parth (parth-07) merged 2 commits into
qualcomm:mainfrom
parth-07:FixSharedLibWithSysrootMarkerForReproduce
Jul 24, 2026
Merged

Fix reproduce functionality for shared libraries with sysroot marker#1450
Parth (parth-07) merged 2 commits into
qualcomm:mainfrom
parth-07:FixSharedLibWithSysrootMarkerForReproduce

Conversation

@parth-07

Copy link
Copy Markdown
Contributor

This commit fixes the --reproduce functionality so that command-line shared libraries specified using a sysroot marker (e.g. =/lib.so) works correctly.

The root cause was incorrect mapped path for non-namespec shared libraries when the shared library was specified using the sysroot marker (=). For a shared library, '=/lib1.so', the mapped path was the expanded path '${SYSROOT}/lib1.so'. However, response.txt file contains the lib1.so entry using 'rewritePath('=lib1.so')'. The rewritePath calls returns 'lib1.so' as fallback because there is no entry for '=lib1.so'. This is because '=lib1.so' entry was never added because we used incorrect mapped path for non-namespec shared libraries (decoratedPath instead of the command-line name used for everything else).

Resolves #972

@quic-areg quic-areg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@parth-07
Parth (parth-07) force-pushed the FixSharedLibWithSysrootMarkerForReproduce branch from fc93a16 to a134c7d Compare July 22, 2026 08:58
Parth (parth-07) and others added 2 commits July 24, 2026 08:47
This commit fixes the --reproduce functionality so that command-line
shared libraries specified using a sysroot marker (e.g. =/lib.so)
works correctly.

The root cause was incorrect mapped path for non-namespec shared
libraries when the shared library was specified using the sysroot marker
(=). For a shared library, '=/lib1.so', the mapped path was the expanded
path '${SYSROOT}/lib1.so'. However, response.txt file contains the
lib1.so entry using 'rewritePath('=lib1.so')'. The rewritePath calls
returns 'lib1.so' as fallback because there is no entry for '=lib1.so'.
This is because '=lib1.so' entry was never added because we used incorrect
mapped path for non-namespec shared libraries (decoratedPath instead of the
command-line name used for everything else).

Resolves qualcomm#972

Signed-off-by: Parth Arora <partaror@qti.qualcomm.com>
Signed-off-by: Parth <partharora99160808@gmail.com>
@parth-07
Parth (parth-07) force-pushed the FixSharedLibWithSysrootMarkerForReproduce branch from 08e0ea5 to eb1b109 Compare July 24, 2026 03:17
@parth-07
Parth (parth-07) merged commit a30687e into qualcomm:main Jul 24, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reproduce functionality does not properly support sysroot markers

4 participants