Age | Commit message (Collapse) | Author | Files | Lines |
|
* In test, match the "make makesum" warning more loosely.
* In test, find packages to run against in $PKGSRCDIR explicitly.
* Bump version.
This is the last commit in a set developed for my "Rehabilitating
pkglint" talk at pkgsrcCon 2013.
Reviewed-at-pkgsrcCon-and-approved-during-the-freeze-by: wiz
|
|
This regex almost certainly didn't intend to match an occurrence
of "ARRAY" in PkgLint::Line, but it did match.
|
|
Leave the silly self-grep in place, adjusting to also match the
lines that initialize the dispatch table. The underlying code is
better and the tests still pass. (No functional change intended.)
|
|
pkglint greps itself (really) to generate this list of types. Test
exhaustively for all types in the list today, so that the tested
code can become more civilized tomorrow. Adds a test-time dependency
on Test::Deep for cmp_bag().
|
|
This is more correct and more polite. For instance, pkglint.t no
longer needs to declare a package of its own just for tests.
|
|
In the configure stage, tell pkglint to find *.map in ${FILESDIR}.
That lets tests run even when pkglint isn't installed (which means
it also makes the tests less wrong when pkglint is installed!).
In the install stage, tell pkglint to find *.map under ${PREFIX},
as before (no functional change to the installed package).
Specify USE_TOOLS=perl to quell pkglint. :-)
|
|
|
|
These bits of non-main functionality are distracting to the casual
reader, and also to your intrepid refactorer. Since we recently
added some characterization tests that run the pkglint executable
against real packages, we can safely extract bits of code to separate
files and prove nothing broke in the move.
Instead of installing the new Perl modules where pkglint can find
them at runtime, I've added a build step to inline them right back
where they used to be (same order and everything). This is a little
annoying, but less annoying than suddenly needing to deal with Perl
runtime paths just for these few tiny modules. Also, loading modules
at runtime would affect pkglint's performance, and I don't yet have
performance tests to prove that this would be fine (or not), so I
can't safely do it.
No functional change intended.
|
|
|
|
This is the first commit in a set developed for my "Rehabilitating
pkglint" talk at pkgsrcCon 2013.
Reviewed-at-pkgsrcCon-and-approved-during-the-freeze-by: wiz
|
|
|
|
the legacy /bin/sh.
Fix from asau.
|
|
by default).
|
|
|
|
|
|
All script use TMPDIR environment variable for creating temporary
files if it is set.
makefiles2deps works dramatically faster!
|
|
nih install:
- Order of packages does matter
("nih install emacs- editors/emacs22" is correct)
- Option -P and new config variable NO_REQPROV_CHECK were added
- Option -L and new config variable NO_REMOVE_LEAVES were added
- "Nothing to be done" message is output if everything is up-to-date
- Download failures and cksum failures are handled differently
- Handling CONFLICTS between installed packages and packages to
install are handled differently. Now package splits and similar
problems are resolved with a help of "fake" packages. Fake
packages are always marked for updates.
New option -f for "nih list" was added in order to list them
- Improvemed download progress messages
nih uninstall:
- Option -L was added, see "nih install -L"
- Options -p and -P were added. See "nih install"
nih leaf:
- Command was reimplemented and simplified
- Option -t option was removed
pkg_status doesn't have -ltRn options anymore
- Option -r was added
nih search:
- Option -I uses pkg_digger_installed provided by pkg_summary-utils
pkg_update_plan:
- Fixes in error messages
nih search|meta|info:
- Option -p was added. With a help of it one may search in
pkgsrc packages offline. Also see "nih refresh -p" and man page
Now nih works correctly if REPOSITORY is a directory
Fixes for shell's "trap" command.
|
|
|
|
|
|
|
|
|
|
|
|
noticed by gson@.
|
|
|
|
Let to expand libtool archive (.la) automatically, so no need to mainain X11
file list manually anymore (every OS update may include shlib version change),
if the OS provide .la file (and no need to mind shlib type).
|
|
|
|
|
|
|
|
since it lacks too much knowledge about multi-version packages.
|
|
|
|
as BROKEN for a long time.
|
|
eliminate (api_major.api_minor/shared_data/mount_registory) part.
|
|
for Windows (Cygwin) to using static library.
|
|
|
|
|
|
|
|
|
|
|
|
Previously included in pkg_chk, but it doesn't fit there well.
Bump version.
|
|
|
|
|
|
|
|
stage_upload_pkgs:
- delete outdated packages after uploading
- extra files are removed from remote repo
- no verbose flag for rsync
Serious fixes in stage_init
- PKG_UPDATE_SRC_SUMMARY_CMD: -m is passed to pkg_src_summary by default
Fix in signals handling
Fix in "make-depends" (unknown function is_true)
Fix: distbb -a option works correctly if pkg_summary.txt doesn't exist
upload_pkgs_all_files:
- directories and links are also output in addition to files
distbb checks arguments passed to -x|-X for correctness.
Configuraton variable SUDO was renamed to to DISTBB_SUDO.
This fixed build failure of ruby193-base
Configuraton variable OS was renamed to OPSYS
Stderr of pkg_summary2deps is now a part of the final report
|
|
|
|
Welcome to 20130131.
|
|
|
|
|
|
(presumably only under Mac OS X Mountain Lion). "Xquarty" simply doesn't
print out anything if you run it with "-version".
This avoids a lot of warning messages from "bmake" while building packages
that use X11.
|
|
a couple tests for get_vartypes_map(). TODO: test and refactor
checkline_mk_vartype_basic().
|
|
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.
|