Re: A strange cmake problem
Ionen Wolkens <[email protected]> Sun, 21 Jun 2026 02:45:29 -0400
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <ajeIiRzB_MspZmrd@eversor> |
On Sun, Jun 21, 2026 at 06:18:43AM +0000, Andrey Grozin wrote:
> Hello *,
>
> I'm trying to bump wxmaxima to 26.06.2. Renaming
> wxmaxima-26.05.0-r1.ebuild -> wxmaxima-26.06.2.ebuild should work. But I
> get
>
> CMake Error at data/CMakeLists.txt:47 (add_custom_command):
> add_custom_command called with wrong number of arguments.
>
> The relevant part of data/CMakeLists.txt is
>
> # Compress man pages
> add_custom_command(
> OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.1.gz"
> COMMAND gzip -cn9 "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.1" > "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.1.gz"
> DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.1"
> COMMENT "Compressing man page"
> )
> add_custom_target(generate_man ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.1.gz")
If you tried without the ebuild, it probably works fine because the
problem is in the ebuild that you renamed itself, not cmake.
It has a sed that modifies data/CMakeLists.txt depending on LINGUAS (po)
and then the de/wxmaxima.1 command becomes:
add_custom_command(
COMMENT "Compressing German man page"
)
Which is clearly wrong.
--
ionen
signature.asc
(application/pgp-signature, 525 B)
-----BEGIN PGP SIGNATURE----- iQFPBAABCAA5FiEEx3SLh1HBoPy/yLVYskQGsLCsQzQFAmo3iIgbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwyAAoJELJEBrCwrEM0Kx4H/AxfO5zmAZFgTYrvnugJ h2c21TFCMKHha1dnYLdEwEEu5Nrw4VAiDQx7AMC2loj83bPePu/K0fNoSlXAvgdU an07ANjjEFtTw+yiZ+TtoXBCR8dlmKDwRkIbh0WSq+weaUFAziBgH94qKPirfN1C gDot8R+liMwieRzi+lm4wIx/bdNIuzuliOUdSqPSpP3Ts6oDHW8VYk3oM4Jtaj2i 1IbCdJNbqRGczXuE04lGb9I20Rd+QCw6He62Xzyq2LXWHTUaXnUe207hr3HqEB7k KpE1bcQWZb6/UqEnFITfsd/3z3HdgbikADBmySi/kObDVxkw3gsVx4J0i/TsJjT5 4Z8= =bj43 -----END PGP SIGNATURE-----