Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#19475 - [pkgtools] pkgfile --update errors out if /var/lock not present

Attached to Project: Community Packages
Opened by Ivan Stojic (stojic) - Saturday, 15 May 2010, 20:30 GMT
Last edited by Gavin Bisesi (Daenyth) - Sunday, 16 May 2010, 01:09 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Gavin Bisesi (Daenyth)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Just installed pkgfile and ran pkg_file --update (as root):

# pkg_file --update
/usr/bin/pkgfile: line 144: /var/lock/pkgfile: No such file or directory
# mkdir /var/lock
# pkg_file --update
Updating [core] file list... Extracting [core] file list... Done
Updating [extra] file list... Extracting [extra] file list... Done
Updating [community] file list... Extracting [community] file list... Done

After creating /var/lock directory pkgfile works.
pkgtools version is 18-1
This task depends upon

Closed by  Gavin Bisesi (Daenyth)
Sunday, 16 May 2010, 01:09 GMT
Reason for closing:  Not a bug
Comment by Ivan Stojic (stojic) - Saturday, 15 May 2010, 20:31 GMT
that is pkgfile, not pkg_file ...
Comment by Gavin Bisesi (Daenyth) - Saturday, 15 May 2010, 23:18 GMT
I'm not entirely sure how you managed to get an arch install that doesn't have a /var/lock directory. It's required by the FHS and pacman uses it too, and it's created by packages that are required on an installed system... How did this happen exactly?
Comment by Ivan Stojic (stojic) - Sunday, 16 May 2010, 01:03 GMT
I have no idea what removed my /var/lock. It's also not in my three days old backup, so it was already missing then. The install is 2.5 years old so it might have been deleted months ago. I'll try to figure it out but I already grepped .bash_history and looked at logs and found nothing. My hard disk also isn't failing (just checked it), and filesystem is clean.

Anyway, this isn't really a bug if the dir is supposed to be there, I'll ascribe this to PEBCAK, although I am absolutely certain that I didn't delete it. Maybe arch at the end of 2009 missed /var/lock? ;-)
Comment by Ivan Stojic (stojic) - Sunday, 16 May 2010, 01:05 GMT
Uhm, 2009 should be 2007.
Comment by Ivan Stojic (stojic) - Sunday, 16 May 2010, 01:08 GMT
Looking at this comment: http://bugs.archlinux.org/task/11498#comment32815 I presume that something like this might have happenned to me.

Loading...