Page MenuHomeVyOS Platform

Unable to build vyos-1x as per instructions
Not ApplicablePublicBUG

Description

Firstly, I would normally try raising this as a forum post first but forum accounts need to be manually approved and I'm in the queue and I've hit a brick wall where I can make no progress. Hopefully, it should be an easy fix as this is quite a fundamental problem.

I'm trying to build the vyos-1x git repository into a .deb file which can be loaded onto VyOS. As per the instructions given here:- https://docs.vyos.io/en/latest/contributing/build-vyos.html#build-packages

For the moment I am running with the vanilla head release

However when following the instructions the dpkg-buildpackage command fails with the following error message:-

make[1]: Leaving directory '/vyos/vyos-1x'
   dh_install
dh_install: warning: Cannot find (any matches for) "usr/bin/config-mgmt" (tried in ., debian/tmp)

dh_install: warning: vyos-1x missing files: usr/bin/config-mgmt
dh_install: error: missing files, aborting
make: *** [debian/rules:22: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

I've tried going back in time through the commits to see if the behaviour but the failure persists. People must be testing their builds as part of the pull request process so I can't believe this has been broken for so long. So, something must be wrong with my build environment but I followed the instructions on the website to the letter but it just won't build the deb file. If this is the case then we should update the documentation to show how it should be built.

Details

Version
Rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav subscribed.

Do not see any issues:

$ docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build:current bash
Current UID/GID: 1000/1000
vyos_bld@9b72577c79da:/vyos$ 
vyos_bld@9b72577c79da:/vyos$ mkdir tmp && cd tmp
vyos_bld@9b72577c79da:/vyos/tmp$ 
vyos_bld@9b72577c79da:/vyos/tmp$ git clone  --recurse-submodules https://github.com/vyos/vyos-1x
vyos_bld@9b72577c79da:/vyos/tmp$ 
vyos_bld@9b72577c79da:/vyos/tmp$ cd vyos-1x/
vyos_bld@9b72577c79da:/vyos/tmp/vyos-1x$ 
vyos_bld@9b72577c79da:/vyos/tmp/vyos-1x$ dpkg-buildpackage -uc -us -tc -b
dpkg-buildpackage: info: source package vyos-1x
dpkg-buildpackage: info: source version 1.5dev0
...

vyos_bld@9b72577c79da:/vyos/tmp/vyos-1x$ 
vyos_bld@9b72577c79da:/vyos/tmp/vyos-1x$ ls -l ../*.deb
-rw-r--r-- 1 vyos_bld vyos_bld 2391676 Jul  1 18:23 ../vyos-1x_1.5dev0-3224-g7dc6d3875_amd64.deb
-rw-r--r-- 1 vyos_bld vyos_bld    2688 Jul  1 18:23 ../vyos-1x-dbgsym_1.5dev0-3224-g7dc6d3875_amd64.deb
-rw-r--r-- 1 vyos_bld vyos_bld  540396 Jul  1 18:23 ../vyos-1x-smoketest_1.5dev0-3224-g7dc6d3875_all.deb
-rw-r--r-- 1 vyos_bld vyos_bld    3080 Jul  1 18:23 ../vyos-1x-vmware_1.5dev0-3224-g7dc6d3875_all.deb
vyos_bld@9b72577c79da:/vyos/tmp/vyos-1x$ 

Try to pull the latest container image.
Feel free to open a new topic on the forum.

I'll follow this up on the forum as that is probably a better place for this discussion but I followed those instructions verbatim on a brand new virtual machine install with fresh up to date docker images and it fails in the exact same way every time. Are you running on an old machine you've had set up for a long time? It might have state in it that allows builds that's not present on fresh installs.

I'll mention that, commonly, errors reporting on usr/bin/config-mgmt are the result of an earlier build error; scroll up on the output to see if anything else is reported.