Opened 5 years ago

Closed 5 years ago

#59291 closed defect (duplicate)

librsvg @2.44.14: error[E0506]: cannot assign to `self.input.cached_token` because it is borrowed

Reported by: haberg-1 Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: catalina Cc:
Port: librsvg

Description

Failure to build librsvg on MacOS 10.15. Maybe because librsvg_internals.a does not build.

Attachments (1)

main.log (622.0 KB) - added by haberg-1 5 years ago.
librsvg log

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by haberg-1

Attachment: main.log added

librsvg log

comment:1 Changed 5 years ago by mf2k (Frank Schima)

The Priority field is for use by Macports team members only, please do not set it.

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Priority: HighNormal

comment:3 Changed 5 years ago by mf2k (Frank Schima)

Keywords: librsvg removed

In the future, please add the port maintainer(s) to Cc (port info --maintainers librsvg), if any.

comment:4 Changed 5 years ago by mf2k (Frank Schima)

Owner: set to dbevans
Status: newassigned

comment:5 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: catalina added
Summary: Bug: librsvg does not build on MacOS 10.15librsvg @2.44.14: error[E0506]: cannot assign to `self.input.cached_token` because it is borrowed

The error shown in the log is:

:info:build error[E0506]: cannot assign to `self.input.cached_token` because it is borrowed
:info:build    --> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_librsvg/librsvg/work/librsvg-2.44.14/vendor/cssparser/src/parser.rs:572:17
:info:build     |
:info:build 547 |     pub fn next_including_whitespace_and_comments(&mut self) -> Result<&Token<'i>, BasicParseError<'i>> {
:info:build     |                                                   - let's call the lifetime of this reference `'1`
:info:build ...
:info:build 560 |             Some(ref cached_token)
:info:build     |                  ---------------- borrow of `self.input.cached_token` occurs here
:info:build ...
:info:build 572 |                 self.input.cached_token = Some(CachedToken {
:info:build     |                 ^^^^^^^^^^^^^^^^^^^^^^^ assignment to borrowed `self.input.cached_token` occurs here
:info:build ...
:info:build 584 |         Ok(token)
:info:build     |         --------- returning this value requires that `self.input.cached_token.0` is borrowed for `'1`
:info:build error: aborting due to previous error
:info:build For more information about this error, try `rustc --explain E0506`.
:info:build error: Could not compile `cssparser`.

Perhaps MacPorts updated to a newer version of rust and that broke the librsvg build.

comment:6 Changed 5 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: assignedclosed
Note: See TracTickets for help on using tickets.