Commit Graph

101 Commits

Author SHA1 Message Date
espie
06e9fb91d4 new option: -needed, to speed lib-depends-args. 2011-11-15 20:02:38 +00:00
jasper
3dcf344837 Make output slightly more similar like gnu libtool in various
modes. Simplify Exec->command() a bit too while here as suggested by espie@

ok espie@
2011-11-14 22:12:08 +00:00
espie
8890044380 weights in the -I option as well 2011-11-14 21:59:45 +00:00
espie
2f6111d127 explain to the engine how to install stuff when it's ready (no error
checks though).

new -I option to do that.
change -C option to be more useful.
2011-11-14 21:57:47 +00:00
espie
185cd0210d some times, your machine will crash and leave behind empty files...
ignore empty plists
2011-11-11 11:35:32 +00:00
espie
9efee931ed smarter dump at end of build:
- try resolving RDEPENDS on tobuild, so that known dependencie are zapped.
- use equivalence info to not reprint same thing twice.
- dump tobuild AND built, since both are usually relevant in case lots of
stuff didn't build
2011-11-09 08:28:55 +00:00
espie
a2a17ea97a fix for pkgpaths changes 2011-10-17 10:18:16 +00:00
espie
852e15455d let -S work again 2011-10-11 09:50:35 +00:00
espie
234027bfe0 unfuck pkgpaths.
- instead of seen/unseen, have an actual constructor. Instead, mark pkgpath
for which we wantinfo/wantbuild.
- only mark EXTRA dependencies as wantinfo. So the devel/haddock,no_deps
temporary error should be gone.
- since we have FLAVOR and SUBPACKAGE available, construct as much info as
we can during vars scanning (see handle_equivalences). This avoids about 150
path rescans during a full bulk. Also, grab the timing and logsizes from
equivalent files, so that most stuff should know show % all the time.
- tweak subdirlist to be a hash, and correctly add pkgpath_and_flavors to it.
That way, we rescan avahi pseudo flavors just once, and not four or five times.
2011-10-10 18:56:50 +00:00
espie
7fb255ef24 make dpb more useful for people hacking on ports, allow them to not clean
the work directory after building.
2011-09-25 10:41:30 +00:00
espie
ed1516a867 beginning of a fetch-only option that is supposed to replace mirror-maker
eventually.

- fetch all files
- ignore ignores
- specific builder that doesn't look at existing packages

currently: does not stop when  fetch is finished, which is somewhat of the
remaining issue.

Also: change stats to store pid, to make sense of interleaved log files.
2011-09-13 09:46:53 +00:00
espie
7d2e0671f7 if you ran the previous link-checksums, you have weird "by_cipher" all
over the place. run "link-checksums fix"  once to fix it.
2011-09-05 07:59:28 +00:00
espie
291a01e77a fix 2011-09-05 07:46:12 +00:00
espie
edfba53503 replace with a perl script
- runs cksum just once per file
- optionally uses an sqlite db to store already seen files.
2011-09-04 17:01:19 +00:00
espie
a88700cf54 add extra files at the end of ARGV, not the start 2011-07-14 12:44:39 +00:00
espie
a76e6ce09c turn on -f2 by default 2011-07-14 11:02:50 +00:00
espie
bab62dbd7b cheat a little, get FULLPKGNAME to backsubst early
"fix" fullname: subst things to find about / at beginning of name
2011-06-22 12:55:26 +00:00
espie
9ba6fb7c5c - unify code in Fetch/Build subengines
- zap heuristic#3, not critical
- don't rebuild the Fetch queue all the time, it's too expensive
- fix bugs in FetchQueue computation, correctly handle 1 distfile case
- create a quick path thru adjust* that handles only new paths.
- use it during LISTING while fetching files, to make more files available
quicker.
- model distfiles as FDEPENDS, DIST, so that they can get dumped.
- add -v option that dumps a bit more stuff in log files.

