Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#15244 closed enhancement (fixed)


Reported by: Douglas R. Reno Owned by: ken@…
Priority: normal Milestone: 11.0
Component: BOOK Version: git
Severity: normal Keywords:


Change History (5)

comment:1 by ken@…, 3 years ago

Owner: changed from blfs-book to ken@…
Status: newassigned

Looks almost like a "make it harder to build" policy :)

Note that to build gucharmap, you need to provide the (absolute) path to the unicode data files to the -Ducd_path=... argument when running meson. These data files are not included in gucharmap; you need to download them separately, or use the package provided by your distribution. E.g. on fedora, install the unicode-ucd package.

At least there is a 'download' link to get each tagged version.

For unicode-ucd, fedora has with

# referenced in ReadMe.txt redirects to:
# curl | dos2unix > copyright.html

I initially supposed those need to be treated as extra-downloads in BLFS (and the version of needs to be kept in-sync with the version used by gucharmap - i.e. the major.minor versions of gucharmap)

Fedora installs them with

mkdir -p %{buildroot}%{ucddir}
cp -ar . %{buildroot}%{ucddir}
cp -p %{SOURCE2} %{buildroot}%{ucddir}
cp -p %{SOURCE1} .

which suggests that the zips can be installed without extracting. I note that previous versions used wget and unzip, with ./ to download and extract these into the build. It seems less than obvious that any normal user would have a use for local copies, e.g. in /usr/share/.

Arch similarly puts these in /usr/share, using bsdtar to extract them! They also make symlinks "for compatability".

  for _f in UCD Unihan; do
    install -Dm644 $_f-$ "$pkgdir/usr/share/unicode/$"
    bsdtar -C "$pkgdir/usr/share/unicode" -x --no-same-owner --no-same-permissions -f $_f-$

Looking at debian, sid has 13.0.5 (13.0.8 has been accepted), with a patch to adapt ./ to use the system unicode-data package, which has a .bz2 file for Unihan instead of azip file.

Summary - looks as if system unicode files are expected to be in place, so perhaps a separate package. OTOH, if they can be downloaded into the build that would be a lot nicer.

Release details pasted from the tags page (these might not be all the changes):

13.0.8 Updated Danish translation 
13.0.7 Update Dutch translation 
13.0.6 build: Add dist script
13.0.5 Update Romanian translation
13.0.4 charmap: Search in details by default
13.0.3 Update Catalan translation
13.0.2 Update Indonesian translation
13.0.1 Updated Spanish translation
13.0.0 Version 13.0.0
12.1.0 unicode: Update to version 12.1.0

Now uses meson

comment:2 by ken@…, 3 years ago

Download the zip files to ./ucd, unzip but not Default is a release, so use

meson --prefix=/usr -Ducd_path=./ucd .. -Ddocs=false
(DESTDIR=/some/where) ninja install

The docs would require gtk-doc, is enabled by default. Optionally, -Dgir=false -Dvapi=false if introspection, vala are not installed (not tested)

comment:3 by ken@…, 3 years ago

When doing a real install on a recent system, it fails to run:

(gucharmap:29646): GLib-GIO-ERROR **: 21:27:02.745: Settings schema 'org.gnome.Charmap' is not installed
Trace/breakpoint trap

although the schema and enums were installed (and the schema had been changed, although the date was old). After suggestions from Doug, I tracked it down to the obsolete /usr/share/glib-2.0/schemas/org.gnome.Charmap.enums.xml. REmoving that before the install allows it to run.

Tested also with BLFS-10.1 (gsettings 3.38 series) and 10.0 (gsettings 3.36 series). I still have a 9.1 system (will be deleted soon) with gsettings 3.34 series, but that is too old to build this - at a guess, it needs a newer introspection, or perhaps a newer vala.

comment:4 by ken@…, 3 years ago

Resolution: fixed
Status: assignedclosed

comment:5 by Bruce Dubbs, 3 years ago

Milestone: 10.211.0

Milestone renamed

Note: See TracTickets for help on using tickets.