Skip to content

Commit

Permalink
avogadrolibs: specify SRCREV_FORMAT
Browse files Browse the repository at this point in the history
The avogadrolibs.inc specifies three source repos in its SRC_URI, but
does not use SRCREV_FORMAT to declare which is the primary source. As of
nanbield, this causes a parse-time error.

```
bb.data_smart.ExpansionError: Failure expanding variable fetcher_hashes_dummyfunc[vardepvalue], expression was ${@bb.fetch.get_hashvalue(d)} which triggered exception FetchError: Fetcher failure: The SRCREV_FORMAT variable must be set when multiple SCMs are used.
```

Assert a valid SRCREV_FORMAT, to avoid this error.

Signed-off-by: Alex Stewart <[email protected]>
  • Loading branch information
amstewart authored and schnitzeltony committed Dec 14, 2023
1 parent a2a96df commit 70046ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes-misc/recipes-chemistry/avogadro/avogadrolibs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ inherit cmake_qt5 python3native

PV = "1.97.0"
SRC_URI = " \
git://github.com/OpenChemistry/avogadrolibs.git;branch=master;protocol=https \
git://github.com/OpenChemistry/avogadrolibs.git;branch=master;protocol=https;name=avogadrolibs \
git://github.com/OpenChemistry/molecules;branch=master;protocol=https;name=molecules;destsuffix=molecules \
git://github.com/OpenChemistry/crystals;branch=master;protocol=https;name=crystals;destsuffix=crystals \
"
SRCREV = "82938e4f5ce188a1e53300d263167bebe717f5b2"
SRCREV_molecules = "b1e16c5dc6d15e72d30dd6c4fca31b2c12025efc"
SRCREV_crystals = "c3e2468fa42360499f0e73d215bddfe2245258aa"
SRCREV_FORMAT = "avogadrolibs"


S = "${WORKDIR}/git"

0 comments on commit 70046ad

Please sign in to comment.