You are not logged in.
Hello,
I just tried frugalware. The speed and all is the same, but one feature that shines is .. makepkg. Their makepkg has been modified to simplify the PKGBUILDs a lot. Like
cd $startdir/src becomes "Fcd"
Similarly they have Fsed, Fpatchall and so on. It really makes pkgbuilds simple and readable. Is someone interested in the porting process ? I will help the best I can. You can check out their "fwmakepkg" here...
http://darcs.frugalware.org/darcsweb/da … /fwmakepkg
Cheers,
Rohan.
Edit: Waiting for AndyRTR to vote yes
Edit2: I made a very big mistake ... For details, please see this post ..
http://bbs.archlinux.org/viewtopic.php?p=155429#155429
However, that does not change what i said above
Offline
I don't meant to sound like a shithead but if you like Frugal, why not use Frugal? I've been talking to vmiklos and crazy on IRC lately and they have a solid distro up and running, I'm impressed. Have you tried just using the fwmakepkg script in Arch? If anything you'd probably just need to remove any references it has to the archs var as it's the only once required that Arch doesn't have.
Offline
I don't meant to sound like a shithead but if you like Frugal, why not use Frugal?
Maybe because he likes Arch? They do have their differences you know, and reccomending someone to change, because of some minor improvements in makepkg... is a bit ignorant.
I've been talking to vmiklos and crazy on IRC lately and they have a solid distro up and running, I'm impressed. Have you tried just using the fwmakepkg script in Arch? If anything you'd probably just need to remove any references it has to the archs var as it's the only once required that Arch doesn't have.
These would be simple to add. Although I wouldnt be surprised if you could just use the frugal equivalent of makepkg on Arch too.
Offline
cd $startdir/src becomes "Fcd"
Similarly they have Fsed, Fpatchall and so on. It really makes pkgbuilds simple and readable.
It's funny how people can see the same thing in completely different ways. When I looked at a few of their PKGBUILDs, my immediate reaction was "why can't they just use standard commands?" IMO, it makes it less readable, because you have to know what the Fcommands do. OK, it may be fairly obvious in most cases, but it's an additional, and unnecessary, complication, AFAICS.
I voted No, in case there's any doubt.
Offline
I was thinking the same thing when I tried to 'convert' a FrugalBuild to a PKGBUILD (and failed, but because of other reasons ). While it's maybe less obvious what the PKGBUILDs 'mean' to someone who isn't familiar with the commands, It greatly simplifies writing them. Fpatchall for example, is pretty nifty
Also, note that Frugalware and ArchLinux have very little in common, apart from the fact that they both use pacman. so telling someone to use FW just because of this is a bit silly.
You like cheese? You like peas? You'll love cheezy peas!
Offline
Cam: I know I can do it for myself, and it would be very easy too. But I want to know what the community and developers think about it. And whether they would consider adding that functionality or no.
Iphitus: Yes, i like arch a lot, thats the reason why I want to see this ported.
Tomk: I respect your views, but the commands are pretty much self-explaining, eg Fpatchall
Sander: Exactly, I would not want to switch distros for such a simple matter.
Maybe we can add an option in PKGBUILDs ? Like option=('FWMAKEPKG') .. But that would an unnecessary layer of complexity.
Offline
I agree with tomk here. Adding such commands would make our PKGBUILDs less transparent especially for newcomers. Arch is imo very much about transparency. Adding an unnecessary layer of abstraction would complicate it more than it improves anything.
I respect your views, but the commands are pretty much self-explaining, eg Fpatchall
That's absolutely not self-explaining: Where does Fpatchall take its patches from? How does it tell if something is a patch? How and where exactly does it apply them? It's not transparent, it hides something from the user that (s)he definitely should see.
Offline
voted +: pkgbuilds will look much cleaner and will be much safer (Frm -R /usr will not break the system)
Offline
Coming from Mandriva you can call me a SPECman So I'm happy to have the archlinux simpleness.
I personally don't need more macros(so called in specs). What do you think about this empty Fbuild - no build body at all
AndyRTR
Offline
voted +: pkgbuilds will look much cleaner and will be much safer (Frm -R /usr will not break the system)
rm -R /usr won't break anything either - because you never build a package as root.
Offline
rm -R /usr won't break anything either - because you never build a package as root.
oh, than i'm the only one ....
Comment by: brain0 on 20060314 [18:20:16]
Sorry to say that, but that PKGBUILD is _really_ crappy.First, all the mkdir and cp lines should be changed to use install, so that you can give them the right permissions.
And the last line is really evil: "chmod -R 744 §startdir/pkg" does not only affect this package (744 being a stupid mode, for directories AND executables AND regular files). On installing, it changes the permissions of directories like /etc or /usr/bin to 744, MAKING THE WHOLE SYSTEM UNUSABLE FOR ANY UNPRIVILEGED USER.
Do not use this PKGBUILD (version 1.0.1-2) as it is, you have been warned.
hmm, brain0 from forum = brain0 from aur ?
Offline
Yes, you are right.
But: makepkg is not what broke in this case, but the installation (pacman) did. pacman changed the permissions of /usr and many other directories to the ones provided by the package (744) which does not make sense.
This is not related to package creation itself.
Offline
Well, you put .patch files, and you dont understand what "Fpatchall" means ? Well, then pardon me for saying that the problem lies with you, brain0, not fwmakepkg. Errors which trash the system .. such as the ones in the package in aur can be avoided. Its a big +.
Also, how tedious is it to type three commands, over and over again for "standard" packages ? A default build() which ./configure --prefx=/usr ; make ; make DESTDIR=$Fdestdir ; would be just great. Arch's pkgbuild are not making things transparent, brain0, they are making it long, tedious and congested.
Well, I hope someone likes the idea and implements it. Lets see how many people want it, or otherwise, in the poll.
Offline
Fighting talk, rohan.
the problem lies with you, brain0, not fwmakepkg.
It would appear that I have the same problem as brain0, because I don't understand what Fpatchall means either. :? OTOH, I only have to glance over a list of patches and patch commands, and I understand it instantly.
Also, how tedious is it to type three commands, over and over again for "standard" packages ?
If you type those three "standard" commands over and over, then I agree that is a bit tedious. I'm lazy, so I just take one of my existing PKGBUILDs, copy it, and modify it.
Lets see how many people want it, or otherwise, in the poll.
You don't have to wait, you know - you could just do it, stick it in the AUR, and see if it gets any votes. That would be the real test, not a poll.
Offline
Ah, yes I agree I was a bit rude ..
Lets see what I can do with making a package for it, but the stock "makepkg" script would require modification for fwmakepkg addons to work .. so i dont see how uploading to aur would help.
And, the general consensus is "No" ... 1:2 for Y:N
Offline
I voted no because of the same reason brain0 and tomk have.
Arch - It's something refreshing
Offline
If you're going to do a package, it should include all necessary modifications, so either a patch for makepkg, or a complete new version. You should make sure any modified files are backed up before anything is installed, and you should wrap the whole thing in very strong warnings about the possible consequences of modifying and/or overwriting essential system files.
Good luck!
Offline
I'd prefer that it isnt put in the AUR, otherwise we will have people distributing other PKGBUILDs on the AUR written to work with this.
And that just sucks, a lot. We dont want incompatibility.
James
Offline
Ah, Well, too bad. I was really hoping for these Fcommands to be ported.
Anyone still interested ??
Offline
Well, you put .patch files, and you dont understand what "Fpatchall" means ? Well, then pardon me for saying that the problem lies with you, brain0, not fwmakepkg. Errors which trash the system .. such as the ones in the package in aur can be avoided. Its a big +.
So all patches end with .patch? Maybe you want/have to apply a patch later? Maybe from another directory. Maybe with another -p option. Not even mentioning that several patches may have to be applied in a specific order.
"Fpatchall" doesn't tell you much about this stuff, it just sounds like a vague "patch something somewhere".
Also, how tedious is it to type three commands, over and over again for "standard" packages ? A default build() which ./configure --prefx=/usr ; make ; make DESTDIR=$Fdestdir ; would be just great.
Ever seen /var/abs/PKGBUILD.proto?
Arch's pkgbuild are not making things transparent, brain0, they are making it long, tedious and congested.
Yes, they are. Transparency does not have to be short, just transparent. And you think that PKGBUILDs are long and complicated, read an ebuild.
Offline
So all patches end with .patch? Maybe you want/have to apply a patch later? Maybe from another directory. Maybe with another -p option. Not even mentioning that several patches may have to be applied in a specific order.
"Fpatchall" doesn't tell you much about this stuff, it just sounds like a vague "patch something somewhere".
Yes, it is assumed all files end with .patch. If not use "Fpatch file-foo". If you want another -p, name the file as "foo.patchP" where P is the numeral you want. If you want to apply it later, use Fpatch then. For a specific order, name the file as 00-foo.patch 01-bar.patch and so on.
Ever seen /var/abs/PKGBUILD.proto?
Ah, yes, I agree that point of mine was wrong
And you think that PKGBUILDs are long and complicated, read an ebuild.
Dont get me started on gentoo !! :twisted:
Offline
I'd prefer that it isnt put in the AUR, otherwise we will have people distributing other PKGBUILDs on the AUR written to work with this.
Agreed. That was not a good suggestion - my apologies.
However, rohan, there is still nothing stopping you from trying it out yourself, and telling us about it, in User Contributions.
Yes, it is assumed all files end with .patch. If not use "Fpatch file-foo". If you want another -p, name the file as "foo.patchP" where P is the numeral you want. If you want to apply it later, use Fpatch then. For a specific order, name the file as 00-foo.patch 01-bar.patch and so on.
Thanks for that. Now that you've explained how it works, I like it even less! Can I vote No again?
Offline
Yes, it is assumed all files end with .patch. If not use "Fpatch file-foo". If you want another -p, name the file as "foo.patchP" where P is the numeral you want. If you want to apply it later, use Fpatch then. For a specific order, name the file as 00-foo.patch 01-bar.patch and so on.
Fpatchall() {
for i in ${source[@]}; do
if [ -n "`echo "$i" | grep .patch[0-9]*$`" -o -n "`echo "$i" | grep .diff$`" -o -n "`echo "$i" | grep '.(patch[0-9]*|diff).(gz|bz2)$'`" ]; then
Fpatch `strip_url "$i"`
fi
done
}
They don't really have to end in .patch... well, my bash skills are rather nonexistent, but from this it looks like they get to end in .diff too. Sorry for the nitpicking but in discussions like this everyone should probably get their facts right
You like cheese? You like peas? You'll love cheezy peas!
Offline
Lol, Sander, do you think it makes any difference. Why cant you utilize your typing skills for typing out more constructive replies ? :S
Offline
This may sound strange but... It seems to me like adding an unnecessary level of complexity, kind of like Gentoo's rc-update stuff. If this is implemented it should be optional, and not part of the base system.
Offline