Created attachment 203242 [details] patch for cad/lepton-eda 1.9.7 port's Makefile Add glib20 to USE_GNOME.
Didn't fix the build on CURRENT for me: ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_get_parse_name ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_parse_name ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_io_error_quark ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_equal ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_get_child ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_get_parent ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_get_path ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_get_type ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_hash ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_load_contents ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_make_directory_with_parents ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_new_for_path ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_query_exists ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_query_file_type ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_file_replace_contents ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_input_stream_get_type ld: error: ../../liblepton/src/.libs/liblepton.so: undefined reference to g_memory_input_stream_new_from_data
Created attachment 203256 [details] patch for cad/lepton-eda 1.9.7 that fixes link errors on 13.0-CURRENT As it turned out, utils/gschlas fails to link with new ld.lld linker (the default one on CURRENT) for some reason. I'm still investigating this. The walk-around is to add LLD_UNSAFE=yes to the Makefile (this pulls in devel/binutils). Checked on 13.0-CURRENT r345620 amd64, and it works.
Created attachment 203396 [details] patch for cad/lepton-eda 1.9.7 that fixes link errors on 13.0-CURRENT Make portlint happy. The only warning left is this: "WARN: Makefile: for new port, make $FreeBSD$ tag in comment section empty, to make SVN happy." But this warning is issued for ALL ports. Maybe a bug in portlint. It also doesn't ignore comments in makefile, I suppose that it is a portlint bug, too.
Created attachment 203410 [details] cad/lepton-eda: fix link errors in utils/gschlas on 13.0-CURRENT Finally I found the root cause of those link errors. Added patch file for utils/gschlas/Makefile.am.
testbuilds@work
Committed, thanks!
A commit references this bug: Author: pi Date: Wed Apr 17 05:58:06 UTC 2019 New revision: 499146 URL: https://svnweb.freebsd.org/changeset/ports/499146 Log: cad/lepton-eda: fix build on 13.0-CURRENT PR: 236879 Submitted by: graahnul.grom@gmail.com (maintainer) Changes: head/cad/lepton-eda/Makefile head/cad/lepton-eda/files/patch-utils_gschlas_Makefile.am