pkgsrc-Users archive

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

Failure to build librsvg



With latest pkgsrc (updated just a couple hours ago), and with all other packages (including rust!) having been built into a clean sandbox, I'm getting the following error:

...
gmake[2]: Entering directory '/tmp/pkgs/graphics/librsvg/work.x86_64/librsvg-2.44.14'
cd ./rsvg_internals &&					\
PKG_CONFIG_ALLOW_CROSS=1						\
PKG_CONFIG='/tmp/pkgs/graphics/librsvg/work.x86_64/.tools/bin/pkg-config'						\
CARGO_TARGET_DIR=/tmp/pkgs/graphics/librsvg/work.x86_64/librsvg-2.44.14/target					\
cargo --locked build   --release && \
cp /tmp/pkgs/graphics/librsvg/work.x86_64/librsvg-2.44.14/target/release/librsvg_internals.a /tmp/pkgs/graphics/librsvg/work.x86_64/librsvg-2.44.14/target/release/librsvg_internals_pic.a
   Compiling cssparser v0.24.0
error[E0506]: cannot assign to `self.input.cached_token` because it is borrowed
   --> /tmp/pkgs/graphics/librsvg/work.x86_64/vendor/cssparser-0.24.0/src/parser.rs:572:17
    |
547 |     pub fn next_including_whitespace_and_comments(&mut self) -> Result<&Token<'i>, BasicParseError<'i>> {
    |                                                   - let's call the lifetime of this reference `'1`
...
560 |             Some(ref cached_token)
    |                  ---------------- borrow of `self.input.cached_token` occurs here
...
572 |                 self.input.cached_token = Some(CachedToken {
    |                 ^^^^^^^^^^^^^^^^^^^^^^^ assignment to borrowed `self.input.cached_token` occurs here
...
584 |         Ok(token)
    |         --------- returning this value requires that `self.input.cached_token.0` is borrowed for `'1`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0506`.
error: Could not compile `cssparser`.




+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
+--------------------+--------------------------+-----------------------+


Home | Main Index | Thread Index | Old Index