FS#7316 - [PATCH] Multiple errors with makepkg -R with no pkg directory

Attached to Project: Pacman
Opened by Dag (rixxon) - Wednesday, 30 May 2007, 22:20 GMT
Last edited by Dan McGee (toofishes) - Thursday, 31 May 2007, 03:58 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Aaron Griffin (phrakture)
Dan McGee (toofishes)
Architecture All
Severity Medium
Priority Normal
Reported Version 3.0.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

Running makepkg -R with no $startdir/pkg results in multiple errors and a package with the full content of $startdir. I was not fully able to make out if this bug is still in the Git version, which is quite different from the makepkg in current, but just in case, I patched create_package() to check for $pkgdir first.

Steps to Reproduce:

% mv pkg _pkg
% makepkg -R
...
==> Removing info/doc files...
/usr/bin/makepkg: line 930: cd: /home/dag/builds/io/pkg: No such file or directory
==> Compressing man pages...
==> Stripping debugging symbols from libraries...
==> Stripping symbols from binaries...
==> Removing empty directories...
/usr/bin/makepkg: line 982: cd: /home/dag/builds/io/pkg: No such file or directory
du: cannot access `/home/dag/builds/io/pkg': No such file or directory
==> Generating .FILELIST file...
/usr/bin/makepkg: line 997: cd: /home/dag/builds/io/pkg: No such file or directory
==> Generating .PKGINFO file...
/usr/bin/makepkg: line 1002: cd: /home/dag/builds/io/pkg: No such file or directory
==> Copying install script...
cp: cannot create regular file `/home/dag/builds/io/pkg/.INSTALL': No such file or directory
==> Compressing package...
/usr/bin/makepkg: line 1062: cd: /home/dag/builds/io/pkg: No such file or directory
tar: .INSTALL: Cannot stat: No such file or directory
tar: io-20070528-1-i686.pkg.tar.gz: file changed as we read it
tar: Error exit delayed from previous errors
==> ERROR: Failed to create package file.

% pacman -Qlp io-20070528-1-i686.pkg.tar.gz | head -10
io /Io-2007-05-28.zip
io /PKGBUILD
io /_pkg/
io /_pkg/.FILELIST
io /_pkg/.INSTALL
io /_pkg/.PKGINFO
io /_pkg/usr/
io /_pkg/usr/bin/
io /_pkg/usr/bin/io
io /_pkg/usr/bin/io_static

% pacman -Qlp io-20070528-1-i686.pkg.tar.gz | tail -10
io /src/Io-2007-05-28/tools/_build/binaries/io_static
io /src/Io-2007-05-28/tools/_build/objs/
io /src/Io-2007-05-28/tools/_build/objs/main.o
io /src/Io-2007-05-28/tools/io/
io /src/Io-2007-05-28/tools/io/DocsExtractor.io
io /src/Io-2007-05-28/tools/old/
io /src/Io-2007-05-28/tools/old/processIoCode.io
io /src/Io-2007-05-28/tools/old/processIoCodeFor.io
io /src/Io-2007-05-28/tools/source/
io /src/Io-2007-05-28/tools/source/main.c

This task depends upon

Closed by  Dan McGee (toofishes)
Thursday, 31 May 2007, 03:58 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in my git tree

Loading...