[pacman-dev] makepkg: package splitting
I have finished implementing the basics of package splitting in
makepkg. Everything works as expected when just making packages and
capturing logs but there is some small output issues that need tidying
up and checking that other functionality work (e.g. repackaging is an
issue....)
Anyway you can see the work on my "splitpkg" branch:
http://dev.archlinux.org/~allan/gitweb/gitweb.cgi?p=pacman.git;a=shortlog;h=...
For your interest, I have attached the same package written in three
different ways to show you what makepkg can now do:
PKGBUILD.1 - Traditional build
PKGBUILD.2 - Splitting the packaging step from build step. Limits
fakeroot usage
PKGBUILD.3 - Package splitting
# $Id: PKGBUILD 366 2008-04-19 13:01:23Z travis $
# Maintainer: Allan McRae
On Sun, Dec 7, 2008 at 8:35 PM, Allan McRae
I have finished implementing the basics of package splitting in makepkg. Everything works as expected when just making packages and capturing logs but there is some small output issues that need tidying up and checking that other functionality work (e.g. repackaging is an issue....)
I like the PKGBUILD format. It seems nice. What happens, though, with packages that have goofy chars in the name? say... libsigc++ - let's pretend I wanted to split that. Do we have a workaround?
Aaron Griffin wrote:
On Sun, Dec 7, 2008 at 8:35 PM, Allan McRae
wrote: I have finished implementing the basics of package splitting in makepkg. Everything works as expected when just making packages and capturing logs but there is some small output issues that need tidying up and checking that other functionality work (e.g. repackaging is an issue....)
I like the PKGBUILD format. It seems nice. What happens, though, with packages that have goofy chars in the name? say... libsigc++ - let's pretend I wanted to split that. Do we have a workaround
Do we need a workaround? test.sh: #! /bin/bash a+() { echo "Function with goofy chars works" } a+ [EOF]
./test.sh Function with goofy chars works
On Mon, Dec 8, 2008 at 7:46 PM, Allan McRae
Aaron Griffin wrote:
On Sun, Dec 7, 2008 at 8:35 PM, Allan McRae
wrote: I have finished implementing the basics of package splitting in makepkg. Everything works as expected when just making packages and capturing logs but there is some small output issues that need tidying up and checking that other functionality work (e.g. repackaging is an issue....)
I like the PKGBUILD format. It seems nice. What happens, though, with packages that have goofy chars in the name? say... libsigc++ - let's pretend I wanted to split that. Do we have a workaround
Do we need a workaround?
test.sh: #! /bin/bash
a+() { echo "Function with goofy chars works" }
a+ [EOF]
./test.sh Function with goofy chars works
Well, color me stupid! I thought bash functions used C restrictions... alphanumeric and underscore.
participants (2)
-
Aaron Griffin
-
Allan McRae