[PlanetCCRMA] spec file for rosegarden-4 1.2.3rc1
Fernando Lopez-Lezcano
nando@ccrma.Stanford.EDU
Fri Feb 17 13:53:01 2006
--=-GthPOG0DG/Gp5FzAF/Ni
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Thu, 2006-02-16 at 16:34 -0800, Fernando Lopez-Lezcano wrote:
> On Thu, 2006-02-09 at 00:35 +0100, Joakim Verona wrote:
> > I have modified the ccrma spec file so it works with the new 1.2.3rc1
> > version. The main difference build-wise seems to be that it uses scons
> > now, which affects the spec file.
> >
> > there is some weirdness with scons, so you must remove calls to
> > env.KDEinstallas from the scons file in the source tarball to perform
> > a build. Since I dont really know why this is, I dont supply a patch for
> > that...
>
> Thanks, I was just trying with final 1.2.3 and was hitting the same
> problem. Looks like KDEinstallas is ignoring the DESTDIR env variable
> and installing in the wrong place, and then the build fails. I don't
> current know how to fix this... Any scons experts out there?
Apparently the kde.py file functions in rosegarden are ignoring the
DESTDIR variable. With the attached patch (ahem, "hack") I managed to
build 1.2.3 successfuly (at least on fc4).
-- Fernando
--=-GthPOG0DG/Gp5FzAF/Ni
Content-Disposition: attachment; filename=rosegarden-destdir.patch
Content-Type: text/x-patch; name=rosegarden-destdir.patch; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
--- rosegarden-4-1.2.3/scons_admin/kde.py~ 2005-08-26 16:37:44.000000000 -0400
+++ rosegarden-4-1.2.3/scons_admin/kde.py 2006-02-16 20:05:55.521339344 -0500
@@ -533,7 +533,7 @@
def KDEinstallas(lenv, restype, destfile, file):
if not env['_INSTALL']: return
dir = getInstDirForResType(lenv, restype)
- install_list = lenv.InstallAs(lenv.join(dir, destfile), file)
+ install_list = lenv.InstallAs(lenv.join(env['DESTDIR'], dir, destfile), file)
env.Alias('install', install_list)
return install_list
--=-GthPOG0DG/Gp5FzAF/Ni--