[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/295: gnu: x265: Update to 3.4.
From: |
guix-commits |
Subject: |
21/295: gnu: x265: Update to 3.4. |
Date: |
Mon, 27 Jul 2020 06:25:06 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit afdc16d9041fde77913b6e84679dc581c54df2d6
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Jun 27 16:48:20 2020 +0200
gnu: x265: Update to 3.4.
* gnu/packages/patches/x265-arm-flags.patch: Update patch.
* gnu/packages/video.scm (x265): Update to 3.4.
[arguments]: Remove obsolete substitution. Disable the newly-added assembly
optimizations on AArch64, as they are not implemented for all targets we
build.
---
gnu/packages/patches/x265-arm-flags.patch | 38 +++++++++++++++----------------
gnu/packages/video.scm | 10 +++-----
2 files changed, 22 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/patches/x265-arm-flags.patch
b/gnu/packages/patches/x265-arm-flags.patch
index f17e26f..342e132 100644
--- a/gnu/packages/patches/x265-arm-flags.patch
+++ b/gnu/packages/patches/x265-arm-flags.patch
@@ -1,4 +1,7 @@
-https://sources.debian.org/src/x265/2.9-3/debian/patches/0001-Fix-arm-flags.patch/
+Fix build flags for ARMv7.
+
+Taken from Debian:
+https://salsa.debian.org/multimedia-team/x265/-/blob/master/debian/patches/0001-Fix-arm-flags.patch
From: Sebastian Ramacher <sramacher@debian.org>
Date: Wed, 26 Apr 2017 22:05:06 +0200
@@ -9,28 +12,25 @@ Subject: Fix arm* flags
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
-index 33b6523..25aecbb 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
-@@ -72,7 +72,7 @@ elseif(ARMMATCH GREATER "-1")
+@@ -77,7 +77,7 @@ elseif(ARMMATCH GREATER "-1")
+ add_definitions(-DX265_ARCH_ARM=1 -DX265_ARCH_ARM64=1 -DHAVE_ARMV6=0)
+ else()
+ message(STATUS "Detected ARM target processor")
+- add_definitions(-DX265_ARCH_ARM=1 -DX265_ARCH_ARM64=0 -DHAVE_ARMV6=1)
++ add_definitions(-DX265_ARCH_ARM=1)
endif()
- message(STATUS "Detected ARM target processor")
- set(ARM 1)
-- add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV6=1)
-+ # add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV6=1)
else()
message(STATUS "CMAKE_SYSTEM_PROCESSOR value `${CMAKE_SYSTEM_PROCESSOR}`
is unknown")
- message(STATUS "Please add this value near
${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE}")
-@@ -230,12 +230,8 @@ if(GCC)
- if(ARM AND CROSS_COMPILE_ARM)
- set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp -marm -fPIC)
- elseif(ARM)
-- find_package(Neon)
- if(CPU_HAS_NEON)
-- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=neon -marm -fPIC)
- add_definitions(-DHAVE_NEON)
-- else()
-- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=vfp -marm)
+@@ -252,10 +252,7 @@ if(GCC)
+ else()
+ find_package(Neon)
+ if(CPU_HAS_NEON)
+- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=neon -marm
-fPIC)
+ add_definitions(-DHAVE_NEON)
+- else()
+- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=vfp -marm)
+ endif()
endif()
endif()
- add_definitions(${ARM_ARGS})
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index c5e4993..9c88066 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -611,7 +611,7 @@ available.")
(define-public x265
(package
(name "x265")
- (version "3.3")
+ (version "3.4")
(outputs '("out" "static"))
(source
(origin
@@ -621,7 +621,7 @@ available.")
(string-append
"https://download.videolan.org/videolan/x265/"
"x265_" version ".tar.gz")))
(sha256
- (base32 "170b61cgpcs5n35qps0p40dqs1q81vkgagzbs4zv7pzls6718vpj"))
+ (base32 "0wl62hfsdqpf3r3z3s6l9bz7pdb1rcik5ll00b3yaadplqipy162"))
(patches (search-patches "x265-arm-flags.patch"))
(modules '((guix build utils)))
(snippet '(begin
@@ -638,8 +638,7 @@ available.")
#:configure-flags
;; Ensure position independent code for everyone.
(list "-DENABLE_PIC=TRUE"
- ,@(if (string-prefix? "armhf" (or (%current-system)
- (%current-target-system)))
+ ,@(if (target-arm?)
'("-DENABLE_ASSEMBLY=OFF")
'())
(string-append "-DCMAKE_INSTALL_PREFIX="
@@ -650,9 +649,6 @@ available.")
(lambda _
(delete-file-recursively "build")
(chdir "source")
- ;; recognize armv8 in 32-bit mode as ARM
- (substitute* "CMakeLists.txt"
- (("armv6l") "armv8l"))
#t))
(add-before 'configure 'build-12-bit
(lambda* (#:key (configure-flags '()) #:allow-other-keys)
- 62/295: services: Add rshiny service., (continued)
- 62/295: services: Add rshiny service., guix-commits, 2020/07/27
- 74/295: gnu: Add rust-digest-0.9., guix-commits, 2020/07/27
- 75/295: gnu: Add rust-block-buffer-0.9., guix-commits, 2020/07/27
- 78/295: gnu: rust-sha1-asm-0.4: Don't skip build., guix-commits, 2020/07/27
- 12/295: gnu: dav1d: Update to 0.7.1., guix-commits, 2020/07/27
- 15/295: gnu: python-gevent: Update to 20.6.2., guix-commits, 2020/07/27
- 13/295: gnu: Add python2-selectors2., guix-commits, 2020/07/27
- 19/295: gnu: ilmbase: Update to 2.5.2., guix-commits, 2020/07/27
- 17/295: gnu: exempi: Delete the static library., guix-commits, 2020/07/27
- 14/295: gnu: python-greenlet: Update to 0.4.16., guix-commits, 2020/07/27
- 21/295: gnu: x265: Update to 3.4.,
guix-commits <=
- 22/295: gnu: Add emacs-browse-kill-ring., guix-commits, 2020/07/27
- 25/295: gnu: python-setproctitle: Fix indentation., guix-commits, 2020/07/27
- 23/295: gnu: Add r-shapforxgboost., guix-commits, 2020/07/27
- 28/295: daemon: Map directly to gcrypt hash functions., guix-commits, 2020/07/27
- 29/295: daemon: Remove OpenSSL hash compatibility wrappers., guix-commits, 2020/07/27
- 31/295: packages: Recognize SHA3 and BLAKE2s for 'content-hash'., guix-commits, 2020/07/27
- 32/295: gnu: libtiff: Use HTTPS., guix-commits, 2020/07/27
- 33/295: gnu: lxqt: Update to 0.15.0., guix-commits, 2020/07/27
- 39/295: gnu: r-renv: Update to 0.11.0., guix-commits, 2020/07/27
- 41/295: gnu: r-officer: Update to 0.3.12., guix-commits, 2020/07/27