Bug 243213 - www/firefox: 72.0.1: error: use of undeclared identifier 'CAP_MMAP_R'
Summary: www/firefox: 72.0.1: error: use of undeclared identifier 'CAP_MMAP_R'
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-gecko (Nobody)
URL:
Keywords:
: 243208 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-01-09 11:48 UTC by O. Hartmann
Modified: 2020-01-13 15:02 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (gecko)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2020-01-09 11:48:34 UTC
The recent security update of Firefox 72.0 to 72.0.1 fails at least on both CURRENT and 12-STABLE to compile (recent OS version, most recent ports tree/ports updates):

[...]
In file included from Unified_cpp_ipc_chromium0.cpp:137:                                                                                                                                                                                                                                          
/usr/ports/www/firefox/work/firefox-72.0.1/ipc/chromium/src/base/shared_memory_posix.cc:282:16: error: variable has incomplete type 'cap_rights_t'                                                                                                                                              
      (aka 'cap_rights')                                                                                                                                                                                                                                        
  cap_rights_t rights;                                                                                                                                                                                                                                  
               ^                                                                                                                                                                                                                
/usr/include/sys/types.h:249:8: note: forward declaration of 'cap_rights'                                                                                                                                                                                                                       
struct cap_rights;                                                                                                                                                                                                                      
       ^                                                                                                                                                                                        
In file included from Unified_cpp_ipc_chromium0.cpp:137:                                                                                                                                                                                                                                          
/usr/ports/www/firefox/work/firefox-72.0.1/ipc/chromium/src/base/shared_memory_posix.cc:283:28: error: use of undeclared identifier 'CAP_MMAP_R'                                                                                                                                                
  cap_rights_init(&rights, CAP_MMAP_R);                                                                                                                                                                                                                                                           
                           ^                                                                                                                                                                                                                                                    
gmake[5]: Leaving directory '/usr/ports/www/firefox/work/.build/toolkit/library/rust'
Comment 1 commit-hook freebsd_committer 2020-01-09 13:33:49 UTC
A commit references this bug:

Author: jbeich
Date: Thu Jan  9 13:32:55 UTC 2020
New revision: 522486
URL: https://svnweb.freebsd.org/changeset/ports/522486

Log:
  www/firefox: unbreak after r522464

  In file included from Unified_cpp_ipc_chromium0.cpp:137:
  ipc/chromium/src/base/shared_memory_posix.cc:282:16: error: variable has incomplete type 'cap_rights_t' (aka 'cap_rights')
    cap_rights_t rights;
                 ^
  /usr/include/sys/types.h:247:8: note: forward declaration of 'cap_rights'
  struct cap_rights;
         ^
  In file included from Unified_cpp_ipc_chromium0.cpp:137:
  ipc/chromium/src/base/shared_memory_posix.cc:283:28: error: use of undeclared identifier 'CAP_MMAP_R'
    cap_rights_init(&rights, CAP_MMAP_R);
                             ^

  PR:		243213
  Pointy hat to:	jbeich (landed old version of the patch)

Changes:
  head/www/firefox/files/patch-bug1550891
Comment 2 Jan Beich freebsd_committer 2020-01-13 15:02:19 UTC
*** Bug 243208 has been marked as a duplicate of this bug. ***