Re: [tor-bugs] #27091 [Core Tor/Tor]: Configure jenkins with CARGO_HOME in a writeable directory

2018-08-14 Thread Tor Bug Tracker & Wiki
#27091: Configure jenkins with CARGO_HOME in a writeable directory
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:  closed
 Priority:  Medium   |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  032-backport, 033-backport,  |  implemented
  034-backport   |  Actual Points:
Parent ID:  #24629   | Points:
 Reviewer:   |Sponsor:
-+-
Changes (by catalyst):

 * status:  needs_information => closed
 * resolution:   => implemented


Comment:

 Replying to [comment:5 Hello71]:
 > I believe Cargo presently stores only configuration, registry
 information, and package source in CARGO_HOME. The first one is manually
 created by the user (another solid reason to not override CARGO_HOME now
 that I think about it), and the other two are vendored.
 Some quick experimentation seems to confirm this: in a build tree
 configured to build with Rust but in offline mode, cargo doesn't seem to
 try writing registry or cache stuff.  Let's open a new ticket if we find
 evidence to the contrary, because the desired Jenkins config change seems
 to be deployed already.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #27091 [Core Tor/Tor]: Configure jenkins with CARGO_HOME in a writeable directory

2018-08-13 Thread Tor Bug Tracker & Wiki
#27091: Configure jenkins with CARGO_HOME in a writeable directory
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:
 |  needs_information
 Priority:  Medium   |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  032-backport, 033-backport,  |  Actual Points:
  034-backport   |
Parent ID:  #24629   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by Hello71):

 Replying to [comment:2 teor]:
 > We should do whatever other Rust packages do.

 As I said in #26038, "I think most C+Rust projects still use the global
 cache. I tried searching GitHub
 (​https://github.com/search?q=%22CARGO_HOME%22+extension%3Aam=Code).
 I found that tor is the only project that does not. for users who do not
 care, using the global cache will save download time and bandwidth on
 repeat builds, and for those who do care, my patch prints a warning so
 they will know. (maybe it should be downgraded to NOTICE?)". (fwiw, I
 checked librsvg just now and found that they override CARGO_HOME only for
 gitlab-ci builds)

 > If there's no clear answer, I suggest that we make the build directory
 CARGO_HOME if:
 > * CARGO_HOME is unset or not writeable, and
 > * HOME is unset or not writeable

 I think this sounds acceptable, but indicates a broken build environment.
 I know Gentoo sets HOME to a private temporary directory for each package
 build. I believe all of the presently used standardized Debian build
 scripts do so as well.

 Replying to [comment:4 catalyst]:
 > If we build in offline mode, does cargo need to write to `CARGO_HOME` or
 `HOME` at all?

 Not as far as I know. I believe Cargo presently stores only configuration,
 registry information, and package source in CARGO_HOME. The first one is
 manually created by the user (another solid reason to not override
 CARGO_HOME now that I think about it), and the other two are vendored.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #27091 [Core Tor/Tor]: Configure jenkins with CARGO_HOME in a writeable directory

2018-08-13 Thread Tor Bug Tracker & Wiki
#27091: Configure jenkins with CARGO_HOME in a writeable directory
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:
 |  needs_information
 Priority:  Medium   |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  032-backport, 033-backport,  |  Actual Points:
  034-backport   |
Parent ID:  #24629   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by catalyst):

 Replying to [comment:2 teor]:
 > If there's no clear answer, I suggest that we make the build directory
 CARGO_HOME if:
 > * CARGO_HOME is unset or not writeable, and
 > * HOME is unset or not writeable
 If we build in offline mode, does cargo need to write to `CARGO_HOME` or
 `HOME` at all?

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #27091 [Core Tor/Tor]: Configure jenkins with CARGO_HOME in a writeable directory

2018-08-10 Thread Tor Bug Tracker & Wiki
#27091: Configure jenkins with CARGO_HOME in a writeable directory
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:
 |  needs_information
 Priority:  Medium   |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  032-backport, 033-backport,  |  Actual Points:
  034-backport   |
Parent ID:  #24629   | Points:
 Reviewer:   |Sponsor:
-+-
Changes (by teor):

 * milestone:  Tor: 0.3.5.x-final => Tor: unspecified


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #27091 [Core Tor/Tor]: Configure jenkins with CARGO_HOME in a writeable directory

2018-08-10 Thread Tor Bug Tracker & Wiki
#27091: Configure jenkins with CARGO_HOME in a writeable directory
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:
 |  needs_information
 Priority:  Medium   |  Milestone:  Tor:
 |  0.3.5.x-final
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  032-backport, 033-backport,  |  Actual Points:
  034-backport   |
Parent ID:  #24629   | Points:
 Reviewer:   |Sponsor:
-+-
Changes (by teor):

 * status:  new => needs_information


Comment:

 weasel has set CARGO_HOME to an empty writeable directory in the tor-rust
 jenkins builds.

 But he says that we should make sure cargo only writes to the build
 directory, for the sake of Debian, Ubuntu and other distributions.

 We should do whatever other Rust packages do.

 If there's no clear answer, I suggest that we make the build directory
 CARGO_HOME if:
 * CARGO_HOME is unset or not writeable, and
 * HOME is unset or not writeable

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #27091 [Core Tor/Tor]: Configure jenkins with CARGO_HOME in a writeable directory

2018-08-09 Thread Tor Bug Tracker & Wiki
#27091: Configure jenkins with CARGO_HOME in a writeable directory
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:  Tor:
 |  0.3.5.x-final
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  032-backport, 033-backport,  |  Actual Points:
  034-backport   |
Parent ID:  #24629   | Points:
 Reviewer:   |Sponsor:
-+-
Changes (by teor):

 * keywords:
 not-just-linux, tor-ci, teor-was-assigned, 034-triage-20180328,
 034-removed-20180328, 034-backport, 035-removed-20180711, fast-fix
 => 032-backport, 033-backport, 034-backport


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

[tor-bugs] #27091 [Core Tor/Tor]: Configure jenkins with CARGO_HOME in a writeable directory

2018-08-09 Thread Tor Bug Tracker & Wiki
#27091: Configure jenkins with CARGO_HOME in a writeable directory
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:  Tor: 0.3.5.x-final
Component:  Core |Version:
  Tor/Tor|   Keywords:  not-just-linux, tor-ci, teor-was-
 Severity:  Normal   |  assigned, 034-triage-20180328,
 |  034-removed-20180328, 034-backport,
 |  035-removed-20180711, fast-fix
Actual Points:   |  Parent ID:  #24629
   Points:   |   Reviewer:
  Sponsor:   |
-+-
 Or develop a workaround in the tor build scripts.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs