Commit Graph

3203 Commits

Author SHA1 Message Date
jasper
5d931b8d90 - use mktemp -t
from rpe
ok espie@
2012-08-27 11:24:52 +00:00
jmatthew
2071810bf7 reserve uid for databases/riak 2012-08-24 04:18:02 +00:00
espie
0b523b0598 according to Theo, somebody reported this to me (?)
in any case, this should "fix" krw's problem, by allowing PkgPath to
actually display the actual program for further debugging.
2012-08-22 07:49:00 +00:00
sthen
0e9cefc2e8 don't list arm twice in ALL_ARCHS, pointed out by Brad some time ago 2012-08-21 16:32:04 +00:00
ajacoutot
057028b194 RCS id cleanup; also add OpenBSD RCS Id where missing... 2012-08-19 22:30:36 +00:00
espie
3b656100b7 well, another error... 2012-08-19 10:36:35 +00:00
avsm
cb284e6f57 Add ocaml_native and ocaml_native_dynlink properties to the arch defines.
These will be used shortly by the ocaml-4 port update.
2012-08-18 21:45:28 +00:00
espie
a6da6e2d7f slow architectures might clean /tmp too eagerly, move the default
LOCKDIR to a local location that's less susceptible to surreptitious
cleanup, that is under WRKOBJDIR

after discussion with sthen@
2012-08-18 07:58:20 +00:00
espie
083fc635e8 fix subpackage bugs.
- correct syntax for variable (Vadim Zhukov)
- both _DO_LOCK and _cache_fragment want to use traps.
Since that's the only place where the problem occurs, simply put the second
trap in a subshell...
2012-08-17 22:32:29 +00:00
ajacoutot
ae2bb3270f Reserve a _polkitd user/group for upcoming sysutils/polkit update. 2012-08-17 09:00:10 +00:00
espie
649b68855b nits 2012-08-15 09:41:33 +00:00
espie
495759d7a0 bye bye READMES remnants 2012-08-15 09:39:26 +00:00
espie
a2a18547bc have perl module work like it should: define extra TARGET_* variables,
and have do-install/do-build use them.

Replace pre-configure with folded in shell fragment.
Don't hardcode perl location, we don't hardcode those things but rely
on PATH instead.

check that Makefile.PL actually produced a Makefile, since the way it
errors out does not exit 1, thus leading to configure having failed and
ports thinking it succeeded...

okay sthen@
2012-08-15 09:38:11 +00:00
espie
64777f79b0 keep state during variable scanning (we see pkgpath in order).
Reset info for a new path systematically, instead of only creating
new infos.

Part of handling erroring paths better: if a pkgpath errors out, when
we remove the lock, the whole port will be rescanned at once, instead of
doing one subpkgpath only.
2012-08-15 09:05:05 +00:00
espie
a673636d3f better messages about caching problems, don't abort if sha info is missing
from distinfo. comment stuff.
(I had this since after the lock, plain forgot to commit it)
2012-08-15 09:02:52 +00:00
jasper
112dc86963 add config.no-fileutils, tested in a full bulk
ok sthen@ espie@
2012-08-12 17:19:00 +00:00
ajacoutot
9fbcc70f18 The _cups group will not be used in ghostscript anymore. 2012-08-04 15:15:00 +00:00
espie
3831fd5d30 - make SUBST_CMD be subpackage dependent, fixes substitution problems in
README-sub (as noticed by aja@)
- stronger checks for X correctly installed: don't ignore ports if X11
is not there, error out right away. Make sure /usr/local/lib/X11/app-defaults
is a link, and that whatis.db is there (as should be fixed  by release in
xenocara)
2012-08-04 14:23:30 +00:00
espie
5752c45e75 fix caching issues.
- during the scanning stage, we can rely on more than sizes. Specifically,
for files with cached sha values: detect problems early, zap the files, so
the new ones do fetch.

- do not allow "negative" caching: if the cached file doesn't match, just
run the checksum again to make sure (manual download would tamper with that).
This should allow builders to forget about the existence of
/usr/ports/distfiles/distinfo again.

- remove bad files so that fetch has a chance to work (todo: log some more
info, yeah landry...)

