[aur-general] Convention question
I was making my first svn package and I used some examples I found online. The abiword-svn package removes the svn directory at the end of the package build. Is that the correct thing to do? It does not make sense to me. The abiword package is at http://aur.archlinux.org/packages.php?ID=34444 And the new package I created is at http://aur.archlinux.org/packages.php?ID=37712 -- Stephen
On 05/31/2010 06:11 PM, Stephen Weinberg wrote:
I was making my first svn package and I used some examples I found online. The abiword-svn package removes the svn directory at the end of the package build. Is that the correct thing to do? It does not make sense to me.
The abiword package is at http://aur.archlinux.org/packages.php?ID=34444
And the new package I created is at http://aur.archlinux.org/packages.php?ID=37712
-- Stephen
the convention is in /usr/share/pacman/PKGBUILD-svn.proto that file is owned by abs -- Ionut
On Mon, 31 May 2010 18:13:48 +0300 Ionut Biru <biru.ionut@gmail.com> wrote:
On 05/31/2010 06:11 PM, Stephen Weinberg wrote:
I was making my first svn package and I used some examples I found online. The abiword-svn package removes the svn directory at the end of the package build. Is that the correct thing to do? It does not make sense to me.
The abiword package is at http://aur.archlinux.org/packages.php?ID=34444
And the new package I created is at http://aur.archlinux.org/packages.php?ID=37712
-- Stephen
the convention is in /usr/share/pacman/PKGBUILD-svn.proto
that file is owned by abs
I know. I read that when making mine. I am wondering why that package deletes the source when it is done with it. It makes more sense to update the svn when you rebuild the package instead of redownloading the whole thing.
Am 31.05.2010 17:39, schrieb Stephen Weinberg:
On Mon, 31 May 2010 18:13:48 +0300 Ionut Biru<biru.ionut@gmail.com> wrote:
On 05/31/2010 06:11 PM, Stephen Weinberg wrote:
I was making my first svn package and I used some examples I found online. The abiword-svn package removes the svn directory at the end of the package build. Is that the correct thing to do? It does not make sense to me.
The abiword package is at http://aur.archlinux.org/packages.php?ID=34444
And the new package I created is at http://aur.archlinux.org/packages.php?ID=37712
-- Stephen
the convention is in /usr/share/pacman/PKGBUILD-svn.proto
that file is owned by abs
I know. I read that when making mine. I am wondering why that package deletes the source when it is done with it. It makes more sense to update the svn when you rebuild the package instead of redownloading the whole thing.
Hello, the only rm I see is rm -rf "$srcdir/$_svnmod-build" That makes sense, since it deletes the .o files and binaries you got from a previous build. The svn commands write to "$srcdir/$_svnmod". Regards Stefan
Stephen Weinberg wrote:
I know. I read that when making mine. I am wondering why that package deletes the source when it is done with it. It makes more sense to update the svn when you rebuild the package instead of redownloading the whole thing.
Right. You shouldn't delete your svn checkout after building the source. However, you should copy the source to a second directory. Do the build in that directory, to avoid polluting your checkout. That's how things are done in /usr/share/pacman/PKGBUILD-svn.proto. The code in that prototype also removes any build directory left from a previous run of makepkg. -- Chris
On Mon, 31 May 2010 11:00:53 -0500 Chris Brannon <cmbrannon79@gmail.com> wrote:
Stephen Weinberg wrote:
I know. I read that when making mine. I am wondering why that package deletes the source when it is done with it. It makes more sense to update the svn when you rebuild the package instead of redownloading the whole thing.
Right. You shouldn't delete your svn checkout after building the source. However, you should copy the source to a second directory. Do the build in that directory, to avoid polluting your checkout. That's how things are done in /usr/share/pacman/PKGBUILD-svn.proto. The code in that prototype also removes any build directory left from a previous run of makepkg.
-- Chris
That makes sense. I need to change my package. But the pkgbuild I pointed to just deletes the main checkout. http://aur.archlinux.org/packages/abiword-svn/abiword-svn/PKGBUILD http://aur.archlinux.org/packages/abiword-svn/abiword-svn/PKGBUILD
Stephen Weinberg wrote:
That makes sense. I need to change my package. But the pkgbuild I pointed to just deletes the main checkout. http://aur.archlinux.org/packages/abiword-svn/abiword-svn/PKGBUILD http://aur.archlinux.org/packages/abiword-svn/abiword-svn/PKGBUILD
That package should probably be changed. You can't necessarily rely on PKGBUILDs from the AUR for your examples. I'd say that you are better off sticking with the prototypes in /usr/share/pacman. The wiki also contains some great pages, when you need further clarification. You might find the following useful: <http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines> -- Chris
participants (4)
-
Chris Brannon
-
Ionut Biru
-
Stefan Husmann
-
Stephen Weinberg