[MacPorts] #44148: using Bohoomil's Infinality-Ultimate patches

MacPorts noreply at macports.org
Sun Jan 18 15:27:13 PST 2015


#44148: using Bohoomil's Infinality-Ultimate patches
----------------------------------------+--------------------------
  Reporter:  rjvbertin@…                |      Owner:  ryandesign@…
      Type:  enhancement                |     Status:  new
  Priority:  Normal                     |  Milestone:
 Component:  ports                      |    Version:
Resolution:                             |   Keywords:  haspatch
      Port:  freetype fontconfig cairo  |
----------------------------------------+--------------------------

Comment (by rjvbertin@…):

 Update to the Infinality patches from December 23rd, 2014.

 I've tried not to hijack the Revision variable in the new Portfile to
 store the Infinality version. Instead, I'm trying a different approach
 that adds the Inf. version to the Freetype version:

 {{{

 name                    freetype
 set ftversion           2.5.4
 revision                2

 if {[variant_isset infinality]} {
     version             ${ftversion}.20141223
     worksrcdir          ${name}-${ftversion}
     distname            ${name}-${ftversion}
 } else {
     version             ${ftversion}
 }
 }}}

 This gives expected behaviour:

 {{{
 >  port info freetype +infinality
 freetype @2.5.4.20141223_2 (print, graphics)
 Variants:             +infinality, universal
 }}}

 but I have seen some inexplicable behaviour where port would try to grab a
 file (archivefetch) with the Infinality version in its name after doing a
 completely normal `port patch freetype +infinality`. It would also do the
 full run, i.e. `port configure` behaved like `port install`, and then
 complained about not being able to upgrade harfbuzz because it didn't have
 the permissions to install.

 I can no longer reproduce this when the new version is installed but after
 rolling back to the previous version:

 {{{
 > port patch freetype +infinality+universal
 # completes fine
 > port -v -k configure freetype +infinality+universal
 Warning: port definitions are more than two weeks old, consider updating
 them by running 'port selfupdate'.
 --->  Computing dependencies for freetype.
 --->  Fetching archive for freetype
 --->
 freetype-2.5.4.20141223_2+infinality+universal.darwin_13.i386-x86_64.tbz2
 doesn't seem to exist in /opt/local/var/macports/incoming/verified
 --->  Attempting to fetch
 freetype-2.5.4.20141223_2+infinality+universal.darwin_13.i386-x86_64.tbz2
 from http://lil.fr.packages.macports.org/freetype
   % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                  Dload  Upload   Total   Spent    Left
 Speed

   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
 0
   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
 0
 --->  Attempting to fetch
 freetype-2.5.4.20141223_2+infinality+universal.darwin_13.i386-x86_64.tbz2
 from
 http://mse.uk.packages.macports.org/sites/packages.macports.org/freetype
   % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                  Dload  Upload   Total   Spent    Left
 Speed

   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
 0
   0   323    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
 0

   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
 0
 --->  Attempting to fetch
 freetype-2.5.4.20141223_2+infinality+universal.darwin_13.i386-x86_64.tbz2
 from http://packages.macports.org/freetype
   % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                  Dload  Upload   Total   Spent    Left
 Speed

   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
 0
   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
 0
 --->  Configuring freetype
 --->  Configuring freetype for architecture x86_64

 FreeType build system -- automatic system detection
 ...
 configure: creating ./config.status
 config.status: creating unix-cc.mk
 config.status: creating unix-def.mk
 config.status: creating ftconfig.h
 config.status: executing libtool commands
 configure:

 Library configuration:
   external zlib: yes (pkg-config)
   bzip2:         yes (autoconf test)
   libpng:        yes (pkg-config)
   harfbuzz:      yes (pkg-config)

 make: Nothing to be done for 'unix'.
 --->  Building freetype
 --->  Building freetype for architecture x86_64
 ...
 --->  Staging freetype into destroot
 . changed
         user expected 0 found 505 not modified: Operation not permitted
         gid expected 0 found 505 not modified: Operation not permitted
         permissions expected 0775 found 0755 modified
 ./usr missing (created)
 ./usr: user & group not modified: Operation not permitted
 ...
 --->  Compressing man pages for freetype
 man1/freetype-config.1:    56.9% -- replaced with man1/freetype-
 config.1.gz
 man1/freetype-config.1.gz: changing permissions from 00644 to 00444
 --->  Installing freetype @2.5.4.20141223_2+infinality+universal
 sh:
 /Volumes/Debian/MP9/var/macports/software/freetype/freetype-2.5.4.20141223_2+infinality+universal.darwin_13.i386-x86_64.tbz2:
 Permission denied
 a .
 a ./+COMMENT
 a ./+CONTENTStar: Write error
 Command failed:  cd "/Volumes/Debian/MP9/var/macports/build
 /_Volumes_Debian_MP9_site-ports_print_freetype/freetype/work/destroot" &&
 /usr/bin/tar -cvf - . | /usr/bin/bzip2 -c9 >
 /Volumes/Debian/MP9/var/macports/software/freetype/freetype-2.5.4.20141223_2+infinality+universal.darwin_13.i386-x86_64.tbz2
 Exit code: 1
 Error: org.macports.install for port freetype returned: command execution
 failed
 Warning: targets not executed for freetype: org.macports.install
 Please see the log file for port freetype for details:
     /opt/local/var/macports/logs/_Volumes_Debian_MP9_site-
 ports_print_freetype/freetype/main.log
 Error: Unable to upgrade port: 1
 Error: Unable to execute port: upgrade harfbuzz failed
 }}}

 I'll attach the log file.

-- 
Ticket URL: <https://trac.macports.org/ticket/44148#comment:11>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list