- zap code from (checksum) proper  that's no longer in-use.

okay jasper@

(gets in because fixing the mirrors for the release is important, and dpb -F
would not do the right thing without manual intervention).
2012-07-20 11:45:33 +00:00
sthen
a5cfa1000f add _yubiserve to user.list 2012-07-19 08:47:01 +00:00
espie
2da54d1547 delete DIST once we know 2012-07-18 10:31:18 +00:00
espie
f16903c2cc don't delete DIST, prevents checksum from doing its job 2012-07-18 10:30:56 +00:00
landry
48155f33a4 Reserve uid 699 for user _mozsync. 2012-07-17 20:19:27 +00:00
espie
f32dd01cdd fix distant listings with SUBDIRLIST 2012-07-12 20:27:19 +00:00
espie
07aff032b9 avoid barfing if run into a directory whose parent contains a Makefile.inc 2012-07-10 22:59:06 +00:00
espie
7591a8ffa0 missed using "clear-to-eol" actually 2012-07-10 14:28:30 +00:00
naddy
0d7d591395 Remove message digest algorithms other than SHA-256 for checksumming
distfiles.  MD5 is known to be insecure and RIPEMD-160 and SHA-1
are considered inferior to SHA-256.

Also, the concatenation of different hashes is not more secure than
its strongest component; see Antoine Joux, "Multicollisions in
iterated hash functions. Application to cascased constructions"
http://www.iacr.org/cryptodb/archive/2004/CRYPTO/1472/1472.pdf

Discussed with many, ok sthen@
2012-07-10 12:04:25 +00:00
espie
171b8a9eee fuck me harder. Separate cases where fullpkgname is allowed not to
be defined, so that instead of bad stringizations, we get full time errors.

Maybe then I can debug this.
2012-07-10 09:38:37 +00:00
sthen
1cdff98732 add LLVM_ARCHS, handled like MONO_ARCHS for easier detection of which
arch can use LLVM.  ok espie@
2012-07-08 18:35:48 +00:00
jasper
d207555654 - fix obivous typo, resulting in always using only one job per host. 2012-07-08 09:59:31 +00:00
espie
40c06ff3d7 prepare for new pkg_add -i/-I: we want to make sure that's NOT interactive! 2012-07-06 12:01:29 +00:00
espie
a352e9cafe prepare for new pkg_add switch 2012-07-06 12:00:52 +00:00
jsing
3b9b08fe9d The rfork syscall is now obsolete.
ok sthen@
2012-07-04 16:02:13 +00:00
sthen
2c88c52787 remove all the individual sourceforge mirrors, just rely on the redirector
at downloads.sourceforge.net; all the FRS mirrors just redirect us back there
to lookup the file as ports don't have logical folder names in the file paths.

add an XXX comment because we don't _really_ want to be relying on this:
to be revisited.

noticed after no-longer-existent mirrors pointed out by fgs@
2012-07-04 09:18:42 +00:00
espie
f7ea023751 remove distinction between local and distant running, always create
a shell object that can chdir, setenv, and exec commands.
(note that this executes stuff after fork, so permanent changes are cheap
and okay)

