Summary: | www/nginx: tmpdir removed on binary package upgrade using pkg, breaking running instance | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Michael Gmelin <grembo> | ||||||
Component: | Individual Port(s) | Assignee: | Sergey A. Osokin <osa> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Some People | CC: | m.tsatsenko | ||||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(osa) |
||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Michael Gmelin
2015-06-22 13:58:29 UTC
Created attachment 157995 [details]
Patch
Could you try following patch, thanks in advance.
Created attachment 158042 [details]
Update patch
This gives "pkg-static: lstat(/usr/ports/www/nginx/work/stage/var/tmp/nginx/): No such file or directory" on make install, adding "${MKDIR} ${STAGEDIR}${NGINX_TMPDIR}" to do-install fixes that. I attached an updated version of the patch that adds that line. With this it works as expected (empty /var/tmp/nginx gets removed, while populated /var/tmp/nginx stays intact). A commit references this bug: Author: osa Date: Thu Jun 25 21:06:40 UTC 2015 New revision: 390602 URL: https://svnweb.freebsd.org/changeset/ports/390602 Log: Be more accurate with tmpdir removal and remove only empty tmpdir. Cause otherwise removal non-empty tmpdir breaks running nginx instance. Bump PORTREVISION. PR: 201045 Tested by: grembo Changes: head/www/nginx/Makefile head/www/nginx/pkg-plist head/www/nginx-devel/Makefile head/www/nginx-devel/pkg-plist Committed, thanks for report. *** Bug 184721 has been marked as a duplicate of this bug. *** |