greg.freemyer@gmail.com wrote:
On August 7, 2015 7:13:23 AM EDT, auxsvr <auxsvr@gmail.com> wrote:
Hello,
I'm trying to build a package[1] that fixes several problems with google-earth. It builds fine and works locally, but the OBS performs some tests after the package is built, which fail. Since it depends on google-earth, which cannot be installed in the OBS as far as I know, is
there a way to prevent these tests from running?
-------- [1] https://build.opensuse.org/package/show/home:auxsvr/google-earth-fix Given that's a pretty non-standard situation, I think you'll have better luck asking on the opensuse-packaging list.
Greg
1) Add a special comment: #!BuildIgnore: google-earth 2) Make rpm scripts working even without google-earth. One of the tricks you can use: if test -z "$BUILD_ROOT" ; then code_that_should_be_skipped_during_build fi 3) Fix syntax errors in scripts you did: 3.1) "[" in bash is a command name. It must be separated by spaces. "[-e bak/*]" could never work. It tries to execute command named "[-e". 3.2) Even "[ -e bak/* ]" does not do what you think. It expands to [ -e bak/file1 bak/file2 bak/file3 ] and then fails: bash: [: too many arguments -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.com Lihovarská 1060/12 tel: +49 911 7405384547 190 00 Praha 9 fax: +420 284 084 001 Czech Republic http://www.suse.cz/ PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org