Date: Fri, 28 Feb 2014 10:23:10 +0000 (UTC) From: Rene Ladan <rene@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r346486 - in head/www/chromium: . files Message-ID: <201402281023.s1SANAqq023632@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rene Date: Fri Feb 28 10:23:09 2014 New Revision: 346486 URL: http://svnweb.freebsd.org/changeset/ports/346486 QAT: https://qat.redports.org/buildarchive/r346486/ Log: - Fix build on FreeBSD < 10, which need a C++11 library. - Fix a strncpy() in a patch I wrote by actually allocating storage space fo - Bump PORTREVISION MFH: 2014Q1 Modified: head/www/chromium/Makefile head/www/chromium/files/patch-chrome__browser__extensions__api__music_manager_private__device_id_linux.cc Modified: head/www/chromium/Makefile ============================================================================== --- head/www/chromium/Makefile Fri Feb 28 10:21:05 2014 (r346485) +++ head/www/chromium/Makefile Fri Feb 28 10:23:09 2014 (r346486) @@ -6,6 +6,7 @@ PORTNAME= chromium DISTVERSIONPREFIX= courgette-redacted- DISTVERSION= 33.0.1750.117 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://commondatastorage.googleapis.com/chromium-browser-official/:testdata \ http://download.goodking.org/downloads/:browser \ @@ -46,7 +47,7 @@ RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/l ONLY_FOR_ARCHS= i386 amd64 USE_XZ= yes -USES= bison compiler:c++11-lang desktop-file-utils pkgconfig \ +USES= bison compiler:c++11-lib desktop-file-utils pkgconfig \ perl5 shebangfix ninja USE_PERL5= build USE_PYTHON_BUILD= 2 Modified: head/www/chromium/files/patch-chrome__browser__extensions__api__music_manager_private__device_id_linux.cc ============================================================================== --- head/www/chromium/files/patch-chrome__browser__extensions__api__music_manager_private__device_id_linux.cc Fri Feb 28 10:21:05 2014 (r346485) +++ head/www/chromium/files/patch-chrome__browser__extensions__api__music_manager_private__device_id_linux.cc Fri Feb 28 10:23:09 2014 (r346486) @@ -1,5 +1,5 @@ ---- chrome/browser/extensions/api/music_manager_private/device_id_linux.cc.orig 2014-02-20 21:27:39.000000000 +0100 -+++ chrome/browser/extensions/api/music_manager_private/device_id_linux.cc 2014-02-25 00:17:02.000000000 +0100 +--- ./chrome/browser/extensions/api/music_manager_private/device_id_linux.cc.orig 2014-02-20 21:27:39.000000000 +0100 ++++ ./chrome/browser/extensions/api/music_manager_private/device_id_linux.cc 2014-02-28 11:05:01.000000000 +0100 @@ -4,6 +4,10 @@ #include "chrome/browser/extensions/api/music_manager_private/device_id.h" @@ -39,8 +39,8 @@ + } + } + -+ char* mac_address = nullptr; -+ strncpy(mac_address, (const char*)LLADDR((struct sockaddr_dl*)ifinfo->ifa_addr), 6); ++ char mac_address[6]; ++ strncpy(mac_address, (const char*)LLADDR((struct sockaddr_dl*)ifinfo->ifa_addr), sizeof(mac_address)); +#else + strncpy(ifinfo.ifr_name, ifaddr->ifa_name, sizeof(ifinfo.ifr_name) - 1); int sd = socket(AF_INET, SOCK_DGRAM, 0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402281023.s1SANAqq023632>