FS#60065 - [flatpak] build fails when using ABS
Attached to Project:
Arch Linux
Opened by Dor Askayo (xtor91) - Saturday, 15 September 2018, 12:17 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 15 September 2018, 13:29 GMT
Opened by Dor Askayo (xtor91) - Saturday, 15 September 2018, 12:17 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 15 September 2018, 13:29 GMT
|
Details
Description:
Looks like an issue in the PKGBUILD; "-shared" is removed by sed. The following patch solves it: --- a/PKGBUILD 2018-09-15 15:03:31.248153975 +0300 +++ b/PKGBUILD 2018-09-15 15:05:04.875429702 +0300 @@ -58,7 +58,7 @@ build() { --with-priv-mode=setuid \ --with-dbus-config-dir=/usr/share/dbus-1/system.d - sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + sed -i -e 's/ -shared / -shared -Wl,-O1,--as-needed\0/g' libtool make } Additional info: * package version: 1.0.1 and 1.0.2 (testing) Steps to reproduce: 1. Build using ABS. 2. Get this link failure: ... CCLD libflatpak.la /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/Scrt1.o: in function _start': (.text+0x24): undefined reference tomain' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:1880: libflatpak.la] Error 1 ... |
This task depends upon
Closed by Doug Newgard (Scimmia)
Saturday, 15 September 2018, 13:29 GMT
Reason for closing: Not a bug
Additional comments about closing: Builds fine in a clean chroot
Saturday, 15 September 2018, 13:29 GMT
Reason for closing: Not a bug
Additional comments about closing: Builds fine in a clean chroot