FreeBSD Bugzilla – Attachment 205921 Details for
Bug 239319
net-mgmt/aircrack-ng: fix build on powerpc*
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v2
aircrack-ng.patch (text/plain), 3.34 KB, created by
Piotr Kubaj
on 2019-07-20 09:18:59 UTC
(
hide
)
Description:
v2
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2019-07-20 09:18:59 UTC
Size:
3.34 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 506459) >+++ Makefile (working copy) >@@ -15,7 +15,6 @@ > BROKEN_aarch64= fails to configure: _AX_COMPILER_VERSION_GNU unknown gcc major > BROKEN_armv6= fails to configure: _AX_COMPILER_VERSION_GNU unknown gcc major > BROKEN_armv7= fails to configure: _AX_COMPILER_VERSION_GNU unknown gcc major >-BROKEN_powerpc64= fails to compile: sse-intrinsics.c: error: emmintrin.h: No such file or directory > > USES= autoreconf cpe dos2unix gmake libtool ssl > USE_GCC= yes >@@ -44,6 +43,16 @@ > SQLITE_USES= sqlite > SQLITE_MAKE_ARGS= sqlite=true > >+.include <bsd.port.pre.mk> >+ >+.if ${ARCH} == powerpc || ${ARCH} == powerpc64 >+PLIST_SUB+= PPC="" \ >+ X86="@comment " >+.elif ${ARCH} == i386 || ${ARCH} == amd64 >+PLIST_SUB+= PPC="@comment " \ >+ X86="" >+.endif >+ > post-patch: > @${REINPLACE_CMD} \ > -e 's|%%ETCDIR%%|${ETCDIR}|' ${WRKSRC}/scripts/airodump-ng-oui-update >@@ -51,4 +60,4 @@ > post-install: > ${MKDIR} ${STAGEDIR}${ETCDIR} > >-.include <bsd.port.mk> >+.include <bsd.port.post.mk> >Index: files/patch-src_aircrack-util_trampoline__ppc.c >=================================================================== >--- files/patch-src_aircrack-util_trampoline__ppc.c (nonexistent) >+++ files/patch-src_aircrack-util_trampoline__ppc.c (working copy) >@@ -0,0 +1,26 @@ >+--- src/aircrack-util/trampoline_ppc.c.orig 2019-07-19 18:16:49 UTC >++++ src/aircrack-util/trampoline_ppc.c >+@@ -19,8 +19,10 @@ >+ #if defined(__ppc__) || defined(__PPC__) >+ #ifdef HAS_AUXV >+ #include <sys/auxv.h> >++#ifndef __FreeBSD__ >+ #include <bits/hwcap.h> >+ #endif >++#endif >+ #else >+ #error "The wrong CPU architecture file has been included." >+ #endif >+@@ -35,7 +37,12 @@ int simd_get_supported_features(void) >+ { >+ int result = 0; >+ #ifdef HAS_AUXV >++#ifndef __FreeBSD__ >+ long hwcaps = getauxval(AT_HWCAP2); >++#else >++ long hwcaps; >++ elf_aux_info(AT_HWCAP2, &hwcaps, sizeof(hwcaps)); >++#endif >+ >+ #if defined(PPC_FEATURE2_ARCH_2_07) >+ if (hwcaps & PPC_FEATURE2_ARCH_2_07) > >Property changes on: files/patch-src_aircrack-util_trampoline__ppc.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 506459) >+++ pkg-plist (working copy) >@@ -10,12 +10,16 @@ > bin/packetforge-ng > bin/wpaclean > lib/libaircrack-crypto-1.3.0.so >-lib/libaircrack-crypto-x86-avx-1.3.0.so >-lib/libaircrack-crypto-x86-avx.so >-lib/libaircrack-crypto-x86-avx2-1.3.0.so >-lib/libaircrack-crypto-x86-avx2.so >-lib/libaircrack-crypto-x86-sse2-1.3.0.so >-lib/libaircrack-crypto-x86-sse2.so >+%%PPC%%lib/libaircrack-crypto-ppc-altivec-1.3.0.so >+%%PPC%%lib/libaircrack-crypto-ppc-altivec.so >+%%PPC%%lib/libaircrack-crypto-ppc-power8-1.3.0.so >+%%PPC%%lib/libaircrack-crypto-ppc-power8.so >+%%X86%%lib/libaircrack-crypto-x86-avx-1.3.0.so >+%%X86%%lib/libaircrack-crypto-x86-avx.so >+%%X86%%lib/libaircrack-crypto-x86-avx2-1.3.0.so >+%%X86%%lib/libaircrack-crypto-x86-avx2.so >+%%X86%%lib/libaircrack-crypto-x86-sse2-1.3.0.so >+%%X86%%lib/libaircrack-crypto-x86-sse2.so > lib/libaircrack-crypto.so > lib/libaircrack-osdep-1.3.0.so > lib/libaircrack-osdep.so
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
pkubaj
:
maintainer-approval?
(
lme
)
Actions:
View
|
Diff
Attachments on
bug 239319
:
205906
| 205921