OpenBSD CVS

CVS log for src/usr.bin/pkg-config/pkg-config


[BACK] Up to [local] / src / usr.bin / pkg-config

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.97 / (download) - annotate - [select for diffs], Fri Sep 22 07:28:31 2023 UTC (7 months, 3 weeks ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.96: +22 -17 lines
Diff to previous 1.96 (colored)

significantly increase the speed of pkg-config by not going to the env
all the time.

fully tested thru a src/x/ports build

Revision 1.96 / (download) - annotate - [select for diffs], Thu Jun 8 08:55:27 2023 UTC (11 months, 1 week ago) by espie
Branch: MAIN
Changes since 1.95: +102 -131 lines
Diff to previous 1.95 (colored)

move to perl use v5.36
also fix a discrepancy wrt the "original" pkg-config

thanks to tb@ for testing.

Revision 1.95 / (download) - annotate - [select for diffs], Tue Sep 15 07:18:45 2020 UTC (3 years, 8 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.94: +14 -7 lines
Diff to previous 1.94 (colored)

bump version to 0.29.2, of the changes upstream made between 0.29.1 and 0.29.2
there's effectively only one we didn't have yet which was handling for $C_PATH.
turned out we also didn't use a bunch of others so add them too.

bump copyright and remove $CSK$ marker while here

tested in a ports build by aja@

Revision 1.94 / (download) - annotate - [select for diffs], Sat Sep 12 12:53:41 2020 UTC (3 years, 8 months ago) by jasper
Branch: MAIN
Changes since 1.93: +4 -4 lines
Diff to previous 1.93 (colored)

trailing whitespace

Revision 1.93 / (download) - annotate - [select for diffs], Sun Dec 8 14:22:14 2019 UTC (4 years, 5 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.92: +61 -61 lines
Diff to previous 1.92 (colored)

cosmetic changes to conform to style of other existing OpenBSD code.
Okay jasper@

Revision 1.92 / (download) - annotate - [select for diffs], Mon Feb 4 20:18:11 2019 UTC (5 years, 3 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.91: +17 -2 lines
Diff to previous 1.91 (colored)

add support for defining variables through the environment

this uses the PKG_CONFIG_$PACKAGE_$VARIABLE format as implemented in fd.o pkg-config 0.29.1;
bump our version accordingly.

Revision 1.91 / (download) - annotate - [select for diffs], Mon Feb 4 18:51:29 2019 UTC (5 years, 3 months ago) by jasper
Branch: MAIN
Changes since 1.90: +13 -7 lines
Diff to previous 1.90 (colored)

implement compat with fd.o pkg-config 0.29.0:

- add --validate flag which is like --exists but slightly more verbose and doesn't process dependencies
- bump version to 0.29.0

while here, adjust message about missing fields to match the upstream fd.o message,
instead of referencing the filename we should print the packagename

tested in a bulk by aja@

Revision 1.90 / (download) - annotate - [select for diffs], Sat Aug 26 09:03:51 2017 UTC (6 years, 8 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored)

Don't remove subpaths of /usr/include or /usr/lib from the output of
--cflags and --libs.

ok jasper@

Revision 1.89 / (download) - annotate - [select for diffs], Tue Aug 15 01:29:23 2017 UTC (6 years, 9 months ago) by jasper
Branch: MAIN
Changes since 1.88: +16 -4 lines
Diff to previous 1.88 (colored)

Strip out -I/usr/include and -L/usr/lib from the --cflags/--libs output.

fd.o pkg-config doesn't emit them either, and libpng now exposed the issue
as tracked down by naddy@

Revision 1.88 / (download) - annotate - [select for diffs], Tue Aug 15 00:26:09 2017 UTC (6 years, 9 months ago) by jasper
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

remove vax leftover

Revision 1.87 / (download) - annotate - [select for diffs], Sun Aug 7 08:59:25 2016 UTC (7 years, 9 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

Update online manual path to man.openbsd.org.

ok espie

Revision 1.86 / (download) - annotate - [select for diffs], Sun Oct 11 11:48:46 2015 UTC (8 years, 7 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.85: +18 -2 lines
Diff to previous 1.85 (colored)

handle comma separated list of arguments, i.e. pkg-config --exists gcr-3,gcr-base-3

Revision 1.85 / (download) - annotate - [select for diffs], Mon Nov 17 22:16:23 2014 UTC (9 years, 6 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored)

Activate support for "package != version" requests, this time with
jasper's proper ok. Tested with i386/amd64 xenocara builds, plus bulk
ports builds on amd64 (thx landry@).

Revision 1.84 / (download) - annotate - [select for diffs], Sun Nov 2 13:28:50 2014 UTC (9 years, 6 months ago) by jasper
Branch: MAIN
Changes since 1.83: +1 -1 lines
Diff to previous 1.83 (colored)

revert, i did NOT ok this diff which bears no proof of testing in a bulk or xenocara

Revision 1.83 / (download) - annotate - [select for diffs], Sun Nov 2 01:11:47 2014 UTC (9 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

Allow for requests such as "foo != some.version".

The code was already there but unreachable.  ok jasper@

Revision 1.82 / (download) - annotate - [select for diffs], Thu Jul 10 08:20:13 2014 UTC (9 years, 10 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.81: +13 -1 lines
Diff to previous 1.81 (colored)

fix version comparison for openssl-like versions (1.0.1g etc)

found, tested and OK sthen@

Revision 1.81 / (download) - annotate - [select for diffs], Wed Jul 9 23:03:51 2014 UTC (9 years, 10 months ago) by jasper
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored)

small alignment tweak

Revision 1.80 / (download) - annotate - [select for diffs], Thu May 30 00:02:02 2013 UTC (10 years, 11 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.79: +2 -4 lines
Diff to previous 1.79 (colored)

adjust error message for empty files to display the full path to the file,
helps in case the file exists in multiple locations. this also matches fd.o.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Mar 31 13:58:01 2013 UTC (11 years, 1 month ago) by brad
Branch: MAIN
Changes since 1.78: +2 -2 lines
Diff to previous 1.78 (colored)

m88k has shared libs now.

ok jasper@

Revision 1.78 / (download) - annotate - [select for diffs], Thu Mar 28 22:00:02 2013 UTC (11 years, 1 month ago) by jasper
Branch: MAIN
Changes since 1.77: +4 -2 lines
Diff to previous 1.77 (colored)

allow passing a full path to a .pc file, instead of just the module name.
fd.o pkg-config allows this and some ports landry's working on depend on it.

tested in a bulk by landry@, thanks

Revision 1.77 / (download) - annotate - [select for diffs], Mon Dec 10 10:12:12 2012 UTC (11 years, 5 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.76: +3 -1 lines
Diff to previous 1.76 (colored)

Document --{exact,max}-version

Revision 1.76 / (download) - annotate - [select for diffs], Sat Dec 8 18:50:05 2012 UTC (11 years, 5 months ago) by jasper
Branch: MAIN
Changes since 1.75: +2 -2 lines
Diff to previous 1.75 (colored)

fix a pasto which broke (or rather, disabled) --max-version

from Brian Manning (upstream ExtUtils::PkgConfig maintainer)

Revision 1.75 / (download) - annotate - [select for diffs], Tue Oct 9 10:22:37 2012 UTC (11 years, 7 months ago) by jasper
Branch: MAIN
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

- bump the version to match fd.o's 0.27.1 release.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Oct 9 09:58:59 2012 UTC (11 years, 7 months ago) by jasper
Branch: MAIN
Changes since 1.73: +3 -2 lines
Diff to previous 1.73 (colored)

- also check Requires.private for --exists.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Jul 28 08:50:06 2012 UTC (11 years, 9 months ago) by jasper
Branch: MAIN
Changes since 1.72: +8 -1 lines
Diff to previous 1.72 (colored)

Return a proper error message when we end up needed to parse
packages, but none were provided. Similar to what fd.o does.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Jul 4 08:44:07 2012 UTC (11 years, 10 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.71: +4 -2 lines
Diff to previous 1.71 (colored)

fix the static arch fix. don't remove duplicates, but don't forget to
reverse either !

okay jasper@

Revision 1.71 / (download) - annotate - [select for diffs], Mon Mar 19 10:25:17 2012 UTC (12 years, 2 months ago) by ajacoutot
Branch: MAIN
Changes since 1.70: +6 -2 lines
Diff to previous 1.70 (colored)

GNU's pkg-config added PREFIX/share/pkgconfig/ as a search path 4 years
ago. It is mostly used to store arch-independant dot.pc files (although
not always); so add this directory to our search path as well (will ease
porters' work).

While here, also add X11BASE/share/pkgconfig since X.org seems to do the
same (req. by matthieu@)

ok dcoppa@ fgsch@ phessler@

Revision 1.70 / (download) - annotate - [select for diffs], Thu Nov 17 11:37:16 2011 UTC (12 years, 6 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.69: +18 -2 lines
Diff to previous 1.69 (colored)

    - Fix parts of xenocara on static arches such as vax.

    reported by todd@ and sebastia@
    tested by sebastia@ with xdm on vax.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jul 8 18:57:41 2011 UTC (12 years, 10 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

- pretend we're 0.26. there were no changes in 0.26 that
would remotely apply to us

Revision 1.68 / (download) - annotate - [select for diffs], Mon Jun 20 12:11:27 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.67: +34 -31 lines
Diff to previous 1.67 (colored)

- Adjust Getopts() hash to align options with values.
- Tweak comment about static libs.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Jun 20 12:10:17 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.66: +7 -1 lines
Diff to previous 1.66 (colored)

- implement --static, and preserve dependency order,
 instead of search order when printing the libraries required for linking.

this now passes our --static regress tests and matches fd.o

Revision 1.66 / (download) - annotate - [select for diffs], Thu Jun 16 08:38:30 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.65: +18 -15 lines
Diff to previous 1.65 (colored)

- finally unconfuse emacs by using parentheses for split()

Revision 1.65 / (download) - annotate - [select for diffs], Thu Jun 16 08:33:54 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

fix printrequiresprivate-mode name in a test

Revision 1.64 / (download) - annotate - [select for diffs], Wed Jun 15 11:54:03 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.63: +8 -5 lines
Diff to previous 1.63 (colored)

- only process Requires.private if needed (--cflags, --static or --print-requires-private)
- process Requires.private before processing Requires, order matters

these are first steps towards a working --static. static doesn't work yet as
libraries get re-ordered in a funky way.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Jun 12 21:33:49 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.62: +5 -5 lines
Diff to previous 1.62 (colored)

tweak the virtual pkg-config config

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jun 12 18:16:25 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.61: +46 -27 lines
Diff to previous 1.61 (colored)

- rename pr_* to say_* to be consistent with perl (prompted by espie@)
- move actual printing to STDERR to one place, this makes it easier to:
- honor $mode{estdout} (--errors-to-stdout) which was silently ignored untill now

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jun 12 17:13:17 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.60: +38 -30 lines
Diff to previous 1.60 (colored)

- Rename $D to $mode{debug} for consistency.
-  Factorize lots of prints into a common debug/error subroutine.
   This reduces unneeded clutter when testing for $mode{printerr}
   or $mode{debug}. Will be adjusted further when fixing --errors-to-stdout

Revision 1.60 / (download) - annotate - [select for diffs], Sun Jun 12 17:11:01 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.59: +4 -5 lines
Diff to previous 1.59 (colored)

- fix comment
- style nit

Revision 1.59 / (download) - annotate - [select for diffs], Sun Jun 12 17:08:44 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored)

- fix version comparison by adjusting the regex which decides about
    what is an operator and what is a valid version.
  (all version comparison regress tests pass now)
- add back 'rc' support

ok sthen@

Revision 1.58 / (download) - annotate - [select for diffs], Sat Jun 11 12:09:06 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.57: +18 -8 lines
Diff to previous 1.57 (colored)

- add check for empty files
- only do the above check, and print an error if we lack a required field
      if $mode{printerr}.
- put code setting $D together

Revision 1.57 / (download) - annotate - [select for diffs], Thu Jun 9 12:32:30 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

*** empty log message ***

Revision 1.56 / (download) - annotate - [select for diffs], Thu Jun 9 12:28:03 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.55: +3 -5 lines
Diff to previous 1.55 (colored)

whitespace cleanup

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jun 9 10:43:28 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

fix version comparison when we ask for "alpha > 0.1.0" and the version of
alpha is 0.1.0alpha2.

doing "alpha > 0.1.0alpha2" doesn't work yet.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Jun 7 18:42:30 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.53: +4 -3 lines
Diff to previous 1.53 (colored)

revert 'rc' handling for now, as it breaks iaxclient.
the underlying issue will be dealt with soon.

discussed with and ok sthen@

Revision 1.53 / (download) - annotate - [select for diffs], Tue Jun 7 12:22:46 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

prevent stringize from messing up the Name field

Revision 1.52 / (download) - annotate - [select for diffs], Tue Jun 7 06:42:19 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.51: +6 -2 lines
Diff to previous 1.51 (colored)

Don't try to parse the requirements for a module if only modversion or
printprovides are requested.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Jun 6 17:49:37 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

fix PKG_CONFIG_LOG as the first argument to beautify_list() was incorrect

Revision 1.50 / (download) - annotate - [select for diffs], Mon Jun 6 17:10:43 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

rename PKG_CONFIG_LOGFILE to PKG_CONFIG_LOG to match fd.o

Revision 1.49 / (download) - annotate - [select for diffs], Mon Jun 6 12:32:17 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.48: +5 -7 lines
Diff to previous 1.48 (colored)

- style tweaks by espie@
- bump version to 0.25

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jun 6 11:18:55 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.47: +16 -7 lines
Diff to previous 1.47 (colored)

move simple numeric comparison to a single routine, instead of duplicating it

Revision 1.47 / (download) - annotate - [select for diffs], Mon Jun 6 11:16:59 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.46: +5 -5 lines
Diff to previous 1.46 (colored)

also handle the 'rc' suffix

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jun 6 07:57:07 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.45: +77 -4 lines
Diff to previous 1.45 (colored)

First steps of teaching pkg-config about 'alpha' and 'beta' versions.
The order is 'alpha' < 'beta' < ' ' , and the common shorts 'a' and 'b'
are also accepted.
It may have some rought edges, but they will be dealt with later.

tested in a full bulk by me,
reads good to landry@

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jun 2 12:46:03 2011 UTC (12 years, 11 months ago) by sthen
Branch: MAIN
Changes since 1.44: +0 -7 lines
Diff to previous 1.44 (colored)

Revert previous; changes linking order for pkg-config --libs, breaking X on VAX.
Found by matthieu@

Revision 1.44 / (download) - annotate - [select for diffs], Wed May 25 12:16:34 2011 UTC (12 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.43: +8 -1 lines
Diff to previous 1.43 (colored)

memoize handle_config; is not a slow routine per se, but we spend
a lot of time in it, so cache the return values. The most gain
is from configure scripts/build commands which query several modules
at the same time. this results in as much as a 40% speedup for
those pkg-config invocations.

tested in a bulk/ok landry@

Revision 1.43 / (download) - annotate - [select for diffs], Wed May 18 11:12:13 2011 UTC (13 years ago) by jasper
Branch: MAIN
Changes since 1.42: +18 -23 lines
Diff to previous 1.42 (colored)

Simplify code in handle_config() by folding two almost identical
blocks into an anonymous sub.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Mar 21 13:28:06 2011 UTC (13 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

fix audacity. Make specs like >= 0.14.2b kosher
(missed by landry's bulk, obviously).

Revision 1.41 / (download) - annotate - [select for diffs], Fri Mar 18 18:21:40 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.40: +7 -4 lines
Diff to previous 1.40 (colored)

- when a newer version of an installed package is requested, print the URL
where to find a newer version, if possible. matches fd.o pkg-config.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Mar 18 15:26:11 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored)

- assert copyright
ok ckuethe@

Revision 1.39 / (download) - annotate - [select for diffs], Fri Mar 18 15:20:22 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.38: +3 -2 lines
Diff to previous 1.38 (colored)

format the message when a module doesn't validate more like fd.o pkg-config, which will
also be printed when PKG_CONFIG_DEBUG_SPEW isn't set.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Mar 18 15:18:13 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored)

add a 'pc_path' variable to the pkg-config.pc cache entry.
this variable will return the paths where pkg-config searches for .pc files, when queried.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Mar 18 15:14:59 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.36: +20 -2 lines
Diff to previous 1.36 (colored)

- add basic validation for .pc files, at least Name, Description and Version have to be
set. this is what fd.o pkg-config requires at least.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Mar 18 15:13:33 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

fix a small buglet when PKG_CONFIG_SYSROOT_DIR was set, it only handled the first occurence
of -I/-L correctly but didn't prepend the sysroot to later occurences, now it does.

no functional change when PKG_CONFIG_SYSROOT_DIR wasn't set.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Mar 18 14:55:32 2011 UTC (13 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.34: +60 -66 lines
Diff to previous 1.34 (colored)

minor related tweaks:
- use //=  instead of if (!defined)
- don't special-case code for pkg-config itself, prime cache with versioning
info.
- more accurate regexps for parsing arguments
- don't use join() when we mean map()

leads to:
- fix bug in argument splitting, zap ", " used as argument separation.

okay jasper@, tested by landry@

Revision 1.34 / (download) - annotate - [select for diffs], Mon Mar 14 08:43:59 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.33: +5 -2 lines
Diff to previous 1.33 (colored)

- sync help() after recent additions

Revision 1.33 / (download) - annotate - [select for diffs], Mon Mar 14 08:40:13 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.32: +10 -10 lines
Diff to previous 1.32 (colored)

whitespace cleanup

Revision 1.32 / (download) - annotate - [select for diffs], Mon Mar 14 08:35:08 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.31: +19 -4 lines
Diff to previous 1.31 (colored)

- implement PKG_CONFIG_SYSROOT_DIR
- bump version to 0.23

Revision 1.31 / (download) - annotate - [select for diffs], Thu Mar 10 19:15:55 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.30: +7 -14 lines
Diff to previous 1.30 (colored)

- make this easier to read

Revision 1.30 / (download) - annotate - [select for diffs], Thu Mar 10 19:13:14 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.29: +48 -5 lines
Diff to previous 1.29 (colored)

- implement several more options that will be needed to bump to 0.24
(--print-provides, --print-requires and --print-requires-private)

ok ckuethe@

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 10 19:06:30 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)

honor PKG_CONFIG_DEBUG_SPEW, which is like our --debug option

ok ckuethe@

Revision 1.28 / (download) - annotate - [select for diffs], Mon Mar 7 22:21:50 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.27: +3 -6 lines
Diff to previous 1.27 (colored)

- style consistency

ok ckuethe@

Revision 1.27 / (download) - annotate - [select for diffs], Tue Dec 28 14:31:38 2010 UTC (13 years, 4 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

- add /usr/lib/pkgconfig/ to the paths to look for .pc files, and search
  there first (as the original pkgconfig does too).

Revision 1.26 / (download) - annotate - [select for diffs], Wed Sep 29 16:48:41 2010 UTC (13 years, 7 months ago) by jasper
Branch: MAIN
Changes since 1.25: +44 -32 lines
Diff to previous 1.25 (colored)

it's valid syntax for .pc files to have:
Requires: pkg-config >= 0.21
out pkg-config couldn't handle it, as pkg-config(1) doesn't install a .pc file
to check this dependency against. fd.o pkg-config deals with this by
treating this as a special case; adapt ours to do the same.

tested in a ports bulk build and xenocara build
ok ckuethe@ sthen@

Revision 1.25 / (download) - annotate - [select for diffs], Sat Sep 18 09:27:51 2010 UTC (13 years, 8 months ago) by sthen
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

claim that we are pkg-config 0.22; ok ajacoutot@ ckuethe@

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jun 21 21:30:46 2009 UTC (14 years, 11 months ago) by ckuethe
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

fix PKG_CONFIG_PATH handling per system/6174. tested with xenocara build
and a bunch of ports

Revision 1.23 / (download) - annotate - [select for diffs], Sun Oct 26 23:56:37 2008 UTC (15 years, 6 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored)

- make pkg-config recognize --short-errors
- bump the version we're pretending to be to 0.21

ok ckuethe@ ajacoutot@

Revision 1.22 / (download) - annotate - [select for diffs], Sat Sep 6 10:49:28 2008 UTC (15 years, 8 months ago) by simon
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Calling --help shouldn't be an error condition, so exit with status 0
instead of 1, and make it consistent with gnu.

ok ckuethe@

Revision 1.21 / (download) - annotate - [select for diffs], Thu Aug 21 21:57:45 2008 UTC (15 years, 9 months ago) by simon
Branch: MAIN
Changes since 1.20: +5 -3 lines
Diff to previous 1.20 (colored)

Add an optional separator to stringize() and use it from do_list() to
match the GNU pkg-config --list-all output.

ok ckuethe@

Revision 1.20 / (download) - annotate - [select for diffs], Thu Feb 1 16:38:21 2007 UTC (17 years, 3 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.19: +9 -2 lines
Diff to previous 1.19 (colored)

handle errors reading .pc files in --list gracefully.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 16 17:14:34 2006 UTC (17 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

tweak slightly: not having the variable is okay, not finding the package
is still an error.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Dec 16 11:14:24 2006 UTC (17 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.17: +2 -3 lines
Diff to previous 1.17 (colored)

it's not an error for a variable not to be defined for some/all of the
*.pc files, see x11/gnome/yelp.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Dec 14 22:45:21 2006 UTC (17 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

do not display result if $rc != 0, fixes cases like
LIBS=`pkg-config --libs foo`, like in net/ekg

Revision 1.16 / (download) - annotate - [select for diffs], Thu Dec 14 10:23:34 2006 UTC (17 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.15: +9 -7 lines
Diff to previous 1.15 (colored)

add PKG_CONFIG_LIBDIR, okay bernd@

Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 10 10:58:41 2006 UTC (17 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.14: +6 -6 lines
Diff to previous 1.14 (colored)

trivial change: comparing versions on a non-existent config is not a good
idea...

Revision 1.14 / (download) - annotate - [select for diffs], Sat Dec 9 17:16:06 2006 UTC (17 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.13: +154 -55 lines
Diff to previous 1.13 (colored)

reorg code some more:
- handle most version number requirements.
- handle uninstalled packages correctly.
- process options in the same order as the gnu pkg-config.
- sanitize status code returns.
- set up printerr the same way gnu pkg-config does.

tested on xenocara by matthieu@

Still missing: actual --static implementation, and possibly some other
details...

Revision 1.13 / (download) - annotate - [select for diffs], Mon Dec 4 22:05:41 2006 UTC (17 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.12: +119 -62 lines
Diff to previous 1.12 (colored)

do the proper dance to order libary dependencies, let modversion do
what it should, start at proper version checking.

Also displays more diagnostic messages like the real pkg-config does.

okay ckuethe@, matthieu@, fries

(and a small extra addition of a mismatch diagnostic).

Make sure PkgConfig.pm is synch'ed! won't work otherwise.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Dec 2 18:58:46 2006 UTC (17 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

typo in error message

Revision 1.11 / (download) - annotate - [select for diffs], Sat Dec 2 18:28:22 2006 UTC (17 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.10: +164 -145 lines
Diff to previous 1.10 (colored)

rely on PkgConfig.pm, and so really parse the *.pc files.

handle --define-variable

handle multiple dependencies in the correct order, so that linking will
work with complex requirements.

okay ckuethe@, matthieu@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Dec 1 19:32:31 2006 UTC (17 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.9: +17 -18 lines
Diff to previous 1.9 (colored)

make things vaguely declared where they belong

Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 28 03:30:28 2006 UTC (17 years, 5 months ago) by ckuethe
Branch: MAIN
Changes since 1.8: +1 -3 lines
Diff to previous 1.8 (colored)

Remove a debug print i accidentally left behind

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 28 01:59:42 2006 UTC (17 years, 5 months ago) by ckuethe
Branch: MAIN
Changes since 1.7: +9 -2 lines
Diff to previous 1.7 (colored)

Sync usage with manpage

Revision 1.7 / (download) - annotate - [select for diffs], Tue Nov 28 01:54:14 2006 UTC (17 years, 5 months ago) by ckuethe
Branch: MAIN
Changes since 1.6: +6 -2 lines
Diff to previous 1.6 (colored)

Add the --silence-errors option. Found by naddy@

Revision 1.6 / (download) - annotate - [select for diffs], Tue Nov 28 01:36:17 2006 UTC (17 years, 5 months ago) by ckuethe
Branch: MAIN
Changes since 1.5: +12 -3 lines
Diff to previous 1.5 (colored)

Allow "pkg-config --modversion" to work. Reported by naddy@

Revision 1.5 / (download) - annotate - [select for diffs], Mon Nov 27 23:57:51 2006 UTC (17 years, 5 months ago) by ckuethe
Branch: MAIN
Changes since 1.4: +1 -0 lines
Diff to previous 1.4 (colored)

$OpenBSD$ tag

Revision 1.4 / (download) - annotate - [select for diffs], Mon Nov 27 23:52:18 2006 UTC (17 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.3: +139 -122 lines
Diff to previous 1.3 (colored)

stylistic clean-ups.
look more like BSD style, open files correctly, remove lots of
extra parenthesis, do not depend on $_

Revision 1.3 / (download) - annotate - [select for diffs], Mon Nov 27 22:50:31 2006 UTC (17 years, 5 months ago) by ckuethe
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

When a package is not found, exit with an error code. Allows things like
neon and subversion to build.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Nov 27 16:57:27 2006 UTC (17 years, 5 months ago) by ckuethe
Branch: MAIN
Changes since 1.1: +0 -1 lines
Diff to previous 1.1 (colored)

Don't search in non-openbsd-default paths - that's what PKG_CONFIG_PATH
is for.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Nov 27 16:49:13 2006 UTC (17 years, 5 months ago) by ckuethe
Branch: MAIN

Yet Another pkg-config program, this time as a perl script.

Not all flags and options are implemented yet, but it works well enough
to build a bunch of ports and xenocara (which requires pkg-config).

It is not yet activated in the build; I'm committing to allow for in-tree
development (including a man page).

ok espie, matthieu

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.