Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Aug 2020 20:50:25 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r544768 - head/audio/opustags/files
Message-ID:  <202008122050.07CKoPNj053153@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Wed Aug 12 20:50:25 2020
New Revision: 544768
URL: https://svnweb.freebsd.org/changeset/ports/544768

Log:
  audio/opustags: fix build on GCC architectures
  
  GCC doesn't include sys/endian.h by default:
  /wrkdirs/usr/ports/audio/opustags/work/opustags-1.3.0/src/opus.cc: In function 'ot::status ot::parse_tags(const ogg_packet&, ot::opus_tags&)':
  /wrkdirs/usr/ports/audio/opustags/work/opustags-1.3.0/src/opus.cc:58:25: error: 'le32toh' was not declared in this scope
     58 |  size_t vendor_length = le32toh(*((uint32_t*) (data + pos)));
        |                         ^~~~~~~
  /wrkdirs/usr/ports/audio/opustags/work/opustags-1.3.0/src/opus.cc: In function 'ot::dynamic_ogg_packet ot::render_tags(const ot::opus_tags&)':
  /wrkdirs/usr/ports/audio/opustags/work/opustags-1.3.0/src/opus.cc:107:6: error: 'htole32' was not declared in this scope
    107 |  n = htole32(tags.vendor.size());
        |      ^~~~~~~

Added:
  head/audio/opustags/files/
  head/audio/opustags/files/patch-src_opus.cc   (contents, props changed)

Added: head/audio/opustags/files/patch-src_opus.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/opustags/files/patch-src_opus.cc	Wed Aug 12 20:50:25 2020	(r544768)
@@ -0,0 +1,10 @@
+--- src/opus.cc.orig	2020-08-12 14:10:18 UTC
++++ src/opus.cc
+@@ -24,6 +24,7 @@
+ 
+ #include <opustags.h>
+ 
++#include <sys/endian.h>
+ #include <string.h>
+ 
+ #ifdef __APPLE__



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008122050.07CKoPNj053153>