Commit graph

5316 commits

Author SHA1 Message Date
Baptiste Daroussin
218e13e5f6 Fix typo preventing using c6_64 2015-11-26 13:05:07 +00:00
Mathieu Arnold
3a02a9c2cc Indent the make logic inside the USE_GITHUB block properly.
With hat:	portmgr
Sponsored by:	Absolight
2015-11-25 13:17:58 +00:00
Mathieu Arnold
ca55cc861b keep the multi-github-magic inside of defined(USE_GITHUB)
With hat:	portmgr
Sponsored by:	Absolight
2015-11-25 13:17:42 +00:00
John Marino
6819d5d636 Mk/Scripts/smart_makepatch.sh: Fix multi-patch file and locals bug
There were two issues with the new smart_makepatch script.

1) use of "local" declaration

All function variables were declared "local" during the review.  This
caused the script to break, at least on FreeBSD 9.2.  Given that it's
not being seen on 9.3R or later, it might be a bug in Bourne shell that
has since been fixed.

e.g. This resulted in stderr error on second iteration:
  local contains=$(grep "^+++ " ${existing_patch} | awk '{x++; print x}')

however, this works fine:
  local contains
  contains=$(grep "^+++ " ${existing_patch} | awk '{x++; print x}')

To be safe, all local variables are assigned with $(<shell cmd>) on
separate lines now.

2) The comment extraction was flawed for files that contain multiple
patches.  It was not counting the hunk lines properly which caused some
portion of a patch to be considered as a comment for the next patch.  The
hunk traversal algorithm has been fixed.

Since 1) involved the introduction of local declarations that broke the
script and since only Scripts/smart_makepatch.sh is touched, I will
piggy-back on the original approval.  The fix was tested with devel/nspr,
the port listed in the PR, which uses multi-patch files.

Approved by:		portmgr
Differential Revision:	D4136
PR:			204725
2015-11-22 09:18:07 +00:00
Jan Beich
c68b369d27 www/seamonkey-i18n: unbreak after r401981
=======================<phase: configure      >============================
===>  seamonkey-i18n-2.39 cannot install: seamonkey versions mismatch:
seamonkey-39 is installed and wanted version is seamonkey-.
*** Error code 1

PR:		204692
Reported by:	pkg-fallout, martin.dieringer@gmx.de
MFH:		2015Q4
X-MFH-With:	r401981
2015-11-21 20:04:28 +00:00
Jan Beich
032713d124 devel/nspr: cleanup cruft to improve style
- Remove out-of-tree build (in favor of D4157)
- Remove custom do-install (config/nsinstall works fine) [1]
- Convert to new testing framework
- Refresh patches with |make makepatch| but leave damage out [2]

[1] Requires PORTREVISION per new entry in plist and DEBUG builds
    no longer embedding WRKDIR in source file name
[2] Here's a list with * indicating severity:
    *** Lost original ptthread.c hunk from patch-bug301986
    *** Mixed patch-bug782111 into patch-bug301986
    ** Duplicated context lines
    * Wrong timestamps with USES=pathfix
2015-11-21 02:26:15 +00:00
Jan Beich
a356bf5bac gecko: catch up with 2015-11-03 release train
- Update NSPR to 4.10.10 [1]
- Update NSS to 3.20.1 [2]
- Update Firefox ESR and libxul to 38.4.0
- Update Firefox to 42.0 [2]
- Update SeaMonkey to 2.39

Changes:	http://mozilla.6506.n7.nabble.com/ANNOUNCE-NSPR-4-10-10-Release-td346822.html
Changes:	https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_3.20.1_release_notes
Changes:	https://www.mozilla.org/en-US/firefox/42.0/releasenotes/
Changes:	http://www.seamonkey-project.org/news#2015-11-08
PR:		204277 [1], 204332 [2], 203099
Submitted by:	swills, Christoph Moench-Tegeder
MFH:		2015Q4
Security:	9d04936c-75f1-4a2c-9ade-4c1708be5df9
2015-11-20 00:38:40 +00:00
Bernard Spil
e30954c605 databases/mariadb-client,scripts,server: Remove
- MariaDB is based on the vulnerable MySQL 5.1 version
  - No new versions since 2013
  - Simplify Mk/bsd.databases.mk

