Skip to content

add explicit dependencies to libcurl and libsecret when packaging for deb and RPM - #5478

Merged
outofambit merged 3 commits into
masterfrom
add-curl-dependencies
Sep 10, 2018
Merged

outofambit merged 3 commits into
masterfrom
add-curl-dependencies

Conversation

@shiftkey

@shiftkey shiftkey commented Aug 26, 2018 •

Copy link
Copy Markdown
Member

🌵 🌵 🌵 🌵 depends on #5388, go review that first 🌵 🌵 🌵 🌵

As part of #5388 we've switched over the embedded Git to target curl, and the list of shared libraries that dugite-native needs to function looks like this:

 0x0000000000000001 (NEEDED)             Shared library: [libcurl.so.4]
 0x0000000000000001 (NEEDED)             Shared library: [libz.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

This PR makes the libcurl.so.4 shared library an explicit dependency, which is available in in different upstream packages dependent on the source. The other packages in the list are the defaults that electron-builder generates, which we still need.

  • identify packages containing libsecret-1.so.0 and add them to the list

cc @immackay who has been looking after the Arch Linux packaging

@shiftkey shiftkey added ready-for-review Pull Requests that are ready to be reviewed by the maintainers infrastructure Issues and pull requests related to scripts and tooling for GitHub Desktop labels Aug 26, 2018
@shiftkey

shiftkey commented Aug 26, 2018 •

Copy link
Copy Markdown
Member Author

Depends on #5479 to address the CircleCI build

@immackay

Copy link
Copy Markdown
Contributor

Oh my thank you so much. This has been causing a lot of dependency issues with people that have their own version of libcurl installed.

@shiftkey shiftkey removed the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Aug 31, 2018
@shiftkey shiftkey changed the title add explicit dependencies to libcurl when packaging for deb and RPM add explicit dependencies to libcurl and libsecret when packaging for deb and RPM Aug 31, 2018
@shiftkey shiftkey added this to the 1.4.0 milestone Sep 4, 2018
@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Sep 4, 2018
@shiftkey shiftkey removed this from the 1.4.0 milestone Sep 4, 2018
@shiftkey

shiftkey commented Sep 4, 2018

Copy link
Copy Markdown
Member Author

Dropping from 1.4.0 as #5388 is not in that milestone.

@shiftkey

shiftkey commented Sep 5, 2018

Copy link
Copy Markdown
Member Author

@outofambit now that #5388 has been merged into master this will be handy to also have in for the next update. Let me know how you feel about this - it's only specific to our Linux packaging work, but it's one less thing I need to manage over on my fork.

@outofambit
outofambit self-requested a review September 5, 2018 17:14
@shiftkey shiftkey modified the milestones: 1.4.x, 1.4.0 Sep 7, 2018

@outofambit outofambit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me! for my own context, can you point me to where this was being handled downstream?

@outofambit outofambit self-assigned this Sep 7, 2018
@shiftkey

shiftkey commented Sep 7, 2018

Copy link
Copy Markdown
Member Author

for my own context, can you point me to where this was being handled downstream?

Not sure I understand what "this" is - can you elaborate?

@outofambit

Copy link
Copy Markdown
Contributor

@shiftkey ah sorry i was referring to how you were handling libCurl in the past but i just reread the PR and see that this wasn't an issue until #5388, correct?

@shiftkey

shiftkey commented Sep 7, 2018

Copy link
Copy Markdown
Member Author

@outofambit the saga of upstream changes is:

This PR is just the last piece of the puzzle, to ensure the generated packages define the right dependencies at install time (users had to do this via trial and error before).

@outofambit
outofambit merged commit 42c5b3f into master Sep 10, 2018
@outofambit
outofambit deleted the add-curl-dependencies branch September 10, 2018 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Issues and pull requests related to scripts and tooling for GitHub Desktop ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants