Or you can specify a tag in src_uri. Something like SRC_URI = "git://bla.git;protocol=git;tag=mytag" On Apr 4, 2012 11:01 PM, "Martin Jansa" <[email protected]> wrote:
> On Wed, Apr 04, 2012 at 09:57:04PM +0200, Apelete Seketeli wrote: > > Le 03-Apr-12, Andrei Gherzan a écrit: > > > On Tue, Apr 3, 2012 at 00:04, Apelete Seketeli <[email protected]> > wrote: > > > > > > > > It seems http://svn.openmoko.org is unreachable. > > > > How can I resolve this issue ? > > > > > > > > > > > You actually cant solve this issue as the upstream link is down. You > have > > > two simple choices: > > > 1. Find an upstream mirror > > > 2. Use a local archive instead. > > > > Thanks for the advice. > > I decided to try this upstream mirror: > > http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/. > > > > So I replaced the SRC_URI as follow (hereafter is the content of > > opkg-utils_svn.bb): > > You need at least replace SRCREV with something valid for git as error > suggests.. see > > http://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb > > > > > > > ~~ beginning of file ~~ > > DESCRIPTION = "OPKG Package Manager Utilities" > > SECTION = "base" > > HOMEPAGE = "http://wiki.openmoko.org/wiki/Opkg" > > PRIORITY = "optional" > > LICENSE = "GPLv2" > > RDEPENDS_${PN} = "python" > > RDEPENDS_${PN}_virtclass-native = "" > > SRCREV = "4747" > > PV = "0.1.8+svnr${SRCPV}" > > PR = "r7" > > > > SRC_URI = "git://git.yoctoproject.org/opkg-utils;protocol=git \ > > file://index-ignore-filenotfound.patch \ > > file://arfile_header_split.patch \ > > file://mtime-int.patch" > > > > S = "${WORKDIR}/opkg-utils" > > > > # Avoid circular dependencies from package_ipk.bbclass > > PACKAGES_virtclass-native = "" > > > > do_install() { > > oe_runmake PREFIX=${prefix} DESTDIR=${D} install > > } > > > > BBCLASSEXTEND = "native" > > TARGET_CC_ARCH += "${LDFLAGS}" > > ~~ end of file ~~ > > > > > > During the execution of my test command 'bitbake nano' I get the > > following error: > > > > > > ~~ beginning of build output ~~ > > NOTE: Running task 352 of 557 (ID: 70, > virtual:native:/home/apelete/devel/openembedded/master/recipes/opkg-utils/ > opkg-utils_svn.bb, do_fetch) > > NOTE: package opkg-utils-native-0.1.8+svnr0+4747-r7: task do_fetch: > Started > > NOTE: package gcc-cross-4.5-r38.1+svnr170880: task do_populate_sysroot: > Succeeded > > NOTE: Running task 353 of 557 (ID: 156, > /home/apelete/devel/openembedded/master/recipes/libtool/ > libtool-cross_2.4.bb, do_configure) > > NOTE: package libtool-cross-2.4-r28.2: task do_configure: Started > > From git://git.yoctoproject.org/opkg-utils > > * branch master -> FETCH_HEAD > > fatal: Not a valid object name 4747 > > WARNING: /usr/lib/pymodules/python2.7/bb/fetch/git.py:191: > DeprecationWarning: Call to deprecated function bb.mkdirhier: Please use > bb.utils.mkdirhier instead. > > bb.mkdirhier(codir) > > > > NOTE: package opkg-utils-native-0.1.8+svnr0+4747-r7: task Fetch failed: > Unable to fetch URL git://git.yoctoproject.org/opkg-utils;protocol=gitfrom > any source.: Failed > > ERROR: Function 'Fetch failed: Unable to fetch URL git:// > git.yoctoproject.org/opkg-utils;protocol=git from any source.' failed > > ERROR: Task 70 > (virtual:native:/home/apelete/devel/openembedded/master/recipes/opkg-utils/ > opkg-utils_svn.bb, do_fetch) failed with exit code '1' > > Waiting for 1 active tasks to finish: > > 0: libtool-cross-2.4-r28.2 do_configure (pid 12101) > > NOTE: package libtool-cross-2.4-r28.2: task do_configure: Succeeded > > ERROR: > 'virtual:native:/home/apelete/devel/openembedded/master/recipes/opkg-utils/ > opkg-utils_svn.bb' failed > > ~~ end of build output ~~ > > > > > > My guess is that the opkg-utils_svn.bb file now needs more changes, to > > adapt to the new SRC_URI: it was an svn link and the mirror is now a > > git link. > > > > Somebody care to help some more ? > > -- > > Apelete > > > > _______________________________________________ > > Openembedded-devel mailing list > > [email protected] > > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel > > -- > Martin 'JaMa' Jansa jabber: [email protected] > > _______________________________________________ > Openembedded-devel mailing list > [email protected] > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel > > _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
