Re: [proaudio] ardour-2.9999 svn revision build problem |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
Matthijs ten Berge wrote:
> Hi all,
>
> When trying to build ardour-2.9999, I ran across the following problem:
>
> scons: *** Source `libs/ardour/svn_revision.cc' not found, needed by
> target `libs/ardour/svn_revision.os'. Stop.
>
> If I do a 'manual' SVN checkout, this all works ok.
>
> Now, what is happening? The SConstruct-script tests for the availability
> of the directory .svn. If present, it does an 'svn status' to get the
> revision number. It creates a file libs/ardour/svn_revision.cc, in which
> the revision number is used to initialize a static var. This file is
> picked up in the compile process and all is fine.
>
> Now, if I use the ebuild instead, the sources are also fetched from svn,
> *but then* an svn export is made into the build directory, omitting the
> .svn directories!. Now the file svn-revision.cc is not created (even if
> it would try to, it would fail, because the revision information is not
> present anymore after an svn export) and the build fails.
>
> Does anyone have a solution for this? Or does the ebuild-maintainer
> already have an update?
>
> Cheers,
>
> Matthijs
>
A follow-up to my own post. I managed to get ardour-2.9999 to build with
some changes to the ebuild, see the diff below.
(ESVN_RESTRICT is used to prevent the svn export from happening,
subversion_wc_info is called to update ESVN_WC_PATH)
I am rather new to writing ebuilds, can anyone check whether I didn't
use non-allowed practices?
Thanks,
Matthijs
---
/usr/portage/local/layman/pro-audio/media-sound/ardour/ardour-2.9999.ebuild
2008-10-26 15:58:43.000000000 +0100
+++ /usr/local/portage/media-sound/ardour/ardour-2.9999.ebuild
2008-12-21 18:23:27.000000000 +0100
@@ -5,6 +5,8 @@
inherit exteutils fetch-tools scons-ccache subversion vst
ESVN_REPO_URI="http://subversion.ardour.org/svn/ardour2/branches/2.0-ongoing"
+# do not export from subversion:
+ESVN_RESTRICT="export"
DESCRIPTION="multi-track hard disk recording software"
HOMEPAGE="http://ardour.org/"
SRC_URI=""
@@ -86,6 +88,12 @@
agree_vst || die "you can not distribute ardour with vst
support"
fi
subversion_src_unpack
+ subversion_wc_info
+ einfo "Copying working copy to source dir:"
+ mkdir -p "${S}"
+ cp -R "${ESVN_WC_PATH}"/* "${S}"
+ cp -R "${ESVN_WC_PATH}"/.* "${S}"
+
cd ${S}