Hello community, here is the log from the commit of package gtkd for openSUSE:Factory checked in at 2018-09-04 22:57:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gtkd (Old) and /work/SRC/openSUSE:Factory/.gtkd.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gtkd" Tue Sep 4 22:57:06 2018 rev:5 rq:632865 version:3.8.3 Changes: -------- --- /work/SRC/openSUSE:Factory/gtkd/gtkd.changes 2018-08-20 16:22:59.693125802 +0200 +++ /work/SRC/openSUSE:Factory/.gtkd.new/gtkd.changes 2018-09-04 22:57:48.189335368 +0200 @@ -1,0 +2,5 @@ +Thu Aug 30 13:21:14 UTC 2018 - Guillaume GARDET <guillaume.gar...@opensuse.org> + +- Use LDC compiler when DMD is not available on architecture + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gtkd.spec ++++++ --- /var/tmp/diff_new_pack.F0Sbty/_old 2018-09-04 22:57:48.649336937 +0200 +++ /var/tmp/diff_new_pack.F0Sbty/_new 2018-09-04 22:57:48.649336937 +0200 @@ -20,6 +20,12 @@ %define gtkd_minor 8 %define gtkd_bugfix 3 %define sover 0 +# DMD is available only on x86*. Use LDC otherwise. +%ifarch %{ix86} x86_64 +%bcond_without dcompiler_dmd +%else +%bcond_with dcompiler_dmd +%endif Name: gtkd Version: 3.8.3 Release: 0 @@ -28,8 +34,13 @@ Group: Development/Libraries/Other URL: http://gtkd.org/ Source: https://github.com/gtkd-developers/GtkD/archive/v%{version}/gtkd-%{version}.tar.gz +%if %{with dcompiler_dmd} BuildRequires: dmd BuildRequires: phobos-devel +%else +BuildRequires: ldc +BuildRequires: ldc-phobos-devel +%endif BuildRequires: pkgconfig Requires: Mesa-libGL1 Requires: atk @@ -116,7 +127,13 @@ sed -i 's|/lib/|/$(libdir)/|g' GNUmakefile %build -make %{?_smp_mflags} DC=dmd CC=gcc libdir=%{?_lib} DCFLAGS='-O -release -inline -boundscheck=off -w -g' \ +make %{?_smp_mflags} \ +%if %{with dcompiler_dmd} + DC=dmd \ +%else + DC=ldmd2 \ +%endif + CC=gcc libdir=%{?_lib} DCFLAGS='-O -release -inline -boundscheck=off -w -g' \ shared-gstreamer \ shared-gtkd \ shared-gtkdgl \