jorgicio-gentoo-overlay icon indicating copy to clipboard operation
jorgicio-gentoo-overlay copied to clipboard

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

Open tacvbo opened this issue 5 years ago • 5 comments

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

tacvbo avatar Mar 27 '19 04:03 tacvbo

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 avatar Mar 27 '19 04:03 jorgicio

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 avatar Mar 27 '19 04:03 jorgicio

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.

jorgicio avatar Mar 27 '19 05:03 jorgicio

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 ... ...

tacvbo avatar Mar 27 '19 08:03 tacvbo

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.

jorgicio avatar Mar 27 '19 17:03 jorgicio