You are not logged in.

#1 2021-12-18 02:24:13

mahdi
Member
Registered: 2021-12-17
Posts: 40

[solved] pacman-bintrans different sizes

pacman-bintrans package size: 4.8 MB

but using `$ cargo build` on github repo result a 83 MB executable

why?

Last edited by mahdi (2021-12-18 08:07:13)

Offline

#2 2021-12-18 02:56:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,500
Website

Re: [solved] pacman-bintrans different sizes

If you really just used a plain `cargo build` that'd probably be why - you should do a release build, and you can check the PKGBUILD to confirm exactly how it is built.  I'd guess you also didn't strip the binary, but even that'd only account for about 10MB as seen below which is built just from a git clone.

$ ls -lh target/release/pacman-bintrans
-rwxr-xr-x    2 jmcclure jmcclure   14.4M Dec 17 20:53 target/release/pacman-bintrans*

$ strip target/release/pacman-bintrans

$ ls -lh target/release/pacman-bintrans
-rwxr-xr-x    2 jmcclure jmcclure    4.8M Dec 17 20:53 target/release/pacman-bintrans*

Last edited by Trilby (2021-12-18 03:00:37)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2021-12-18 08:07:36

mahdi
Member
Registered: 2021-12-17
Posts: 40

Re: [solved] pacman-bintrans different sizes

Thank you You were right

(I'm not expert)

Offline

Board footer

Powered by FluxBB