You are not logged in.

#1 2024-03-25 08:39:05

topasiss
Member
Registered: 2022-08-08
Posts: 57

[SOLVED] Binary in pkg smaller than the built one in src

I am maintaining a package for a freespace 2 mod manager in the aur.
I build it in a clean chroot using the extra script from devtools.

That worked for the past versions of the package.

Today I discovered that the binary in the pkg directory only about 100 KB in size while the built binary in the src directory is about 63 MB.
The installed binary of course doesn't work. The built binary works.

I use the install command (you can inspect the PKGBUILD in the AUR) to copy the binary from the src to the pkg directory.
Can someone give me some hint on what is going on here? It is only a copy - why is the file changed afterwards?
Were there some changes in the arch build process or makepkg that trigger a strip somewhere, other than what can be disabled using the !strip option?
I also tried to use the cp command and tried to mv the file over - without success.
The package is setup up to not strip binaries (option: !strip). This option would affect the build and not the package creation.

Last edited by topasiss (2024-03-25 09:28:20)

Offline

#2 2024-03-25 09:27:58

topasiss
Member
Registered: 2022-08-08
Posts: 57

Re: [SOLVED] Binary in pkg smaller than the built one in src

Seems to be a pacman makepkg issue.

Offline

#3 2024-03-25 10:12:24

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,458
Website

Re: [SOLVED] Binary in pkg smaller than the built one in src

Used "options=(!debug)" in the PKGBUILD until the fixed debugedit package is released.

Offline

Board footer

Powered by FluxBB