Skip to content

Commit

Permalink
[rpm] After fixing scratchbox the libclang workaround is not required…
Browse files Browse the repository at this point in the history
… anymore. JB#59836

We still need to specify the path for it though, since configure picks it off of
LD_LIBRARY_PATH which has the sb2 tooling path in it.
  • Loading branch information
Franz-Josef Haider authored and krnlyng committed Jan 12, 2023
1 parent 7073ab4 commit 479044e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions rpm/xulrunner-qt5.spec
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,12 @@ source "%BUILD_DIR"/rpm-shared.env
# hack for when not using virtualenv
ln -sf "%BUILD_DIR"/config.status $PWD/build/config.status

%ifarch %arm32 %arm64
# Make stdc++ headers available on a fresh path to work around include_next bug JB#55058
if [ ! -L "%BUILD_DIR"/include ] ; then ln -s /usr/include/c++/8.3.0/ "%BUILD_DIR"/include; fi

# Expose the elf32-i386 libclang.so.10 for use inside the arm target, JB#55042
mkdir -p "%BUILD_DIR"/lib
SBOX_DISABLE_MAPPING=1 cp /usr/lib/libclang.so.10 "%BUILD_DIR"/lib/libclang.so.10
echo "ac_add_options --with-libclang-path='"%BUILD_DIR"/lib/'" >> "$MOZCONFIG"
%ifarch %arm64
echo "ac_add_options --with-libclang-path='/usr/lib64/'" >> "$MOZCONFIG"
%endif
%ifarch %arm32
echo "ac_add_options --with-libclang-path='/usr/lib/'" >> "$MOZCONFIG"
%endif

# Do not build as thumb since it breaks video decoding.
%ifarch %arm32
Expand Down

0 comments on commit 479044e

Please sign in to comment.