BuildRoot and mktemp -d

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 14 Feb 2007, Ville Skyttä wrote:

Using mktemp -d in specfiles' BuildRoot means that quite a few stray temp dirs will start to appear in %{_tmppath}. For example "rpm -q --specfile foo.spec" and "rpmbuild -bs foo.spec" create them, and nothing cleans them up (no, tmpwatch doesn't count) - we probably don't want that.

umm, if it is to be so done, passing mktemp a subordinate 'template' directory pattern of

	-p %{_tmppath}rpm-build/{...whatever nameing per build instance}

may be helpful in confining this to a known search sub-tree in %{_tmppath}; I know I go poking in the RPM-BUILD temp dirs on occasion when builds are being diagnosed, but also like to clean house confidently when space gets tight.

-- Russ Herrold

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux