Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

build-package.sh erroring with new TravisCI default distro #90

Closed

Description

@mschuchard

For Travis CI, the default distro of Trusty is currently being phased out in favor of Xenial. When testing a package on Xenial in Travis:

Running specs...
/home/travis/atom/usr/share/atom/atom: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
The command "curl -s https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh" exited with 127.

When I check for Atom's library links, I hit:

ldd `which atom`
not a dynamic executable

so I cannot seem to determine myself if this is a link target issue for Atom, or if a dependency needs to be added for TravisCI.

Thanks for any assistance/fix.

Activity

  1. kkopper commented on May 17, 2019

    @kkopper

    I encountered the same problem. As described here, I just added libgconf-2-4 to the packages to be installed by apt.

    addons:
      apt:
        packages:
        - build-essential
        - fakeroot
        - git
        - libsecret-1-dev
        - libgconf-2-4

    Afterwards, the build script works like a charm.

  2. mschuchard commented on May 17, 2019

    @mschuchard
    Author

    Good stuff.
    Can we please get this fix upstreamed?

  3. Arcanemagus commented on May 17, 2019

    @Arcanemagus
    Contributor

    I've opened atom/atom#19358 to get the dependency added to Atom proper.

  4. mschuchard commented on May 20, 2019

    @mschuchard
    Author

    Well that answers that question: this is a link target issue for Atom and not a TravisCI env issue. Good to know.

  5. Arcanemagus commented on May 20, 2019

    @Arcanemagus
    Contributor

    Note that Electron 3 (which just got merged to master, let's see if it makes it to a beta branch this time!) removes this requirement, so for the moment updating your CI scripts is the best option.

    Interestingly I haven't seen this yet on any of the repositories I run through Travis CI.

  6. mschuchard commented on May 20, 2019

    @mschuchard
    Author

    My assumption to that end is that Travis has not migrated them yet. However, they have officially announced that Trusty is now deprecated.

  7. Arcanemagus commented on Jun 12, 2019

    @Arcanemagus
    Contributor

    Turns out that all of my repositories included this line, and thus weren't seeing the issue:

    ci/.travis.yml

    Line 37 in 25b0406

    dist: trusty

  8. mschuchard commented on Sep 19, 2019

    @mschuchard
    Author

    At some point this started working on Xenial, so closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions