Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S slapos.recipe.cmmi
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • slapos.recipe.cmmi
  • Merge requests
  • !3

Merged
Created Mar 10, 2017 by Jérome Perrin@jeromeOwner

Also set TMPDIR and TEMP environment variables

  • Overview 27
  • Commits 1
  • Pipelines 1
  • Changes 2

@gabriel and I experienced build failures in a machine where /tmp was full, but the partition for slapos still had some space available.

2017-03-09 20:32:45,201 testsuite    : INFO     slapgrid_sr : 2017-03-09 20:32:45 slapos[17669] INFO checking whether make sets $(MAKE)... ./configure: line 3007: cannot create temp file for here-document: No space left on device

I noticed that slapos.recipe.cmmi sets $TMP before building, even though there is no reference of the "why".

In our case configure was failing creating temp documents. This configure uses #!/bin/sh which will be probably bash ( which according to manpage uses $TMPDIR to create temporary files) or dash if debian (could not find reference for dash, but it's hopefuly $TMPDIR too).

Also, mktemp which is used in configure "creates temp files in $TMPDIR if set, else /tmp", so in our case, /tmp.

To make things harder, slapos.core removes TMP TMPDIR and TEMP from environment before running buildout, so setting $TMPDIR did not work either before running slapos node software.

I could not confirm this really fixes our problem, but my attempts at setting $TMPDIR at a higher level all failed.

/cc @kazuhiko @rafael @alain.takoudjou @luke

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: feat/set_TMPDIR_TEMP_environment_variables
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7