public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* libfontconfig-devel-2.15.0-1 links wrong DLL
@ 2024-03-05 11:48 Masamichi Hosoda
  2024-03-05 13:10 ` Takashi Yano
  0 siblings, 1 reply; 4+ messages in thread
From: Masamichi Hosoda @ 2024-03-05 11:48 UTC (permalink / raw)
  To: cygwin; +Cc: trueroad

Hi

If I understand correctly,
libfontconfig-devel-2.15.0-1 links wrong DLL (i.e. libfontconfig-1.dll)
instead of correct DLL (i.e. cygfontconfig-1.dll).
Since the wrong DLL does not exist,
the executable file using libfontconfig-devel-2.15.0-1 cannot be executed.

```
$ cat foo.c
#include <fontconfig/fontconfig.h>

int main(void)
{
  FcInit();
  return 0;
}

$ gcc -o foo foo.c -lfontconfig

$ ldd foo
        ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffccda50000)
        KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x7ffccc230000)
        KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll (0x7ffccb590000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x7ffcb3ff0000)
        libfontconfig-1.dll => not found

$
```

Using the previous version, libfontconfig-devel-2.13.1-2, it is fine.

```
$ gcc -o foo foo.c -lfontconfig

$ ldd foo
        ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffccda50000)
        KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x7ffccc230000)
        KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll (0x7ffccb590000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x7ffcb3ff0000)
        cygfontconfig-1.dll => /usr/bin/cygfontconfig-1.dll (0x507fd0000)
        cygexpat-1.dll => /usr/bin/cygexpat-1.dll (0x5d5bf0000)
        cygfreetype-6.dll => /usr/bin/cygfreetype-6.dll (0x51c6b0000)
        cygintl-8.dll => /usr/bin/cygintl-8.dll (0x5ee2d0000)
        cyggcc_s-seh-1.dll => /usr/bin/cyggcc_s-seh-1.dll (0x50caa0000)
        cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3d2a10000)
        cygbrotlidec-1.dll => /usr/bin/cygbrotlidec-1.dll (0x42f930000)
        cygz.dll => /usr/bin/cygz.dll (0x597fd0000)
        cygbz2-1.dll => /usr/bin/cygbz2-1.dll (0x3e1e30000)
        cygpng16-16.dll => /usr/bin/cygpng16-16.dll (0x5a9870000)
        cygbrotlicommon-1.dll => /usr/bin/cygbrotlicommon-1.dll (0x4678a0000)

$
```

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libfontconfig-devel-2.15.0-1 links wrong DLL
  2024-03-05 11:48 libfontconfig-devel-2.15.0-1 links wrong DLL Masamichi Hosoda
@ 2024-03-05 13:10 ` Takashi Yano
  2024-03-08 12:53   ` libfontconfig-common-2.15.0-2 system font cache directory settings seem to be wrong Masamichi Hosoda
  0 siblings, 1 reply; 4+ messages in thread
From: Takashi Yano @ 2024-03-05 13:10 UTC (permalink / raw)
  To: cygwin

On Tue, 05 Mar 2024 20:48:38 +0900 (JST)
Masamichi Hosoda wrote:
> libfontconfig-devel-2.15.0-1 links wrong DLL (i.e. libfontconfig-1.dll)

Thanks for the report. I'll fix that and release version 2.15.0-2.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* libfontconfig-common-2.15.0-2 system font cache directory settings seem to be wrong
  2024-03-05 13:10 ` Takashi Yano
@ 2024-03-08 12:53   ` Masamichi Hosoda
  2024-03-08 13:23     ` Takashi Yano
  0 siblings, 1 reply; 4+ messages in thread
From: Masamichi Hosoda @ 2024-03-08 12:53 UTC (permalink / raw)
  To: cygwin

Hi

If I understand correctly,
the system font cache directory setting in /etc/fonts/fonts.conf
provided by libfontconfig-common-2.15.0-2 is wrong.

In /etc/fonts/fonts.conf provided by libfontconfig-common-2.13.1-2

```
       <cachedir>/var/cache/fontconfig</cachedir>
```

So `fc-cache -s` creates system font cache files in `/var/cache/fontconfig`.
It is correct because `/var/cache` is a common system cache directory.

In /etc/fonts/fonts.conf provided by libfontconfig-common-2.15.0-2

```
       <cachedir>LOCAL_APPDATA_FONTCONFIG_CACHE</cachedir>
```

So `fc-cache -s` creates system font cache files
in `./LOCAL_APPDATA_FONTCONFIG_CACHE`.
`LOCAL_APPDATA_FONTCONFIG_CACHE` directory is created
in the *current* directory when fc-cache.
It is wrong because it means that
processes with different current directories have
different system font cache directories,
and the caches are no longer shared.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libfontconfig-common-2.15.0-2 system font cache directory settings seem to be wrong
  2024-03-08 12:53   ` libfontconfig-common-2.15.0-2 system font cache directory settings seem to be wrong Masamichi Hosoda
@ 2024-03-08 13:23     ` Takashi Yano
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Yano @ 2024-03-08 13:23 UTC (permalink / raw)
  To: cygwin; +Cc: Masamichi Hosoda

On Fri, 08 Mar 2024 21:53:10 +0900 (JST)
Masamichi Hosoda wrote:
> Hi
> 
> If I understand correctly,
> the system font cache directory setting in /etc/fonts/fonts.conf
> provided by libfontconfig-common-2.15.0-2 is wrong.
> 
> In /etc/fonts/fonts.conf provided by libfontconfig-common-2.13.1-2
> 
> ```
>        <cachedir>/var/cache/fontconfig</cachedir>
> ```
> 
> So `fc-cache -s` creates system font cache files in `/var/cache/fontconfig`.
> It is correct because `/var/cache` is a common system cache directory.
> 
> In /etc/fonts/fonts.conf provided by libfontconfig-common-2.15.0-2
> 
> ```
>        <cachedir>LOCAL_APPDATA_FONTCONFIG_CACHE</cachedir>
> ```
> 
> So `fc-cache -s` creates system font cache files
> in `./LOCAL_APPDATA_FONTCONFIG_CACHE`.
> `LOCAL_APPDATA_FONTCONFIG_CACHE` directory is created
> in the *current* directory when fc-cache.
> It is wrong because it means that
> processes with different current directories have
> different system font cache directories,
> and the caches are no longer shared.

Thanks for the report. You are right.
I'll release 2.15.0-3 to fix that.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-08 13:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-05 11:48 libfontconfig-devel-2.15.0-1 links wrong DLL Masamichi Hosoda
2024-03-05 13:10 ` Takashi Yano
2024-03-08 12:53   ` libfontconfig-common-2.15.0-2 system font cache directory settings seem to be wrong Masamichi Hosoda
2024-03-08 13:23     ` Takashi Yano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).