diff mbox series

[ovs-dev] cirrus: Force pkg update on FreeBSD.

Message ID 20200327104643.803814-1-i.maximets@ovn.org
State Accepted
Delegated to: Ilya Maximets
Headers show
Series [ovs-dev] cirrus: Force pkg update on FreeBSD. | expand

Commit Message

Ilya Maximets March 27, 2020, 10:46 a.m. UTC
Seems like FreeBSD ports/images are not well maintained and frequently
causes package installation failures like this:

 [1/40] Fetching automake-1.16.1_2.txz: .......... done
 pkg: cached package automake-1.16.1_2: size mismatch, fetching from remote
 [2/40] Fetching automake-1.16.1_2.txz: .......... done
 pkg: cached package automake-1.16.1_2: size mismatch, cannot continue
 Consider running 'pkg update -f'

Forced update doesn't increase build time significantly, but helps
to solve at least this one kind of issues.

Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
---

Example of a broken build:
https://cirrus-ci.com/task/6639720348254208?command=prepare
With force update:
https://cirrus-ci.com/task/5040146315739136?command=prepare

 .cirrus.yml | 1 +
 1 file changed, 1 insertion(+)

Comments

William Tu March 27, 2020, 3:33 p.m. UTC | #1
On Fri, Mar 27, 2020 at 3:47 AM Ilya Maximets <i.maximets@ovn.org> wrote:
>
> Seems like FreeBSD ports/images are not well maintained and frequently
> causes package installation failures like this:
>
>  [1/40] Fetching automake-1.16.1_2.txz: .......... done
>  pkg: cached package automake-1.16.1_2: size mismatch, fetching from remote
>  [2/40] Fetching automake-1.16.1_2.txz: .......... done
>  pkg: cached package automake-1.16.1_2: size mismatch, cannot continue
>  Consider running 'pkg update -f'
>
> Forced update doesn't increase build time significantly, but helps
> to solve at least this one kind of issues.
>
> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
> ---

I tested it and LGTM.
Acked-by: William Tu <u9012063@gmail.com>
Ilya Maximets March 27, 2020, 10:23 p.m. UTC | #2
On 3/27/20 4:33 PM, William Tu wrote:
> On Fri, Mar 27, 2020 at 3:47 AM Ilya Maximets <i.maximets@ovn.org> wrote:
>>
>> Seems like FreeBSD ports/images are not well maintained and frequently
>> causes package installation failures like this:
>>
>>  [1/40] Fetching automake-1.16.1_2.txz: .......... done
>>  pkg: cached package automake-1.16.1_2: size mismatch, fetching from remote
>>  [2/40] Fetching automake-1.16.1_2.txz: .......... done
>>  pkg: cached package automake-1.16.1_2: size mismatch, cannot continue
>>  Consider running 'pkg update -f'
>>
>> Forced update doesn't increase build time significantly, but helps
>> to solve at least this one kind of issues.
>>
>> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
>> ---
> 
> I tested it and LGTM.
> Acked-by: William Tu <u9012063@gmail.com>
> 

Thanks!
Applied to master and backported down to 2.11.

Best regards, Ilya Maximets.
Aaron Conole April 1, 2020, 6:16 p.m. UTC | #3
Ilya Maximets <i.maximets@ovn.org> writes:

> Seems like FreeBSD ports/images are not well maintained and frequently
> causes package installation failures like this:
>
>  [1/40] Fetching automake-1.16.1_2.txz: .......... done
>  pkg: cached package automake-1.16.1_2: size mismatch, fetching from remote
>  [2/40] Fetching automake-1.16.1_2.txz: .......... done
>  pkg: cached package automake-1.16.1_2: size mismatch, cannot continue
>  Consider running 'pkg update -f'
>
> Forced update doesn't increase build time significantly, but helps
> to solve at least this one kind of issues.
>
> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
> ---

Acked-by: Aaron Conole <aconole@redhat.com>
diff mbox series

Patch

diff --git a/.cirrus.yml b/.cirrus.yml
index 1b32f55d6..9428164ee 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -16,6 +16,7 @@  freebsd_build_task:
 
   prepare_script:
     - sysctl -w kern.coredump=0
+    - pkg update -f
     - pkg install -y ${DEPENDENCIES}
 
   configure_script: