Opened 7 years ago

Closed 6 years ago

#56451 closed defect (worksforme)

librsvg:: not big endian, needs port:cargo added in depends_lib

Reported by: gaming-hacker (G Alexander) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.4.3
Keywords: Cc: pixilla (Bradley Giesbrecht), Dave-Allured (Dave Allured)
Port: librsvg

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hello,

I built and installed

rust @1.25.0_0 (active) 

then proceeded to update librsvg

  $ ./configure --prefix=/opt/local --enable-vala=yes --disable-silent-rules --disable-Bsymbolic --enable-introspection

and got the following error

conftest.c:28:4: error: use of undeclared identifier 'not'
                 not big endian
configure:13833: checking for cargo
configure:13861: result: no
configure:13870: error: cargo is required.  Please install the Rust toolchain from https://www.rust-lang.org/
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "RSVG"
| #define PACKAGE_TARNAME "librsvg"
| #define PACKAGE_VERSION "2.42.2"
| #define PACKAGE_STRING "RSVG 2.42.2"

adding 'port:cargo' in the 'depends_lib'

after about 40 minutes of thrashing around, all dependencies are built but updating librsvg leads to

:info:destroot make: *** No rule to make target `install'.  Stop.

Is this is a relatively easy fix???

Attachments (3)

Portfile (16.6 KB) - added by gaming-hacker (G Alexander) 6 years ago.
cargo portfile
Portfile.2 (3.4 KB) - added by gaming-hacker (G Alexander) 6 years ago.
librsvg portfile
Portfile.3 (10.7 KB) - added by gaming-hacker (G Alexander) 6 years ago.
rust portfile

Download all attachments as: .zip

Change History (14)

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

Cc: dbevans removed
Keywords: rust cargo removed
Owner: set to dbevans
Status: newassigned

comment:2 Changed 7 years ago by raimue (Rainer Müller)

port:cargo is already in depends_lib of librsvg, added by the cargo_fetch port group. Do you not see it in port info?

As you run configure manually, I assume you are compiling outside of MacPorts. Could you attach the full config.log showing the error?

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

Description: modified (diff)

comment:4 Changed 7 years ago by gaming-hacker (G Alexander)

the port was compiled inside macports. you can set a 'variant' but that does not mean it is included in the depends_lib or if you're relying on a dependency to include the variant

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/cairo.pc:cairo \
                    path:lib/pkgconfig/pango.pc:pango \
                    port:libcroco \
                    port:libxml2 \
                    port:gdk-pixbuf2 \
                    port:vala

i manually added 'port:cargo'

Last edited 7 years ago by gaming-hacker (G Alexander) (previous) (diff)

comment:5 Changed 7 years ago by raimue (Rainer Müller)

I cannot reproduce the problem. The cargo dependency is in depends_build. I cannot see a reason why cargo should be in depends_lib, as it is only needed for the build.

$ port info --depends_build librsvg
depends_build: pkgconfig, rust, cargo

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

G Alexander, can you provide any additional information? Can you attach a main.log file showing the librsvg port failing to build/destroot?

comment:7 Changed 6 years ago by gaming-hacker (G Alexander)

@ryandesign Unfortunately, I hacked a solution to get it to work and moved on, I seem to recall having to hack cargo and rust to get it to work. I can attach my portfiles which work for osx 10.12, xcode 9.2, gcc8, clang6

Changed 6 years ago by gaming-hacker (G Alexander)

Attachment: Portfile added

cargo portfile

Changed 6 years ago by gaming-hacker (G Alexander)

Attachment: Portfile.2 added

librsvg portfile

Changed 6 years ago by gaming-hacker (G Alexander)

Attachment: Portfile.3 added

rust portfile

comment:8 Changed 6 years ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:9 Changed 6 years ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured removed

comment:10 Changed 6 years ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:11 Changed 6 years ago by dbevans (David B. Evans)

Resolution: worksforme
Status: assignedclosed

In the current port (librsvg 2.42.2), the cargo dependency is included behind the scenes by the cargo-fetch PortGroup so I think this issue is moot. If you're still having problems with the current port, please reopen the ticket with further details.

Note: See TracTickets for help on using tickets.