[MacPorts] #57272: ntpviz in ntpsec @1.1.2 cannot display anything because it cannot find the Liberation fonts
MacPorts
noreply at macports.org
Sat Oct 6 21:32:58 UTC 2018
#57272: ntpviz in ntpsec @1.1.2 cannot display anything because it cannot find the
Liberation fonts
------------------------+--------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Keywords: highsierra | Port: ntpsec
------------------------+--------------------
When I invoke `ntpviz` it complains:
{{{
ntpviz: WARNING: liberation truetype fonts not found
}}}
The path to the Liberation font files is coded here:
{{
./ntpclients/ntpviz.py: for fontpath in ("/usr/share/fonts/liberation",
./ntpclients/ntpviz.py: "/usr/share/fonts/liberation-
fonts",
./ntpclients/ntpviz.py:
"/usr/share/fonts/truetype/liberation"):
}}}
As you can see they are wrong for macOS. The package `liberation-fonts`
installs in `/opt/local/share/fonts/liberation-fonts`
There is also missing a dependency of the Liberation fonts.
Portfile has
{{{
28 patchfiles patch-PreHighSierra.diff
}}}
I am on High Sierra and would not need it, right? With and without that
patch I cannot compile the package
{{{
[216/223] Compiling build/main/ntpclients/ntplogtemp-man.txt.man-tmp
Undefined symbols for architecture x86_64:
"_alarm_overflow", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
"_clock_jitter", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
"_clock_stability", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
"_config_remotely", referenced from:
_configure in libntpd_lib.a(ntp_control.c.1.o)
"_drift_comp", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
_write_stats in libntpd_lib.a(ntp_util.c.1.o)
_stats_config in libntpd_lib.a(ntp_util.c.1.o)
"_ep_list", referenced from:
_read_ordlist in libntpd_lib.a(ntp_control.c.1.o)
"_findpeerbyassoc", referenced from:
_control_unspec in libntpd_lib.a(ntp_control.c.1.o)
_read_status in libntpd_lib.a(ntp_control.c.1.o)
_read_variables in libntpd_lib.a(ntp_control.c.1.o)
"_getinterface", referenced from:
_read_mru_list in libntpd_lib.a(ntp_control.c.1.o)
"_last_offset", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
"_loop_config", referenced from:
_stats_config in libntpd_lib.a(ntp_util.c.1.o)
"_ntpd_version", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
"_peer_list", referenced from:
_read_status in libntpd_lib.a(ntp_control.c.1.o)
"_pkt_count", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
"_proto_clr_stats", referenced from:
_write_stats in libntpd_lib.a(ntp_util.c.1.o)
"_remote_config", referenced from:
_configure in libntpd_lib.a(ntp_control.c.1.o)
"_sendpkt", referenced from:
_ctl_error in libntpd_lib.a(ntp_control.c.1.o)
_ctl_flushpkt in libntpd_lib.a(ntp_control.c.1.o)
"_stat_count", referenced from:
_configure in libntpd_lib.a(ntp_control.c.1.o)
_read_mru_list in libntpd_lib.a(ntp_control.c.1.o)
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
_write_stats in libntpd_lib.a(ntp_util.c.1.o)
"_sys_authdelay", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
"_sys_ifnum", referenced from:
_read_ordlist in libntpd_lib.a(ntp_control.c.1.o)
"_sys_jitter", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
"_sys_poll", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
"_sys_tai", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
"_sys_vars", referenced from:
_process_control in libntpd_lib.a(ntp_control.c.1.o)
_report_event in libntpd_lib.a(ntp_control.c.1.o)
_control_unspec in libntpd_lib.a(ntp_control.c.1.o)
_read_status in libntpd_lib.a(ntp_control.c.1.o)
_read_variables in libntpd_lib.a(ntp_control.c.1.o)
_write_variables in libntpd_lib.a(ntp_control.c.1.o)
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
...
"_timer_timereset", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
"_timer_xmtcalls", referenced from:
_ctl_putsys in libntpd_lib.a(ntp_control.c.1.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
}}}
to test my patch. Anyway, I am attaching it here.
--
Ticket URL: <https://trac.macports.org/ticket/57272>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list