[build2] Issue with projects directories built in the same configuration

Klaim - Joël Lamotte mjklaim at gmail.com
Mon Jan 15 13:29:06 UTC 2018


(re-posted without the embedded zip)

I'm still trying several scenarios, see how build2 behave so far.
I wanted to have 2 local projects (see below), one "lol" depends on the
other "kikoo",
and "kikoo" depends on libhello from the tutorial.
Both are local sources projects so they are not put in the build/config
directory as packages
(I'm using the "shortcut" explained in the tutorial).

I wrote a script that reproduce the issue I have: building lol will not
find kikoo which
is a requirement of lol.

I'm not sure why this happen or if this is a bug or not. Is there a step
missing for this to work?
I thought I followed the way it was explained in the tutorial but I might
be missing
some understanding.
The weird part is that kikoo have a correct status, so I don't understand
why it's unknown when
building lol.

The sources: http://klaimsden.net/temp/jlamotte-build2-experiments-fail.zip

Here is the log output I have with the script/commands, the issue is on the
last command:

G:\perso\experiments>call setup_config_dir.bat

G:\perso\experiments>bpkg --version
bpkg 0.7.0-a.0.dc5296af63000cdd
libbpkg 0.7.0-a.0.a54a89072f6cfb6d
libbutl 0.7.0-a.0.b1cd193f1bd28837
Copyright (c) 2014-2017 Code Synthesis Ltd
This is free software released under the MIT license.

G:\perso\experiments>b --version
build2 0.7.0-a.0.f9d759160eef1ca8
libbutl 0.7.0-a.0.b1cd193f1bd28837
host x86_64-microsoft-win32-msvc14.1
Copyright (c) 2014-2017 Code Synthesis Ltd
This is free software released under the MIT license.

G:\perso\experiments>mkdir config-weird-dependencies

G:\perso\experiments>pushd config-weird-dependencies

G:\perso\experiments\config-weird-dependencies>bpkg create cxx config.cxx=cl
created new configuration in G:\perso\experiments\config-weird-dependencies\

G:\perso\experiments\config-weird-dependencies>bpkg add
https://build2.org/pkg/1/hello/stable
added repository build2.org/hello/stable

G:\perso\experiments\config-weird-dependencies>bpkg add
https://build2.org/pkg/1/hello/testing
added repository build2.org/hello/testing

G:\perso\experiments\config-weird-dependencies>bpkg fetch
fetching build2.org/hello/stable
warning: authenticity of the certificate for repository
build2.org/hello/stable cannot be established
certificate is for build2.org, "Code Synthesis" <admin at build2.org>
certificate SHA256 fingerprint:
FF:DF:7D:38:67:4E:C3:82:65:7E:EE:1F:D4:80:EC:56:C4:33:5B:65:
3F:9B:29:9A:30:56:B9:77:B9:F2:01:94
trust this certificate? [y/n] y
fetching build2.org/hello/testing
11 package(s) in 2 repository(s)

G:\perso\experiments\config-weird-dependencies>popd

G:\perso\experiments>bpkg build ./kikoo/ -d ./config-weird-dependencies/
  build libformat/1.0.0 (required by libhello)
  build libprint/1.0.0 (required by libhello)
  build libhello/1.1.0 (required by kikoo)
  build kikoo/0.1.0
continue? [Y/n] y
libformat-1.0.0.tar.gz:
########################################################################
100.0%
fetched libformat/1.0.0
unpacked libformat/1.0.0
libprint-1.0.0.tar.gz:
########################################################################
100.0%
fetched libprint/1.0.0
unpacked libprint/1.0.0
libhello-1.1.0.tar.gz:
########################################################################
100.0%
fetched libhello/1.1.0
unpacked libhello/1.1.0
unpacked kikoo/0.1.0
configured libformat/1.0.0
configured libprint/1.0.0
configured libhello/1.1.0
configured kikoo/0.1.0
c++ kikoo\cxx{kikoo}@config-weird-dependencies\kikoo-0.1.0\
c++ config-weird-dependencies\libhello-1.1.0\libhello\cxx{hello}
c++ config-weird-dependencies\libhello-1.1.0\libhello\cxx{hello}
c++ config-weird-dependencies\libprint-1.0.0\libprint\cxx{print}
c++ config-weird-dependencies\libformat-1.0.0\libformat\cxx{format}
c++ kikoo\cxx{kikoo}@config-weird-dependencies\kikoo-0.1.0\
c++ config-weird-dependencies\libformat-1.0.0\libformat\cxx{format}
c++ config-weird-dependencies\libprint-1.0.0\libprint\cxx{print}
ld config-weird-dependencies\libprint-1.0.0\libprint\liba{print}
ld config-weird-dependencies\libformat-1.0.0\libformat\libs{format}
ld config-weird-dependencies\libformat-1.0.0\libformat\liba{format}
ld config-weird-dependencies\libprint-1.0.0\libprint\libs{print}
ld config-weird-dependencies\libhello-1.1.0\libhello\liba{hello}
ld config-weird-dependencies\libhello-1.1.0\libhello\libs{hello}
ld config-weird-dependencies\kikoo-0.1.0\liba{kikoo}
ld config-weird-dependencies\kikoo-0.1.0\libs{kikoo}
updated kikoo/0.1.0

G:\perso\experiments>bpkg build ./lol/ -d ./config-weird-dependencies/
error: unknown prerequisite kikoo >= 0.1.0 of package lol
info: while satisfying lol/0.1.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.build2.org/archives/users/attachments/20180115/4064ec80/attachment.html>


More information about the users mailing list