Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
media-libs/freetype subpixel hinting support
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 07, 2010 3:06 am    Post subject: media-libs/freetype subpixel hinting support Reply with quote

Hi,

perhaps you haven't noticed, there's a nice patchset-compilation offered by PaulBredbury to add subpixel hinting-support to freetype 2.4.1

(since version 2.4.0 freetype is allowed to use the TrueType bytecode interpreter since the patents have expired:
http://sourceforge.net/projects/freetype/files/freetype2/2.4.0/NEWS/view)

https://forums.gentoo.org/viewtopic-p-6350912.html#6350912
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 07, 2010 3:08 am    Post subject: Reply with quote

unfortunately the patch is failing for me:
Quote:
* CPV: media-libs/freetype-2.4.1
* REPO: portage
* USE: X amd64 elibc_glibc kernel_linux multilib userland_GNU utils
>>> Unpacking source...
>>> Unpacking freetype-2.4.1.tar.bz2 to /var/tmp/portage/media-libs/freetype-2.4.1/work
>>> Unpacking ft2demos-2.4.1.tar.bz2 to /var/tmp/portage/media-libs/freetype-2.4.1/work
>>> Source unpacked in /var/tmp/portage/media-libs/freetype-2.4.1/work
>>> Preparing source in /var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1 ...
* Applying freetype-2.3.2-enable-valid.patch ... [ ok ]
* Applying freetype-2.4.0-infinality-subpixel-hinting.patch ...

* Failed Patch: freetype-2.4.0-infinality-subpixel-hinting.patch !
* ( /usr/gentoo/overlays/media-libs/freetype/files/freetype-2.4.0-infinality-subpixel-hinting.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/media-libs/freetype-2.4.1/temp/freetype-2.4.0-infinality-subpixel-hinting.patch.out

* ERROR: media-libs/freetype-2.4.1 failed:
* Failed Patch: freetype-2.4.0-infinality-subpixel-hinting.patch!
*
* Call stack:
* ebuild.sh, line 48: Called src_prepare
* environment, line 3104: Called epatch '/usr/gentoo/overlays/media-libs/freetype/files/freetype-2.4.0-infinality-subpixel-hinting.patch'
* environment, line 1677: Called die
* The specific snippet of code:
* die "Failed Patch: ${patchname}!";
*
* If you need support, post the output of 'emerge --info =media-libs/freetype-2.4.1',
* the complete build log and the output of 'emerge -pqv =media-libs/freetype-2.4.1'.
* This ebuild is from an overlay named 'portage': '/usr/gentoo/overlays/'
* The complete build log is located at '/var/log/portage/media-libs:freetype-2.4.1:20100807-025950.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-libs/freetype-2.4.1/temp/environment'.
* S: '/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1'

>>> Failed to emerge media-libs/freetype-2.4.1, Log file:

>>> '/var/log/portage/media-libs:freetype-2.4.1:20100807-025950.log'

* Messages for package media-libs/freetype-2.4.1:

* Failed Patch: freetype-2.4.0-infinality-subpixel-hinting.patch !
* ( /usr/gentoo/overlays/media-libs/freetype/files/freetype-2.4.0-infinality-subpixel-hinting.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/media-libs/freetype-2.4.1/temp/freetype-2.4.0-infinality-subpixel-hinting.patch.out
* ERROR: media-libs/freetype-2.4.1 failed:
* Failed Patch: freetype-2.4.0-infinality-subpixel-hinting.patch!
*
* Call stack:
* ebuild.sh, line 48: Called src_prepare
* environment, line 3104: Called epatch '/usr/gentoo/overlays/media-libs/freetype/files/freetype-2.4.0-infinality-subpixel-hinting.patch'
* environment, line 1677: Called die
* The specific snippet of code:
* die "Failed Patch: ${patchname}!";
*
* If you need support, post the output of 'emerge --info =media-libs/freetype-2.4.1',
* the complete build log and the output of 'emerge -pqv =media-libs/freetype-2.4.1'.
* This ebuild is from an overlay named 'portage': '/usr/gentoo/overlays/'
* The complete build log is located at '/var/log/portage/media-libs:freetype-2.4.1:20100807-025950.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-libs/freetype-2.4.1/temp/environment'.
* S: '/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1'
*
* The following package has failed to build or install:
*
* ('ebuild', '/', 'media-libs/freetype-2.4.1', 'merge'), Log file:
* '/var/log/portage/media-libs:freetype-2.4.1:20100807-025950.log'

/var/tmp/portage/media-libs/freetype-2.4.1/temp/freetype-2.4.0-infinality-subpixel-hinting.patch.out wrote:
***** freetype-2.4.0-infinality-subpixel-hinting.patch *****

============================================================

PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < '/usr/gentoo/overlays/media-libs/freetype/files/freetype-2.4.0-infinality-subpixel-hinting.patch'

============================================================
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From http://www.infinality.net/fedora/linux/13/SRPMS/freetype-subpixel-2.3.12-3.fc13.src.rpm
|and modified to patch freetype 2.4.0
|See http://www.infinality.net/blog/?p=67
|and https://forums.gentoo.org/viewtopic-p-6350322.html#6350322
|
|Added:
|freetype-2.3.0-enable-spr.patch
|freetype-2.2.1-enable-valid.patch
|freetype-2.2.1-memcpy-fix.patch
|#define FT_CONFIG_OPTION_SYSTEM_ZLIB in include/freetype/config/ftoption.h
|
|
|diff -Naur freetype-2.4.0-orig//include/freetype/config/ftoption.h freetype-2.4.0/include/freetype/config/ftoption.h
|--- freetype-2.4.0-orig//include/freetype/config/ftoption.h 2010-07-05 11:38:55.000000000 +0700
|+++ freetype-2.4.0/include/freetype/config/ftoption.h 2010-07-14 17:46:36.000000000 +0700
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 37
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//include/freetype/freetype.h freetype-2.4.0/include/freetype/freetype.h
|--- freetype-2.4.0-orig//include/freetype/freetype.h 2010-07-13 02:27:14.000000000 +0700
|+++ freetype-2.4.0/include/freetype/freetype.h 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 48
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//include/freetype/internal/ftobjs.h freetype-2.4.0/include/freetype/internal/ftobjs.h
|--- freetype-2.4.0-orig//include/freetype/internal/ftobjs.h 2009-07-03 20:28:24.000000000 +0700
|+++ freetype-2.4.0/include/freetype/internal/ftobjs.h 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 65
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//modules.cfg freetype-2.4.0/modules.cfg
|--- freetype-2.4.0-orig//modules.cfg 2009-03-14 20:45:26.000000000 +0700
|+++ freetype-2.4.0/modules.cfg 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 86
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/psaux/psobjs.c freetype-2.4.0/src/psaux/psobjs.c
|--- freetype-2.4.0-orig//src/psaux/psobjs.c 2010-06-20 21:24:14.000000000 +0700
|+++ freetype-2.4.0/src/psaux/psobjs.c 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 101
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/truetype/ttgload.c freetype-2.4.0/src/truetype/ttgload.c
|--- freetype-2.4.0-orig//src/truetype/ttgload.c 2010-06-29 15:27:12.000000000 +0700
|+++ freetype-2.4.0/src/truetype/ttgload.c 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
6 out of 6 hunks ignored
can't find file to patch at input line 204
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/truetype/ttinterp.c freetype-2.4.0/src/truetype/ttinterp.c
|--- freetype-2.4.0-orig//src/truetype/ttinterp.c 2010-07-08 12:23:01.000000000 +0700
|+++ freetype-2.4.0/src/truetype/ttinterp.c 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
37 out of 37 hunks ignored
can't find file to patch at input line 1006
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/truetype/ttinterp.h freetype-2.4.0/src/truetype/ttinterp.h
|--- freetype-2.4.0-orig//src/truetype/ttinterp.h 2010-05-20 19:04:47.000000000 +0700
|+++ freetype-2.4.0/src/truetype/ttinterp.h 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
patch unexpectedly ends in middle of line
2 out of 2 hunks ignored
============================================================

PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < '/usr/gentoo/overlays/media-libs/freetype/files/freetype-2.4.0-infinality-subpixel-hinting.patch'

============================================================
patching file include/freetype/config/ftoption.h
Hunk #1 FAILED at 93.
Hunk #2 succeeded at 186 (offset 1 line).
1 out of 2 hunks FAILED -- saving rejects to file include/freetype/config/ftoption.h.rej
patching file include/freetype/freetype.h
patching file include/freetype/internal/ftobjs.h
patching file modules.cfg
Hunk #1 FAILED at 110.
Hunk #2 FAILED at 124.
2 out of 2 hunks FAILED -- saving rejects to file modules.cfg.rej
patching file src/psaux/psobjs.c
patching file src/truetype/ttgload.c
patching file src/truetype/ttinterp.c
patching file src/truetype/ttinterp.h
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 216 with fuzz 2.
============================================================

PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < '/usr/gentoo/overlays/media-libs/freetype/files/freetype-2.4.0-infinality-subpixel-hinting.patch'

============================================================
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From http://www.infinality.net/fedora/linux/13/SRPMS/freetype-subpixel-2.3.12-3.fc13.src.rpm
|and modified to patch freetype 2.4.0
|See http://www.infinality.net/blog/?p=67
|and https://forums.gentoo.org/viewtopic-p-6350322.html#6350322
|
|Added:
|freetype-2.3.0-enable-spr.patch
|freetype-2.2.1-enable-valid.patch
|freetype-2.2.1-memcpy-fix.patch
|#define FT_CONFIG_OPTION_SYSTEM_ZLIB in include/freetype/config/ftoption.h
|
|
|diff -Naur freetype-2.4.0-orig//include/freetype/config/ftoption.h freetype-2.4.0/include/freetype/config/ftoption.h
|--- freetype-2.4.0-orig//include/freetype/config/ftoption.h 2010-07-05 11:38:55.000000000 +0700
|+++ freetype-2.4.0/include/freetype/config/ftoption.h 2010-07-14 17:46:36.000000000 +0700
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 37
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//include/freetype/freetype.h freetype-2.4.0/include/freetype/freetype.h
|--- freetype-2.4.0-orig//include/freetype/freetype.h 2010-07-13 02:27:14.000000000 +0700
|+++ freetype-2.4.0/include/freetype/freetype.h 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 48
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//include/freetype/internal/ftobjs.h freetype-2.4.0/include/freetype/internal/ftobjs.h
|--- freetype-2.4.0-orig//include/freetype/internal/ftobjs.h 2009-07-03 20:28:24.000000000 +0700
|+++ freetype-2.4.0/include/freetype/internal/ftobjs.h 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 65
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//modules.cfg freetype-2.4.0/modules.cfg
|--- freetype-2.4.0-orig//modules.cfg 2009-03-14 20:45:26.000000000 +0700
|+++ freetype-2.4.0/modules.cfg 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 86
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/psaux/psobjs.c freetype-2.4.0/src/psaux/psobjs.c
|--- freetype-2.4.0-orig//src/psaux/psobjs.c 2010-06-20 21:24:14.000000000 +0700
|+++ freetype-2.4.0/src/psaux/psobjs.c 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 101
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/truetype/ttgload.c freetype-2.4.0/src/truetype/ttgload.c
|--- freetype-2.4.0-orig//src/truetype/ttgload.c 2010-06-29 15:27:12.000000000 +0700
|+++ freetype-2.4.0/src/truetype/ttgload.c 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
6 out of 6 hunks ignored
can't find file to patch at input line 204
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/truetype/ttinterp.c freetype-2.4.0/src/truetype/ttinterp.c
|--- freetype-2.4.0-orig//src/truetype/ttinterp.c 2010-07-08 12:23:01.000000000 +0700
|+++ freetype-2.4.0/src/truetype/ttinterp.c 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
37 out of 37 hunks ignored
can't find file to patch at input line 1006
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/truetype/ttinterp.h freetype-2.4.0/src/truetype/ttinterp.h
|--- freetype-2.4.0-orig//src/truetype/ttinterp.h 2010-05-20 19:04:47.000000000 +0700
|+++ freetype-2.4.0/src/truetype/ttinterp.h 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
patch unexpectedly ends in middle of line
2 out of 2 hunks ignored
============================================================

PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < '/usr/gentoo/overlays/media-libs/freetype/files/freetype-2.4.0-infinality-subpixel-hinting.patch'

============================================================
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From http://www.infinality.net/fedora/linux/13/SRPMS/freetype-subpixel-2.3.12-3.fc13.src.rpm
|and modified to patch freetype 2.4.0
|See http://www.infinality.net/blog/?p=67
|and https://forums.gentoo.org/viewtopic-p-6350322.html#6350322
|
|Added:
|freetype-2.3.0-enable-spr.patch
|freetype-2.2.1-enable-valid.patch
|freetype-2.2.1-memcpy-fix.patch
|#define FT_CONFIG_OPTION_SYSTEM_ZLIB in include/freetype/config/ftoption.h
|
|
|diff -Naur freetype-2.4.0-orig//include/freetype/config/ftoption.h freetype-2.4.0/include/freetype/config/ftoption.h
|--- freetype-2.4.0-orig//include/freetype/config/ftoption.h 2010-07-05 11:38:55.000000000 +0700
|+++ freetype-2.4.0/include/freetype/config/ftoption.h 2010-07-14 17:46:36.000000000 +0700
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 37
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//include/freetype/freetype.h freetype-2.4.0/include/freetype/freetype.h
|--- freetype-2.4.0-orig//include/freetype/freetype.h 2010-07-13 02:27:14.000000000 +0700
|+++ freetype-2.4.0/include/freetype/freetype.h 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 48
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//include/freetype/internal/ftobjs.h freetype-2.4.0/include/freetype/internal/ftobjs.h
|--- freetype-2.4.0-orig//include/freetype/internal/ftobjs.h 2009-07-03 20:28:24.000000000 +0700
|+++ freetype-2.4.0/include/freetype/internal/ftobjs.h 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 65
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//modules.cfg freetype-2.4.0/modules.cfg
|--- freetype-2.4.0-orig//modules.cfg 2009-03-14 20:45:26.000000000 +0700
|+++ freetype-2.4.0/modules.cfg 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 86
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/psaux/psobjs.c freetype-2.4.0/src/psaux/psobjs.c
|--- freetype-2.4.0-orig//src/psaux/psobjs.c 2010-06-20 21:24:14.000000000 +0700
|+++ freetype-2.4.0/src/psaux/psobjs.c 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 101
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/truetype/ttgload.c freetype-2.4.0/src/truetype/ttgload.c
|--- freetype-2.4.0-orig//src/truetype/ttgload.c 2010-06-29 15:27:12.000000000 +0700
|+++ freetype-2.4.0/src/truetype/ttgload.c 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
6 out of 6 hunks ignored
can't find file to patch at input line 204
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/truetype/ttinterp.c freetype-2.4.0/src/truetype/ttinterp.c
|--- freetype-2.4.0-orig//src/truetype/ttinterp.c 2010-07-08 12:23:01.000000000 +0700
|+++ freetype-2.4.0/src/truetype/ttinterp.c 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
37 out of 37 hunks ignored
can't find file to patch at input line 1006
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/truetype/ttinterp.h freetype-2.4.0/src/truetype/ttinterp.h
|--- freetype-2.4.0-orig//src/truetype/ttinterp.h 2010-05-20 19:04:47.000000000 +0700
|+++ freetype-2.4.0/src/truetype/ttinterp.h 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
patch unexpectedly ends in middle of line
2 out of 2 hunks ignored
============================================================

PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < '/usr/gentoo/overlays/media-libs/freetype/files/freetype-2.4.0-infinality-subpixel-hinting.patch'

============================================================
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From http://www.infinality.net/fedora/linux/13/SRPMS/freetype-subpixel-2.3.12-3.fc13.src.rpm
|and modified to patch freetype 2.4.0
|See http://www.infinality.net/blog/?p=67
|and https://forums.gentoo.org/viewtopic-p-6350322.html#6350322
|
|Added:
|freetype-2.3.0-enable-spr.patch
|freetype-2.2.1-enable-valid.patch
|freetype-2.2.1-memcpy-fix.patch
|#define FT_CONFIG_OPTION_SYSTEM_ZLIB in include/freetype/config/ftoption.h
|
|
|diff -Naur freetype-2.4.0-orig//include/freetype/config/ftoption.h freetype-2.4.0/include/freetype/config/ftoption.h
|--- freetype-2.4.0-orig//include/freetype/config/ftoption.h 2010-07-05 11:38:55.000000000 +0700
|+++ freetype-2.4.0/include/freetype/config/ftoption.h 2010-07-14 17:46:36.000000000 +0700
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 37
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//include/freetype/freetype.h freetype-2.4.0/include/freetype/freetype.h
|--- freetype-2.4.0-orig//include/freetype/freetype.h 2010-07-13 02:27:14.000000000 +0700
|+++ freetype-2.4.0/include/freetype/freetype.h 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 48
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//include/freetype/internal/ftobjs.h freetype-2.4.0/include/freetype/internal/ftobjs.h
|--- freetype-2.4.0-orig//include/freetype/internal/ftobjs.h 2009-07-03 20:28:24.000000000 +0700
|+++ freetype-2.4.0/include/freetype/internal/ftobjs.h 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 65
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//modules.cfg freetype-2.4.0/modules.cfg
|--- freetype-2.4.0-orig//modules.cfg 2009-03-14 20:45:26.000000000 +0700
|+++ freetype-2.4.0/modules.cfg 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 86
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/psaux/psobjs.c freetype-2.4.0/src/psaux/psobjs.c
|--- freetype-2.4.0-orig//src/psaux/psobjs.c 2010-06-20 21:24:14.000000000 +0700
|+++ freetype-2.4.0/src/psaux/psobjs.c 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 101
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/truetype/ttgload.c freetype-2.4.0/src/truetype/ttgload.c
|--- freetype-2.4.0-orig//src/truetype/ttgload.c 2010-06-29 15:27:12.000000000 +0700
|+++ freetype-2.4.0/src/truetype/ttgload.c 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
6 out of 6 hunks ignored
can't find file to patch at input line 204
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/truetype/ttinterp.c freetype-2.4.0/src/truetype/ttinterp.c
|--- freetype-2.4.0-orig//src/truetype/ttinterp.c 2010-07-08 12:23:01.000000000 +0700
|+++ freetype-2.4.0/src/truetype/ttinterp.c 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
37 out of 37 hunks ignored
can't find file to patch at input line 1006
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur freetype-2.4.0-orig//src/truetype/ttinterp.h freetype-2.4.0/src/truetype/ttinterp.h
|--- freetype-2.4.0-orig//src/truetype/ttinterp.h 2010-05-20 19:04:47.000000000 +0700
|+++ freetype-2.4.0/src/truetype/ttinterp.h 2010-07-14 17:34:15.000000000 +0700
--------------------------
No file to patch. Skipping patch.
patch unexpectedly ends in middle of line
2 out of 2 hunks ignored

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 07, 2010 3:24 am    Post subject: Reply with quote

freetype-2.4.1.ebuild

Quote:
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.4.0.ebuild,v 1.1 2010/07/15 05:32:36 dirtyepic Exp $

EAPI="2"

inherit eutils flag-o-matic libtool

DESCRIPTION="A high-quality and portable font engine"
HOMEPAGE="http://www.freetype.org/"
SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2
utils? ( mirror://sourceforge/freetype/ft2demos-${PV}.tar.bz2 )
doc? ( mirror://sourceforge/freetype/${PN}-doc-${PV}.tar.bz2 )"

LICENSE="FTL GPL-2"
SLOT="2"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
IUSE="X auto-hinter bindist debug doc utils fontforge"

DEPEND="sys-libs/zlib
X? ( x11-libs/libX11
x11-libs/libXau
x11-libs/libXdmcp )"

RDEPEND="${DEPEND}"

src_prepare() {
enable_option() {
sed -i -e "/#define $1/a #define $1" \
include/freetype/config/ftoption.h \
|| die "unable to enable option $1"
}

disable_option() {
sed -i -e "/#define $1/ { s:^:/*:; s:$:*/: }" \
include/freetype/config/ftoption.h \
|| die "unable to disable option $1"
}

if ! use bindist; then
# See http://freetype.org/patents.html
# ClearType is covered by several Microsoft patents in the US
enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING
fi

if use auto-hinter; then
disable_option TT_CONFIG_OPTION_BYTECODE_INTERPRETER
enable_option TT_CONFIG_OPTION_UNPATENTED_HINTING
fi

if use debug; then
enable_option FT_DEBUG_LEVEL_ERROR
enable_option FT_DEBUG_MEMORY
fi

disable_option FT_CONFIG_OPTION_OLD_INTERNALS

epatch "${FILESDIR}"/${PN}-2.3.2-enable-valid.patch

epatch "${FILESDIR}"/freetype-2.4.0-infinality-subpixel-hinting.patch

if use utils; then
cd "${WORKDIR}/ft2demos-${PV}"
sed -i -e "s:\.\.\/freetype2$:../freetype-${PV}:" Makefile
# Disable tests needing X11 when USE="-X". (bug #177597)
if ! use X; then
sed -i -e "/EXES\ +=\ ftdiff/ s:^:#:" Makefile
fi
fi

elibtoolize
epunt_cxx
}

src_configure() {
append-flags -fno-strict-aliasing
type -P gmake &> /dev/null && export GNUMAKE=gmake
econf
}

src_compile() {
emake || die "emake failed"

if use utils; then
cd "${WORKDIR}/ft2demos-${PV}"
emake || die "ft2demos emake failed"
fi
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"

dodoc ChangeLog README
dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PROBLEMS,TODO}

use doc && dohtml -r docs/*

if use utils; then
rm "${WORKDIR}"/ft2demos-${PV}/bin/README
for ft2demo in ../ft2demos-${PV}/bin/*; do
./builds/unix/libtool --mode=install $(type -P install) -m 755 "$ft2demo" \
"${D}"/usr/bin
done
fi

if use fontforge; then
# Probably fontforge needs less but this way makes things simplier...
einfo "Installing internal headers required for fontforge"
find src/truetype include/freetype/internal -name '*.h' | \
while read header; do
mkdir -p "${D}/usr/include/freetype2/internal4fontforge/$(dirname ${header})"
cp ${header} "${D}/usr/include/freetype2/internal4fontforge/$(dirname ${header})"
done
fi
}

pkg_postinst() {
elog "The TrueType bytecode interpreter is no longer patented and thus no"
elog "longer controlled by the bindist USE flag. Enable the auto-hinter"
elog "USE flag if you want the old USE="bindist" hinting behavior."
}

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Aug 07, 2010 3:42 am    Post subject: Reply with quote

My patch is an all-in-one. *Understand* what that means, then remove all the crap you've got that changes files before applying my patch.

This is beginner-level stuff.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 07, 2010 3:58 am    Post subject: Reply with quote

PaulBredbury wrote:
My patch is an all-in-one. *Understand* what that means, then remove all the crap you've got that changes files before applying my patch.

This is beginner-level stuff.


:oops:

I didn't look at the file originally & had assumed it was a patch collection and not a set of different things :lol:

sorry & thanks !
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum