Commit graph

4308 commits

Author SHA1 Message Date
schmonz
ca805d167c Test a couple more error paths through main() -> checkitem(). Add
a couple tests for get_vartypes_map(). TODO: test and refactor
checkline_mk_vartype_basic().
2013-01-20 03:50:05 +00:00
schmonz
44d2b49417 pkglint(1) determines its list of basic variable types by grepping
itself for certain if/elsif conditions. This combination of cleverness
and large conditional block should be replaced with simple,
table-driven code. But first we have to get the functionality under
test, which I've begun to do here.

Initialize a package global with the contents of $0, and override
it in test (otherwise self-grepping breaks because $0 is the test
script). Extract the dirty Test::Trap details to test_unit(). Test
main() for a few common values of @ARGV. Notice the aforementioned
cleverness because it broke an expected success, and fix it just
enough to test get_vartypes_basictypes() for a couple expected
types.

No functional change intended. I've manually tested the small changes
to pkglint.pl and have also verified that a couple packages lint
the same as before.
2013-01-20 02:57:36 +00:00
schmonz
285febe2eb Make it possible to easily write automated tests:
* minimally adapt pkglint(1) into a "modulino" for testability
* verify it still runs normally as a program
* create a test script with a few very simple test cases
* hook it up to 'make test'
* verify that the tests really fail if I go breaking the code under test

Meta-addresses PR pkg/46570. New BUILD_DEPENDS, but no functional
change, so no PKGREVISION bump. Approved by wiz@.
2013-01-19 22:51:11 +00:00
jperkin
d39201e64e pbulk-base-0.47: Portability fixes
- Prefer fcntl FD_CLOEXEC to ioctl FIOCLEX.

 - Reset SIGPIPE action to default for the build child, avoids 'yes' spinning
   indefinitely on EPIPE in Solaris builds, notably for print/pdf2djvu.
2013-01-14 14:33:28 +00:00
ryoon
6c43113a62 Put CHECK_SHLIBS_SUPPORTED=no into OpenBSD condition.
Thank you, tron@.
2013-01-12 10:18:12 +00:00
ryoon
15001fb2e7 Update to 0.72
* Add some libraries from OpenBSD 5.2.
* Set CHECK_SHLIBS_SUPPORTED=no, OpenBSD 5.2's libraries have no RPATH in readelf output.
2013-01-11 10:37:57 +00:00
jperkin
079a7db2af pkg_tarup-1.9.1: Remove unnecessary 'local' declaration, increases portability. 2013-01-08 11:02:19 +00:00
jperkin
75d0dc86dd Fix a couple of typos. 2013-01-07 14:15:35 +00:00
apb
c2bb43e11f * commit PLIST changes that I forgot to commit earlier;
* use size_t, not int, for a length passed to sysctl(2);
* bump version to 0.7.1.
2013-01-04 06:00:48 +00:00
dholland
b512d7535f Regen. 2013-01-03 10:21:21 +00:00
dholland
ded57b14d2 Remove configure test for vprintf, which wasn't even being used, and
configure tests for memset/memcpy, which are standard and haven't
needed checking in a long time. This makes the configure script
tolerate injection of -Werror.

Fix signed/unsigned mismatches in the sha2 and whirlpool code. This
package now passes -Wall with gcc45.

Bump the package version to 20121220, which is when I made these
changes.
2013-01-03 10:20:31 +00:00
agc
3e78c61e20 Update manual pages for better wording, and a better usage display for
pkg_info(1) - from Bug Hunting in PR pkg/47328. The following text is
taken from Bug's PR:

	The pkg_info(1), pkg_admin(1), and pkg_install.conf(5) man pages
	from pkgsrc' pkgtools/pkg_install package contain errors, have
	inaccurate / incomplete / illogically ordered descriptions, have
	incorrect macro usages / macro errors, miss an option description
	(`-h', for pkg_info(1)), and / or contain other imperfections.

	In short: these man pages can use a big correction update.

	Additionally, the `usage' message in main.c from pkg_info(1) contains
	an incorrect option order.
2012-12-17 04:34:02 +00:00
marino
916eee74bf pkgtools/gnome-packagekit: Stop detecting deprecation
I originally was trying to patch set-but-not-used errors but then
quickly found out that a new glib also introduced numerous breakages
due to -Werror breaking on g_thread_init deprecation.  Between the
two problems I had already generated 10 patches with no end in site.

Rather than continue, address the real issue and remove -Werror from
this old package.
2012-12-15 09:36:21 +00:00
imil
21e404458d 0.6.3.1
Do not exit with not enough space message when install size is negative
2012-12-14 22:43:45 +00:00
imil
69ae9fcc5a 0.6.3
PR3555339@sf (stacktic)
        Avoid negative speed when a download start (stacktic)
        PR47196 fixed by stacktic
        PR47060 fixed by stacktic
        Added show-no-keep by orgrim
        Fixed PR47192 (by stacktic)
2012-12-14 09:05:48 +00:00
wiz
cbda2ac15b Add sleepycat-public to default allowed licenses here as well. 2012-12-13 08:30:10 +00:00
ryoon
9ff7727479 Update to 4.127
* Add sun-{jre,jdk}7 support
2012-12-11 14:57:59 +00:00
joerg
8b5fee07ef Make GCC happy and set s_start and s_end explicitly. 2012-11-30 16:22:49 +00:00
cheusov
2c54d3c0d2 Update to 0.13.1
pkg_online server defaults to dict://dict.mova.org:26280

  "onlineinfo" has pkg_summary(5) raw format. Appropriate changes were
  made for pkg_online_client(1) and pkg_summary2onlineinfo(1).
2012-11-25 20:51:03 +00:00
cheusov
ca7e889809 Update to 0.60.0
pkg_update_src_summary:
     - Fix for the case when there are no updated/new packages, but
       removals exist.
     - Resulting summaeries are postprocessed by pkg_summary2bb_pkgs.
     - Option -v was added

  pkg_subgraph_deps:
     - Fix for option -1

  pkg_digger:
     - Minor fix. -sf outputs both fields and strategies.
     - All pkg_digger(1) backends return plain summaries on -1|-3|-9.
       Option -r was removed from pkg_digger_{summary,installed}

  pkg_digger_summary:
     - Implementation for option -n.

  pkg_summary2bb_pkgs:
     - Additional error checks.

  Man pages for pkg_digger, pkg_digger_summary, pkg_digger_installed
  were updated.
2012-11-25 20:49:46 +00:00
joerg
2c879bc7ca Update pbulk to 0.51 and pbulk-base to 0.46. Add support for reusing old
scan results to speed up the process. Fix a bug that overwrote the
package.log during installation.
2012-11-23 12:13:34 +00:00
abs
ff01d41888 Add openjdk7 & openjdk7-bin to other JVM lists 2012-11-20 11:41:29 +00:00
ryoon
76fa9e2f70 Bump version to 2.17
* Recognize .tar.7z in distfile's name
2012-11-17 11:15:13 +00:00
cheusov
a07b086605 pkg_update_src_summary: fix for the case when there are no new/updated
packages, only removals.  ++pkgrevision.
2012-11-06 20:48:46 +00:00
cheusov
4abdd9413b Update to version 0.59.0
pkg_update_src_summary has been completely reimplemented and now
  works dramatically faster if files under mk/ directory were not
  changed since previous update.

  pkg_src_summary:
    - PLIST field gathering was significantly speeded-up
    - Fix. Option -p works correctly with non-empty PSS_SLAVES
    - Fix. If -A is applied, -m is always enabled for recursive runs.
    - Minor fix for -m.
    - New option -F was added
    - Minor fixes for PLIST and ALLDISTFILES
    - PSS_PPERS was completely removed

  cvs_checksum:
    - checksums of CVS files are output by default

  pkg_digger:
    - pkg_digger_backend has been renamed to pkg_digger_summary,
      man page was added for pkg_digger_summary
    - new search backend pkg_digger_installed

  pkg_list_all_pkgs:
    - new options -a and -d were added

  New utility makefiles2deps was added.

  A lot of new regression tests, updates for man pages, minor code
  clean-ups
2012-11-04 17:09:21 +00:00
wiz
b459a6d6cd Sort options and their descriptions. 2012-10-31 22:57:40 +00:00
wiz
f53097cfa7 Fix xref, sort sections, use more markup, remove superfluous Pp. 2012-10-31 22:55:40 +00:00
apb
46cc27a04c Markup to prevent "e.g." from being misinterpreted as the end of a sentence.
(Not bumping the version number for this.)
2012-10-31 14:47:08 +00:00
apb
880c31542f Add the ability for libkver to override all four of ostype, osrelease,
machine, and machine_arch.  Add a helper script to simplify use of
libkver.  Set VERSION=0.7.

An earlier version of this change was reviewed by seb@NetBSD.org.
2012-10-31 14:41:55 +00:00
wiz
a825c28ac2 Remove xextproto/buildlink3.mk in most cases where it occurs with
libXext/buildlink3.mk, now that it is included there.
Leave the places where its API version is set or variables from it
are used directly (about 3 packages).
2012-10-23 10:24:02 +00:00
joerg
583235ceb8 Deal with messed up linkage on Linux by always linking against libcrypto
and libssl when linking against libfetch, if the latter is built with
SSL support.
2012-10-21 09:08:56 +00:00
joerg
6a122f2540 Revert bogus warning flags. 2012-10-15 21:27:08 +00:00
cheusov
5c505ae149 Update to 0.58.5
pkg_summary2deps:
    - Fix. Dependencies from packages having non-empty ASSIGNMENTS
      were not recognized correctly.
2012-10-12 17:42:09 +00:00
marino
2ea50940af pkgtools/packagekit: Fix build for gcc 4.6+
Remove clang condition around -Werror removal.  GCC 4.6+ needs this
as well to build.
2012-10-12 08:02:35 +00:00
marino
e9f4a1d8f8 pkgtools/pkg_install: Fix build on gcc4.7
pkg_install uses source files from net/libfetch so it needs the same
no-strict-alias flag at libfetch when building on gcc 4.7
2012-10-09 07:36:08 +00:00
adam
ed93f0ca47 Revbump after updating graphics/pango 2012-10-08 23:00:34 +00:00
ryoon
cbd2d273cf Bump version to 2.16
* Recognize .tar.xz in distfile's name
2012-10-06 13:06:31 +00:00
cheusov
2b0935b82d Rename SUDO configuration variable to DISTBB_SUDO.
This fixes a failure of ruby193-base package. ++pkgrevision
2012-10-05 17:14:54 +00:00
wiz
c81876a58c Bump version for python25 removal changes. 2012-10-03 22:17:18 +00:00
wiz
6881df6a4c Update for python25 removal. 2012-10-03 22:14:00 +00:00
wiz
3184463075 Bump all packages that use perl, or depend on a p5-* package, or
are called p5-*.

I hope that's all of them.
2012-10-03 21:53:53 +00:00
tron
78f9c75877 Mass recursive bump after the dependence fix of the "cairo" package
requested by Thomas Klausner.
2012-10-02 17:10:28 +00:00
wiz
5743a873c7 Also commit changes to buildlink3 files. Ride today's version bump. 2012-10-02 17:10:10 +00:00
wiz
b0343cad68 Improve description of makebump.manual handling. Noted by tron.
Bump version.
2012-10-02 13:59:02 +00:00
tron
932e9f2cc6 Increase version number to 0.71 instead of bumping the revision. Also
increase the minimum required version to 0.71.
2012-10-02 12:17:10 +00:00
tron
6f0f290000 Increase the minium required version of the "x11/libxcb" package to 1.6.
There are at least two packages ("graphics/cairo" and "x11/xlsclients")
which require this. And we definitely want to avoid the situation where
both the based and "pkgsrc" version get used at the same time.

Bump all the packages which use the "x11/libxcb" package except the two
which already require version 1.6. For those package remove the manually
set minimum required version.

Change discussed with Thomas Klausner in private e-mail.
2012-10-02 12:09:40 +00:00
jperkin
62c8c7fe77 Ensure that MACHINE_ARCH from pkgsrc is used rather than the default
value from make or uname.

Removes "x86_64 != i386" warnings from pkgin on 64-bit Solaris.

Bump PKGREVISION.
2012-10-02 11:28:42 +00:00
asau
15efe1aef7 "user-destdir" was made default, don't set it. Bump version. 2012-09-30 09:06:50 +00:00
cheusov
85ef7fff4e Update documentation for {PYTHON,RUBY,PHP}_VERSION_REQD variables, move them
to "user variables" section.  pkglint is now aware of them.  Bump pkglint
version.  Oked by wiz@
2012-09-16 20:03:50 +00:00
dholland
a7b3d88e06 Drop back to diff without -p before giving up because of rcsids appearing
in the diff output. Also, improve the error message that occurs if this
also fails. Fixes PR 46962.
2012-09-16 18:09:53 +00:00