Home » PEAR » PEAR_Command_Packaging » Bug #7002
makerpm/make-rpm-spec command fails due inability to create lock
Details
| Submitted | 2006-03-02 19:11 UTC |
|---|---|
| From | glen at delfi dot ee |
| Status | Bogus |
| Package | PEAR_Command_Packaging |
| PHP Version | 5.1.2 |
| OS | PLD Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-03-02 19:11 UTC] glen at delfi dot ee
Description:
------------
as this happens with both commands i belive it's PEAR bug
i'm
$ pear makerpm PEAR_Command_Packaging-0.1.0.tgz
PEAR_Command_Packaging is installed; using newer
"make-rpm-spec" command instead
could not create Dependency lock file: failed to open
stream: No such file or directory
looking at strace, it attempts to create lockfile
inexistent destdir:
open("/home/glen/tmp/pear2rpmO87GZ9/usr/share/pear/.depdblock",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file
or directory)
could not create Dependency lock file: failed to open
stream: No such file or directory
and same error with make-rpm-spec:
lstat64("/home/glen/tmp/pear2rpm5nQ0nX/usr", 0xbfe976ec) =
-1 ENOENT (No such file or directory)
open("/home/glen/tmp/pear2rpm5nQ0nX/usr/share/pear/.depdblock",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file
or d
irectory)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136,
1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|
MAP_ANONYMOUS, -1, 0) = 0xb7185000
write(1, "could not create Dependency lock"..., 88could
not create Dependency lock file: failed to open stream: No
such file o
r directory
) = 88
looking the strace is's clear why it happens, the parent
dirs don't exist.
[2006-03-02 19:24 UTC] glen at delfi dot ee
had accidentally PEAR_Command_Packaging installed when
reporting intially, here's the report without it being
present:
$ pear makerpm PEAR_Command_Packaging-0.1.0.tgz
WARNING: "pear makerpm" is now deprecated; an improved
version is available via "pear make-rpm-spec", which is
available by installing PEAR_Command_Packaging
could not create Dependency lock file: failed to open
stream: No such file or directory
[2006-03-02 19:34 UTC] glen at delfi dot ee
reassign to PEAR_Command_Packaging
[2006-03-07 00:20 UTC] glen at delfi dot ee
i got this solved, somehow.