jorgicio / jorgicio-gentoo-overlay

Gentoo Overlay made by Jorgicio.
100 stars 50 forks source link

net-im/telegram-cli won't compile with >=dev-libs/openssl-1.1 #162

Open tacvbo opened 5 years ago

tacvbo commented 5 years ago

net-im/telegram-cli won't compile with >=dev-libs/openssl-1.1, there is a patch that works here:

https://github.com/vysheng/tgl/pull/126/files/66758bbea27515c5f35e3fafc64d3a3601a5b777

I've added it to the ebuild as this

if [[ ${PV} != 9999 ]];then src_prepare(){ cp -r ../tgl-${TGL_COMMIT}/ tgl cp -r ../tl-parser-${TL_PARSER_COMMIT}/ tgl/tl-parser PATCHES=( "${FILESDIR}/${P}-assertion-issue.patch" "${FILESDIR}/${P}-openssl.patch" ) default_src_prepare } else src_prepare(){ PATCHES=( "${FILESDIR}/${P}-openssl.patch" ) default_src_prepare } fi

jorgicio commented 5 years ago

Hi. Patch added. Thanks. Also, the 9999 version doesn't need the patch (by the moment) because I assume this pull request will be pushed some time in the future.

Anyways, thank you!

jorgicio commented 5 years ago

Bad news: the patch failed, so I'll reopen this.

Also, this patch is for tgl, not for telegram-cli. However, that gave me an idea and I hope this may work as expected.

jorgicio commented 5 years ago

Sorry for the mess. The patch failed again. Probably this was already merged, I don't know.

I'll keep this open. Also, merged 1.3.1-r3 version with some changes.

tacvbo commented 5 years ago

This patch works for 9999, it's needed.

https://pastebin.com/5jAgP47G

Preparing source in /var/tmpfs/portage/net-im/telegram-cli-9999/work/telegram-cli-9999 ...

  • Applying telegram-cli-9999-openssl.patch ... [ ok ] Source prepared. Configuring source in /var/tmpfs/portage/net-im/telegram-cli-9999/work/telegram-cli-9999 ... ...
jorgicio commented 5 years ago

Patch bumped. As it works only with live version, I'll leave this issue open until I find a solution for the 1.3.1 version.