Also create it from "host" objects, which simplifies parameter passing.
2012-07-04 08:59:10 +00:00
espie
7373a518c1 somehow, I had forgotten to document this defaults to 250 2012-07-02 10:31:08 +00:00
jasper
c7b20a8d82 zap mac68k references 2012-06-20 21:17:38 +00:00
espie
134ac2cd91 allow users to say MESSAGE-main=
to have empty messages, useful in a multi-package context
(as noticed by aja@)
2012-06-20 13:26:17 +00:00
espie
76fbad9f1b those have been moved to base/ 2012-06-19 16:47:06 +00:00
espie
7b5d36d556 switch to libtool from src, since it will now be in the snaps. 2012-06-19 16:43:47 +00:00
espie
5a916fc963 handle the very special case of ports-readmes, after discussion with
landry, sthen
2012-06-18 12:15:52 +00:00
espie
6ffbfdc3a9 fix sig for LIB_DEPENDS 2012-06-15 10:31:52 +00:00
espie
f217f9b069 match src/ change.
*keep ports and src in synch* or out-of-date won't work at all.
2012-06-14 13:34:24 +00:00
espie
d808116161 Use :Q, it will quote a lot more in a correct way. 2012-06-09 21:14:43 +00:00
sthen
8f529f75b3 quote the permit_cdrom and permit_ftp variables used in the new checksum
code, as they can contain spaces.  ok espie@
2012-06-08 23:51:21 +00:00
espie
98a72af47d typo 2012-06-08 15:17:02 +00:00
espie
3294a50c3d add support for sha256 packages as they're built.
after discussion with aja@
2012-06-08 14:46:54 +00:00
sebastia
011bac4f6e Fix typo
ok dcoppa@, aja@
2012-06-07 20:52:41 +00:00
pascal
769ccfc457 Add BE_ARCHS and LE_ARCHS vars to be able to determine endianness.
ok espie@
2012-06-04 18:41:46 +00:00
espie
482f234b05 this is tricky enough to warrant an actual comment 2012-05-28 09:54:18 +00:00
espie
27f4c3dc4f forgot cruft from readmes 2012-05-28 09:43:17 +00:00
espie
b6c9f9baf3 zap old readmes infrastructure, replaced by new age databases/ports-readmes
which is ways more accurate anyways.
2012-05-28 09:38:04 +00:00
espie
d19515c7c3 make it possible for print-plist-with-depends to control lib-depends entirely
(useful for future update-plist)
2012-05-26 12:04:35 +00:00
espie
ef74243178 adjust interface slightly 2012-05-16 08:22:22 +00:00
jasper
fbebf9fd0d don't append ccache to BUILD_DEPENDS if NO_BUILD is set to Yes
ok sthen@
2012-05-16 06:36:56 +00:00
espie
7bc86a3598 whine for pkgpaths with extra / 2012-05-15 11:48:07 +00:00
espie
a3e1fdee35 split the PkgPath component into a base class so that sqlports will be
able to reuse it
2012-05-15 10:10:13 +00:00
robert
6217eaa4ca add the _yule user for the samhain port 2012-05-11 09:39:51 +00:00
jasper
ec251be3fa "fix" a line which emacs loudly complains about...
ok espie@
2012-05-08 17:38:21 +00:00
halex
1fbdcad4e3 call exit 1 after cleanup in signal traps, or the shell keeps running after
SIGINT and friends

ok espie@
2012-05-07 21:11:43 +00:00
espie
5ce8777473 just some nits 2012-05-07 15:57:51 +00:00
jasper
9ce18adad7 add MASTER_SITE_DEBIAN
ok sthen@
2012-04-30 19:21:25 +00:00
ajacoutot
9eeb9a1c1b Set localstatedir (i.e. BASELOCALSTATEDIR) to /var by default if
CONFIGURE_STYLE is gnu.
Works the same way as SYSCONFDIR, one can append a subdirectory to
change the default localstatedir by using the following construct in the
port Makefile:
LOCALSTATEDIR=	${BASELOCALSTATEDIR}/foobar

Note that this variable in not substituted in PLIST.