Reviewed by:	koobs (mentor), feld
Approved by:	koobs (mentor)
Differential Revision:	https://reviews.freebsd.org/D4099
2015-11-18 10:51:14 +00:00
Alexey Dokuchaev
2c5c4bf9e3 Currently, when bsd.port.mk outputs a message addressed to a user, it would
typically pipe it through ${FMT} 75 79 command to ensure that if it gets
overly long, it would be wrapped nicely.  Do the same when outputting IGNORE
message which often gets very long.  While here, add missing section number
in sed(1) references in comments.

Differential Revision:	D4116
Approved by:	portmgr (bapt)
2015-11-18 09:19:42 +00:00
Gerald Pfeifer
242073ad09 Add GCC_DESC to Mk/bsd.options.desc.mk. Use this in a number of ports
instead of their own respective settings.
2015-11-16 00:30:00 +00:00
Tijl Coosemans
9f9234cb20 Let USES=autoreconf define AUTORECONF and use it throughout the tree.
PR:		204534
Approved by:	portmgr (antoine)
2015-11-15 15:34:51 +00:00
John Marino
6eff596ebc Enhance "make makepatch" to address two major deficiencies
This update to the "makepatch" target adds the following enhancements:

1) Conserves comments
   If the existing patch has comments, they will be transferred to the
   regenerated patch.

2) Supports multiple patches per file
   If the patch file contains concatenated patches, the makepatch
   target will keep these patches together.  It may change the order
   of the patches the first time, but every time after the multi-patch
   will be assembled in the same order.

Behavioral changes:

A) The "old" patches are not overwritten, but rather archived at:
   ${WRKDIR}/makepatch-tmp/archived-patches

B) Any patch that was not replaced or renamed is deleted by makepatch
   (but it is archived first, see paragraph above)

C) There regeneration messages for the user will show them which patches
   are using "legacy" names formats.

D) Makepatch will do a great job at "cleaning" git patches; it removes
   lines starting with "diff" and "index" in the comments section.

Notes:

E) Should a source file be modified by multiple patches (e.g. two separate
   multi-patches), a composite patch will be generated.  In the above
   example of two multi-patches, one would get the full patch and the
   other no longer patch the source file.

Approved by:		portmgr (mat)
Differential Revision:	D4136
2015-11-15 15:25:12 +00:00
Bryan Drewery
56bd3649b5 - Only consider missing dependency origins to be fatal if they were not
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-13 18:00:34 +00:00
Mathieu Arnold
6684338e91 Refactor the list of all excluded options so that the second place it is
needed is not forgotten any more.

PR:		204510
With hat:	portmgr
Sponsored by:	Absolight
2015-11-13 13:50:35 +00:00
Bryan Drewery
ab43229f76 Fix partial tree checkouts with 'all-depends-list', 'make clean', etc, after
inclusion of the ports_env feature into that handling around r399791.

With hat:	portmgr
Reported by:	ian, lev
2015-11-09 18:52:19 +00:00
Dmitry Marakasov
270e3dbc28 Don't use cookie for test target
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-09 17:32:06 +00:00
Mathieu Arnold
b8b878a219 When !defined(DEVELOPER), stage-qa is not put in the stage pipeline.
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-09 15:54:03 +00:00
Dmitry Marakasov
7cffd3c8f9 Remove support for WANT_SDL/HAVE_SDL knobs
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-09 14:30:02 +00:00
Bryan Drewery
d715852bba Don't hardcode CCACHE_DIR.
PR:		199509
Submitted by:	ngie (based on)
Sponsored by:	EMC / Isilon Storage Division
With hat:	portmgr
2015-11-06 20:18:35 +00:00
Jung-uk Kim
85eac3e7a7 Fix build with DOCS=off after r400846. 2015-11-06 18:57:01 +00:00
Mathieu Arnold
ec218a1332 Change the meaning of NO_WRKSUBDIR to force a WRKDIR != WRKSRC.
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-11-05 12:35:26 +00:00
Brad Davis
a1b693ac92 Fix a bug introduced in r399992, where creating only a user would fail
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-29 15:30:35 +00:00
Kubilay Kocak
9297c40658 Mk/bsd.sites.mk: Remove non-PEP449 Python mirrors [Part III]
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-24 04:28:37 +00:00
Brad Davis
1990bb0598 Teach the ports framework to handle creating users/groups when
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 16:25:52 +00:00
Dmitry Marakasov
e8e7e6da57 - Add shebangfix documentation bits
- Fix tcl_OLD_CMD tk_OLD_CMD

