Difference between revisions of "Talk:Makepkg"

From ArchWiki
Jump to: navigation, search
(updpkgsums is gone: re)
m (updpkgsums is gone: remove closed discussion)
 
Line 15: Line 15:
 
A feature to be aware of: do not be surprised if the UPX option does not compress your gcc binary because it only detects files that are of mime type 'application/x-executable' | 'application/x-dosexec' while gcc unless instructed otherwise would create by default a binary 'application/x-sharedlib'.
 
A feature to be aware of: do not be surprised if the UPX option does not compress your gcc binary because it only detects files that are of mime type 'application/x-executable' | 'application/x-dosexec' while gcc unless instructed otherwise would create by default a binary 'application/x-sharedlib'.
 
This is visible in {{ic|/usr/share/makepkg/tidy/upx.sh}} [[User:Kewl|Kewl]] ([[User talk:Kewl|talk]]) 15:33, 1 January 2018 (UTC)
 
This is visible in {{ic|/usr/share/makepkg/tidy/upx.sh}} [[User:Kewl|Kewl]] ([[User talk:Kewl|talk]]) 15:33, 1 January 2018 (UTC)
 
== <s>updpkgsums is gone</s> ==
 
 
pacman-git no longer provides the updpkgsums utility. I suspect the developers intend to do away with it (like mksrcinfo). I don't know what drives Arch devs to make things less convenient for themselves, but I accept it. The wiki will eventually need to be updated with a better way to update source hash sums; they can be generated with {{ic|makepkg -g}}, but you'll need some sed magic or otherwise to get the equivalent convenience of putting them in the right place in the PKGBUILD and removing the old sums. [[User:Quequotion|quequotion]] ([[User talk:Quequotion|talk]]) 10:49, 21 February 2018 (UTC)
 
:Except it's not gone, just moved to pacman-contrib [[User:Scimmia|Scimmia]] ([[User talk:Scimmia|talk]]) 13:46, 21 February 2018 (UTC)
 
::I see, so the wiki will be needing either an update to specify that this utility comes from pacman-contrib, or that tells users pacman-contrib is required, if not an alternative means of doing this with {{ic|makepkg -g}} anyway. [[User:Quequotion|quequotion]] ([[User talk:Quequotion|talk]]) 14:06, 21 February 2018 (UTC)
 
 
:::Congratulations for noticing a [https://git.archlinux.org/pacman.git/commit/?id=0c99eabd50752310f42ec808c8734a338122ec86 1.3 year old commit]. We'll deal with this when the time comes... [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 16:39, 21 February 2018 (UTC)
 

Latest revision as of 15:58, 17 March 2018

optimized package options

Just to double check: the CFLAGS of /etc/makepkg.conf is overwritten by the CFLAGS that can be found in the Makefile provided with the source. This makes it ineffective as soon as a Makefile is provided, is it correct? Should it be mentioned in this case?

Kewl (talk) 10:38, 1 January 2018 (UTC)

Makefiles can just extend the environment's CFLAGS by not doing any explicit assignment, but using operators like ?= or += instead. See also [1]. -- Lahwaacz (talk) 12:11, 1 January 2018 (UTC)
Thanks that clarifies, do you think the wiki is clear enough or is it worth adding a comment about it or a link? Kewl (talk) 15:28, 1 January 2018 (UTC)
Well, the general note in the section is good enough for me, but feel free to add a comment... -- Lahwaacz (talk) 16:42, 1 January 2018 (UTC)

upx

A feature to be aware of: do not be surprised if the UPX option does not compress your gcc binary because it only detects files that are of mime type 'application/x-executable' | 'application/x-dosexec' while gcc unless instructed otherwise would create by default a binary 'application/x-sharedlib'. This is visible in /usr/share/makepkg/tidy/upx.sh Kewl (talk) 15:33, 1 January 2018 (UTC)