FS#35722 - VCS - Move "Creating working copy of (...) repo..." after pkgver.

Attached to Project: Pacman
Opened by (marcinfa) - Saturday, 08 June 2013, 14:03 GMT
Last edited by Allan McRae (Allan) - Sunday, 29 June 2014, 10:13 GMT
Task Type Feature Request
Category makepkg
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.1.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

To improve the speed of version checking without keeping srcdir in disk (creating srcdir only if the version of the package was changed).
Creating copy should be done after checking whether the package has not already been built!

Sorry for my english.
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 29 June 2014, 10:13 GMT
Reason for closing:  Won't implement
Comment by Andrew Gregory (andrewgregory) - Saturday, 08 June 2013, 22:44 GMT
Sources are extracted before updating pkgver so that you can use the sources to calculate the new version... Calculating a version without sources would be a little difficult.
Comment by (marcinfa) - Sunday, 09 June 2013, 00:34 GMT
OK, I can see that the problem occurs only in SVN case - makepkg creates a copy of the "SRCDEST(startdir)/{name of branch}" despite the absence of such a need.
You should download a SVN pkgbuild, makepkg -o and compare content of "SRCDEST(startdir)/{name of branch}" and "srcdir/{name of branch}" - will be the same.

EDIT:
I solve this temporary with noextract and cp in prepare().
Comment by Andrew Gregory (andrewgregory) - Monday, 10 June 2013, 00:45 GMT
If you really want to avoid copying the sources I think manually extracting your sources is going to have to be your permanent solution. Delaying the extraction of svn sources would require special handling for svn in makepkg. It would also break existing PKGBUILDs that use the copy in $srcdir and cause confusion by requiring users to use the copy in SRCDEST unlike all other sources.

Loading...