/usr/bin/defoma-hints broken due to deleted dependency

Bug #308539 reported by Cliff Cunnington
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
defoma (Debian)
Fix Released
Unknown
defoma (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: defoma

% lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
% apt-cache policy defoma
defoma:
  Installed: 0.11.10-0.2ubuntu1
  Candidate: 0.11.10-0.2ubuntu1
  Version table:
 *** 0.11.10-0.2ubuntu1 0
        500 http://nl.archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status
--
The /usr/bin/defoma-hints perl executable is used to create hints files for new fonts (/etc/defoma/hints/*). Due to the deletion of the libft-perl dependency (build issues since perl-5.10), defoma-hints is also broken.

To reproduce this error:
 % defoma-hints truetype /usr/share/fonts/truetype/ttf-dejavu/*.ttf
Wait for second...
defoma-hints Can't locate FreeType.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at (eval 4) line 2.

AFAICT this breaks users and maintainers ability to easily add new defoma-managed fonts under Intrepid and Jaunty.

Related notes/changelogs:
  https://launchpad.net/ubuntu/intrepid/+source/defoma/0.11.10-0.2ubuntu1 (libft-perl is uninstallable)
  https://launchpad.net/ubuntu/+source/perlftlib/+publishinghistory#

- cliff

Revision history for this message
In , Marcus Better (mbetter) wrote : setting package to defoma, severity of 285653 is important

# Automatically generated email from bts, devscripts version 2.10.13
package defoma
# makes defoma-hints unusable
severity 285653 important

Revision history for this message
In , Antony Gelberg (antony-gelberg-wayforth) wrote : Re: defoma does not depend on libft-perl though defoma-hints needs it

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This bug has been ignored for 3 years and 166 days. libft-perl is
unmaintained and doesn't work with Perl 5.10. Also see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478983

Hence I'm about to request libft-perl's removal from Debian, and I shall
change this bug's title to something like "defoma formerly depended on
libft-perl - please migrate to modern Perl FreeType library".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIPexQdt451jNP7ekRArFVAJ9Exttciq/sSmiWmfMat0sx9g4WWwCfZSpC
oOqwfNxsxescrXbBdIa1TD8=
=a12R
-----END PGP SIGNATURE-----

Revision history for this message
In , Antony Gelberg (antony-gelberg-wayforth) wrote : defoma: libft-perl obsolete

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

retitle 285653 defoma should migrate to an alternative to libft-perl

thanks
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIPfJEdt451jNP7ekRAgUKAKCa7sTfpiMalHbL6pdmEyZwk/tk3gCeOcnT
OM23MzXqa+QO+SdDQNRdrds=
=uss+
-----END PGP SIGNATURE-----

Revision history for this message
In , madduck (madduck) wrote : Re: Bug#285653: defoma does not depend on libft-perl though defoma-hints needs it

also sprach Antony Gelberg <email address hidden> [2008.05.29.0135 +0200]:
> This bug has been ignored for 3 years and 166 days. libft-perl is
> unmaintained and doesn't work with Perl 5.10. Also see
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478983
>
> Hence I'm about to request libft-perl's removal from Debian, and I shall
> change this bug's title to something like "defoma formerly depended on
> libft-perl - please migrate to modern Perl FreeType library".

Please do!

--
 .''`. martin f. krafft <email address hidden>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck - http://debiansystem.info
  `- Debian - when you have better things to do than fixing systems

Revision history for this message
In , antgel (antgel) wrote : Re: Bug#285653: defoma should migrate to an alternative to libft-perl

martin f krafft wrote:
> also sprach Antony Gelberg <email address hidden> [2008.05.29.0135 +0200]:
>> This bug has been ignored for 3 years and 166 days. libft-perl is
>> unmaintained and doesn't work with Perl 5.10. Also see
>> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478983
>>
>> Hence I'm about to request libft-perl's removal from Debian, and I shall
>> change this bug's title to something like "defoma formerly depended on
>> libft-perl - please migrate to modern Perl FreeType library".
>
> Please do!
>

I never did, as I didn't have the time to look into the implications.
However, the package has been removed, see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279824.

As to defoma's future, who knows, but I suppose it's best to keep this
bug open for now, as the title is still relevant.

Antony

Revision history for this message
Cliff Cunnington (cc-ububug) wrote :

Binary package hint: defoma

% lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
% apt-cache policy defoma
defoma:
  Installed: 0.11.10-0.2ubuntu1
  Candidate: 0.11.10-0.2ubuntu1
  Version table:
 *** 0.11.10-0.2ubuntu1 0
        500 http://nl.archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status
--
The /usr/bin/defoma-hints perl executable is used to create hints files for new fonts (/etc/defoma/hints/*). Due to the deletion of the libft-perl dependency (build issues since perl-5.10), defoma-hints is also broken.

To reproduce this error:
 % defoma-hints truetype /usr/share/fonts/truetype/ttf-dejavu/*.ttf
Wait for second...
defoma-hints Can't locate FreeType.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at (eval 4) line 2.

AFAICT this breaks users and maintainers ability to easily add new defoma-managed fonts under Intrepid and Jaunty.

Related notes/changelogs:
  https://launchpad.net/ubuntu/intrepid/+source/defoma/0.11.10-0.2ubuntu1 (libft-perl is uninstallable)
  https://launchpad.net/ubuntu/+source/perlftlib/+publishinghistory#

- cliff

Revision history for this message
In , Delirium (delirium-hackish) wrote : Re: defoma-hints requires libft-perl which no longer exists

retitle 478983 defoma-hints requires libft-perl which no longer exists
severity 478983 important
merge 478983 285653
thanks

Looks like this is the same as the long-open #285653, "defoma should
migrate to an alternative to libft-perl". But there's been no active
maintenance of defoma since 2007, so not clear if/when this'll get fixed.

-Mark

Revision history for this message
Graziano (graziano-giuliani-gmail) wrote :

Confirm it is impossible to add any new truetype font to defoma.

ABI of Font::FreeType (libfont-freetype-perl) is completely different from libft-perl. If defoma is unmaintained upstream, please consider switchin to a different font engine, at list for truetype.

Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote :

I confirm this bug in both Intrepid & Jaunty.
Another thing, is that I tried in jaunty to install libfont-freetype-perl. But I still got the same error.

Changed in defoma:
status: New → Confirmed
Revision history for this message
Connor Imes (ckimes) wrote :

This is easily reproducible, so I'll mark it as Triaged so a developer can begin work. Thank you for reporting this!

Changed in defoma:
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote :

I think this is related to http://bugs.debian.org/285653

Revision history for this message
In , Rhonda D'Vine (rhonda) wrote : severity of 452470 is serious, severity of 285653 is serious

# policy violations are serious
severity 452470 serious
severity 285653 serious

Changed in defoma:
status: Unknown → New
Revision history for this message
In , jhr (hauke.rahm) wrote : Re: Bug#522246: defoma-hints and FreeType.om

forcemerge 285653 522246
thanks

On Thu, May 14, 2009 at 09:02:13PM +0200, Sven Hoexter wrote:
> Hi,
> at least in sid FreeType.pm is available
> marvin:/home/sven/debian/pkg-lyx# apt-file search FreeType.pm
> libfont-freetype-perl: /usr/lib/perl5/Font/FreeType.pm

Yes, but from a different package.

> but installing the package doesn't solve the problem for me.
> So beside the missing dependency there's still something broken.

Yes, libft-perl doesn't exist anymore. libfont-freetype-perl provides
similar functionality but with a completely different API AFAICS.

> Any ideas?

Yes, rewrite libhint-truetype.pl in defome. :)

Hauke

Revision history for this message
In , Don Armstrong (don-debian) wrote : forcibly merging 285653 514635

forcemerge 285653 514635

Revision history for this message
In , Don Armstrong (don-debian) wrote : Bug#285653: fixed in defoma 0.11.10-1
Download full text (3.2 KiB)

Source: defoma
Source-Version: 0.11.10-1

We believe that the bug you reported is fixed in the latest version of
defoma, which is due to be installed in the Debian FTP archive:

defoma-doc_0.11.10-1_all.deb
  to pool/main/d/defoma/defoma-doc_0.11.10-1_all.deb
defoma_0.11.10-1.dsc
  to pool/main/d/defoma/defoma_0.11.10-1.dsc
defoma_0.11.10-1.tar.gz
  to pool/main/d/defoma/defoma_0.11.10-1.tar.gz
defoma_0.11.10-1_all.deb
  to pool/main/d/defoma/defoma_0.11.10-1_all.deb
psfontmgr_0.11.10-1_all.deb
  to pool/main/d/defoma/psfontmgr_0.11.10-1_all.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Don Armstrong <email address hidden> (supplier of updated defoma package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Format: 1.8
Date: Tue, 18 Aug 2009 16:15:28 -0700
Source: defoma
Binary: defoma defoma-doc psfontmgr
Architecture: source all
Version: 0.11.10-1
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <email address hidden>
Changed-By: Don Armstrong <email address hidden>
Description:
 defoma - Debian Font Manager -- automatic font configuration framework
 defoma-doc - Debian Font Manager documentation
 psfontmgr - PostScript font manager -- part of Defoma, Debian Font Manager
Closes: 285653 514635
Changes:
 defoma (0.11.10-1) unstable; urgency=low
 .
   * QA upload.
   * Fix dependency on libftp-perl (Closes: #514635, #285653)
Checksums-Sha1:
 f9db9d4509dc66dcf2891b9473ccbf755181724f 771 defoma_0.11.10-1.dsc
 f2d681e7001940326e19eb0a469118df48731614 151888 defoma_0.11.10-1.tar.gz
 bbd7276884d11ac06e6532b972ee14b4f5ddaeb6 99066 defoma_0.11.10-1_all.deb
 4a1f598ce68993047920be2d7a833ae020722531 63130 defoma-doc_0.11.10-1_all.deb
 416666caaae0493b04587fad966a218d67f1dd36 22330 psfontmgr_0.11.10-1_all.deb
Checksums-Sha256:
 fee0338ba0dcbd60614bf18a2c78a49f2f091d9e77283a80c60aa1002501e605 771 defoma_0.11.10-1.dsc
 e0ec0c344547be91365b6f6ad5cd48c9b1b5cd2c67cc04029deaec65bf6f78f0 151888 defoma_0.11.10-1.tar.gz
 f35e257f1dc27dd44a51824866d6d36f56611c098c397b15194a938583bdb3b4 99066 defoma_0.11.10-1_all.deb
 35f1d563a10177ceb07036d96d4c58dd158c53bbe230a6a7099fdba7ab6860b5 63130 defoma-doc_0.11.10-1_all.deb
 fd3b46ac48aad2a5762cd19503b2f80f777170f074867dd03c1ce8cff49275b2 22330 psfontmgr_0.11.10-1_all.deb
Files:
 1d1ff1d4dc1d29aae2a258a598ba5566 771 admin optional defoma_0.11.10-1.dsc
 935931bf4e920170690632210f6ffa86 151888 admin optional defoma_0.11.10-1.tar.gz
 cf28125a3280cd1e0fc9421c1696cd04 99066 admin optional defoma_0.11.10-1_all.deb
 433bd8c8bcfc9862d559601c711b9353 63130 doc optional defoma-doc_0.11.10-1_all.deb
 2fc5d42361b59c7b9d9c2c6e5e072ae7 22330 admin optional psfontmgr_0.11.10-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQF...

Read more...

Changed in defoma (Debian):
status: New → Fix Released
Revision history for this message
KeithG (grider-4) wrote :

Related problem in 10.04. In 9.10, the defoma-hint would not run at all. The dependency listed here was the problem. In 10.04, the dependency was fixed somehow, but it still does not create a hint file from ttf fonts (that is all I have tried) installed 'loose' (not packaged). The fix is a 1 line edit to a script which is detailed here:
http://us.generation-nt.com/answer/bug-231616-defoma-apply-patch-please-help-168894811.html

I applied this patch and was able to generate a hint file for a couple of esoteric fonts we are using. (it is from 2004?!?!)

/usr/share/defoma/libperl-hint.pl.orig 2004-08-21 13:29:31.000000000 -0400
+++ /usr/share/defoma/libperl-hint.pl 2004-08-31 13:13:55.000000000 -0400
@@ -39,7 +39,7 @@
foreach my $f (defoma_font_get_fonts($c)) {
my @h = defoma_font_get_hints($c, $f);
next unless (@h);
- while ($h[0] !~ /^--/) {
+ while (@h && $h[0] !~ /^--/) {
shift(@h);
}
push(@hints, @h);

Revision history for this message
Arvind Deshpande (pilyad) wrote :

Related problem in 10.10

root@arvindd:~# defoma-hints -c truetype /usr/share/fonts/truetype/ttf-blah/blah.ttf
Wait for second...
defoma-hints Can't locate Font/FreeType.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at (eval 8) line 2.
\nroot@arvindd:~# defoma-hints -c --no-question truetype /usr/share/fonts/truetype/ttf-blah/blah.ttf
Wait for second...
defoma-hints Can't locate Font/FreeType.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at (eval 8) line 2.
\nroot@arvindd:~#

Revision history for this message
AZ (m-dev) wrote :

In Ubuntu 10.10, creating hint files works if libfont-freetype-perl is installed.

Changed in defoma (Ubuntu):
status: Triaged → Won't Fix
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.