<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>166401</bug_id>
          
          <creation_ts>2007-02-11 19:53 0000</creation_ts>
          <short_desc>app-editors/nvu fails to build with FreeType 2.2/2.3</short_desc>
          <delta_ts>2007-02-12 13:04:00 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>166028</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>flameeyes@gentoo.org</reporter>
          <assigned_to>mozilla@gentoo.org</assigned_to>
          <cc>sgtphou@fire-eyes.org</cc>

      

      
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-02-11 19:53:43 0000</bug_when>
            <thetext>As per summary:

c++ -o nsType1.o -c -DOSTYPE=\&quot;Linux2.6\&quot; -DOSARCH=\&quot;Linux\&quot; -DHAVE_DEPENDENT_LIBS -I../.. -I./..  -I../../../dist/include/xpcom -I../../../dist/includ
e/string -I../../../dist/include/widget -I../../../dist/include/pref -I../../../dist/include/caps -I../../../dist/include/locale -I../../../dist/includ
e/uconv -I../../../dist/include/view -I../../../dist/include/necko -I../../../dist/include/imglib2 -I../../../dist/include/unicharutil -I../../../dist/
include/gfx -I../../../dist/include -I/var/tmp/portage/app-editors/nvu-1.0-r4/work/mozilla/dist/include/nspr     -I. -I/usr/include/freetype2    -fPIC
  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -
