HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/relenv/build/__pycache__/linux.cpython-310.pyc
o

�N�g Q�
@s�dZddlZddlZddlTddlmZmZeeZdZdd	�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zejdedd�Zejded d!d"ed#d$�d%�ejd&edgd'd(d)ed#d$�d*�ejd+d,d-d.ed/d$�d0�ejd1d2d3d4ed5�d0�ejd6ed7d8d9ed:d$�d;�ejd<e	d=d>d?ed5�d;�ejd@edAdBdCed5�d;�ejdDedEdFdGed5�d;�ejdHedIdJdKedLd$�d0�ejdMedNdOdPed5�d0�ejdQdRdSdTed5�d0�ejdUedgdVdWdXedYd$�d*�ejdZe
dDgd[d\d]ed5�d*�ejd^dUgd_d`daed5�db�ejdcegdd�deejdfedgd$�d*�ejdhedcd&gdi�ej djdkdl�Zejdedm�ej dndodl�Zejdedm�ej dpdqdl�Zejdedm�dS)rz
The linux build process.
�N�)�*�)�arches�LINUXa,--- ./setup.py
+++ ./setup.py
@@ -664,6 +664,7 @@
             self.failed.append(ext.name)

     def add_multiarch_paths(self):
+        return
         # Debian/Ubuntu multiarch support.
         # https://wiki.ubuntu.com/MultiarchSpec
         tmpfile = os.path.join(self.build_temp, 'multiarch')
cCsd�|j|d�|d<d�|j|d�|d<dj|j|jfi|��|d<dd	d
dj|jfi|��dg}d
�|�j|jd�|d<dddddj|jfi|��g}d
�|�j|jd�|d<ddddj|jfi|��g}d
�|�j|jd�|d<d
�|�j|jd�|d<d|d<|j�d�|d<dS)z�
    Make sure we have the correct environment variables set.

    :param env: The environment dictionary
    :type env: dict
    :param dirs: The working directories
    :type dirs: ``relenv.build.common.Dirs``
    z{}/bin/{}-gcc -no-pie�RELENV_HOST�CCz{}/bin/{}-g++ -no-pie�CXXz{}/bin/:{}/bin/:{PATH}�PATHz-Wl,--build-id=sha1z-Wl,--rpath={prefix}/libz-L{prefix}/libz-L{}/{RELENV_HOST}/sysroot/libz-static-libstdc++� )�prefix�LDFLAGSz-gz-I{prefix}/includez-I{prefix}/include/readlinez-I{prefix}/include/ncurseswz&-I{}/{RELENV_HOST}/sysroot/usr/include�CFLAGS�CPPFLAGSZCXXFLAGSz{prefix}/libZLD_LIBRARY_PATH�/lib/pkgconfigZPKG_CONFIG_PATHN)�format�	toolchainr�join)�env�dirs�ldflagsZcflagsZcpplags�r�F/opt/saltstack/salt/lib/python3.10/site-packages/relenv/build/linux.py�populate_envs4
���rcCs�tddd�|j�d�|d�dd�|d�d	�d
�d�|d�d
g	|||d�tdddd�|d�d�|d�d	�d
�d�|d�g|||d�t�dtj�|jd��dS)z�
    Build bzip2.

    :param env: The environment dictionary
    :type env: dict
    :param dirs: The working directories
    :type dirs: ``relenv.build.common.Dirs``
    :param logfp: A handle for the log file
    :type logfp: file
    �make�-j8z	PREFIX={}z
LDFLAGS={}r
zCFLAGS=-fPICzCC={}rzBUILD={}zx86_64-linux-gnuzHOST={}r�install�r�stderr�stdoutz-fzMakefile-libbz2_sozlibbz2.so.1.0.8�libN)�runcmdrr�shutil�copy2�os�pathr�rr�logfprrr�build_bzip2Is:
���	�r(cCs`tdd�|j�d�|d�d�|d�g|||d�tdd	g|||d�tdd
g|||d�dS)z�
    Build libxcrypt.

    :param env: The environment dictionary
    :type env: dict
    :param dirs: The working directories
    :type dirs: ``relenv.build.common.Dirs``
    :param logfp: A handle for the log file
    :type logfp: file
    �./configure�--prefix={}�
--build={}�RELENV_BUILD�	--host={}rrrrrN�r!rrr&rrr�build_libxcryptus
��r/c	Csbtdd�|j�dd�|d�d�|d�g|||d�td	d
g|||d�td	dg|||d�dS)
z�
    Build gdbm.

    :param env: The environment dictionary
    :type env: dict
    :param dirs: The working directories
    :type dirs: ``relenv.build.common.Dirs``
    :param logfp: A handle for the log file
    :type logfp: file
    r)r*z--enable-libgdbm-compatr+r,r-rrrrrNr.r&rrr�
