Opened 18 years ago

Closed 18 years ago

#7896 closed defect (fixed)

BUG: pango 1.12.0 various problems

Reported by: vincent-opdarw@… Owned by: mij@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: gnome-darwinports@…
Port:

Description

/opt/local/etc/pango/pango.modules is empty (well, it only contains comments). The probable fix is to replace 1.4.0 by 1.5.0 in the Portfile since "port contents pango" shows that the modules are in /opt/local/lib/pango/1.5.0/modules/.

Change History (12)

comment:1 Changed 18 years ago by vincent-opdarw@…

I've tried and this fills up the /opt/local/etc/pango/pango.modules file as expected (like previous versions), but pango still doesn't work. After a clean rebuild of liferea, I get:

prunille:~> liferea Neither Mozilla nor Firefox is available... A stale lockfile has been found, and was deleted. No browser module configured! trying to load browser module GtkHTML2 (liblihtmlg.so)

(liferea-bin:10479): Pango-WARNING : No builtin or dynamically loaded modules were found. Pango will not work correctly. This probably means there was an error in the creation of:

'/opt/local/etc/pango/pango.modules'

You should create this file by running pango-querymodules.

(liferea-bin:10479): Pango-WARNING : pango_shape called with bad font, expect ugly output

(liferea-bin:10479): Pango-WARNING : pango_font_get_glyph_extents called with bad font, expect ugly output

(liferea-bin:10479): Pango-CRITICAL : pango_cairo_show_glyph_string: assertion `PANGO_IS_CAIRO_FONT (font)' failed

(liferea-bin:10479): Pango-CRITICAL : pango_cairo_show_glyph_string: assertion `PANGO_IS_CAIRO_FONT (font)' failed [...]

and this ends with a bus error. Any idea?

comment:2 Changed 18 years ago by vincent-opdarw@…

Oh... A ktrace/kdump is interesting:

[...]

10680 liferea-bin CALL open(0x2935b20,0,0) 10680 liferea-bin NAMI "/Users/vinc17/.pangorc" 10680 liferea-bin RET open -1 errno 2 No such file or directory 10680 liferea-bin CALL open(0x2935b70,0,0x1b6) 10680 liferea-bin NAMI "./opt/local/etc/pango/modules/pango.modules" 10680 liferea-bin RET open -1 errno 2 No such file or directory 10680 liferea-bin CALL write(0x2,0x200a800,0x119) 10680 liferea-bin GIO fd 2 wrote 281 bytes

"

(liferea-bin:10680): Pango-WARNING : No builtin or dynamically loaded modules were found. Pango will not work correctly. This probably means there was an error in the creation of:

'/opt/local/etc/pango/pango.modules'

You should create this file by running pango-querymodules.

"

[...]

The line

10680 liferea-bin NAMI "./opt/local/etc/pango/modules/pango.modules"

is wrong (see the dot before the path).

/opt/local/etc/pango/pangorc has the same problem:

ModuleFiles = ./opt/local/etc/pango/modules/pango.modules

(ditto in the comments).

comment:3 Changed 18 years ago by vincent-opdarw@…

Summary: BUG: /opt/local/etc/pango/pango.modules is emptyBUG: pango 1.12.0 various problems

comment:4 Changed 18 years ago by blb@…

Cc: gnome-darwinports@… added
Owner: changed from darwinports-bugs@… to mij@…

Assigning to maintainers.

comment:5 Changed 18 years ago by yves@…

pango-querymodules did not help, even

cd /opt/local/lib/pango/1.5.0/modules/ Bilbo:/opt/local/lib/pango/1.5.0/modules yves$ sudo pango-querymodules * > /opt/local/etc/pango/pango.modules

does not help

comment:6 Changed 18 years ago by vincent-opdarw@…

(In reply to comment #4)

Bilbo:/opt/local/lib/pango/1.5.0/modules yves$ sudo pango-querymodules * > /opt/local/etc/pango/pango.modules

AFAIK, when you use a redirection like this, the file is opened by the shell, i.e. before the sudo takes place. This means that you probably don't have the permissions. Try without the redirection and you'll see that the output is correct.

comment:7 Changed 18 years ago by yves@…

No the redirection works, but it is probably because I previously did it using a tmp file and then a forced copy (I did get into troubles with this, thanks for the explanation)

anyway, etc/pango/pango.modules is the same as stdout

comment:8 Changed 18 years ago by vincent-opdarw@…

To summarize, there are currently two problems with the current port:

  1. An incorrect version in a path in the Portfile, with the consequence that modules are not provided to pango-querymodules.
  1. The problem I've described in comment #2. Perhaps some problem with these lines?

reinplace "s|
./|${prefix}/etc/pango/|g" \

${destroot}/${prefix}/etc/pango/pangorc

reinplace "s|
./|${prefix}/etc/pango/|g" \

${destroot}/${prefix}/etc/pango/pangox.aliases

Also, doesn't the configure script have a --sysconfdir option that could be used instead of the above rewriting?

comment:9 Changed 18 years ago by mij@…

I'm looking at this, but I've got to head out to work so I probably won't have time to test it until tonight when I get home.

comment:10 Changed 18 years ago by mij@…

Try this patch: http://soupnazi.org/files/pango-Portfile.diff. I'd have attached it, but bugzilla seems to be having fits when I try to do that :\ If it works, let me know and I'll check it in.

comment:11 Changed 18 years ago by vincent-opdarw@…

(In reply to comment #9)

Try this patch: http://soupnazi.org/files/pango-Portfile.diff.

To make it more reliable, you should write:

reinplace "s|
.
./modules/|${prefix}/etc/pango/|g"

otherwise the dot matches any character (not just a dot). Moreover how about removing the

reinplace "s|
./|${prefix}/etc/pango/|g"

${destroot}/${prefix}/etc/pango/pangox.aliases

since it seems to be useless (here no paths appear in this pangox.aliases file) and may also be wrong anyway.

I've tried with my suggestions and Liferea now works correctly.

comment:12 Changed 18 years ago by mij@…

Resolution: fixed
Status: newclosed

Committed with your changes. Thanks!

Note: See TracTickets for help on using tickets.