bulk tested by landry (on a previous diff)
ok jasper@ sthen@
2012-04-28 10:50:35 +00:00
jasper
1e60eb0d4f bye bye aterm 2012-04-26 19:18:50 +00:00
naddy
1f9f1ae603 5.1 CD packages 2012-04-23 17:54:15 +00:00
espie
c1c992e6a5 dump-vars should show VMEM_WARNING 2012-04-22 10:39:48 +00:00
espie
7fdfa19c5a make sure stuff gets thru ssh correctly 2012-04-21 21:09:07 +00:00
espie
5db27d90a1 fix env name for wrapper program 2012-04-21 14:41:37 +00:00
espie
8dc35a6962 make it possible to use a specialized wrapper to collect rss stats 2012-04-21 11:30:53 +00:00
espie
390cba80df handle modbuild (perl module) stuff similarly to what gnu does.
there's no actual reason not to do it.
2012-04-17 09:31:47 +00:00
espie
b411a2917d strip PORTSDIR (or equivalent) from DESCR the same way we compute PKGPATH.
avoids random changes of INDEX depending on where the ports tree is installed
and configured.
2012-04-16 09:21:39 +00:00
landry
fd5a44dd70 Oops, unbreak by providing an empty GCC3_ARCHS. 2012-04-12 15:06:05 +00:00
landry
3cd365fcdd Move sh/landisk to GCC4_ARCHS.
ok phessler@ naddy@
2012-04-12 11:46:35 +00:00
phessler
4e79f499c5 reserve user for cvsyncd
OK naddy@
2012-04-10 19:51:13 +00:00
espie
8cb5363e94 whitespace 2012-04-10 17:06:15 +00:00
espie
ff2903bf59 document -DNO_BUILD_STATS on the off chance someone would ever need it. 2012-04-10 17:00:29 +00:00
espie
b56361e24c always do default stats, unless we explicitly disable them with -DNO_STATS 2012-04-10 16:58:47 +00:00
espie
0deaaa9fa4 avoid spewed warnings in case we don't care. 2012-04-10 16:50:33 +00:00
espie
55635c592a synch documentation 2012-04-08 10:20:42 +00:00
espie
2ecf172edb elide empty L= / E= lines 2012-04-07 12:16:58 +00:00
espie
a01f052d1c on accelerated boxes, one can keep the cursor visible.
make that the default, keep vis/invis as -DNO_CURSOR.
2012-04-07 12:13:36 +00:00
sthen
ea3e106e55 reserve uid for sslh port 2012-04-06 09:06:34 +00:00
jeremy
10af9db5ef Add MASTER_SITE_NPM, needed by the www/node module.
OK sthen@
2012-04-03 19:00:29 +00:00
espie
9cbe5aecb1 have a look at PORTSDIR_PATH as well, so that we can dpb -P dir/p
under mystuff.

problem noticed by jeremy@
2012-04-02 15:51:24 +00:00
espie
b2a184c1df fix landry's error.
forget was in the wrong class, oops.
2012-04-02 09:21:18 +00:00
sthen
883f01ba39 SEPARATE_BUILD=simple->Yes 2012-03-29 13:41:58 +00:00
espie
5572ec286f ignore build_stats for logging distinfo (and clean-old-distfiles(1)). 2012-03-22 16:09:37 +00:00
espie
f456512a27 error out if PORTSDIR is not set to the real directory.
There are at least two or three ports that don't like symlinks. ;/
2012-03-22 14:08:50 +00:00
sthen
6b28800485 reserve user for maradns deadwood 2012-03-20 22:31:56 +00:00
ajacoutot
92940c6df6 Add the _colord user and group. 2012-03-19 08:21:55 +00:00
espie
4fe1c88e80 quickpath to fullpkgpath, called a lot during adjust. 2012-03-13 16:48:47 +00:00
espie
ca5467b575 there's no longer any need to keep track of build.log manually, as it
gets taken care off thru %p/build-stats/%a
2012-03-09 21:18:40 +00:00
espie
11d2036d1a duplicate -m option, resolve conflict by renaming old unused one to -M.
Document some new stuff
2012-03-09 15:16:38 +00:00
espie
38db8f2149 tweak weight handling so that fixing weights and scaling weights works.
add -m option as a reverse to -x, like in pkg_add
2012-03-09 12:51:38 +00:00
sthen
4c24feea48 .poison SEPERATE_BUILD 2012-03-09 11:38:56 +00:00
espie
d1754a0b78 fix things when we don't have any statistics to start with 2012-03-06 13:41:38 +00:00
espie
bffed54177 create build-stats dir (noticed by Mark Patruck) 2012-03-06 11:22:40 +00:00
espie
5327873dc1 fix -a bug: if you specify -I ..., this shouldn't negate a -a.
"permanent build log" under %f/build-stats/%a
-J250 by default
2012-03-05 19:43:09 +00:00
sthen
dc0ad8c2f5 reserve uid for www/trac 2012-03-03 11:40:32 +00:00
espie
a366b51e34 %f for distdir (where fetched distfiles live) 2012-03-02 19:35:09 +00:00