FS#6818 - unable to create empty package
Attached to Project:
Pacman
Opened by Roman Kyrylych (Romashka) - Thursday, 05 April 2007, 15:15 GMT
Last edited by Roman Kyrylych (Romashka) - Monday, 20 August 2007, 10:49 GMT
Opened by Roman Kyrylych (Romashka) - Thursday, 05 April 2007, 15:15 GMT
Last edited by Roman Kyrylych (Romashka) - Monday, 20 August 2007, 10:49 GMT
|
Details
[roman@home test]$ makepkg
==> Entering fakeroot environment ==> Making package: test 0.1-1 (Чтв Кві 5 18:12:33 EEST 2007) ==> Checking Runtime Dependencies... ==> Checking Buildtime Dependencies... ==> Retrieving Sources... ==> Validating source files with md5sums ==> Extracting Sources... ==> Removing existing pkg/ directory... ==> Starting build()... ==> Removing info/doc files... ==> Compressing man pages... ==> Stripping debugging symbols from libraries... ==> Stripping symbols from binaries... ==> Generating .FILELIST file... tar: *: Cannot stat: No such file or directory tar: Error exit delayed from previous errors ==> Generating .PKGINFO file... ==> Compressing package... tar: *: Cannot stat: No such file or directory tar: Error exit delayed from previous errors ==> ERROR: Failed to create package file. However package tarball is created and is valid. I think this indicates that error handling in makepkg needs improvement. |
This task depends upon
Feel free to improve the handling of this with a patch, but it is due to the wildcard selector being used and not being expanded.
Now output is:
==> Generating .FILELIST file...
tar: *: Warning: Cannot stat: No such file or directory
==> Generating .PKGINFO file...
==> Copying install script...
==> Compressing package...
tar: *: Warning: Cannot stat: No such file or directory
==> Finished making: test (Thu Apr 5 19:57:55 EEST 2007)
I've tested it both on that testing PKGBUILD and real package (namely opera-static).
Did someone test the 2nd patch?
dmcgee@dublin /var/abs/local/monotone/pkg
$ ls
etc usr
dmcgee@dublin /var/abs/local/monotone/pkg
$ la
.FILELIST .INSTALL .PKGINFO etc usr
dmcgee@dublin /var/abs/local/monotone/pkg
$ tar czf testpkg.tar.gz .PKGINFO .FILELIST .INSTALL $(find . -false -name .PKGINFO .FILELIST .INSTALL 2>/dev/null)
dmcgee@dublin /var/abs/local/monotone/pkg
$ echo $?
0
dmcgee@dublin /var/abs/local/monotone/pkg
$ ls
etc testpkg.tar.gz usr
dmcgee@dublin /var/abs/local/monotone/pkg
$ tar tf testpkg.tar.gz
.PKGINFO
.FILELIST
.INSTALL
Basically what that says- tar never zips up anything except for the three . files. That doesn't work!
Patches need to be tested against ALL cases- packages with AND without files.
The latest version on my HDD is different that in the patch, it contains
tar czf $pkg_file .
(I removed $comp_files variable as useless).
Then I realised that in this way $comp_files won't be put at the beginning of tarball, so I made the final change,
and I guess I overlooked missing files in real package after making the last change. :-/
Please check this one.
EDIT: rediffed patch against the latest CVS.