build_gdbm�s
��r0cCst�|j�d}|ddks|ddkr6t�|j�tt|�g||d�tgd�||d�tgd�||d�t�|j�tt|�dd	d
ddd
ddddd|j�d�dd�	|d�d�	|d�g|||d�tddg|||d�tdd�	|j�d�	tt�|j�dd��d g|||d�d!S)"z�
    Build ncurses.

    :param env: The environment dictionary
    :type env: dict
    :param dirs: The working directories
    :type dirs: ``relenv.build.common.Dirs``
    :param logfp: A handle for the log file
    :type logfp: file
    �	configure�RELENV_BUILD_ARCH�aarch64�RELENV_HOST_ARCH)rr)r�-CZinclude)rr5�progs�ticz
--prefix=/z
--with-sharedz--enable-termcapz--with-termlibz--without-cxx-sharedz--without-staticz
--without-cxxz--enable-widecz--without-normalz--disable-strippingz--with-pkg-config=rz--enable-pc-filesr+r,r-rrrrz
DESTDIR={}zTIC_PATH={}r6r7rN)
�pathlib�Path�sourcer$�chdirZtmpbuildr!�strrr)rrr'r1rrr�
build_ncurses�sN��
�
�r=cCs�|d�d�|d<dd�|j�g}|d�d�dkr*|d�|d	�d
�|d�g7}t||||d�tdd
g|||d�tddg|||d�dS)z�
    Build readline library.

    :param env: The environment dictionary
    :type env: dict
    :param dirs: The working directories
    :type dirs: ``relenv.build.common.Dirs``
    :param logfp: A handle for the log file
    :type logfp: file
    r
z	 -ltinfowr)r*r�linux���r+r,r-rrrrN)rr�findr!)rrr'�cmdrrr�build_readline�s
��rBc	Csvtdd�|j�dd�|d�d�|d�g|||d�tgd	�|||d�td
dg|||d�td
dg|||d�d
S)z�
    Build libffi.

    :param env: The environment dictionary
    :type env: dict
    :param dirs: The working directories
    :type dirs: ``relenv.build.common.Dirs``
    :param logfp: A handle for the log file
    :type logfp: file
    r)r*z--disable-multi-os-directoryr+r,r-rr)�sed�-iz
s/lib64/lib/gZMakefilerrrNr.r&rrr�build_libffi�s 
��
�rEcCsfd�|d�|d<tdd�|j�d�|j�dg|||d�tgd�|||d�td	d
g|||d�dS)z�
    Build zlib.

    :param env: The environment dictionary
    :type env: dict
    :param dirs: The working directories
    :type dirs: ``relenv.build.common.Dirs``
    :param logfp: A handle for the log file
    :type logfp: file
    z-fPIC {}rr)r*z--libdir={}/libz--sharedr)rz-no-pierrrN)rr!rr&rrr�
build_zlibs

��rFc
Cs�|d|dkrd|d<d|d<d|d<t�|jd�td	d
�|j�ddd
�|d�d�|d�g|||d�tddg|||d�tddg|||d�dS)z�
    Build kerberos.

    :param env: The environment dictionary
    :type env: dict
    :param dirs: The working directories
    :type dirs: ``relenv.build.common.Dirs``
    :param logfp: A handle for the log file
    :type logfp: file
    r2r4zyes,yesZ#krb5_cv_attr_constructor_destructorZyesZac_cv_func_regcompZac_cv_printf_positional�srcr)r*z--without-system-vertoz--without-libeditr+r,r-rrrrrN)r$r;r:r!rrr&rrr�	build_krb9s&
��
rHc
Cs�dj|j|dd�|d<tgd��tgd��t�d���rLtjddd	��}|�t	�|�
�td
dd|jg|||d
�Wd�n1sGwYd|j�d�|d<d|j�d�|d<d|d��|d<ddd|j��d|j��ddd|d��d|d ��d!d"d#d$d%g
}|d&|d'kr�|d(|d)��g7}|d*d+g7}t||||d
�tgd,��t�
d-d.��}|�d/tj�|�d0�Wd�n1s�wYtd1d2g|||d
�td1d3g|||d
�dS)4a
    Run the commands to build Python.

    :param env: The environment dictionary
    :type env: dict
    :param dirs: The working directories
    :type dirs: ``relenv.build.common.Dirs``
    :param logfp: A handle for the log file
    :type logfp: file
    z"-Wl,--rpath={prefix}/lib {ldflags}r
)rr)rCrDz:s/ac_cv_buggy_getaddrinfo=yes/ac_cv_buggy_getaddrinfo=no/gr1)rCrDzls/ac_cv_enable_implicit_function_declaration_error=yes/ac_cv_enable_implicit_function_declaration_error=no/gr1zsetup.py�wZ_patch)�mode�suffixZpatchz-p0rDrNz-Iz /include  -Wno-coverage-mismatchZOPENSSL_CFLAGSz-Lz/libZOPENSSL_LDFLAGSz-Wno-coverage-mismatch rr)z-vz	--prefix=z--with-openssl=z--enable-optimizationsz--with-ensurepip=noz--build=r,z--host=rz--disable-test-modulesz!--with-ssl-default-suites=opensslz7--with-builtin-hashlib-hashes=blake2,md5,sha1,sha2,sha3z--with-readline=readlinez--with-pkg-config=yesr4r2z--with-build-python=ZRELENV_NATIVE_PYzac_cv_file__dev_ptmx=yeszac_cv_file__dev_ptc=no)rCrDzUs/#readline readline.c -lreadline -ltermcap/readline readline.c -lreadline -ltinfow/g�
Modules/SetuprLza+rz*disabled*
_tkinter
nsl
nis
rrr)rrr!r8r9�exists�tempfileZNamedTemporaryFile�write�PATCH�flush�name�io�open�seek�SEEK_END)rrr'Z
patch_filerA�fprrr�build_pythonZsn

