Re: [arch-general] makepkg - any way to recompile only newly patched files in large packages?

2017-08-08 Thread David C. Rankin
On 08/07/2017 09:36 AM, Eli Schwartz wrote:
> You could also use `makepkg --noextract` which assumes you applied the
> fix by hand rather than in the PGBUILD, which is probably safer as it
> skips prepare(), and in theory re-running configure should not cause
> Make to expire all object files (though with autotools who really knows...)
> 

That is one thing I didn't consider. It has always been beaten into my head
that you don't touch the original source and you take the time to create a
.patch to be applied though prepare().

I guess this is one instance where it would make sense to actually edit the
files in the source-tree directly in order to skip prepare.

Thanks.

> Aside: repackage does not do what you want, since it doesn't rebuild
> anything. Granted, Makefiles usually have the install target depend on
> the default target, so it would probably end up being built too... in
> fakeroot...

Yes, the reference to --repackage was just a way of describing the state of
the build directory. Repackaging the same executables hoping something changed
is as productive as trying to destroy a shot-put with a rubber hammer...


-- 
David C. Rankin, J.D.,P.E.



signature.asc
Description: OpenPGP digital signature


Re: [arch-general] makepkg - any way to recompile only newly patched files in large packages?

2017-08-08 Thread David C. Rankin
On 08/07/2017 06:06 AM, Christoph Gysin via arch-general wrote:
> Not the answer to your question, but you might consider configuring
> /etc/makepkg.conf to use ccache to speed up rebuilds. Also set
> MAKEFLAGS=-j4 or similar to make sure you are using all available
> cores.

Thanks Cristoph,

  How do you know whether a package is capable of being built in parallel?
I've run into problems before with big builds when building in parallel. Is it
just a 'try and see if it works' issue, or is there some general rule-of-thumb
you can use?

-- 
David C. Rankin, J.D.,P.E.