Search Criteria
Package Details: crowbook 0.16.1-0
Package Actions
Git Clone URL: | https://aur.archlinux.org/crowbook.git (read-only, click to copy) |
---|---|
Package Base: | crowbook |
Description: | Converts books written in Markdown to HTML, LaTeX/PDF and EPUB |
Upstream URL: | https://github.com/lise-henry/crowbook |
Licenses: | LGPL |
Submitter: | stefan0xC |
Maintainer: | stefan0xC |
Last Packager: | stefan0xC |
Votes: | 1 |
Popularity: | 0.000000 |
First Submitted: | 2020-08-29 23:50 (UTC) |
Last Updated: | 2023-08-04 02:35 (UTC) |
Dependencies (2)
- cargo (rustup-gitAUR, rust-nightly-binAUR, rust-gitAUR, rust-beta-binAUR, rust, rustup) (make)
- texlive-latexextra (texlive-installerAUR, texlive-fullAUR, texlive-dummyAUR) (optional) – create PDF
Latest Comments
dreieck commented on 2022-10-16 19:11 (UTC) (edited on 2022-10-18 10:04 (UTC) by dreieck)
~
git
needs to be a make dependency since you download the source via git.~↑ Addendum: OK, you changed now the source URL to a
.tar.gz
download. Also a way to solve the problem, and this also allows for checksum test ;-). Thanks!dreieck commented on 2022-10-16 18:32 (UTC)
Ahoj @stefan0xC,
yes, → the
error[E0512]
problem is gone now, thanks.I also added to the
PKGBUILD
(needs to be put inside the functions, since$srcdir
is only defined within them)so not
~/.cargo
gets cluttered but everything stays nicely self-contained within$srcdir
. → PKGBUILD
patch, → PKGBUILD
.Regarding → the older issue with the linking:
I have added
-ffat-lto-objects
to theCFLAGS
(why are theCFLAGS
important ifrust
is used as a compiler?), compilation works now for me.Regards!
stefan0xC commented on 2022-10-16 10:33 (UTC) (edited on 2022-10-16 10:49 (UTC) by stefan0xC)
@dreieck: This is due to a breaking change in rust 1.64. So we have to update the dependencies. Can you check if it builds for you now and maybe also report the issue upstream? I think the issue is already fixed in the main branch so we'd just need a new release.
dreieck commented on 2022-10-15 14:58 (UTC) (edited on 2022-10-15 14:58 (UTC) by dreieck)
Now I get another error, which seems to be an upstream error:
Build fails for me with
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
:Output of
rustc --explain E0512
:Regards!
stefan0xC commented on 2022-09-19 04:32 (UTC)
Can you try with either adding
-ffat-lto-objects
or removing-flto
from CFLAGS?dreieck commented on 2022-09-18 16:05 (UTC) (edited on 2022-09-18 16:06 (UTC) by dreieck)
Yes:
In
/etc/makepkg.conf
:CFLAGS=" -g0 -march=x86-64 -mtune=native -O3 -flto -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC"
CXXFLAGS="-g0 -march=x86-64 -mtune=native -O3 -flto -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -fpermissive"
RUSTFLAGS="-C opt-level=3 -C debuginfo=0"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu"
CGO_CPPFLAGS="${CPPFLAGS}"
CGO_CFLAGS="${CFLAGS}"
CGO_CXXFLAGS="${CXXFLAGS}"
CGO_LDFLAGS="${LDFLAGS}"
GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
MAKEFLAGS="-j4"
DEBUG_CFLAGS=" -Og -fno-lto -gdwarf-5 -ggdb -gno-strict-dwarf -g3 -gpubnames -grecord-gcc-switches -fno-eliminate-unused-debug-symbols -fvar-tracking -fvar-tracking-assignments -fdebug-types-section -fno-stack-protector -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0 -DDEBUG"
DEBUG_CXXFLAGS="-Og -fno-lto -gdwarf-5 -ggdb -gno-strict-dwarf -g3 -gpubnames -grecord-gcc-switches -fno-eliminate-unused-debug-symbols -fvar-tracking -fvar-tracking-assignments -fdebug-types-section -fno-stack-protector -fno-omit-frame-pointer -D_FORTIFY_SOURCE=0 -DDEBUG"
DEBUG_RUSTFLAGS="-C opt-level=0 -C debuginfo=2"
DEBUG_LDFLAGS="${_LDFLAGS}"
DEBUG_MAKEFLAGS="-j1 V=sc"
If I set
in the
build()
function, I still get the errors (having cleaned up build directories byrm -R src pkg
before).Hm.
stefan0xC commented on 2022-08-26 01:01 (UTC)
I've added
RUSTUP_TOOLCHAIN=stable
which should make it compatible withrustup
. Not sure if I can really help with the linking issue. Did you change some compiler flags?dreieck commented on 2022-08-25 20:26 (UTC)
build()
fails for me while linking:Regards!
dreieck commented on 2022-08-25 19:44 (UTC) (edited on 2022-08-25 19:48 (UTC) by dreieck)
I get the following error:
I had
rustup
instead ofrust
installed, it was still lying around from another package'smakedepends
. Installingrust
did solve the problem. -- Sad that they are notmakeconflicts
, otherwise you could excluderustup
explicitly.Btw., as we are at Rust:
Can you make that all the stuff that Rust downloads is already present when
build()
is started? E.g. download inprepare()
to some sub-directory below$srcdir
? That would make things cleaner and allowsbuild()
without internet access.Thanks for maintaining!,
regards.
charlesjohnson commented on 2022-08-22 16:46 (UTC) (edited on 2022-08-22 16:47 (UTC) by charlesjohnson)
texlive-latexextra
should be an optional dependency because without it, it fails on output to pdf with! LaTeX Error: File 'hyphenat.sty' not found.