with these, dpb will fetch all distfiles in a not too surprising order,
and it won't consume 40% cpu while doing so...
2011-06-02 17:09:25 +00:00
espie
0594474469 if stuff does not resolve, show a better error message, to help people
with broken symlinks
2011-06-02 17:00:14 +00:00
espie
1e22893e8e if we -f -a, then scan SUPBDISTFILES too, and use the Distfile cache
to write a list of all known distfiles, that can be used to remove extra
stuff from /usr/ports/distfiles
2011-05-29 11:06:23 +00:00
espie
8cef021866 initial support for fetching distfiles, somewhat experimental yet.
- clean up clock handling, jobs with timer.
- pass more parameters thru state
- tweak the engine to handle distfiles
- lots of new code in Fetch for new jobs.
2011-05-22 08:21:38 +00:00
sthen
068886bea6 treat -all-static like -static; fixes sysutils/nut CGI scripts which
should be linked statically as reported by David Talkington. Tested with
all ports showing in bulk build logs as using -all-static.

"that looks ok for our needs" steven@
2011-05-16 20:09:54 +00:00
sthen
8659e4faad Remove code to support FreeBSD emulation, ok espie@ 2011-04-25 23:01:03 +00:00
espie
afdb81839a finish refactoring options.
Deprecate: -t and -T
use -DCONNECTION_TIMEOUT=... -DDISPLAY_TIMEOUT=... instead
New feature: -DSTUCK_TIMEOUT=
kill tasks when they don't show any progress for that long.
2011-04-25 11:58:46 +00:00
espie
cd0ba747ac more option handling refactoring 2011-04-24 09:14:45 +00:00
espie
41d3fc886a move $heuristics into $state 2011-04-24 08:34:05 +00:00
espie
69684267b3 get options to parse 2011-04-24 08:07:02 +00:00
espie
2ad5e5806c refactor options slightly 2011-04-24 08:02:07 +00:00
espie
66650886f9 okay, we're dpb and no longer dpb3 2011-04-18 14:00:57 +00:00
espie
b5b62e9c6b if we don't have rights to write into lockdir, it's generally bad news, avoid
getting stuck.

work with Stefan Rinkes.
2011-04-13 08:37:16 +00:00
espie
1c93a7f734 auto-complete build dir with arch and build.log 2011-04-05 08:23:00 +00:00
espie
46fd3f5a96 use FindBin if the portsdir was moved.
fix error message
2011-03-07 10:06:36 +00:00
jasper
872d49a562 - Use full path to ldconfig
- Adjust error message
      ok steven@
2011-03-02 08:06:33 +00:00
ajacoutot
223ba194c4 Brought to you by the king of slack!
Manually removing TABs is an exhausting job, so make the analyse
function output compatible for copy/paste into a port Makefile.

"yes yes yes" sthen@
ok landry@ espie@
2011-01-26 12:53:46 +00:00
espie
8865e138dc have check-common-dirs find dependencies not specified on the command line
if it can.
2011-01-17 20:08:08 +00:00
espie
e982ee096f print everything thru $state 2011-01-11 11:25:53 +00:00
espie
26982225cb move this too 2011-01-11 11:24:05 +00:00
espie
34f55e5a2e check that the package name itself does not go backwards as well 2010-12-29 12:33:38 +00:00
espie
2d255d213d small hack to make these work even if PORTSDIR is not set and non-standard,
since the lib are supposed to be in the same relative location.
2010-12-29 12:28:23 +00:00
espie
f0e0a9480c pass state around 2010-12-24 10:31:40 +00:00
espie
b87d7dd53f put stuff in separate modules 2010-12-07 08:46:28 +00:00
espie
3f9f91390c teach register-plist that pkgspec-version is equivalent to pkgspec-=version 2010-11-26 07:17:10 +00:00
espie
c401210b5d allow register-plist to do a quickie on print-plist 2010-11-07 00:01:40 +00:00
steven
8f06d3f7fd make die messages a bit more consistent 2010-11-01 13:40:36 +00:00
steven
63596c6ac2 give Program its own install sub as well 2010-11-01 13:26:41 +00:00
steven
72dd1c9832 zap unused variable 2010-11-01 13:05:57 +00:00
steven
89d04d4736 simplify sequence of events a bit in the install subroutine 2010-11-01 13:05:13 +00:00
steven
c5236210fe factor code to install .la file and associated files into its own sub 2010-11-01 12:48:15 +00:00
espie
a6fdaa4a74 do -d automatically, we don't really need that option 2010-11-01 12:24:47 +00:00
espie
8a26786deb new file/option: save dependencies and be able to reuse them.
makes for a "quick listing" of the most important ports first (e.g., groff).
document -R, even though it's not perfect yet.
flesh out all the recent parts and update the BUGS AND LIMITATIONS section.
2010-10-31 11:07:20 +00:00