#16274: include system pkgconfig path
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: defect | Status: needs_work
Priority: blocker | Milestone: sage-6.2
Component: build | Resolution:
Keywords: | Merged in:
Authors: Volker Braun | Reviewers: Leif Leonhardy
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vbraun/include_system_pkgconfig_path|
4067e95b238af02153264658e848ef8f630e0932
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by leif):
I have no idea what's going on here; with
{{{
#!sh
# pkgconf is an alternative to the "official" pkg-config, and does not
# automatically install a "pkg-config" binary, so we used to install
# a symbolic link (now replaced by a wrapper script).
rm -f "$SAGE_LOCAL/bin/pkg-config" # delete old version (script or
symlink)
echo M4, shell\:
m4 <<"EOF"
translit(esyscmd(`command -v pkg-config'),`')
EOF
echo M4, bash\:
m4 <<"EOF"
translit(esyscmd(`bash -c "command -v pkg-config"'),`')
EOF
# Generate a wrapper script which either calls Sage's 'pkgconf' or a
system-
# wide 'pkg-config' if present (hardcoding its location at creation time):
m4 ../patches/pkg-config.in > "$SAGE_LOCAL/bin/pkg-config"
if [ $? -ne 0 ]; then
echo >&2 "Error creating the pkg-config script."
exit 1
fi
echo Generated script:
echo =================
cat "$SAGE_LOCAL/bin/pkg-config"
echo =================
chmod 755 "$SAGE_LOCAL/bin/pkg-config"
}}}
(and without `bash -c ...` in `pkg-config.in`), I'm always getting:
{{{
...
/usr/bin/install -c -m 644 ./pkgconf.1 /foo/local/share/man/man1/pkgconf.1
M4, shell:
/usr/bin/pkg-config
M4, bash:
/usr/bin/pkg-config
Generated script:
=================
#!/usr/bin/env bash
if [ -z "$SAGE_LOCAL" ]; then
echo >&2 "This script requires that SAGE_LOCAL is set."
exit 1
fi
if [ -z "$PKG_CONFIG_PATH" ]; then
export
PKG_CONFIG_PATH="$SAGE_LOCAL/lib/pkgconfig:$SAGE_LOCAL/share/pkgconfig"
else
export
PKG_CONFIG_PATH="$SAGE_LOCAL/lib/pkgconfig:$SAGE_LOCAL/share/pkgconfig:$PKG_CONFIG_PATH"
fi
exec /foo/local/bin/pkg-config "$@"
=================
real 0m14.221s
user 0m1.716s
sys 0m0.572s
Successfully installed pkgconf-0.9.4
Running the test suite for pkgconf-0.9.4...
+-- /usr/lib/pkgconfig found, using it for the pkg-config test.
+-- fontconfig found, using it for the pkg-config test.
/foo/local/bin/pkg-config: line 16: /foo/local/bin/pkg-config: Argument
list too long
/foo/local/bin/pkg-config: line 16: /foo/local/bin/pkg-config: Success
Our pkg-config script failed to pick up fontconfig
real 0m8.012s
user 0m3.568s
sys 0m1.916s
************************************************************************
Error testing package pkgconf-0.9.4
************************************************************************
...
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16274#comment:37>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.