Package Details: makepkg-optimize 21-1

Git Clone URL: https://aur.archlinux.org/makepkg-optimize.git (read-only, click to copy)
Package Base: makepkg-optimize
Description: Supplemental build and packaging optimizations for makepkg
Upstream URL: https://wiki.archlinux.org/index.php/Makepkg-optimize
Licenses: GPL
Submitter: quequotion
Maintainer: quequotion
Last Packager: quequotion
Votes: 17
Popularity: 0.000022
First Submitted: 2016-03-20 15:08 (UTC)
Last Updated: 2022-01-09 15:05 (UTC)

Dependencies (6)

Required by (0)

Sources (20)

Pinned Comments

quequotion commented on 2019-02-27 07:49 (UTC) (edited on 2022-01-09 13:20 (UTC) by quequotion)

makepkg-optimize is a collection of libmakepkg tidy, buildenv, and executable extensions, and a supplement to pacman. These enable various optimization routines for building and packaging such as upx compression, profile guided optimization, polyhedral model optimization, etc..

Note: Over-optimization is a thing, and it is not good.

See the wiki article for details.

Note to packagers: makepkg-optmize's macros may be enabled or disabled in options() as well!

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

quequotion commented on 2021-03-04 03:38 (UTC)

@Tjuh

@brikler is correct, upx itself does not discriminate, but some kinds of executables will fail to run if compressed.

To be honest, documentation on this topic is lacking. There are a few links in these comments, as well as instructions for how to add new filetypes.

If you find any new filetype that works (compressed executables run), let me know.

Same if you find a problem with my script. I have been over this particular part of it countless times. Upstream discarded this, maybe they had reasons (never found any discussion of it).

brikler commented on 2021-03-02 13:14 (UTC)

@Tjuh makepkg-optimze tests the file before compress but upx doesn't test and you can compress every compressible file. you can test the file type with: file --brief --mime-type <fileToTest>

Tjuh commented on 2021-03-02 12:34 (UTC)

Are you sure about that? I tried a couple of times to manually compress files which makepkg gave a warning about not being able to compress and they compressed just fine with upx --ultra-brute filename.

brikler commented on 2021-03-02 09:24 (UTC) (edited on 2021-03-02 09:26 (UTC) by brikler)

@Tjuh what do you mean? not compressed binaries? makepkg-optimize only compress binaries from the type application/x-executable but not application/x-sharedlib and the most binaries are from the type x-sharedlib

Tjuh commented on 2021-03-01 17:38 (UTC)

Have not been able to properly use upx in months and think because of this pkg, can anyone confirm please?

homocomputeris commented on 2020-07-03 15:36 (UTC) (edited on 2020-07-03 15:37 (UTC) by homocomputeris)

oxipng claims to be significantly faster than optipng. Could you consider adding it as an optional dependency?

quequotion commented on 2020-06-11 11:40 (UTC) (edited on 2020-06-11 11:42 (UTC) by quequotion)

@brikler

See commentary on the additional buildenv options; because clang and gcc are inexplicably not using equivalent flags for equivalent functions, and there is no mechanism for makepkg to detect which toolchain is to be used, I have been forced to make a completely different set of options for clang.

You want lto-thin-clang and poly.

brikler commented on 2020-06-05 14:28 (UTC)

to day i wanted to try lto-thin but it seems clang doesn't work with graphite

  clang-10: error: unknown argument: '-fgraphite-identity'
    clang-10: error: unknown argument: '-floop-interchange'
    clang-10: error: unknown argument: '-floop-nest-optimize'
    clang-10: error: unknown argument: '-floop-parallelize-all'
    clang-10: error: unknown argument: '-ftree-loop-distribution'
    clang-10: error: unknown argument: '-ftree-parallelize-loops=2'
    clang-10: error: unsupported argument 'auto' to option 'flto='
BUILDENV=(!distcc color !ccache check !sign lto-thin graphite !pgo)
[tom@donar compiz]$ pacman -Q clang
clang 10.0.0-3