Pacman

Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.
Tasklist

FS#33575 - CVS packages, version update behavior

Attached to Project: Pacman
Opened by Maxime Gauduin (Alucryd) - Saturday, 26 January 2013, 15:25 GMT
Last edited by Allan McRae (Allan) - Monday, 28 January 2013, 13:43 GMT
Task Type Feature Request
Category makepkg
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.3
Due in Version 4.1.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I have set up a git repo containing all my PKGBUILDs and install files, to keep them up to date on all the computers I use. I have made a little script which will replicate the whole git tree, and create symlinks to all PKGBUILDs and install files in this replica. This way, all building operations will not taint my git folder, while editing the symlinked files will reproduce the changes on the actual files.

However, on CVS packages, makepkg will check for a new version and overwrite the PKGBUILD in the folder where it is run, effectively replacing my symlink with a hard copy, then the changes are no longer reproduced in the git folder.

Would it be possible to have makepkg only edit the file without replacing it, or replacing the file the symlink points to?
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 28 January 2013, 13:43 GMT
Reason for closing:  Fixed
Additional comments about closing:  symlink handling added in commit 8624eddb
Comment by Maxime Gauduin (Alucryd) - Saturday, 26 January 2013, 18:02 GMT
I've made a patch for it. I'm putting it here while I'm trying to figure out why git send-email does not want to work.
Comment by Allan McRae (Allan) - Saturday, 26 January 2013, 22:53 GMT
You have separated the "-i" flag from its arguement on both bsd and darwin. Also... --follow-symlinks is not available on bsd and darwin.
Comment by Maxime Gauduin (Alucryd) - Sunday, 27 January 2013, 01:17 GMT
Oh, well I'll remove them from the bsd and darwin targets. About the linux target, I succesfully used the patched build, it seems -i can be put before or after --follow-symlinks. Still, I'll modify it tmorrow to be more accurate. I've finally managed to send this patch using git-email, I'll have to send it again.
Comment by Allan McRae (Allan) - Sunday, 27 January 2013, 01:23 GMT
Yes - "-i" does not take an argument on Linux.
Comment by Maxime Gauduin (Alucryd) - Sunday, 27 January 2013, 09:25 GMT
Thx for all the info, I have sent an updated patch to the mailing list. I'm learning new things everyday using arch but still have so many to learn!

Loading...