Font not available

Bug #779137 reported by JC Hulce
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UGR Cantarell font
Fix Released
Critical
JC Hulce

Bug Description

The cantarell font is not available to be used in any program or part of the system after installing the package. This is because the font is installed to /ttf, and it should be installed to /usr/share/fonts/ttf

Related branches

Revision history for this message
JC Hulce (soaringsky) wrote :

I think you need to define $srcdir, otherwise it will just install to /

Revision history for this message
Daniel Sandman (almehdi-deactivatedaccount) wrote :

Hmm.. i though i had done that. It do install to the correct folder if the deb is used. I am not sure exactly what Launchpad need... I will go through the source again to see if something looks suspicious.

Revision history for this message
Daniel Sandman (almehdi-deactivatedaccount) wrote :

Did you change the /src folder structure? As it should be "/src/usr/share/fonts/cantarell-font/". The rule-file say that /src/* are to be copied to the root. So by having the correct folder structure it will be placed in the /fonts/ folder.

Revision history for this message
Daniel Sandman (almehdi-deactivatedaccount) wrote :

Where can i find the source package to download... can't find it.

Revision history for this message
JC Hulce (soaringsky) wrote :

I did change the folder structure - launchpad copies the latest cantarell from git directly into /src, with no additional folders. I'll fix the recipe. I didn't know how your package worked.

Source here: https://code.launchpad.net/~ubuntugnometeam/+archive/dev/+sourcepub/1715365/+listing-archive-extra

Revision history for this message
JC Hulce (soaringsky) wrote :

Now the build failed with the following:
bzr: ERROR: Parent of "file:///home/buildd/build-1c1d404086c992328a1429aab4a1e20fb4b28d8b/chroot-autobuild/home/buildd/work/tree/recipe-%7Brevno%7D~dev/src/usr/share/fonts/cantarell-font/" does not exist.

Revision history for this message
Daniel Sandman (almehdi-deactivatedaccount) wrote :

Ahhh.. i think i see the error. In the rules-file the mkdir makes the directory in the /debian folder when it should be making it in the /font folder. So if you could change that it should build properly.

JC Hulce (soaringsky)
Changed in ugr-cantarell:
assignee: nobody → JC Hulce (soaringsky)
status: Confirmed → In Progress
Revision history for this message
JC Hulce (soaringsky) wrote :

Nope, same error.
Building tree.
Retrieving 'lp:ugr-cantarell' to put at '/home/buildd/build-41185ba80312c3986f7a0b9ba7d7f660eb6691c3/chroot-autobuild/home/buildd/work/tree/recipe-{revno}~dev'.
Retrieving 'lp:~ubuntugnometeam/ugr-cantarell/import' to put at '/home/buildd/build-41185ba80312c3986f7a0b9ba7d7f660eb6691c3/chroot-autobuild/home/buildd/work/tree/recipe-{revno}~dev/src/usr/share/fonts/cantarell-font/'.
bzr: ERROR: Parent of "file:///home/buildd/build-41185ba80312c3986f7a0b9ba7d7f660eb6691c3/chroot-autobuild/home/buildd/work/tree/recipe-%7Brevno%7D~dev/src/usr/share/fonts/cantarell-font/" does not exist.

Looking at the rules file, it seems like it's copying files to the wrong location. If the source is in /src/usr/share/fonts/cantarell-font/, and is copied to $(CURDIR)/font/cantarell-fonts/, that would make it $(CURDIR)/font/cantarell-fonts//src/usr/share/fonts/cantarell-font/. Is this what's supposed to happen.

Also, in my earlier change I had accidentally left references to debian/cantarell-fonts in the clean and binary-arch sections of debian/rules. I am unsure of the effect of this.

BTW, I added you to Team UGR so you can push to the repo if you have bazaar set up and know how to use it. It's lp:ugr-cantarell

Revision history for this message
Daniel Sandman (almehdi-deactivatedaccount) wrote :

Thanks! I have no clue how to use bazaar though.. I will have to look into it.

Could it be that you moved the /cantarell-font folder from the source? Just realized that could be the reason why it was complaining.

This what the source rule-file say:
 mkdir -p $(CURDIR)/debian/cantarell-fonts
 cp -rf $(CURDIR)/src/* $(CURDIR)/debian/cantarell-fonts/

I am not sure exactly where CURDIR is but when using this to build the deb it worked. It installs to the correct place. The "cp" string say that the inside of /src (excluding "/src") should be copied to current directory. I believe that /debian is "/". So if the folder structure in /src is correct.. i.e "/usr/share/fonts/cantarell-font/".. then it is there it should be placed.

It might also be some incompatibilities with the git-source we are using...

Revision history for this message
JC Hulce (soaringsky) wrote :

I think I found the issue: your source had the font in /src/usr/share/fonts/cantarell/, not /src/usr/share/fonts/cantarell-font/ as you said above.

Revision history for this message
Daniel Sandman (almehdi-deactivatedaccount) wrote :

Ahaa.. yes, that might be it. Maybe the launchpad-builder are stricter than the deb-builder. As the deb-builder would just copy whats in the /src no matter the naming of the folder. While launchpad-builder looks in forehand to verify.

Revision history for this message
JC Hulce (soaringsky) wrote :

Another problem - the launchpad builder was putting the entire cantarell source at /src/usr/share/fonts/cantarell/, not just the four font files. I adjusted this so only the ttf folder from the source is put in.

Revision history for this message
Daniel Sandman (almehdi-deactivatedaccount) wrote :

Cool! Is it working now?

Revision history for this message
JC Hulce (soaringsky) wrote :

No, bzr is throwing all sorts of errors. They're the sort of errors that are bugs that have sat in their to-do list for months, without getting a fix. I'm just going to use your source and forget about building from git, because we have to get this out for 0.1.0 tomorrow.

JC Hulce (soaringsky)
Changed in ugr-cantarell:
status: In Progress → Fix Committed
Revision history for this message
JC Hulce (soaringsky) wrote :

Of course, they built perfectly with your source. Thanks so much for your work.

JC Hulce (soaringsky)
Changed in ugr-cantarell:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.