You are not logged in.
I was using a personal script that I wrote from scratch to simplify building in a clean chroot.
It's still not as flexible as I would like it, but it essentially accomplishes what my modifications to Atsutane's original wrapper did, just in 160 less lines of code.
Thought I would share it with you
Script can be found at:
http://github.com/gostrc/makizushi
Quickstart:
add ". .makizushi" to your .bashrc or .bash_profile
run . .makizushi to source the script
to build packages for all architectures:
run newchrs to create the default 32 and 64 bit clean chroots
run mkchrs in a directory with a PKGBUILD to create packages for both architectures
to build a package for a single package:
run mkchr chrootname
= functions =
newchr - will create all clean chroots
upchr - will update all clean chroots
mkchr - will create a package for all clean chroots
mkdchr- same as mkchr but doesn't clean the chroot (useful with the -I option)
NOTE: if you pass along any parameters, the first parameter's name is the name of the clean chroot, all other parameters will be passed to makechrootpkg
db-aur - used to release packages for people who have access to the community server
= variables =
chrootdir - the directory you want to use to store the clean chroots (default is /var/mychroots)
chroots - an associative array (bash 4 \o/) which contains keys that point to the clean chroot name and values point to the target architecture of that clean chroot (conceptual explanation)
packager - your info
makeflags - the ??? in arch's plan for world domination
I would like to hear any suggestions, comments, and even success (or failure) storries
Of course patches are welcome.
Cheers!
Last edited by tomd123 (2010-09-07 23:09:54)
Offline
Will take a look at it. Looks like a nice job so far.
Offline
The idea is nice, however it doesn't seem to support custom/default pacman.conf. As you surely know, it's not uncommon for devs and TUs to run [testing] on their machines, and if they use this script they'll get a [testing]-enabled chroot, which is not useful if building for a repo...
I will see if I can modify the code to support this. Maybe adding another variable would be enough, even though I'd like to customize all my chroots by enabling/disabling specific repos, like:
[chroot1]
Arch = x86_64
Repos = core extra community
[chroot2]
Arch = x86_64
Repos = testing core extra community
It would be nice to have the automatic creation of an appropriate pacman.conf with the default values and the corresponding repos... what do you think?
dreaming in digital / living in realtime / thinking in binary / talking in ip / welcome to our world
Offline
hey bardo,
That does sounds desirable and I have thought about adding it myself. The only reason why it's not in the scripts is because I couldn't figure out a good way to add them.
If you ever do implement this, let me know. I'll probably accept it if it works
Cheers!
Offline
What's the problem you cannot use the archbuild scripts like extra-i686-build that come with devtools? (means I am asking for feedback to improve devtools)
Offline
Well, the reason why I wrote this is because it simplified a lot of things for me, without sacrificing functionality.
For instance, having to manually specify the root each time you want to build.
Edit: Also, my scripts are non-interactive. I never saw the point of having to press enter over and over during the build process.
Last edited by tomd123 (2010-09-18 05:22:06)
Offline
@tomd123
I'm also making a auto build bot for archlinux. Here is the link to the info to my script:
https://bbs.archlinux.org/viewtopic.php?id=104084
I hope it helps.
I'm working on a live cds based on Archlinux. http://godane.wordpress.com/
Offline
Well, the reason why I wrote this is because it simplified a lot of things for me, without sacrificing functionality.
For instance, having to manually specify the root each time you want to build.Edit: Also, my scripts are non-interactive. I never saw the point of having to press enter over and over during the build process.
I don't get it at all. devtools are non-interactive and don't require you to specify any parameters. In fact I cannot think of anything more simple. Are you sure we are talking about the same scripts? E.g. just type extra-i686-build within a pkgbuild dir. This will automatically create a chroot if its not there with some defined settings and build the package for you.
Offline
ok, so that worked
But also, I'm missing the ability to add options to extra-i686-build. like -I or -L
Offline