���
��


�����rXr>z3.10.16)r�version�opensslz_https://github.com/openssl/openssl/releases/download/openssl-{version}/openssl-{version}.tar.gzz3.2.4Z(2247802a1193c0f8eb41c870e8de45a2241422d5zhttps://www.openssl.org/source/)�urlrY�checksum�	checkfuncZcheckurl)�
build_func�downloadzopenssl-fips-modulez7https://www.openssl.org/source/openssl-{version}.tar.gzz3.0.8Z(580d8a7232327fe1fa6e7db54ac060d4321f40ab)r^�wait_onr_�	libxcryptz]https://github.com/besser82/libxcrypt/releases/download/v{version}/libxcrypt-{version}.tar.xzz4.4.36Z(c040de2fd534f84082c9c42114ba11b4e1a67635z/https://github.com/besser82/libxcrypt/releases/)r_�XZz)http://tukaani.org/xz/xz-{version}.tar.gzz5.6.2Z(0d6b10e4628fe08e19293c65e8dbcaade084a083)r[rYr\r]�SQLitez8https://sqlite.org/2024/sqlite-autoconf-{version}.tar.gzZ3460100Z(1fdbada080f3285ac864c314bfbfc581b13e804bzhttps://sqlite.org/)rRr^r_�bzip2z7https://sourceware.org/pub/bzip2/bzip2-{version}.tar.gzz1.0.8Z(bf7badf7e248e0ecf465d33c2f5aeec774209227�gdbmz2https://ftp.gnu.org/gnu/gdbm/gdbm-{version}.tar.gzz1.24Z(7bd455f28c9e4afacc042e0c712aac1b2391fef2�ncursesz<https://ftp.gnu.org/pub/gnu/ncurses/ncurses-{version}.tar.gzz6.4Z(bb5eb3f34b3ecd5bac8d0b58164b847f135b3d62�libffizUhttps://github.com/libffi/libffi/releases/download/v{version}/libffi-{version}.tar.gzz3.4.7Z(b07136211f47fa30c0512ebd7484fde724978d99z*https://github.com/libffi/libffi/releases/�zlibz.https://zlib.net/fossils/zlib-{version}.tar.gzz1.3.1Z(f535367b1a11e2f9ac3bec723fb007fbc0d189e5�uuidzGhttps://sourceforge.net/projects/libuuid/files/libuuid-{version}.tar.gzz1.0.3Z(46eaedb875ae6e63677b51ec583656199241d597�krb5z>https://kerberos.org/dist/krb5/{version}/krb5-{version}.tar.gzz1.21Z(e2ee531443122376ac8b62b3848d94376f646089zhttps://kerberos.org/dist/krb5/�readlinez:https://ftp.gnu.org/gnu/readline/readline-{version}.tar.gzz8.2.13Z(5ffb6a334c2422acbe8f4d2cb11e345265c8d930�tirpczJhttps://sourceforge.net/projects/libtirpc/files/libtirpc-{version}.tar.bz2z1.3.4Z(63c800f81f823254d2706637bab551dec176b99b)r`r_�python)
rZrarbrcrdrerfrgrhrirjrkrlzChttps://www.python.org/ftp/python/{version}/Python-{version}.tar.xzZ(401e6a504a956c8f0aab76c4f3ad9df601a83eb1z"https://www.python.org/ftp/python/zrelenv-finalize)r^r`z3.11.11Z(acf539109b024d3c5f1fc63d6e7f08cd294ba56d)rYr\)Zbuilderz3.12.9Z(465d8a664e63dc5aa1f0d90cd1d0000a970ee2fbz3.13.2Z(da39a3ee5e6b4b0d3255bfef95601890afd80709)!�__doc__r8rN�commonrrZARCHESrPrr(r/r0r=rBrErFrHrX�builds�add�buildZ
build_opensslZtarball_versionZbuild_openssl_fipsZgithub_versionZbuild_sqliteZsqlite_versionZuuid_versionZkrb_versionrY�python_version�finalize�copyrrrr�<module>sj
-,:!e����������
��������
��������
�������	���