FS#65877 - [fontforge] 20200314-1 does not have include files

Attached to Project: Arch Linux
Opened by Akos Somfai (akossomfai) - Wednesday, 18 March 2020, 08:42 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 18 March 2020, 22:03 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
fontforge 20200314-1 does not have the files under /usr/include/fontforge; the previous version (20190801-2) had them.


## fontforge 20200314-1 ##
[root@somi-laptop /]# pacman -Ss fontforge
extra/fontforge 20200314-1 [installed]
Outline and bitmap font editor
[root@somi-laptop /]# ls -l /usr/include/fontforge
ls: cannot access '/usr/include/fontforge': No such file or directory
[root@somi-laptop /]#


## fontforge 20190801-2 ##
[somi@somi-laptop ~]$ sudo pacman -Ss fontforge
[sudo] password for somi:
extra/fontforge 20190801-2 [installed]
Outline and bitmap font editor
[somi@somi-laptop ~]$ ls -l /usr/include/fontforge/ | head
total 668
-rw-r--r-- 1 root root 4514 Nov 4 20:31 autowidth2.h
-rw-r--r-- 1 root root 2653 Nov 4 20:31 autowidth.h
-rw-r--r-- 1 root root 16786 Nov 4 20:31 baseviews.h
-rw-r--r-- 1 root root 3940 Nov 4 20:31 basics.h
-rw-r--r-- 1 root root 369 Nov 4 20:31 bezctx_ff.h
-rw-r--r-- 1 root root 2031 Nov 4 20:31 bitmapcontrol.h
-rw-r--r-- 1 root root 366 Nov 4 20:31 carbon.h
-rw-r--r-- 1 root root 4671 Nov 4 20:31 chardata.h
-rw-r--r-- 1 root root 3424 Nov 4 20:31 charset.h
[somi@somi-laptop ~]$ sudo pacman -Qo /usr/include/fontforge/autowidth2.h
/usr/include/fontforge/autowidth2.h is owned by fontforge 20190801-2
[somi@somi-laptop ~]$
This task depends upon

Closed by  Gaetan Bisson (vesath)
Wednesday, 18 March 2020, 22:03 GMT
Reason for closing:  Upstream
Comment by Gaetan Bisson (vesath) - Wednesday, 18 March 2020, 18:34 GMT
Upstream has switched their build system to cmake. It could be I'm using it wrong or they've forgotten about the include files. I'll have a look. Cheers.
Comment by Gaetan Bisson (vesath) - Wednesday, 18 March 2020, 19:15 GMT
The new build system does not seem to allow installing header files:
- There's FONTFORGE_INST_HEADERS defined in fontforge/CMakeLists.txt which includes autowidth.h, bitmapcontrol.h, etc. But it's apparently never used for installation.
- In inc/CMakeLists.txt there's also nothing for installing basics.h, carbon.h, etc.

Could you please report this upstream?
Comment by Akos Somfai (akossomfai) - Wednesday, 18 March 2020, 21:06 GMT
https://github.com/fontforge/fontforge/pull/3855
"The only major exclusion compared to autotools is it does not install headers and pkgconfig details. While it is certainly possible to mimic the old behaviour, I'm not seeing much reason to make libfontforge something that can be developed against. As seen in #3823, FontForge isn't well designed to be used in external projects, and we provide no stability guarantees over what is effectively internal interfaces. I doubt that we even export all required headers at the moment."

So it looks to be intentional in the upstream.
Thanks Gaetan for checking it also. Ticket can be closed.
Comment by Gaetan Bisson (vesath) - Wednesday, 18 March 2020, 22:03 GMT
Thanks Akos.

Loading...