summaryrefslogtreecommitdiff
path: root/Mk
AgeCommit message (Collapse)Author
2015-11-13- Only consider missing dependency origins to be fatal if they were notBryan Drewery
satisfied and needed to be installed. This restores older behavior of allowing a partial checkout where dependencies are already installed. [1] - Delay fatal errors show that all can be shown at once. With hat: portmgr Reported by: lev [1]
2015-11-13Refactor the list of all excluded options so that the second place it isMathieu Arnold
needed is not forgotten any more. PR: 204510 With hat: portmgr Sponsored by: Absolight
2015-11-09Fix partial tree checkouts with 'all-depends-list', 'make clean', etc, afterBryan Drewery
inclusion of the ports_env feature into that handling around r399791. With hat: portmgr Reported by: ian, lev
2015-11-09Don't use cookie for test targetDmitry Marakasov
Test target doesn't produce anything and nothing depends on it. Also it's often useful to run tests multiple times in a row, so having a cookie which remembers that the tests were already ran and inhibits subsequent test runs is needless. It also eliminates the need for retest target. Approved by: portmgr (mat) Differential Revision: D3875
2015-11-09When !defined(DEVELOPER), stage-qa is not put in the stage pipeline.Mathieu Arnold
Make it depend on stage, and point people to adding DEVELOPER=yes to their environment. Discussed with: bapt Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D4082
2015-11-09Remove support for WANT_SDL/HAVE_SDL knobsDmitry Marakasov
WANT_SDL/HAVE_SDL macros allowed a port to check which SDL components are installed. This goes against the policy of avoiding automatic dependencies, and there are actually no cases in the portstree where these knobs are used properly, so axe them out. Approved by: portmgr (mat) Differential Revision: D4093
2015-11-06Don't hardcode CCACHE_DIR.Bryan Drewery
PR: 199509 Submitted by: ngie (based on) Sponsored by: EMC / Isilon Storage Division With hat: portmgr
2015-11-06Fix build with DOCS=off after r400846.Jung-uk Kim
2015-11-05Change the meaning of NO_WRKSUBDIR to force a WRKDIR != WRKSRC.Mathieu Arnold
Right now, NO_WRKSUBDIR means that the extraction does not produce a subdirectory, and that everything goes straight into WRKDIR. It is problematic, because during the build of a port, quite a few files are created in there, and then, a stage directory, where everything is installed, and then a pkg directory where the package is created, and those often conflict, or get in the way, of the building process. With this, NO_WRKSUBDIR will extract the distfiles directly into WRKSRC instead of WRKDIR. In this case, WRKSRC is artificial and is based on PKGNAME and not DISTNAME, mitigate conflicts with rc files. PR: 204056 Submitted by: mat Reviewed by: bapt Exp-run: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D2735
2015-10-29Fix a bug introduced in r399992, where creating only a user would failBrad Davis
due to $PW not being set. This only occurred when just a user was being created without a group. Solve this by setting $PW outside of the group creation and above both the user and group creation parts. PR: 203489 Reviewed by: bapt Approved by: portmgr (bapt) Approved by: bdrewery (mentor)
2015-10-24Mk/bsd.sites.mk: Remove non-PEP449 Python mirrors [Part III]Kubilay Kocak
PEP-449 [1] describes the 'Removal of the PyPI Mirror Auto Discovery and Naming Scheme'. The main elements of this (Accepted) proposal are: Removal of [a-z].pypi.python.org DNS CNAMES Replacing individual mirrors with a single Geo-aware CDN service Previous revisions 365159, 347895, 342514 deprecated several individual mirrors and *.pypi.python.org aliases. The following changes (Part III) completes the (PEP-449 compatibility) transition: Remove pypi.crate.io (NXDOMAIN) Remove pypi.python.jp (Outdated, Broken for DISTNAMEs w/ hyphens Switch to TLS (HTTPS) MASTER_SITE by default Leave a non-TLS (HTTP) MASTER_SITE for fallback (proxy environments) This change is also likely to fix PyPI (CHEESESHOP) update detection in Portscout, at least until upcoming changes for the portscout port add a dedicated sitehandler for it (and GitHub). [1] https://www.python.org/dev/peps/pep-0449/ MFH: 2015Q4 Differential Revision: https://reviews.freebsd.org/D3972
2015-10-22Teach the ports framework to handle creating users/groups whenBrad Davis
PKG_ROOTDIR is set. This will enable help support pkg cross installs. PR: 203489 Reviewed by: bapt Approved by: portmgr (bapt) Approved by: bdrewery (mentor)
2015-10-22- Add shebangfix documentation bitsDmitry Marakasov
- Fix tcl_OLD_CMD tk_OLD_CMD Approved by: portmgr (bapt) Differential Revision: D3939
2015-10-21Revert r399921 for now due to fallout with libclc using ninja.Bryan Drewery
2015-10-21Enable verbose (compiler output) builds for autotools builds when packageBryan Drewery
building as these commands can be critical for debugging build failures. Discussed with: bapt, kwm With hat: portmgr
2015-10-21PLIST_SUB entries need paths relative to PREFIX.Mathieu Arnold
With hat: portmgr Sponsored by: Absolight
2015-10-20Rework change in r399791 for default perl to not execute it on 'make clean'Bryan Drewery
if perl is not installed. With hat: portmgr
2015-10-20Roll all of the commands into a loop and use the same patterns for every lang.Bryan Drewery
- /usr/bin/CMD - /bin/CMD - /usr/bin/env CMD With hat: portmgr Reviewed by: bapt, amdmi3 Differential Revision: https://reviews.freebsd.org/D3942
2015-10-19Avoid redundantly looking up python command executions for dependency ↵Bryan Drewery
calculation. This gets all-depends-list in x11/kde4 down to 30 seconds after the 52->41 second improvement in r399703. With hat: portmgr
2015-10-19Avoid redundantly looking up perl version when looking up dependencies or in ↵Bryan Drewery
sub-makes. With hat: portmgr
2015-10-19- Combine clean-depends-list.sh into depends-list.shBryan Drewery
- Refactor how depends-list.sh is called from bsd.port.mk for each variant. With hat: portmgr
2015-10-19The command environment from r399703 is only needed if recursing.Bryan Drewery
With hat: portmgr
2015-10-19Fix test-depends after r399703.Bryan Drewery
With hat: portmgr
2015-10-19When listing dependencies, export the common command execution results.Bryan Drewery
In some basic benchmarks this sped up 'all-depends-list' about 20%. x11/kde4 went from 52 seconds to 41 seconds. More improvement is expected once more command executions are cached in the 'export_ports_env' function. With hat: portmgr
2015-10-19Add some work-in-progress scripts for splitting symbols out into ↵Bryan Drewery
PREFIX/lib/debug. This is only missing the bsd.port.mk pieces to hook it up fully. A blocker for hooking that up has been sub-packages, even though some implementation could be made without them. For now just commit what I have so it is not forgotten. Obtained from: OneFS Sponsored by: EMC / Isilon Storage Division With hat: portmgr
2015-10-19Switch strip test to using readelf(1) instead of file(1) to identify symbols.Bryan Drewery
This has been slightly faster in my tests since readelf(1) will fail on the file much quicker if it doesn't find the ELF headers. This also more directly finds the symbol table. With hat: portmgr
2015-10-19Make OpenJDK 1.8 the defaultSteve Wills
2015-10-19Improve shebangfix frameworkDmitry Marakasov
- Support multiple values in *_OLD_CMD, i.e. we can now fix both "/usr/bin/python" and "/usr/bin/env python" at the same time - Default *_OLD_CMD values are now always appended, so you don't need to specify them in individual ports - Add lua support (depends on USES=lua) - Add more default values, such as "/usr/bin/env foo" for python, perl, bash, ruby and lua - Shebangfix now matches whole words, e.g. we will no longer (erroneously) replace "/usr/bin/perl5.005" with "${perl_CMD}5.005" (but "/usr/bin/perl -tt" is still (correctly) replaced with "${perl_CMD} -tt") Note that *_OLD_CMD items containing spaces must now be quoted (e.g. perl_OLD_CMD=/bin/perl /usr/bin/perl "/usr/bin/env perl") Update shebangfix usage according to new rules in many ports: - Remove *_OLD_CMD for patterns now replaced by default - Quote custom *_OLD_CMD which contain spaces Fix shebangfix usage in many ports (irrelevant to infrastructure change): - Remove redundant SHEBANG_LANG (no need to duplicate default langs) - Remove redundant *_CMD (such as python_CMD=${LOCALBASE}/bin/python${PYTHON_VER} when USES=python is present) - Never use *_OLD_CMD in REINPLACE_CMD matchers, these should always look for exact string Approved by: portmgr (bapt) Differential Revision: D3756
2015-10-15Drop 8 support.Mathieu Arnold
With hat: portmgr Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3694
2015-10-15Readd PORTSDIR for now we will only start removing them after 2016Q1 is branchedBaptiste Daroussin
This gives more time for tools to get updated, available in packages etc before bothering users
2015-10-14Temporary readd ${PORTSDIR} to perl5 deps as somewhow they are triggeringBaptiste Daroussin
an issue with sanify check in poudriere that needs to be fixed first Reported by: adamw
2015-10-14Drop the necessity to add ${PORTSDIR} to dependency lineBaptiste Daroussin
Modify make describe to automatically prepend ${PORTSDIR} if the path for the port is not absolute Checked with poudriere, portmaster, portupgrade PR: 203685 Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D3866
2015-10-13Xorg-server update to 1.17.2 with related driver updates and bumps.Koop Mast
Update fontproto to 2.1.3. Update libXfont to 1.5.1. Update xf86-input-keyboard 1.8.1. Update xf86-input-vmmouse to 13.1.0. Update xf86-input-void to 1.4.1. Update xf86-video-chips to 1.2.6. Update xf86-video-cirrus to 1.5.3. Update xf86-video-mach64 to 6.9.5. Update xf86-video-neomagic to 1.2.9. Update xf86-video-r128 to 6.10.0. Update xf86-video-s3virge to 1.10.7. Update xf86-video-savage to 2.3.8. Update xf86-video-siliconmotion to 1.7.8. Update xf86-video-sis to 0.10.8. Update xf86-video-trident to 1.3.7. Update xf86-video-vesa to 2.3.4. * All other xf86-* drivers where bump and/or patched to allow them to compile and work with the new xorg-server. * The ATI-ums driver is removed because the API it depends on was removed from the xorg-server. * Add patch to sunffb to make the lack of XAA non-fatal (not build/run tested due to lack of hardware). * Remove the extra patches in xorg-server for arm. The code seems to support it now natively. Please file a bug if this is not the case. * Update the xorg-server support in virtualbox-ose-additions for vboxmouse. [1] Submitted by: jkim@ [1] Obtained from: Graphics devel repo
2015-10-13Follow-up r399170 with a script, ports_env.sh, that can be used for the purpose.Bryan Drewery
This will allow Poudriere to know if it is possible to use the feature or not by the existence of the file. Also fix quoting issues. With hat: portmgr
2015-10-12Add a function to export vars that bsd.port.mk generates from fork/exec.Bryan Drewery
This will be useful in Poudriere to avoid needless fork/exec for every port when gathering dependencies. Example usage: MAKE=make sh -c '. Mk/Scripts/functions.sh; export_index_env; export PACKAGE_BUILDING=1; truss -f make -C sysutils/zfstools -V BUILD_DEPENDS 2>&1' | grep exec This eliminates 14 exec/fork calls for this example, when PACKAGE_BUILDING is also set during -V. Care should be taken with UID not being passed down into actual builds as it may conflict with non-root builds. With hat: portmgr
2015-10-12Don't check for minimal Pkg version for package building.Bryan Drewery
Package building always builds Pkg first. If someone downgrades their pkg locally this change will hurt them, but then they are already running an unsupported configuration. With hat: portmgr
2015-10-12Name the 'uname -r' variable the same as the bsd.port.subdir.mk version, ↵Bryan Drewery
_OSRELEASE. This will allow passing in the environment consistently from calling script to avoid looking it up if. With hat: portmgr
2015-10-12Apply export handling fixes from bsd.port.mk.Bryan Drewery
- r399153: Use :Q. - r399155: Use a loop to export vars With hat: portmgr
2015-10-12Export more sysctl(8) vars.Bryan Drewery
LINUX_OSRELEASE, _SMP_CPUS (used as default MAKE_JOBS), CONFIGURE_MAX_CMD_LEN. With hat: portmgr
2015-10-12Remove debugging leftover from r399160.Bryan Drewery
With hat: portmgr
2015-10-12Export HAVE_COMPAT_IA32_KERN to sub-makes and ensure it is not exported if ↵Bryan Drewery
empty. With hat: portmgr
2015-10-12Move the exported variable assignments to where they are looked-up.Bryan Drewery
This is so we are less likely to carry around old vars that are no longer needed and to keep logic more coupled. With hat: portmgr
2015-10-12Spell 'OSREL' properly from r399155.Bryan Drewery
With hat: portmgr
2015-10-12Don't check for minimal pkg version in sub-makes.Bryan Drewery
With hat: portmgr
2015-10-12Pass result of 'uname -r' to sub-makes to avoid unneeded lookup.Bryan Drewery
With hat: portmgr
2015-10-12Use a loop to export vars.Bryan Drewery
This also fixes adding duplicates to .MAKEFLAGS with fmake, which was a bug present before recent changes. With hat: portmgr
2015-10-12Re-apply r398953 with protection for 'make *config*'.Bryan Drewery
This will only include the descriptions file if needed to very slightly lower overhead with -V lookups and package building dependency calculations. With hat: portmgr
2015-10-12Replace escaping for exported vars with :Q feature.Bryan Drewery
With hat: portmgr
2015-10-12Remove SYSTEMVERSION exporting, not needed since r99913.Bryan Drewery
This is a relic of port.mkversion. With hat: portmgr
2015-10-12Use -r flag for read command, this fixes handling of paths containingDmitry Marakasov
backslashes, and, in result, stage-qa for archivers/deco Approved by: portmgr (antoine) Differential Revision: D3862