<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-live-build.git/share/hooks/normal/0430-update-mlocate-database.hook.chroot, branch rolling</title>
<subtitle> (mirror of https://github.com/vyos/vyos-live-build.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-live-build.git/atom?h=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-live-build.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-live-build.git/'/>
<updated>2020-05-01T09:59:11+00:00</updated>
<entry>
<title>Replace 'which' with 'command -v' to test for the existance of an executable</title>
<updated>2020-05-01T09:59:11+00:00</updated>
<author>
<name>johnraff</name>
<email>github@rafflesnagoya.com</email>
</author>
<published>2020-05-01T02:23:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-live-build.git/commit/?id=0e5d0483e5596e200430d28356b808af76806439'/>
<id>urn:sha1:0e5d0483e5596e200430d28356b808af76806439</id>
<content type='text'>
This is considered to be more robust.

Two instances remain:

scripts/build/chroot_archives, line 257:
if [ "${LB_APT}" = "aptitude" ] &amp;&amp; [ ! $(Chroot chroot "which aptitude") ]
The command is run inside a chroot where the environment might be special,
and would need further testing.

manpages/Makefile, line 42:
@if [ ! -x "$$(which po4a 2&gt;/dev/null)" ]; \
I am insufficiently familiar with makefile syntax to edit this.
</content>
</entry>
<entry>
<title>Revert "Test for executables: replace 'which' with more robust 'command -v'"</title>
<updated>2020-03-12T12:32:26+00:00</updated>
<author>
<name>Luca Boccassi</name>
<email>luca.boccassi@microsoft.com</email>
</author>
<published>2020-03-12T12:32:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-live-build.git/commit/?id=015e6b65f3173e16d7ee4c3d9fa407d7ed1c9c45'/>
<id>urn:sha1:015e6b65f3173e16d7ee4c3d9fa407d7ed1c9c45</id>
<content type='text'>
This reverts commit 2d9ab1f7f82f9a98b97d1503c1e3f31c86061c15.

Causes test failure due to bashism.
</content>
</entry>
<entry>
<title>Test for executables: replace 'which' with more robust 'command -v'</title>
<updated>2020-03-12T10:35:57+00:00</updated>
<author>
<name>johnraff</name>
<email>github@rafflesnagoya.com</email>
</author>
<published>2020-03-12T05:37:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-live-build.git/commit/?id=2d9ab1f7f82f9a98b97d1503c1e3f31c86061c15'/>
<id>urn:sha1:2d9ab1f7f82f9a98b97d1503c1e3f31c86061c15</id>
<content type='text'>
Instances of:
if [ $(which &lt;command&gt; ]
have been replaced with:
if command -v &lt;command&gt; &gt;/dev/null
which is considered to be more robust in a range of environments.

scripts/build/chroot_archives: line 259:
	if [ "${LB_APT}" = "aptitude" ] &amp;&amp; [ ! $(Chroot chroot "which aptitude") ]
has been left untouched because the chroot might require a more complex command
which would need more testing.

manpages/Makefile: line 42:
	@if [ ! -x "$$(which po4a 2&gt;/dev/null)" ]; \
has been left untouched because I am not sufficiently familiar with makefiles.
</content>
</entry>
<entry>
<title>fix consistency in binary execution and existance checking</title>
<updated>2020-03-09T10:51:11+00:00</updated>
<author>
<name>Lyndon Brown</name>
<email>jnqnfe@gmail.com</email>
</author>
<published>2020-02-22T14:33:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-live-build.git/commit/?id=7ee59d408ed7681908966a5b2fb28e8f98116d31'/>
<id>urn:sha1:7ee59d408ed7681908966a5b2fb28e8f98116d31</id>
<content type='text'>
 - prefer using `which` over hard coded paths
 - it is redundant to check that the bin pointed to the return of
   `which` exists and is executable, `which` already gives us
   assurance of that if it returns true!
 - the redirection of output (`2&gt;/dev/null`) seems to be
   unnecessary from my testing.

the instances relatnig to fdisk and losetup in functions/defaults.sh have
been left as they are since they get executed by `lb config` which can run
without sudo elevation unlike `lb build` and in that case `which` would
fail to find these binaries resulting in error.

this also fixes a bug showing an error for missing debootstrap - this tool
requires sudo privileges to run and thus is not found via a none elevated
which search.

Gbp-Dch: Short
Closes: #952927
</content>
</entry>
<entry>
<title>Splitting non-live specific hooks into their own subdirectory within hooks.</title>
<updated>2015-05-20T06:19:56+00:00</updated>
<author>
<name>Daniel Baumann</name>
<email>mail@daniel-baumann.ch</email>
</author>
<published>2015-05-20T06:19:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-live-build.git/commit/?id=50794b1de1b0211ee4c040a83bba9a5f3148d066'/>
<id>urn:sha1:50794b1de1b0211ee4c040a83bba9a5f3148d066</id>
<content type='text'>
</content>
</entry>
</feed>
