Bug 215544 - ports-mgmt/pkg
Summary: ports-mgmt/pkg
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-25 13:16 UTC by pasokondokoro
Modified: 2016-12-25 15:16 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (pkg)


Attachments
patch-libpkg_pkg__add.c (280 bytes, patch)
2016-12-25 13:16 UTC, pasokondokoro
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pasokondokoro 2016-12-25 13:16:19 UTC
Created attachment 178257 [details]
patch-libpkg_pkg__add.c

Sorry, I'm not good at English.

An error occurred when installing ports with many files.



OS: FreeBSD 10.3-RELEASE
Memory: 256MB
Ports: devel/boost-libs

[Error Log]
===>  Installing for boost-libs-1.62.0_1
===>  Checking if boost-libs already installed
===>   Registering installation for boost-libs-1.62.0_1
Installing boost-libs-1.62.0_1...
pkg-static: Fail to create temporary file: /usr/local/include/boost/mpl/aux_/preprocessed/mwcw/.set_c.hpp.YdrHuxoysVh1: File exists
*** Error code 70
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2016-12-25 15:09:36 UTC
good catch, thanks you! (note your english is good :))

Note at the same place there was 2 other fd leaks I will fix
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-12-25 15:16:42 UTC
A commit references this bug:

Author: bapt
Date: Sun Dec 25 15:15:38 UTC 2016
New revision: 429439
URL: https://svnweb.freebsd.org/changeset/ports/429439

Log:
  Fix file descriptor leak that might lead to errors on packages with lots of files

  PR:		215544
  Submitted by:	pasokondokoro@gmail.com

Changes:
  head/ports-mgmt/pkg/Makefile
  head/ports-mgmt/pkg/files/patch-libpkg_pkg__add.c