Christian wrote:

> On Do, 11 Apr 2019, Bram Moolenaar wrote:
> 
> > I have included this with patch 8.1.1147.  
> 
> Thanks.
> 
> > Unfortunately CI fails:
> > 
> >     msgfmt: unrecognized option '--desktop'
> > 
> > How do we work around that?  Can we force-install a newer msgfmt
> > version?
> 
> Hm, Travis runs with trusty, e.g. LTS 14.04 and its msgfmt is of version 
> 0.18.3 and I think this needs 0.19.8
> 
> A quick google search found this ppa: 
> https://launchpad.net/~ricotz/+archive/ubuntu/toolchain
> 
> So how about the following patch:
> 
> diff --git a/.travis.yml b/.travis.yml
> index 095947aae..1594332ca 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -128,6 +128,13 @@ before_install:
>      if [[ "${TRAVIS_OS_NAME}" = "linux" ]] && [[ "${CC}" = "clang" ]]; then
>        ln -sf "$(which llvm-cov)" /home/travis/bin/gcov
>      fi
> +  # needs msgfmt 0.19.8 to be able to generate .desktop files
> +  - |
> +    if [[ "${TRAVIS_OS_NAME}" = "linux" ]]; then
> +      sudo add-apt-repository ppa:ricotz/toolchain -y &&
> +      sudo apt-get update -q &&
> +      sudo apt-get install gettext=0.19.8.1-1ubuntu2~14.04~ricotz1 -y
> +    fi
> 
>  before_script:
>    # Start virtual framebuffer to be able to test the GUI. Does not work on 
> OS X.

Hmm, the problem is that if someone runs "make" with an older msgfmt it
will also fail in the same way.  I think we need an autoconf check for
this.

We would still want to check the desktop file generation on CI, thus we
should do both.

-- 
"Marriage is the process of finding out what kind of man your wife
would have preferred"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui