Solved Porting electron app fails with error code 1 without any clear info

Hi. I am trying to port ytDownloader to FreeBSD. I am getting error code 1 without any given information.

In old version of that WIP port, it was not giving a error like this. You can find old port in PR 279372

I attached port directory as a zip and log of make. How can we analyze the problem? Thanks in advance.

Code:
===>  Staging for YTDownloader-3.18.3
===>   YTDownloader-3.18.3 depends on executable: ffmpeg - found
===>   YTDownloader-3.18.3 depends on executable: yt-dlp - found
===>   YTDownloader-3.18.3 depends on executable: electron30 - found
===>   YTDownloader-3.18.3 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
===>   YTDownloader-3.18.3 depends on file: /usr/local/libdata/pkgconfig/xcb.pc - found
===>   YTDownloader-3.18.3 depends on file: /usr/local/libdata/pkgconfig/xcomposite.pc - found
===>   YTDownloader-3.18.3 depends on file: /usr/local/libdata/pkgconfig/xdamage.pc - found
===>   YTDownloader-3.18.3 depends on file: /usr/local/libdata/pkgconfig/xext.pc - found
===>   YTDownloader-3.18.3 depends on file: /usr/local/libdata/pkgconfig/xfixes.pc - found
===>   YTDownloader-3.18.3 depends on file: /usr/local/libdata/pkgconfig/xi.pc - found
===>   YTDownloader-3.18.3 depends on file: /usr/local/libdata/pkgconfig/xrandr.pc - found
===>   YTDownloader-3.18.3 depends on file: /usr/local/libdata/pkgconfig/xrender.pc - found
===>   YTDownloader-3.18.3 depends on file: /usr/local/libdata/pkgconfig/xtst.pc - found
===>   YTDownloader-3.18.3 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found
===>   Generating temporary packing list
cd /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/ytDownloader-3.18.3 &&  /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) &&  /usr/bin/find -Ed $1 $3 \(   -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} +  -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE \* /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader
install  -m 555 /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/ytdownloader  /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/bin/ytdownloader
install  -m 0644 /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/ytdownloader.desktop  /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/applications/ytdownloader.desktop
install  -m 0644 /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/ytDownloader-3.18.3/resources/icon.png  /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/pixmaps/YTDownloader.png
/bin/rm -f /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/chrome-sandbox
/bin/rm -f /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/libvulkan.so.1
/bin/rm -f /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/chromedriver
/bin/ln -s /usr/local/share/electron30/chromedriver /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/chromedriver
/bin/rm -f /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/libEGL.so
/bin/ln -s /usr/local/share/electron30/libEGL.so /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/libEGL.so
/bin/rm -f /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/libGLESv2.so
/bin/ln -s /usr/local/share/electron30/libGLESv2.so /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/libGLESv2.so
/bin/rm -f /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/libffmpeg.so
/bin/ln -s /usr/local/share/electron30/libffmpeg.so /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/libffmpeg.so
/bin/rm -f /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/libvk_swiftshader.so
/bin/ln -s /usr/local/share/electron30/libvk_swiftshader.so /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/libvk_swiftshader.so
/bin/rm -f /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/libvulkan.so
/bin/ln -s /usr/local/share/electron30/libvulkan.so /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/libvulkan.so
/bin/rm -f /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/resources.pak
/bin/ln -s /usr/local/share/electron30/resources.pak /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/resources.pak
/bin/rm -f /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/snapshot_blob.bin
/bin/ln -s /usr/local/share/electron30/snapshot_blob.bin /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/snapshot_blob.bin
/bin/rm -f /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/v8_context_snapshot.bin
/bin/ln -s /usr/local/share/electron30/v8_context_snapshot.bin /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/v8_context_snapshot.bin
cp -f /usr/local/share/electron30/electron /home/yusuf/Documents/yusuf-ports/www/ytdownloader/work/stage/usr/local/share/YTDownloader/ytdownloader
====> Compressing man pages (compress-man)
====> Checking for non-FreeBSD ELF binaries
*** Error code 1

Stop.
make: stopped in /home/yusuf/Documents/yusuf-ports/www/ytdownloader
 

Attachments

It works on my system, for packaging I just had to update pkg-plist
That's strange. Did you do any change besides that?

I just realized that port was not pulling zip archive for linux distribution but source code instead. I think that's the issue.
 
Back
Top