[pacman-dev] Incremental builds
Hello. I have several software projects I end up building frequently. For quite awhile I had an alias, mkpkg that would do makepkg -sfiC. But then I came across a blog post about the pacman/makepkg 4.2.0 release supporting incremental builds. So I've since changed that alias to makepkg -sife. Eventually I realized that maybe it was enabled automatically.Though it would seem that it still isn't building incrementally. To confirm that I built mpv, once from the AUR and again directly from github. (I waited for some commits to be made to the master branch in both cases.) Building mpv from the AUR seemed to start from the beginning despite no messages being printed about the $srcdir being removed. Building directly from github was quicker (after being built once in both cases). So, are there some options I need to pass to makepkg enable incremental builds? -- *Yomi*
On 15/07/15 15:03, Yomi Ogunwumi wrote:
Hello. I have several software projects I end up building frequently. For quite awhile I had an alias, mkpkg that would do makepkg -sfiC. But then I came across a blog post about the pacman/makepkg 4.2.0 release supporting incremental builds. So I've since changed that alias to makepkg -sife.
Why -f -e?
Eventually I realized that maybe it was enabled automatically.Though it would seem that it still isn't building incrementally. To confirm that I built mpv, once from the AUR and again directly from github. (I waited for some commits to be made to the master branch in both cases.) Building mpv from the AUR seemed to start from the beginning despite no messages being printed about the $srcdir being removed. Building directly from github was quicker (after being built once in both cases).
I just ran "makepkg" on my pacman-git build where nothing had changed in the src/pacman directory: Making all in src/pacman Making all in po make[3]: Nothing to be done for 'all'. make[3]: Nothing to be done for 'all-am'. So it is working for me. Allan
On Wed, Jul 15, 2015 at 1:14 AM, Allan McRae <allan@archlinux.org> wrote:
On 15/07/15 15:03, Yomi Ogunwumi wrote:
Hello. I have several software projects I end up building frequently. For quite awhile I had an alias, mkpkg that would do makepkg -sfiC. But then I came across a blog post about the pacman/makepkg 4.2.0 release supporting incremental builds. So I've since changed that alias to makepkg -sife.
Why -f -e?
I had been following what I'd come across on the flyspray ticket I saw related to this, so I added -e to test. I can't seem to remember why I added -f to the alias, but I've removed it now.
Eventually I realized that maybe it was enabled automatically.Though it would seem that it still isn't building incrementally. To confirm that I built mpv, once from the AUR and again directly from github. (I waited for some commits to be made to the master branch in both cases.) Building mpv from the AUR seemed to start from the beginning despite no messages being printed about the $srcdir being removed. Building directly from github was quicker (after being built once in both cases).
I just ran "makepkg" on my pacman-git build where nothing had changed in the src/pacman directory:
Making all in src/pacman Making all in po make[3]: Nothing to be done for 'all'. make[3]: Nothing to be done for 'all-am'.
So it is working for me.
Allan
-- *Yomi*
participants (2)
-
Allan McRae
-
Yomi Ogunwumi