FS#64823 - [spdlog] Fresh install of spdlog is missing a directory in /usr/include

Attached to Project: Community Packages
Opened by Eldred Habert (ISSOtm) - Thursday, 12 December 2019, 21:29 GMT
Last edited by Brett Cornwall (ainola) - Tuesday, 21 January 2020, 00:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Brett Cornwall (ainola)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Impossible to use spdlog in a C++ project after installing it via pacman. A directory appears to be missing, while upstream has it (see below).

Additional info:
* spdlog-1.4.2-2
* Fresh (first-time) install; reinstalling did not fix the issue. I would assume the "first install" being why this bug hasn't been reported before, but that's only an educated guess.

Steps to reproduce:
1. `pacman -S spdlog` while having it not installed on the machine
2. `g++ <some file including spdlog/spdlog.h>`
```
In file included from /usr/include/spdlog/common.h:38,
from /usr/include/spdlog/spdlog.h:12,
from /home/issotm/musicbot/musicbotd/src/main.cpp:2:
/usr/include/spdlog/fmt/fmt.h:22:10: fatal error: bundled/core.h: No such file or directory
22 | #include "bundled/core.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
```
3. `ls /usr/include/spdlog/fmt`
```
bin_to_hex.h fmt.h ostr.h
```
4. In a temp dir: `wget https://github.com/gabime/spdlog/releases/tag/v1.4.2.zip` then `unzip v1.4.2.zip`
5. `ls spdlog-1.4.2/include/spdlog/fmt`
```
bin_to_hex.h bundled fmt.h ostr.h
```
This task depends upon

Closed by  Brett Cornwall (ainola)
Tuesday, 21 January 2020, 00:16 GMT
Reason for closing:  Won't implement
Additional comments about closing:  That's because we don't bundle fmt. You'll need to bug upstream to fix this silly behavior. Take a look in the header file and you'll see that you need to define -DSPDLOG_FMT_EXTERNAL=ON when using e.g. Cmake.

See this issue for more discovery:

https://github.com/gabime/spdlog/issues/ 1146

Loading...