Approved by:	portmgr (bapt)
Differential Revision:	D3939
2015-10-22 13:36:05 +00:00
Bryan Drewery
929dfd6e18 Revert r399921 for now due to fallout with libclc using ninja. 2015-10-21 21:49:46 +00:00
Bryan Drewery
e189ed624b Enable verbose (compiler output) builds for autotools builds when package
building as these commands can be critical for debugging build failures.

Discussed with:	bapt, kwm
With hat:	portmgr
2015-10-21 14:43:29 +00:00
Mathieu Arnold
c8d9fd9b16 PLIST_SUB entries need paths relative to PREFIX.
With hat:	portmgr
Sponsored by:	Absolight
2015-10-21 14:16:36 +00:00
Bryan Drewery
84cb5553e9 Rework change in r399791 for default perl to not execute it on 'make clean'
if perl is not installed.

With hat:	portmgr
2015-10-20 20:26:59 +00:00
Bryan Drewery
25992a0b05 Roll all of the commands into a loop and use the same patterns for every lang.
- /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-20 15:36:56 +00:00
Bryan Drewery
95e25b27ad Avoid redundantly looking up python command executions for dependency 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-19 21:10:56 +00:00
Bryan Drewery
ef91c74363 Avoid redundantly looking up perl version when looking up dependencies or in sub-makes.
With hat:	portmgr
2015-10-19 20:53:15 +00:00
Bryan Drewery
278dd71cd6 - Combine clean-depends-list.sh into depends-list.sh
- Refactor how depends-list.sh is called from bsd.port.mk for each variant.

With hat:	portmgr
2015-10-19 19:23:53 +00:00
Bryan Drewery
670c3111ae The command environment from r399703 is only needed if recursing.
With hat:	portmgr
2015-10-19 18:41:01 +00:00
Bryan Drewery
d40cc1cce4 Fix test-depends after r399703.
With hat:	portmgr
2015-10-19 18:37:06 +00:00
Bryan Drewery
92b545ba81 When listing dependencies, export the common command execution results.
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-19 18:01:56 +00:00
Bryan Drewery
34da0bbb9e Add some work-in-progress scripts for splitting symbols out into 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-19 17:04:33 +00:00
Bryan Drewery
16f2336cda Switch strip test to using readelf(1) instead of file(1) to identify symbols.
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-19 16:59:49 +00:00
Steve Wills
dfdb719e6a Make OpenJDK 1.8 the default 2015-10-19 16:14:29 +00:00
Dmitry Marakasov
67971bd0fb Improve shebangfix framework
- 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-19 14:50:52 +00:00
Mathieu Arnold
7f0f664d7e Drop 8 support.
With hat:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3694
2015-10-15 14:55:14 +00:00
Baptiste Daroussin
8cea2b0147 Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched
This gives more time for tools to get updated, available in packages etc before
bothering users
2015-10-15 07:36:38 +00:00
Baptiste Daroussin
9b1ed98e60 Temporary readd ${PORTSDIR} to perl5 deps as somewhow they are triggering
an issue with sanify check in poudriere that needs to be fixed first

Reported by:	adamw
2015-10-14 20:44:34 +00:00
Baptiste Daroussin
869e1f27d0 Drop the necessity to add ${PORTSDIR} to dependency line
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-14 16:49:35 +00:00
Koop Mast
1742c4fbee Xorg-server update to 1.17.2 with related driver updates and bumps.
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-13 07:45:08 +00:00
Bryan Drewery
481f66bd21 Follow-up r399170 with a script, ports_env.sh, that can be used for the purpose.
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-13 00:03:10 +00:00
Bryan Drewery
6221392fff Add a function to export vars that bsd.port.mk generates from fork/exec.
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-12 23:41:36 +00:00
Bryan Drewery
45535ed69c Don't check for minimal Pkg version for package building.
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-12 23:22:20 +00:00
Bryan Drewery
16162f77dd Name the 'uname -r' variable the same as the bsd.port.subdir.mk version, _OSRELEASE.
This will allow passing in the environment consistently from calling script
to avoid looking it up if.

With hat:	portmgr
2015-10-12 22:44:19 +00:00
Bryan Drewery
2dbe9690e1 Apply export handling fixes from bsd.port.mk.
- r399153: Use :Q.
 - r399155: Use a loop to export vars

With hat:	portmgr
2015-10-12 22:42:57 +00:00