Wno-long-long -pipe -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/
usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -DMOZILLA_CLIENT -include ../../../mozilla-config.
h -Wp,-MD,.deps/nsType1.pp nsType1.cpp
nsType1.cpp:371: error: invalid conversion from &apos;int (*)(FT_Vector*, void*)&apos; to &apos;int (*)(const FT_Vector*, void*)&apos;
nsType1.cpp:371: error: invalid conversion from &apos;int (*)(FT_Vector*, void*)&apos; to &apos;int (*)(const FT_Vector*, void*)&apos;
nsType1.cpp:371: error: invalid conversion from &apos;int (*)(FT_Vector*, FT_Vector*, void*)&apos; to &apos;int (*)(const FT_Vector*, const FT_Vector*, void*)&apos;
nsType1.cpp:371: error: invalid conversion from &apos;int (*)(FT_Vector*, FT_Vector*, FT_Vector*, void*)&apos; to &apos;int (*)(const FT_Vector*, const FT_Vector*, co
nst FT_Vector*, void*)&apos;
gmake[5]: *** [nsType1.o] Error 1
gmake[5]: Leaving directory `/var/tmp/portage/app-editors/nvu-1.0-r4/work/mozilla/gfx/src/ps&apos;
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/var/tmp/portage/app-editors/nvu-1.0-r4/work/mozilla/gfx/src&apos;
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/var/tmp/portage/app-editors/nvu-1.0-r4/work/mozilla/gfx&apos;
gmake[2]: *** [tier_9] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/app-editors/nvu-1.0-r4/work/mozilla&apos;
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-editors/nvu-1.0-r4/work/mozilla&apos;
make: *** [build] Error 2</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sgtphou@fire-eyes.org</who>
            <bug_when>2007-02-11 20:16:52 0000</bug_when>
            <thetext>I am also seeing this problem.

Portage 2.1.2-r9 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.17.13-reiser4-3 i686)
=================================================================
System uname: 2.6.17.13-reiser4-3 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 11 Feb 2007 17:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=athlon-xp -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=athlon-xp -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig ccache collision-protect distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo&quot;
LINGUAS=&quot;en&quot;
MAKEOPTS=&quot;-j7&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&quot;
USE=&quot;3dnow X alsa am berkdb bitmap-fonts bzip2 cairo cdr chroot cli cracklib crypt dbus dlloader dri dv dvd dvdr eds emboss encode fam firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv isdnlog jpeg kde kdeenablefinal libg++ mad midi mikmod mmx mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdflib perl png ppds pppd pwdb python qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl tiff truetype truetype-fonts type1-fonts udev unicode vorbis win32codecs x86 xml xorg xv zlib&quot; ALSA_CARDS=&quot;ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nv&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-02-11 20:25:25 0000</bug_when>
            <thetext>And just to make sure: this is a build-time issue, so please fix it in a way that works with both 2.1 and 2.2/2.3, and don&apos;t revbump the ebuild, so that we don&apos;t need a new stable to mark new freetype stable too.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@weary.nl</who>
            <bug_when>2007-02-11 21:29:31 0000</bug_when>
            <thetext>Created an attachment (id=109897)
nsType1.cpp has some const-correctness issues. this patch fixes it

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-02-11 22:09:28 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; Created an attachment (id=109897) [edit]
&gt; nsType1.cpp has some const-correctness issues. this patch fixes it
&gt; 

With that patch applied, it fails to build with freetype &lt;2.2. Need to say that this patch is supplied by freetype upstream.

Diego, i think in this case we need to do a rev-bump, and modify the dep of freetype to &gt;2.1, and apply the patch. We&apos;ll need to stabilize it just before freetype-2.2 hits stable.

Or make the patch work with both freetype. I&apos;m not an expert, so a patch is welcomed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-02-11 23:32:42 0000</bug_when>
            <thetext>You have two choices: make the patch use preprocessor #ifs depending on the version of Freetype being used or apply the patch conditionally depending on has_version results.

Please do not revbump this as it&apos;s not really needed to be revbumped.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-02-12 13:04:00 0000</bug_when>
            <thetext>Fixed, thanks.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>109897</attachid>
            <date>2007-02-11 21:29 0000</date>
            <desc>nsType1.cpp has some const-correctness issues. this patch fixes it</desc>
            <filename>const_correct.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC9yb290L2dmeC9zcmMvcHMvbnNUeXBlMS5jcHAJMjAwNy0wMi0xMSAyMTo1MToxNS4wMDAw
MDAwMDAgKzAxMDAKKysrIGdmeC9zcmMvcHMvbnNUeXBlMS5jcHAJMjAwNy0wMi0xMSAyMTo1ODoz
MC4wMDAwMDAwMDAgKzAxMDAKQEAgLTgxLDggKzgxLDggQEAKICAgaW50ICAgICAgICAgICAgd21v
ZGU7CiB9IEZUMlBUMV9pbmZvOwogCi1zdGF0aWMgaW50IGN1YmljdG8oRlRfVmVjdG9yICphQ29u
dHJvbFB0MSwgRlRfVmVjdG9yICphQ29udHJvbFB0MiwgCi0gICAgICAgICAgICAgICAgICAgRlRf
VmVjdG9yICphRW5kUHQsIHZvaWQgKmFDbG9zdXJlKTsKK3N0YXRpYyBpbnQgY3ViaWN0byhjb25z
dCBGVF9WZWN0b3IgKmFDb250cm9sUHQxLCBjb25zdCBGVF9WZWN0b3IgKmFDb250cm9sUHQyLCAK
KyAgICAgICAgICAgICAgICAgICBjb25zdCBGVF9WZWN0b3IgKmFFbmRQdCwgdm9pZCAqYUNsb3N1
cmUpOwogc3RhdGljIGludCBUeXBlMUNoYXJTdHJpbmdDb21tYW5kKHVuc2lnbmVkIGNoYXIgKiph
QnVmUHRyUHRyLCBpbnQgYUNtZCk7CiBzdGF0aWMgaW50IFR5cGUxRW5jb2RlQ2hhclN0cmluZ0lu
dCh1bnNpZ25lZCBjaGFyICoqYUJ1ZlB0clB0ciwgaW50IGFWYWx1ZSk7CiAKQEAgLTE3Myw3ICsx
NzMsNyBAQAogfQogCiBzdGF0aWMgUFJCb29sCi1zaWRlV2lkdGhBbmRCZWFyaW5nKEZUX1ZlY3Rv
ciAqYUVuZFB0LCBGVDJQVDFfaW5mbyAqYUZ0aSkKK3NpZGVXaWR0aEFuZEJlYXJpbm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