Issue tracker moved to https://gitlab.archlinux.org/archlinux/aurweb/-/issues
FS#2643 - cvs access to PKGBUILDs
Attached to Project:
AUR web interface
Opened by maciek (demonus) - Saturday, 23 April 2005, 12:22 GMT
Last edited by Paul Mattal (paul) - Friday, 10 June 2005, 11:18 GMT
Opened by maciek (demonus) - Saturday, 23 April 2005, 12:22 GMT
Last edited by Paul Mattal (paul) - Friday, 10 June 2005, 11:18 GMT
|
Detailsthis shouldn't be too much work, accessing aur repository through cvs so that PKGBUILDs could be merged to current ABS tree would be very useful
|
This task depends upon
Closed by Paul Mattal (paul)
Friday, 29 July 2005, 04:01 GMT
Reason for closing: Implemented
Additional comments about closing: We've implemented CVS access to PKGBUILDs via ABS for community, and decided not to do so for unsupported for now, due to the dangers that could pose.
Friday, 29 July 2005, 04:01 GMT
Reason for closing: Implemented
Additional comments about closing: We've implemented CVS access to PKGBUILDs via ABS for community, and decided not to do so for unsupported for now, due to the dangers that could pose.
srcpac-aur.tar.gz
If you're talking about adding write access and using it for version control and so forth, there's a lot involved and we haven't seen enough demand for such features yet.
Let me know, in more detail, what you're looking for.
"Yep, it's on my list for the 2.9.6 pacman release."
So we'll see that soon in due course. I'll leave this open until we do!
- P
I think allowing the cvsup should be a much higher priority - it will hype AUR alot more if someone can sync abs and then run "srcpac -S lighttpd" to build aur packages...
http://bbs.archlinux.org/viewtopic.php?t=12037
I think we need to leave things in a way such that the user has to at least LOOK at the PKGBUILD before going and compiling/installing it, though I also do very well see the convenience in being able to run srcpac for AUR packages.
Just thought I'd point this out, there's probably a way to do this and achieve a happy medium, though I'm thinking that it would become stupidly complicated.
IMHO, if we make it this easy, we need to at least put really big red signs all over the place.
As a minimum, the "community" packages should be accessible via srcpac/abs/cvsup. I think that's a no brainer.
If we did include unsupported, it might even be worth having srcpac bark a warning if you're building something from unsupported. This would require a special case mod to srcpac, but it's probably worth it.
This sort of topic is at the very heart of the delicate balance that is the AUR.. security vs. ease of use. It's the kind of thing we've got to tackle head on and think creatively about. Thanks for starting the discussion!
Being someone who has worked on AUR, srcpac, namcap, and the TUR (the original user repos) I like to think I've had a little bit of experience.
Let's see if I can list off my responses:
1) Putting unsupported PKGBUILDs in cvs (so that you can actually use cvsup) seems sort of wasteful. Why not use the bash script?
2) pacman is going to do what srcpac does in 2.9.6?
3) the community repo's tagging is the same as current and extra, so cvsup will work with it no problem. Currently, unsupported isn't in anything remotely like a cvs repo. I had mentioned making abs a wrapper to support svn, cvsup, and other storage methods, but it was poo-pooed by some people because it wasn't "simple". That's why "community" packages are stored in cvs instead of svn. I still disagree with that assertion.
4) srcpac won't work with just an abs tree. It needs pacman's dependency and upgrade logic. Without a proper package repo srcpac will never realize any of those packages need updating.
5) I don't think users should be able to blindly install/update anything uploaded to unsupported. That's why it's unsupported. If they want to be able to use srcpac and pacman with it, they should become a TU and maintain it in community.
6) I don't see why people haven't written a supfile for community yet. I'm sure that some people have (this sort of thing used to happen all the time on irc, but I have noticed a much higher signal to noise ratio in our community).
In other words, it certainly wouldn't be difficult to make srcpac work properly with unsupported...
5: yes, i'm with Jason
re #5: Me too. It's taken a little while for me to think the whole thing through, but I definitely agree with you and Jason. The alternative is just too dangerous.
I'm not sure this is a good idea, but I've made the right hacks to the right scripts to get srcpac working with unsupported, with the help of a web scraper someone made and posted to the forums.
These scripts are attached for the daring and curious, have fun. (there's a better description inside the tarball)
For this to work, you'd have to go through the whole /var/lib/srcpac, match up all the from-source packages with unsupported, verify that their versions are newer, make sure their depends, provides, conflicts, etc are all valid and then mark them for building.
If all you got working was a second srcpac -Sb brings the package up to date, that's not exactly good enough. If there's no notification that packages need updating, everyone will just be using older versions of unsupported.
How exactly does this "work outside of the rest of the package tree"? Can you describe your setup a little better?
1) There's no reason not to make an ABS collection for community. That's also pretty straightforward to do.
2) It sounds like srcpac won't work properly with only an ABS collection without a real repo.
3) There's a bash script out there that lets you fetch the whole set of unsupported files to your local hard drive.
4) cvsup supports sharing things as collections that aren't in cvs. Oddly.
THEREFORE, I suggest:
1) Let's create a community collection for ABS.
2) Let's create an unsupported collection for ABS. Effectively, people can do this now with the bash script, it's just slightly less convenient. Realistically, we're not going to stop people from fetching the pile of AUR unsupported PKGBUILDs and putting them on their machine.
3) Both community and unsupported should be commented out in the default ABS configuration file, and there should be large comments in place to disclaim turning them on.
4) Let's MAKE SURE that srcpac doesn't work with unsupported. Let's actually CAUSE it not to work with unsupported if it happens to. This way we keep it from being casually misused.
Thoughts?
I'm still wrestling with the whole notion of not allowing package names that are already in current/extra, and am becoming more fond of the idea.
- P
Oh and I guess we'd have to do some manual queries to clean up the dupes that already exist up until that point.