Skip to content

libcec: Update to 2.2.0#4861

Closed
kirelagin wants to merge 1 commit intoNixOS:masterfrom
kirelagin:libcec-update
Closed

libcec: Update to 2.2.0#4861
kirelagin wants to merge 1 commit intoNixOS:masterfrom
kirelagin:libcec-update

Conversation

@kirelagin
Copy link
Member

Also some minor changes that I believe to be enhancements.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you drop the old replacement? We prefer that over LD_LIBRARY_PATH.

Copy link
Member Author

Choose a reason for hiding this comment

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

@lethalman Do we?

└─› grep -r 'substituteInPlace.*\.c.*\.so' pkgs | wc -l
1
└─› grep -r 'wrapProgram.*LD_LIBRARY_PATH' pkgs | wc -l
26

Personally I believe, patching .c is ugly compared to wrapping with the correct LD_LIBRARY_PATH. Patching is acceptable if and only if there is no another cleaner way around.

Copy link
Member

Choose a reason for hiding this comment

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

Patching seems to be safer. We've seen a ton of interesting ways wrappers break,

Now, substituteInPlace is not the only way to do it…

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, please do not use LD_LIBRARY_PATH. Patch sources to point exactly to their runtime dependencies. If you never got a crash due to unresolved symbols when using nixos, it's because we do use precise runtime dependencies.

@domenkozar
Copy link
Member

AFAIK this breaks xbmc.

@domenkozar
Copy link
Member

Testing a patch now.

@domenkozar
Copy link
Member

Pushed to master.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants