You are not logged in.

#1 2012-06-30 22:49:54

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

[solved] errors patching current freetype2-infinality

I am trying to update AUR packages and this includes freetype2-infinality and lib32-freetype2-infinality. I run into problems running makepkg for either.

The last version I built successfully (and currently have installed) is 2.4.9-2. I had no problems building and installing that upgrade.

I've tried installing the latest fontconfig first (fontconfig-infinality 1-20120615) but this makes no difference.

I've looked on the package page and other people have clearly built the latest version just fine. What seems weird, given that fact, is that I'm running into errors just patching the source:

$ makepkg
==> Making package: freetype2-infinality 2.4.10-1 (Sat Jun 30 23:45:51 BST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found freetype-2.4.10.tar.bz2
  -> Found freetype-infinality-2.4.10-20120616_01-x86_64.tar.bz2
  -> Found freetype-2.2.1-enable-valid.patch
==> Validating source files with md5sums...
    freetype-2.4.10.tar.bz2 ... Passed
    freetype-infinality-2.4.10-20120616_01-x86_64.tar.bz2 ... Passed
    freetype-2.2.1-enable-valid.patch ... Passed
==> Extracting Sources...
  -> Extracting freetype-2.4.10.tar.bz2 with bsdtar
  -> Extracting freetype-infinality-2.4.10-20120616_01-x86_64.tar.bz2 with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
patching file src/type1/t1load.c
Reversed (or previously applied) patch detected!  Skipping patch.
8 out of 8 hunks ignored -- saving rejects to file src/type1/t1load.c.rej
patching file src/type1/t1load.c
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/type1/t1load.c.rej
patching file modules.cfg
Hunk #2 succeeded at 129 (offset 5 lines).
patching file builds/unix/configure
Hunk #1 succeeded at 14 (offset -2 lines).
patching file devel/ftoption.h
patching file include/freetype/config/ftoption.h
patching file include/freetype/internal/ftobjs.h
patching file src/truetype/rules.mk
patching file src/truetype/truetype.c
patching file src/truetype/ttgload.c
patching file src/truetype/ttinterp.c
Hunk #26 succeeded at 3326 (offset -5 lines).
Hunk #27 succeeded at 3380 (offset -5 lines).
Hunk #28 succeeded at 3418 (offset -5 lines).
Hunk #29 succeeded at 3426 (offset -5 lines).
Hunk #30 succeeded at 3437 (offset -5 lines).
Hunk #31 succeeded at 3452 (offset -5 lines).
Hunk #32 succeeded at 3469 (offset -5 lines).
Hunk #33 succeeded at 3484 (offset -5 lines).
Hunk #34 succeeded at 3495 (offset -5 lines).
Hunk #35 succeeded at 3523 (offset -5 lines).
Hunk #36 succeeded at 4680 (offset -5 lines).
Hunk #37 succeeded at 4730 (offset -5 lines).
Hunk #38 succeeded at 4744 (offset -5 lines).
Hunk #39 succeeded at 4864 (offset -5 lines).
Hunk #40 succeeded at 4906 (offset -5 lines).
Hunk #41 succeeded at 4947 (offset -5 lines).
Hunk #42 succeeded at 4988 (offset -5 lines).
Hunk #43 succeeded at 5021 (offset -5 lines).
Hunk #44 succeeded at 5061 (offset -5 lines).
Hunk #45 succeeded at 5093 (offset -5 lines).
Hunk #46 succeeded at 5447 (offset -5 lines).
Hunk #47 succeeded at 5947 (offset -5 lines).
Hunk #48 succeeded at 6139 (offset -5 lines).
Hunk #49 succeeded at 6187 (offset -5 lines).
Hunk #50 succeeded at 6309 (offset -5 lines).
Hunk #51 succeeded at 6344 (offset -5 lines).
Hunk #52 succeeded at 6376 (offset -5 lines).
Hunk #53 succeeded at 6405 (offset -5 lines).
Hunk #54 succeeded at 6431 (offset -5 lines).
Hunk #55 succeeded at 6491 (offset -5 lines).
Hunk #56 succeeded at 6521 (offset -5 lines).
Hunk #57 succeeded at 6604 (offset -5 lines).
Hunk #58 succeeded at 6618 (offset -5 lines).
Hunk #59 succeeded at 6665 (offset -5 lines).
Hunk #60 succeeded at 6748 (offset -5 lines).
Hunk #61 succeeded at 6769 (offset -5 lines).
Hunk #62 succeeded at 6791 (offset -5 lines).
Hunk #63 succeeded at 6852 (offset -5 lines).
Hunk #64 succeeded at 7354 (offset -5 lines).
Hunk #65 succeeded at 7432 (offset -5 lines).
Hunk #66 succeeded at 7517 (offset -5 lines).
Hunk #67 succeeded at 7725 (offset -5 lines).
Hunk #68 succeeded at 8199 (offset -5 lines).
Hunk #69 succeeded at 8482 (offset -5 lines).
Hunk #70 succeeded at 8505 (offset -5 lines).
patching file src/truetype/ttinterp.h
patching file src/truetype/ttobjs.h
patching file src/truetype/ttsubpix.c
patching file src/truetype/ttsubpix.h
patching file devel/ftoption.h
Hunk #1 FAILED at 560.
1 out of 1 hunk FAILED -- saving rejects to file devel/ftoption.h.rej
patching file include/freetype/config/ftoption.h
Hunk #1 succeeded at 582 (offset 22 lines).
patching file include/freetype/internal/ftobjs.h
Hunk #1 succeeded at 89 with fuzz 2 (offset 8 lines).
patching file src/truetype/rules.mk
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/truetype/rules.mk.rej
patching file src/truetype/truetype.c
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/truetype/truetype.c.rej
patching file src/truetype/ttgload.c
Reversed (or previously applied) patch detected!  Skipping patch.
10 out of 10 hunks ignored -- saving rejects to file src/truetype/ttgload.c.rej
patching file src/truetype/ttinterp.c
Reversed (or previously applied) patch detected!  Skipping patch.
65 out of 65 hunks ignored -- saving rejects to file src/truetype/ttinterp.c.rej
patching file src/truetype/ttinterp.h
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file src/truetype/ttinterp.h.rej
patching file src/truetype/ttobjs.h
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/truetype/ttobjs.h.rej
The next patch would create the file src/truetype/ttsubpix.c,
which already exists!  Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file src/truetype/ttsubpix.h,
which already exists!  Skipping patch.
1 out of 1 hunk ignored
patching file devel/ftoption.h
patching file include/freetype/config/ftoption.h
patching file include/freetype/config/ftoption.h
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file include/freetype/config/ftoption.h.rej
patching file configure
patching file include/freetype/config/ftoption.h
patching file include/freetype/ftoutln.h
Hunk #1 succeeded at 350 (offset 1 line).
patching file src/autofit/aflatin.c
Hunk #8 succeeded at 1470 (offset 1 line).
Hunk #9 succeeded at 1634 (offset 1 line).
Hunk #10 succeeded at 1781 (offset 1 line).
Hunk #11 succeeded at 1792 (offset 1 line).
Hunk #12 succeeded at 1857 (offset 1 line).
Hunk #13 succeeded at 1896 (offset 1 line).
Hunk #14 succeeded at 2372 (offset 1 line).
Hunk #15 succeeded at 2454 (offset 1 line).
patching file src/base/ftlcdfil.c
patching file src/base/ftobjs.c
patching file src/base/ftoutln.c
Hunk #1 succeeded at 897 with fuzz 1 (offset 10 lines).
Hunk #2 FAILED at 979.
Hunk #3 succeeded at 1003 (offset 12 lines).
1 out of 3 hunks FAILED -- saving rejects to file src/base/ftoutln.c.rej
patching file src/base/ftsynth.c
Hunk #1 succeeded at 88 (offset 1 line).
Hunk #2 FAILED at 165.
1 out of 2 hunks FAILED -- saving rejects to file src/base/ftsynth.c.rej
patching file src/smooth/ftsmooth.c
patching file src/truetype/ttgload.c
patching file src/truetype/ttinterp.c
Hunk #1 succeeded at 6747 (offset -5 lines).
Hunk #2 succeeded at 6811 (offset -5 lines).
Hunk #3 succeeded at 6840 (offset -5 lines).
Hunk #4 succeeded at 7739 (offset -5 lines).
Hunk #5 succeeded at 7860 (offset -5 lines).
patching file src/truetype/ttsubpix.c
patching file src/truetype/ttsubpix.h
patching file configure
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file configure.rej
patching file devel/ftoption.h
Hunk #1 succeeded at 582 (offset 5 lines).
patching file include/freetype/config/ftoption.h
Hunk #1 succeeded at 616 (offset 39 lines).
patching file src/autofit/aflatin.c
Reversed (or previously applied) patch detected!  Skipping patch.
15 out of 15 hunks ignored -- saving rejects to file src/autofit/aflatin.c.rej
patching file src/base/ftlcdfil.c
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/base/ftlcdfil.c.rej
patching file src/base/ftobjs.c
Hunk #1 succeeded at 529 with fuzz 1 (offset 16 lines).
Hunk #2 FAILED at 587.
Hunk #3 FAILED at 668.
Hunk #4 FAILED at 707.
Hunk #5 succeeded at 775 with fuzz 2 (offset 61 lines).
3 out of 5 hunks FAILED -- saving rejects to file src/base/ftobjs.c.rej
patching file src/base/ftoutln.c
Hunk #1 FAILED at 897.
1 out of 1 hunk FAILED -- saving rejects to file src/base/ftoutln.c.rej
patching file src/base/ftsynth.c
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file src/base/ftsynth.c.rej
patching file src/smooth/ftsmooth.c
Reversed (or previously applied) patch detected!  Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file src/smooth/ftsmooth.c.rej
==> ERROR: A failure occurred in build().
    Aborting...

The lib32 version gives similar errors. I've tried removing the src/freetype-2.4.10 and src/freetype-2.4.10-build to no effect.

Searching did reveal one user with a problem patching but in that case the devel packages were not installed and the build couldn't actually find the patch command as it wasn't installed. Clearly that's not the problem in my case.

What am I missing here?

Last edited by cfr (2012-07-01 01:40:38)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#2 2012-06-30 23:50:45

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved] errors patching current freetype2-infinality

Remove the entire src directory.

Offline

#3 2012-07-01 00:10:56

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: [solved] errors patching current freetype2-infinality

Thanks! Building the first one now... smile

I thought that since it was clearly working in the relevant build directory (e.g. src/freetype-2.4.10-build/src/smooth or whatever, that it was changing directories appropriately. Is the problem that it relies on other files directly under src/ and doesn't overwrite them with updated versions?

I'd just like to know why removing src/ entirely is necessary. (Partly curiosity; partly because if I know why, I'm slightly more likely to find enough information in the sieve I call a 'memory' next time this happens...)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2012-07-01 01:17:19

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved] errors patching current freetype2-infinality

Because of the way the PKGBUILD is written.

cat "$srcdir/"*.patch | patch -Np1

Old patches in $srcdir will be applied if you haven't cleaned them out.

Offline

#5 2012-07-01 01:39:38

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: [solved] errors patching current freetype2-infinality

Oh, I see. Thanks very much for the explanation - I appreciate your patience!


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB