<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>75272</bug_id>
          
          <creation_ts>2004-12-21 22:02 0000</creation_ts>
          <short_desc>mono-1.0.5-r3: build/platforms/powerpc-unknown-linux-gnu.make doesn&apos;t exist</short_desc>
          <delta_ts>2005-01-04 09:56:11 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>PPC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>obz@gentoo.org</reporter>
          <assigned_to>dotnet@gentoo.org</assigned_to>
          <cc>frank.hollenbach@arcor.de</cc>

      

      
          <long_desc isprivate="0">
            <who>obz@gentoo.org</who>
            <bug_when>2004-12-21 22:02:19 0000</bug_when>
            <thetext>After building mono, and moving onto mcs, I came across the following build error:

make[2]: Entering directory `/var/tmp/portage/mono-1.0.5-r3/work/mono-1.0.5/web&apos;make[2]: Nothing to be done for `all&apos;.
make[2]: Leaving directory `/var/tmp/portage/mono-1.0.5-r3/work/mono-1.0.5/web&apos;
make[2]: Entering directory `/var/tmp/portage/mono-1.0.5-r3/work/mono-1.0.5&apos;
make[2]: Leaving directory `/var/tmp/portage/mono-1.0.5-r3/work/mono-1.0.5&apos;
make[1]: Leaving directory `/var/tmp/portage/mono-1.0.5-r3/work/mono-1.0.5&apos;
build/rules.make:77: build/platforms/powerpc-unknown-linux-gnu.make: No such file or directory
make: *** No rule to make target `build/platforms/powerpc-unknown-linux-gnu.make&apos;.  Stop.

Indeed build/platforms/powerpc-unknown-linux-gnu.make doesn&apos;t exist - it should just be build/platforms/linux.make.

The problem is in build/rules.make:

# Platform config

include $(topdir)/build/platforms/$(PLATFORM).make

For some reason $(PLATFORM).make seems to be overridden with &apos;powerpc-unknown-linux-gnu&apos;.

root@azure build # emerge info
Portage 2.0.51-r8 (default-ppc-2004.1, gcc-3.2.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r3 ppc)
=================================================================
System uname: 2.6.9-gentoo-r3 ppc 7447A, altivec supported
Gentoo Base System version 1.4.3.13
Python:              dev-lang/python-2.3.3 [2.3.3 (#1, Apr 13 2004, 00:31:51)]
dev-lang/python:     2.3.3
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.3
sys-devel/binutils:  2.14.90.0.6-r6
sys-devel/libtool:   1.4.3-r4
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS=&quot;ppc ~ppc&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec&quot;
CHOST=&quot;powerpc-unknown-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache cvs distlocks sandbox&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X alsa berkdb cdr dvd esd f77 fortran gdbm gif gnome gtk gtk2 imlib jpeg libwww mozilla oggvorbis opengl pam perl png ppc python readline sdl ssl tcpd tetex truetype&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>latexer@gentoo.org</who>
            <bug_when>2004-12-22 16:06:48 0000</bug_when>
            <thetext>Very odd indeed. Is PLATFORM defined for you from somewhere?

As a possible solution, try to do &quot;export PLATFORM=&quot;linux&quot;&quot; somewhere in the ebuild to override this before the mcs make is called.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>obz@gentoo.org</who>
            <bug_when>2004-12-22 18:02:05 0000</bug_when>
            <thetext>adding, export PLATFORM=&quot;linux&quot; seems to set the platform right, and works - as does adding make PLATFORM=linux || die for the mcs compilation.

It&apos;s still very peculiar. I&apos;ve tried dumping env just before the &quot;make || die&quot; as well, but there&apos;s no evidence of PLATFORM anywhere.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>latexer@gentoo.org</who>
            <bug_when>2004-12-23 11:42:40 0000</bug_when>
            <thetext>Very odd indeed. I&apos;ve commited fixed versions for -r2 and -r3, please give one of those a shot to confirm this fixes things.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>obz@gentoo.org</who>
            <bug_when>2004-12-23 21:07:07 0000</bug_when>
            <thetext>Thanks latexer, it finishes the compile now, but we also need to set PLATFORM=linux when calling make in src_install() or else it won&apos;t find linux.make again.

With that fix in (ie add make PLATFORM=linux in src_install()) it works fine.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fusero@adala.org</who>
            <bug_when>2004-12-28 07:42:57 0000</bug_when>
            <thetext>Hi there Peter,

i&apos;m afraid that it still happens with -r3. I had to repair it manually in order to get the ebuild merged.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>latexer@gentoo.org</who>
            <bug_when>2005-01-04 08:06:40 0000</bug_when>
            <thetext>*** Bug 75834 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>latexer@gentoo.org</who>
            <bug_when>2005-01-04 08:08:00 0000</bug_when>
            <thetext>I&apos;ve added the fix in the second spot on Jan 2nd, can you please test and confirm it is working? Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>obz@gentoo.org</who>
            <bug_when>2005-01-04 09:54:34 0000</bug_when>
            <thetext>Tested, confirmed fixed. Thanks Peter.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>latexer@gentoo.org</who>
            <bug_when>2005-01-04 09:56:11 0000</bug_when>
            <thetext>Ok, marking FIXED. Thanks.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>