Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698744 - media-libs/gegl-0.4.18 - meson.build:92:2: ERROR: Problem encountered: Unknown host architecture
Summary: media-libs/gegl-0.4.18 - meson.build:92:2: ERROR: Problem encountered: Unknow...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL: https://gitlab.gnome.org/GNOME/gegl/c...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-10-28 10:52 UTC by Jeroen Roovers (RETIRED)
Modified: 2019-11-14 15:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
media-libs:gegl-0.4.18:20191028-100610.log (media-libs:gegl-0.4.18:20191028-100610.log,4.57 KB, text/x-log)
2019-10-28 10:52 UTC, Jeroen Roovers (RETIRED)
Details
files/gegl-0.4.18-arch.patch (gegl-0.4.18-arch.patch,282 bytes, patch)
2019-10-28 11:23 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2019-10-28 10:52:14 UTC
Created attachment 594228 [details]
media-libs:gegl-0.4.18:20191028-100610.log

meson.build:

host_cpu = host_machine.cpu()
if   host_cpu.startswith('i') and host_cpu.endswith('86')
  have_x86 = true
  config.set10('ARCH_X86',    true)
elif host_cpu == 'x86_64'
  have_x86 = true
  config.set10('ARCH_X86',    true)
  config.set10('ARCH_X86_64', true)
elif host_cpu == 'ppc' or host_cpu == 'powerpc'
  have_ppc = true
  config.set10('ARCH_PPC',    true)
elif host_cpu == 'ppc64' or host_cpu == 'powerpc64'
  have_ppc = true
  config.set10('ARCH_PPC',    true)
  config.set10('ARCH_PPC64',  true)
else
  error('Unknown host architecture')
endif

This causes errors on several keyworded architectures (some of which were dropped because of a new dependency lacking the keywords): alpha, arm, arm64, ia64, hppa, sparc, mips.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-28 11:23:55 UTC
Created attachment 594230 [details, diff]
files/gegl-0.4.18-arch.patch

This works fine.
Comment 2 Larry the Git Cow gentoo-dev 2019-10-28 12:54:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dad3fcc89c87910dc254c00f5c7646b31e69454

commit 0dad3fcc89c87910dc254c00f5c7646b31e69454
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2019-10-28 12:52:47 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2019-10-28 12:53:00 +0000

    media-libs/gegl: Fix 0.4.18 for arches unlike amd64/ppc/ppc64/x86
    
    Closes: https://bugs.gentoo.org/698744
    Thanks to Jeroen Roovers for the patch!
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>
    Package-Manager: Portage-2.3.78, Repoman-2.3.16

 media-libs/gegl/files/gegl-0.4.18-arch.patch | 11 +++++++++++
 media-libs/gegl/gegl-0.4.18.ebuild           |  1 +
 2 files changed, 12 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2019-11-14 15:59:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3da3adbf0f1c3c950114c22ba22db5646f03709a

commit 3da3adbf0f1c3c950114c22ba22db5646f03709a
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-11-14 15:48:43 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-11-14 15:59:19 +0000

    media-libs/gegl: Use upstream CPU detection patch
    
    Bug: https://bugs.gentoo.org/698744
    Package-Manager: Portage-2.3.79, Repoman-2.3.18
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 media-libs/gegl/files/gegl-0.4.18-arch.patch       | 11 -----
 .../files/gegl-0.4.18-meson_cpu_detection.patch    | 51 ++++++++++++++++++++++
 media-libs/gegl/gegl-0.4.18.ebuild                 |  2 +-
 3 files changed, 52 insertions(+), 12 deletions(-)