diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-02-21 10:15:37 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-02-21 10:15:37 +0000 |
commit | 9bec97a535e8763f84c2b6f184c102a0ae63cc0d (patch) | |
tree | f9502129818d7bc957616bcf25dc80a4e22d6bf3 /media-libs | |
parent | Make it really multiple python version aware (diff) | |
download | historical-9bec97a535e8763f84c2b6f184c102a0ae63cc0d.tar.gz historical-9bec97a535e8763f84c2b6f184c102a0ae63cc0d.tar.bz2 historical-9bec97a535e8763f84c2b6f184c102a0ae63cc0d.zip |
Apply rpmfusion noexecstack patch from bug 258804, thanks to Pacho Ramos.
Package-Manager: portage-2.2_rc63/cvs/Linux x86_64
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/xvid/ChangeLog | 10 | ||||
-rw-r--r-- | media-libs/xvid/Manifest | 4 | ||||
-rw-r--r-- | media-libs/xvid/files/xvid-1.2.2-noexecstack.patch | 457 | ||||
-rw-r--r-- | media-libs/xvid/xvid-1.2.2-r2.ebuild | 58 |
4 files changed, 526 insertions, 3 deletions
diff --git a/media-libs/xvid/ChangeLog b/media-libs/xvid/ChangeLog index d17034323747..ddd6e1bc6c78 100644 --- a/media-libs/xvid/ChangeLog +++ b/media-libs/xvid/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/xvid -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/xvid/ChangeLog,v 1.113 2009/06/07 13:20:06 ssuominen Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/xvid/ChangeLog,v 1.114 2010/02/21 10:15:36 ssuominen Exp $ + +*xvid-1.2.2-r2 (21 Feb 2010) + + 21 Feb 2010; Samuli Suominen <ssuominen@gentoo.org> +xvid-1.2.2-r2.ebuild, + +files/xvid-1.2.2-noexecstack.patch: + Apply rpmfusion noexecstack patch from bug 258804, thanks to Pacho Ramos. 07 Jun 2009; Samuli Suominen <ssuominen@gentoo.org> xvid-1.2.2-r1.ebuild: configure for x86_64 prefers yasm and it needs to be 0.8.0, so adjust the diff --git a/media-libs/xvid/Manifest b/media-libs/xvid/Manifest index 0487bf9f43c6..7c528c868c09 100644 --- a/media-libs/xvid/Manifest +++ b/media-libs/xvid/Manifest @@ -1,4 +1,6 @@ +AUX xvid-1.2.2-noexecstack.patch 17680 RMD160 cf312c4b27acdc47a8340acfe8423b4450e07743 SHA1 a3547697ebba7583ca2ccd1e430762b84079cb55 SHA256 ef35cff8d86cee714f887746995c664b307ae35dd77472b9007987562dc7e8d3 DIST xvidcore-1.2.2.tar.bz2 643344 RMD160 5fbbc99a02d9eab7f2394220cec2c872957ff26f SHA1 d03270c803592f7655e7aa4181de587be25ba97f SHA256 e42a602de489438b96f7f4742b68e9bed7efa7aee3570379bb2582b4290b6d11 EBUILD xvid-1.2.2-r1.ebuild 1313 RMD160 d4893a53bf47518fd6b13f0050c7bcf3e59a821d SHA1 c691bde05571df0156a6155bfd6f97851e9164a8 SHA256 5713781721efaa756461b2f489764cd279afe509df1d6888b2b66614012d6599 -MISC ChangeLog 14898 RMD160 48f5eff84a96867ef09c43bcf3590d4d7e28e126 SHA1 bc0616a5f7a10b9aa7e967d3b42fcc08097085e1 SHA256 451f09a374b833538da18ff6d498e284dd72b181e1a8afa75d498e11de16fe4e +EBUILD xvid-1.2.2-r2.ebuild 1409 RMD160 a10ab627af873277585f5149dc56f61232e14083 SHA1 0e336e831db55bb1bb395f19dd35dc6ccee41ecf SHA256 a3c844043c826848f32893581aeb37005be0d13930ab2604d2e961ef3ee85052 +MISC ChangeLog 15121 RMD160 541b36da6a97b5ff5dea0ddba95bc653d7d984a8 SHA1 8f83e431c8369e72ead4180332e801f3b29fbf73 SHA256 0aa3fbea1a801e52eba9bc516581a89e4fafa4f6c73fe74d98f201408ae46180 MISC metadata.xml 326 RMD160 91617f57d22a91f7320a8a4cf31acdb62be99786 SHA1 8a03f8977295939de344ac23e4fdd8185d953d65 SHA256 44f920b8335d7708c3208af6281abb98d71274f3400ed3538ca469c3846705c9 diff --git a/media-libs/xvid/files/xvid-1.2.2-noexecstack.patch b/media-libs/xvid/files/xvid-1.2.2-noexecstack.patch new file mode 100644 index 000000000000..aef52f33814e --- /dev/null +++ b/media-libs/xvid/files/xvid-1.2.2-noexecstack.patch @@ -0,0 +1,457 @@ +diff -up xvidcore/src/bitstream/x86_asm/cbp_mmx.asm.noexec-stack xvidcore/src/bitstream/x86_asm/cbp_mmx.asm +--- xvidcore/src/bitstream/x86_asm/cbp_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/bitstream/x86_asm/cbp_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -126,8 +126,4 @@ calc_cbp_mmx: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/bitstream/x86_asm/cbp_sse2.asm.noexec-stack xvidcore/src/bitstream/x86_asm/cbp_sse2.asm +--- xvidcore/src/bitstream/x86_asm/cbp_sse2.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/bitstream/x86_asm/cbp_sse2.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -116,8 +116,4 @@ calc_cbp_sse2: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/dct/x86_asm/fdct_mmx_ffmpeg.asm.noexec-stack xvidcore/src/dct/x86_asm/fdct_mmx_ffmpeg.asm +--- xvidcore/src/dct/x86_asm/fdct_mmx_ffmpeg.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/dct/x86_asm/fdct_mmx_ffmpeg.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -401,7 +401,4 @@ MAKE_FDCT_FUNC fdct_mmx_ffmpeg, FDCT_ROW + + MAKE_FDCT_FUNC fdct_xmm_ffmpeg, FDCT_ROW_XMM + +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/dct/x86_asm/fdct_mmx_skal.asm.noexec-stack xvidcore/src/dct/x86_asm/fdct_mmx_skal.asm +--- xvidcore/src/dct/x86_asm/fdct_mmx_skal.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/dct/x86_asm/fdct_mmx_skal.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -500,7 +500,4 @@ MAKE_FDCT_FUNC fdct_mmx_skal, fMTX_MULT_ + + MAKE_FDCT_FUNC fdct_xmm_skal, fMTX_MULT_XMM + +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/dct/x86_asm/fdct_sse2_skal.asm.noexec-stack xvidcore/src/dct/x86_asm/fdct_sse2_skal.asm +--- xvidcore/src/dct/x86_asm/fdct_sse2_skal.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/dct/x86_asm/fdct_sse2_skal.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -605,7 +605,4 @@ fdct_sse2_skal: + ENDFUNC + + +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/dct/x86_asm/idct_3dne.asm.noexec-stack xvidcore/src/dct/x86_asm/idct_3dne.asm +--- xvidcore/src/dct/x86_asm/idct_3dne.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/dct/x86_asm/idct_3dne.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -698,8 +698,4 @@ idct_3dne: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/dct/x86_asm/idct_mmx.asm.noexec-stack xvidcore/src/dct/x86_asm/idct_mmx.asm +--- xvidcore/src/dct/x86_asm/idct_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/dct/x86_asm/idct_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -608,8 +608,4 @@ idct_xmm: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/dct/x86_asm/idct_sse2_dmitry.asm.noexec-stack xvidcore/src/dct/x86_asm/idct_sse2_dmitry.asm +--- xvidcore/src/dct/x86_asm/idct_sse2_dmitry.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/dct/x86_asm/idct_sse2_dmitry.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -325,8 +325,4 @@ idct_sse2_dmitry: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/colorspace_rgb_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/colorspace_rgb_mmx.asm +--- xvidcore/src/image/x86_asm/colorspace_rgb_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/colorspace_rgb_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -514,8 +514,4 @@ MAKE_COLORSPACE rgba_to_yv12_mmx,0, 4 + MAKE_COLORSPACE yv12_to_bgr_mmx,48, 3,8,2, YV12_TO_BGR, 3, -1 + MAKE_COLORSPACE yv12_to_bgra_mmx,48, 4,8,2, YV12_TO_BGR, 4, -1 + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/colorspace_yuv_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/colorspace_yuv_mmx.asm +--- xvidcore/src/image/x86_asm/colorspace_yuv_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/colorspace_yuv_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -474,7 +474,4 @@ MAKE_YV12_TO_YV12 yv12_to_yv12_mmx, 0 + + MAKE_YV12_TO_YV12 yv12_to_yv12_xmm, 1 + +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/colorspace_yuyv_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/colorspace_yuyv_mmx.asm +--- xvidcore/src/image/x86_asm/colorspace_yuyv_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/colorspace_yuyv_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -341,7 +341,4 @@ MAKE_COLORSPACE yv12_to_uyvy_mmx,0, + MAKE_COLORSPACE yv12_to_yuyvi_mmx,0, 2,8,4, YV12_TO_YUYVI, 0, -1 + MAKE_COLORSPACE yv12_to_uyvyi_mmx,0, 2,8,4, YV12_TO_YUYVI, 1, -1 + +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/deintl_sse.asm.noexec-stack xvidcore/src/image/x86_asm/deintl_sse.asm +--- xvidcore/src/image/x86_asm/deintl_sse.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/deintl_sse.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -131,7 +131,4 @@ xvid_deinterlace_sse: + ENDFUNC + + ;////////////////////////////////////////////////////////////////////// +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/gmc_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/gmc_mmx.asm +--- xvidcore/src/image/x86_asm/gmc_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/gmc_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -220,7 +220,4 @@ xvid_GMC_Core_Lin_8_sse41: + ENDFUNC + + ;////////////////////////////////////////////////////////////////////// +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/interpolate8x8_3dn.asm.noexec-stack xvidcore/src/image/x86_asm/interpolate8x8_3dn.asm +--- xvidcore/src/image/x86_asm/interpolate8x8_3dn.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/interpolate8x8_3dn.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -463,8 +463,4 @@ interpolate8x4_halfpel_hv_3dn: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/interpolate8x8_3dne.asm.noexec-stack xvidcore/src/image/x86_asm/interpolate8x8_3dne.asm +--- xvidcore/src/image/x86_asm/interpolate8x8_3dne.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/interpolate8x8_3dne.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -563,8 +563,4 @@ ALIGN SECTION_ALIGN + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/interpolate8x8_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/interpolate8x8_mmx.asm +--- xvidcore/src/image/x86_asm/interpolate8x8_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/interpolate8x8_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -1328,8 +1328,4 @@ interpolate8x8_halfpel_hv_add_mmx: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/interpolate8x8_xmm.asm.noexec-stack xvidcore/src/image/x86_asm/interpolate8x8_xmm.asm +--- xvidcore/src/image/x86_asm/interpolate8x8_xmm.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/interpolate8x8_xmm.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -819,8 +819,4 @@ interpolate8x8_halfpel_hv_add_xmm: + EPILOG + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/postprocessing_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/postprocessing_mmx.asm +--- xvidcore/src/image/x86_asm/postprocessing_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/postprocessing_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -114,7 +114,4 @@ image_brightness_mmx: + ENDFUNC + ;////////////////////////////////////////////////////////////////////// + +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/postprocessing_sse2.asm.noexec-stack xvidcore/src/image/x86_asm/postprocessing_sse2.asm +--- xvidcore/src/image/x86_asm/postprocessing_sse2.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/postprocessing_sse2.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -130,7 +130,4 @@ image_brightness_sse2: + ENDFUNC + ;////////////////////////////////////////////////////////////////////// + +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/qpel_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/qpel_mmx.asm +--- xvidcore/src/image/x86_asm/qpel_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/qpel_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -1149,7 +1149,4 @@ ENDFUNC + %undef SRC_PTR + %undef DST_PTR + +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/image/x86_asm/reduced_mmx.asm.noexec-stack xvidcore/src/image/x86_asm/reduced_mmx.asm +--- xvidcore/src/image/x86_asm/reduced_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/image/x86_asm/reduced_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -985,8 +985,4 @@ ENDFUNC + + ; pfeewwww... Never Do That On Stage Again. :) + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/motion/x86_asm/sad_3dn.asm.noexec-stack xvidcore/src/motion/x86_asm/sad_3dn.asm +--- xvidcore/src/motion/x86_asm/sad_3dn.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/motion/x86_asm/sad_3dn.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -216,8 +216,4 @@ sad8bi_3dn: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/motion/x86_asm/sad_3dne.asm.noexec-stack xvidcore/src/motion/x86_asm/sad_3dne.asm +--- xvidcore/src/motion/x86_asm/sad_3dne.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/motion/x86_asm/sad_3dne.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -490,8 +490,4 @@ ALIGN SECTION_ALIGN + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/motion/x86_asm/sad_mmx.asm.noexec-stack xvidcore/src/motion/x86_asm/sad_mmx.asm +--- xvidcore/src/motion/x86_asm/sad_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/motion/x86_asm/sad_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -731,8 +731,4 @@ sse8_8bit_mmx: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/motion/x86_asm/sad_sse2.asm.noexec-stack xvidcore/src/motion/x86_asm/sad_sse2.asm +--- xvidcore/src/motion/x86_asm/sad_sse2.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/motion/x86_asm/sad_sse2.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -176,8 +176,4 @@ dev16_sse3: + MEAN16_SSE2_SSE3 lddqu + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/motion/x86_asm/sad_xmm.asm.noexec-stack xvidcore/src/motion/x86_asm/sad_xmm.asm +--- xvidcore/src/motion/x86_asm/sad_xmm.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/motion/x86_asm/sad_xmm.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -436,8 +436,4 @@ sad16v_xmm: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/nasm.inc.noexec-stack xvidcore/src/nasm.inc +--- xvidcore/src/nasm.inc.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/nasm.inc 2009-09-21 10:39:24.000000000 +0200 +@@ -189,3 +189,12 @@ BITS 32 + %endif + %endif + %endmacro ++ ++%macro NON_EXEC_STACK 0 ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif ++%ifidn __OUTPUT_FORMAT__,elf64 ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif ++%endmacro +diff -up xvidcore/src/plugins/x86_asm/plugin_ssim-a.asm.noexec-stack xvidcore/src/plugins/x86_asm/plugin_ssim-a.asm +--- xvidcore/src/plugins/x86_asm/plugin_ssim-a.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/plugins/x86_asm/plugin_ssim-a.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -273,6 +273,4 @@ consim_mmx: + ret + ENDFUNC + +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif ++NON_EXEC_STACK +diff -up xvidcore/src/quant/x86_asm/quantize_h263_3dne.asm.noexec-stack xvidcore/src/quant/x86_asm/quantize_h263_3dne.asm +--- xvidcore/src/quant/x86_asm/quantize_h263_3dne.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/quant/x86_asm/quantize_h263_3dne.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -931,7 +931,4 @@ ALIGN SECTION_ALIGN + ret + ENDFUNC + +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/quant/x86_asm/quantize_h263_mmx.asm.noexec-stack xvidcore/src/quant/x86_asm/quantize_h263_mmx.asm +--- xvidcore/src/quant/x86_asm/quantize_h263_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/quant/x86_asm/quantize_h263_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -1070,8 +1070,4 @@ dequant_h263_inter_sse2: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/quant/x86_asm/quantize_mpeg_mmx.asm.noexec-stack xvidcore/src/quant/x86_asm/quantize_mpeg_mmx.asm +--- xvidcore/src/quant/x86_asm/quantize_mpeg_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/quant/x86_asm/quantize_mpeg_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -657,8 +657,4 @@ ALIGN SECTION_ALIGN + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/quant/x86_asm/quantize_mpeg_xmm.asm.noexec-stack xvidcore/src/quant/x86_asm/quantize_mpeg_xmm.asm +--- xvidcore/src/quant/x86_asm/quantize_mpeg_xmm.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/quant/x86_asm/quantize_mpeg_xmm.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -618,8 +618,4 @@ ALIGN SECTION_ALIGN + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/utils/x86_asm/cpuid.asm.noexec-stack xvidcore/src/utils/x86_asm/cpuid.asm +--- xvidcore/src/utils/x86_asm/cpuid.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/utils/x86_asm/cpuid.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -240,7 +240,4 @@ ENDFUNC + %endif + + +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/utils/x86_asm/interlacing_mmx.asm.noexec-stack xvidcore/src/utils/x86_asm/interlacing_mmx.asm +--- xvidcore/src/utils/x86_asm/interlacing_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/utils/x86_asm/interlacing_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -198,8 +198,4 @@ MBFieldTest_mmx: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/utils/x86_asm/mem_transfer_3dne.asm.noexec-stack xvidcore/src/utils/x86_asm/mem_transfer_3dne.asm +--- xvidcore/src/utils/x86_asm/mem_transfer_3dne.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/utils/x86_asm/mem_transfer_3dne.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -465,8 +465,4 @@ transfer8x4_copy_3dne: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK +diff -up xvidcore/src/utils/x86_asm/mem_transfer_mmx.asm.noexec-stack xvidcore/src/utils/x86_asm/mem_transfer_mmx.asm +--- xvidcore/src/utils/x86_asm/mem_transfer_mmx.asm.noexec-stack 2009-09-21 10:39:07.000000000 +0200 ++++ xvidcore/src/utils/x86_asm/mem_transfer_mmx.asm 2009-09-21 10:39:24.000000000 +0200 +@@ -588,8 +588,4 @@ transfer8x4_copy_mmx: + ret + ENDFUNC + +- +-%ifidn __OUTPUT_FORMAT__,elf +-section ".note.GNU-stack" noalloc noexec nowrite progbits +-%endif +- ++NON_EXEC_STACK diff --git a/media-libs/xvid/xvid-1.2.2-r2.ebuild b/media-libs/xvid/xvid-1.2.2-r2.ebuild new file mode 100644 index 000000000000..08ecafd153f9 --- /dev/null +++ b/media-libs/xvid/xvid-1.2.2-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/xvid/xvid-1.2.2-r2.ebuild,v 1.1 2010/02/21 10:15:36 ssuominen Exp $ + +EAPI=2 +inherit eutils multilib + +MY_PN=${PN}core +MY_P=${MY_PN}-${PV} + +DESCRIPTION="XviD, a high performance/quality MPEG-4 video de-/encoding solution" +HOMEPAGE="http://www.xvid.org" +SRC_URI="http://downloads.xvid.org/downloads/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="examples pic" + +NASM=">=dev-lang/nasm-2.05.01" +YASM=">=dev-lang/yasm-0.8.0" + +DEPEND="amd64? ( !<dev-lang/yasm-0.8.0 + || ( ${YASM} ${NASM} ) ) + x86? ( ${YASM} ${NASM} ) + x86-fbsd? ( ${NASM} )" +RDEPEND="" + +S=${WORKDIR}/${MY_PN}/build/generic + +src_prepare() { + cd "${WORKDIR}" + epatch "${FILESDIR}"/${P}-noexecstack.patch +} + +src_configure() { + local myconf + + if use pic; then + myconf="--disable-assembly" + fi + + econf ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc "${S}"/../../{AUTHORS,ChangeLog*,CodingStyle,README,TODO} + + local mylib=$(basename $(ls "${D}"/usr/$(get_libdir)/libxvidcore.so*)) + dosym ${mylib} /usr/$(get_libdir)/libxvidcore.so + dosym ${mylib} /usr/$(get_libdir)/${mylib%.?} + + if use examples; then + insinto /usr/share/${PN} + doins -r "${S}"/../../examples + fi +} |