loongarch: openssl: Apply upstream fixes for runtime issues on LoongArch

This commit is contained in:
Xi Ruoyao 2024-01-22 15:01:52 +08:00
parent 289f2849be
commit 6be4bf1b7d
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
4 changed files with 28 additions and 0 deletions

View File

@ -40,6 +40,16 @@
appropriate for the entry or if needed the entire day's listitem.
-->
<listitem>
<para>2024-01-22</para>
<itemizedlist>
<listitem>
<para>[xry111] - Patch OpenSSL-3.2.0 to fix various runtime issues
on LoongArch.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2024-01-21</para>
<itemizedlist>

View File

@ -118,6 +118,14 @@
</varlistentry>
-->
<varlistentry>
<term>OpenSSL LoongArch Fix Patch - <token>&openssl-loongarch-patch-size;</token>:</term>
<listitem>
<para>Download: <ulink url="https://linuxfromscratch.org/~xry111/lfs/patches/&openssl-loongarch-patch;"/></para>
<para>MD5 sum: <literal>&openssl-loongarch-patch-md5;</literal></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Pkgconf Upstream Fix Patch - <token>&pkgconf-upstream-fix-patch-size;</token>:</term>
<listitem>

View File

@ -49,6 +49,12 @@
<screen><userinput remap="pre">sed -e '/bn_reduce.*m1/i\ factor_size /= sizeof(BN_ULONG) * 8;' \
-i crypto/bn/rsaz_exp_x2.c</userinput></screen>
-->
<para>First apply a patch to fix various runtime issues on
LoongArch:</para>
<screen><userinput remap="pre">patch -Np1 -i ../&openssl-loongarch-patch;</userinput></screen>
<para>Prepare OpenSSL for compilation:</para>
<screen><userinput remap="configure">./config --prefix=/usr \

View File

@ -26,6 +26,10 @@
<!ENTITY pkgconf-upstream-fix-patch-md5 "77d5bb10840724a0e3dc08efee548363">
<!ENTITY pkgconf-upstream-fix-patch-size "4 KB">
<!ENTITY openssl-loongarch-patch "openssl-&openssl-version;-loongarch_fixes-1.patch">
<!ENTITY openssl-loongarch-patch-md5 "4c46bd65ba78a2ab479ded11fdb7ed49">
<!ENTITY openssl-loongarch-patch-size "20 KB">
<!ENTITY readline-fixes-patch "readline-&readline-version;-upstream_fixes-2.patch">
<!ENTITY readline-fixes-patch-md5 "d2477ebe908cc99763d90dde7fd9549a">
<!ENTITY readline-fixes-patch-size "5.7 KB">