Commit graph

3344 commits

Author SHA1 Message Date
Dmitry Marakasov
3cc2f28343 - Mark BROKEN on 9.x: requires std::to_string
Approved by:	portmgr blanket
2016-09-01 14:08:05 +00:00
John Marino
c4c86b3c52 ports-mgmt/synth: Upgrade version 1.43 => 1.50
This release improves robustness and activates the watchdog.
It leveraes the procctl functionality to ensure all processes spawned
from a builder are reaped, which in turn ensures that tmpfs mounts can
be dismounted.  Previously stuck processes could prevent those dismounts,
trapping them as new mounts get placed on top.

This also finally enables the watchdog that will kill runaway builds.
The watchdog has a specific time limit per build phase where it will
kill the build if the log doesn't grow over the previous X minutes.

No activity timeout limits per phase are:

  check_sanity    :   1 minute
  pkg_depends     :   3 minutes
  fetch           : 480 minutes
  checksum        : 480 minutes (fetches if required)
  extract_depends :   3 minutes
  extract         :  30 minutes
  patch_depends   :   3 minutes
  patch           :   3 minutes
  build_depends   :   5 minutes
  build           :  20 minutes
  run_depends     :  10 minutes
  stage           :  20 minutes
  check_plist     :   3 minutes
  pkg_package     : 120 minutes
  install_mtree   :   3 minutes
  install         :  10 minutes
  deinstall       :  10 minutes

A minor change regarding the swap display: If there is no swap installed,
it will now display "n/a" instead of "100%"
2016-08-31 17:20:14 +00:00
John Marino
5d5749e182 ports-mgmt/synth: Upgrade version 1.42 => 1.43
This is a minor bug fix version.  Changes include:
 * Set close-on-exec operation mode on popen.  This is required to stop
   leaking file descriptors in highly concurrent modes (e.g. 32 builders).
   It's not supported on FreeBSD 9 or DragonFly 4.4 (and earlier) so this
   modification is removed for those platforms.
 * Remove procfs mount for lang/rust and lang/rust-nightly.  This was
   necessary for DragonFly, but rust has been fixed for DF 4.6 and later
 * Add a stage-QA exception for entries left /var/spool/*.  The presence
   of these are not an identication of a port issue
 * Sanitize synthexec to verify file descriptors 0 .. 2 are in use and
   automatically close any file descriptor > 2 before execv fork.
2016-08-25 17:23:09 +00:00
Tobias C. Berner
0f583d8700 Replace Mk/bsd.kde4.mk by Mk/Uses/kde.mk in preparation for KDE Frameworks and
Plasma5 ports

At the moment KDE ports use bsd.kde4.mk to handle their dependencies. When
working on the ports for KDE Frameworks and Plasma5 it seemed to be more
reasonable to create a new kde.mk instead of adding an bsd.kde5.mk.

The kde.mk in this review is a stripped down version of the one we are using in
the KDE Test repositories plasma5 branch [1] to only contain the parts relevant
to the current KDE4 ports in the portstree [2].

Changes to the KDE Ports needed by this:

Replace USE_KDE4 by USE_KDE [3]
Add USES=kde:4 [4]
[1] http://src.mouf.net/area51/view/branches/plasma5/KDE/Mk/Uses/kde.mk
[2] The version in the plasma5 branch also handles frameworks/plasma5 and
    handles MASTER_SITES via a KDE_DIST variable similar to bsd.qt.mk for Qt
    Ports -- I chose to leave this out for now, as the diff is already large
    enough.
[3] I chose USE_KDE instead of USE_KDE4, USE_KDE5, USE_KDEX as the version we
    want is already specified as argument to kde:<arg>
[4] For KDE Frameworks and Plasma5 ports this would be kde:5

PR:             210667
Approved by:    portmgr, mat (mentor), rakuco (mentor)
Reviewed by:    mat, rakuco
Differential Revision:   https://reviews.freebsd.org/D6961
2016-08-24 08:20:31 +00:00
Baptiste Daroussin
987ab62e4a Update to 1.8.99.1
- removes chroot in sanboxes it causes too many issues

Reported by:	kwm, bdrewery
2016-08-20 17:26:20 +00:00
Baptiste Daroussin
4f321f2fba Update to 1.8.99.10
- sandboxes always drops privileges if run as root and chroot in /var/empty
- sandboxes limits resource usage to make them less useless on system without capsicum
- drops privileges and chroot to /var/empty in various commands if run as root:
  * pkg audit
  * pkg info
  * pkg (r)query
2016-08-19 22:16:07 +00:00
Dmitry Marakasov
3e9751bdd0 - Update to 3.3.1
- While here, add NO_ARCH and turn ECHO_MSG's into pkg-message to be visible to package users as well

PR:		211956
Submitted by:	sakaue.mamoru@mwghennndo.com (maintainer)
2016-08-19 11:46:25 +00:00
Rene Ladan
b836b290e6 Remove expired port:
2016-08-10 ports-mgmt/xps: Does not support pkg(8)
2016-08-11 18:38:51 +00:00
Romain Tartière
f5dbb48279 Fix pkg-plist.
The master port was refactored to make tracking github repositories easier, but
this change was not reflected in the last update to ports-mgmt/portshaker.
2016-08-07 11:43:58 +00:00
Romain Tartière
a8df775378 Update to 1.0.12. 2016-08-06 11:21:39 +00:00
Baptiste Daroussin
a203d9f11c Add a hack in pkg to skip running predeinstall for javavmwrapper-2.5
During upgrades/reinstall javavmwrapper 2.5 pre deinstall script deletes the pkg
temporary files preventing to finish the upgrade.

A fixed version of javavmwrapper will be made soon, this hack will remain in the
ports tree and not in pkg(8) itself. This hack is made to not bother users is
only affecting upgrade/reinstall phase not proper deinstall

PR:		210313
2016-07-31 11:52:22 +00:00
Joe Marcus Clarke
de17f32cc0 Update to 2.17.4.
* Check PLIST_FILES for icons [1]
* Add VARS and VARS_OFF to the option helper list [2]
* Add NO_ARCH [2]

PR:		211175 [1]
Submitted by:	koobs [2]
2016-07-24 14:24:34 +00:00
Stefan Eßer
4af2489d71 Fix "portmaster --check-port-dbdir" broken by the previous commit. While
the variable $unique_list was created with identical content, its value was
only set within the implicit sub-shell (2nd command in a pipe) and lost on
exit from the while loop.

Reported by:	Jakub Laach
2016-07-24 14:21:13 +00:00
John Marino
e08d321149 ports-mgmt/synth: Remove ineffective sed command from port makefile
At one point during development of last changeset, the default.gpr
file needed to have a LOCALBASE correction, but that's no longer true.
This line shouldn't have made it into the previous commit.
2016-07-22 02:15:38 +00:00
John Marino
546b41f190 ports-mgmt/synth: Upgrade version 1.41 => 1.42
This is a bug fix version.  Changes include:
  * Fix potential exception seen with a large number of builders.  The
    height of the log area was determined by subtracting the height of
    the other two zones from the overall xterm height.  This allowed for
    the possibility of a negative height for the log area resulting in a
    thrown exception.  Now the log is defined to be at least 10 lines
    log, but ncurses will just truncate as necessary.
  * Detection of bad OPSYS value added.  There's a rare case where pkg
    can corrupt the configuration value of the Operating System.  If it
    happens on FreeBSD, Synth thinks it is running on DragonFly which
    causes all sorts of problems.  The corruption can't be auto-fixed,
    but Synth will gracefully abort with instructions on how to correct
    the issue.
  * Fix filtering of port-mgmt/pkg in list of ports.  Synth was designed
    to always skip building pkg and thus remove it from a given list of
    ports, but the filtering didn't work correctly resulting in an
    exception with a misleading message.
  * Redirect failed jail setup command output to a new log:
    /var/log/synth/05_abnormal_cmd.out.  Under normal operation, the
    log will be empty, but any abnormal output will now be sent there
    rather than corrupt the ncurses display as it before now.
  * Fix mount cleanup procedure.  The output of "df -h" was being
    sorted alphabetically which caused mounts-on-mounts (an exception
    condition that dillon has been getting with H2 testing) to fail
    during dismount.  The df output is already in the correct order so
    it only needs to be iterated in reverse without the pre-sort.

Change:
  * Synth now links curses statically so it should not pull in any
    additional packages when the Synth binary package is installed.

The only known bug is the curses display will freeze if running in an
xterm window that gets resized.  The cause is still unknown because in
theory Synth should correctly react to a window-resize event.  Some
people may have success with ^z followed by fg command, but it's best
to avoid resizing the window at all.
2016-07-22 01:40:03 +00:00
Mathieu Arnold
f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00
Stefan Eßer
2571fabfb8 Bump PORTREVISION to have portmaster be re-installed with the fix commited
as SVN rev. 418619.

Reported by:	Herbert J. Skuhra (herbert at mailbox.org)
2016-07-16 13:03:56 +00:00
Stefan Eßer
2ef23fbf21 A read lock on the sqlite file used by pkg can lock out writers for
indefinite amounts of time, preventing installation or upgrade of
ports with portmaster.  Instead of using a pipe to read pkg query
input to be consumed by a shell loop, buffer the query result in a
shell variable and let the loop iterate over the contents of this
variable.

While here, use a call to all_pkgs_by_origin() instead of an inline
versin of equivalent code.

Reviewed by:	tz
Approved by:	tz
2016-07-16 07:13:24 +00:00
Pawel Pekala
3185385419 - Update to version 3.3.0
- New maintainer's email

- Enable automatic workarounds of looped dependencies
- Fixe a problem that had emerged when pkg(8) was updated

PR:		210955
Submitted by:	maintainer
2016-07-14 17:28:34 +00:00
Enji Cooper
b2eb1410b4 Fix ports-mgmt/portfind string management/searching issues
Makefile:

  Bump `PORT_REVISION` for the change.

portfind.c:

  get_release(..):

  The function was incorrectly modifying a pointer that wasn't the original
  calloc'ed pointer, tripping asserts when MALLOC_PRODUCTION wasn't enabled
  in jemalloc [*].

  - Use one temporary buffer (`release`) instead of two (`release` and
    `version`).
  - Improve temporary memory idiom for managing memory used with
    sysctlbyname(3) by first checking the length, mallocing the buffer,
    then filling it with a second call to sysctlbyname(3).
  - Use strchr(3) instead of handrolling it in a while-loop and to
    avoid the improper free(3) of the memory allocated for `release`.

  main(..):

  - Use asprintf instead of calloc + sprintf.
  - Use constant `pasting` with `INDEX_FILE` instead of passing it in to
    asprintf(3).
  - Fix error message when unable to open `INDEX_FILE`.

Approved by: brd
Differential Revision: https://reviews.freebsd.org/D7198
PR: 211032 [*]
Reported by: Michael Zhilin <mizhka@gmail.com>
Reviewed by: Michael Zhilin <mizhka@gmail.com>
Sponsored by: EMC / Isilon Storage Division
2016-07-14 15:46:41 +00:00
Kurt Jaeger
f64f397b91 ports-mgmt/dialog4ports: 0.1.5 -> 0.1.6
- Added support dialog.ascii_lines(D4PASCIILINES), thanks to kuriyama
- Now first line can be ITEM_SEPARATOR, reported by: Rotluchs(EFnet)
- Rewrote Makefile, bsd.prog.mk no longer needed, with help from amdmi3
- Fix help message, thanks to wblock

PR:		211035
Submitted by:	rum1cro@yandex.ru (maintainer)
2016-07-12 18:03:44 +00:00
Dmitry Marakasov
9cc6d6f00a - Drop maintainership and deprecate: does not work with pkg(8)
PR:		210973
Submitted by:	serpent7776@gmail.com (maintainer)
2016-07-11 15:37:45 +00:00
Joe Marcus Clarke
7021f1ec0e Update to 2.17.3.
This release fixes a bug in newer versions of Perl where '{' and '}' caused
regexp compilation to fail.

PR:		210809
Submitted by:	mat
2016-07-07 17:42:25 +00:00
Baptiste Daroussin
b6c1d8ce53 Update to 1.8.7
- update internal expat to 2.2.0
- fix external solver
- fix build on freebsd pre 9.2
- fix warnings on armv6
- fix solver issue resulting in missing conflicts or reinstalling unneeded
  packages
- add a mini summary at the end of the output
2016-07-05 15:15:52 +00:00
Baptiste Daroussin
b0ba98cf02 Update to 1.8.99.9:
- Update internal expat to 2.2.0
- Fix using an external solver
- Fix build on FreeBSD prior to 9.2
- Fix issues on armv6
- Add a mini summary of the operations (removal, installation, upgrades) that
  that will be done
- Fix solver issues that could trigger issues with conflicts or reinstall too
  many things
2016-07-05 15:02:08 +00:00
Bryan Drewery
825647e47b Move the release MANIFESTS to misc/freebsd-release-manifests.
Also add a dependency for ca_root_nss to Poudriere.
2016-06-29 23:37:51 +00:00
Baptiste Daroussin
80871d0e41 Release 1.8.6
- Important fixes in the solver
- When conflicts are found, they are explicitly printed
- Reduce namecache contention a bit
- Temporary files created during extraction are now hidden
- Accept symlinks to directories when pkg is expecting a directory
2016-06-25 11:48:14 +00:00
Baptiste Daroussin
7394e77926 Update to 1.8.99.8
- Accept symlinks to directory when the package expects a directory
- Cleanup symlink checksuming code
- Fix a bug that results in bus error on very specific cases with lots of
  packages installed
2016-06-25 11:31:42 +00:00
Bryan Drewery
9e1cb40a53 Fix debugging that crept in 2016-06-24 15:54:07 +00:00
Bryan Drewery
5efb37b46b Fix debugging that crept in 2016-06-24 15:53:47 +00:00
Bryan Drewery
f456be1f91 - Update to 3.0-1677-g146fc3f
- Support 252 colors for job IDs
  - Ensure bmake is used for ports_env (fixes usage for 9.x)
  - Fix creating /nxb-bin in the root system
2016-06-24 15:51:06 +00:00
Bryan Drewery
0c105b1676 - Update to 3.1.14
- Fix creating /nxb-bin in the root system
2016-06-24 15:48:59 +00:00
Baptiste Daroussin
4702f4204a Update to 1.8.99.7
- Lots of important fixes in the solver
- Fix pkg upgrade -f
- Reduce namecache contention a bit
- Prefix all temporary files with a . so they are hidden
- Explicitly tell the users which conflicts were found
- Do not fork pkg when being ptraced (only on FreeBSD)
- Implement repo pinning so once installed a package will keep coming from a
  given repo
- Fix repository priority handling on directly requested packages

Big thanks az@ and vsevolod@ for the thank less help provided
2016-06-22 21:22:06 +00:00
Bryan Drewery
6d5e251a5f - Update to 3.1.13
Changes: https://github.com/freebsd/poudriere/wiki/release_notes_3113
2016-06-22 16:18:34 +00:00
John Marino
c6f85bb00c ports-mgmt/synth: Upgrade version 1.40 => 1.41
This release adds detection and handling of circular dependencies.
Two users that tried replacing OpenSSL with LibreSSL found out that
ftp/curl depends on itself when its built with GNUTLS.  That's because
Synth goes into an infinity dependency loop, runs out of stack space,
and crashes.

Now Synth can detect a circular dependency and abort gracefully and
informatively, e.g.

> synth status ftp/curl
ftp/curl scan aborted because a circular dependency on ftp/curl was detected.
... backtrace devel/cmake
... backtrace emulators/tpm-emulator
... backtrace security/trousers
... backtrace security/gnutls
... backtrace ftp/curl

While here, build synth with stack-checking on so out-of-stack situations
result in an exception and not an illegal instruction crash.
2016-06-20 16:57:28 +00:00
Baptiste Daroussin
d7f63035c7 Fix pkg upgrade -f 2016-06-12 22:41:04 +00:00
John Marino
7239a38b53 ports-mgmt/synth: Upgrade version 1.34 => 1.40
This release brings a behavioral change to Synth.  The action of building
package repositories is much more conservative now; packages that would
fail sanity checks are only removed under the following commands:
  * synth prepare-system
  * synth upgrade-system
  * synth rebuild-repository
  * synth everything

That means the following commands will never result in built packages
being removed now:
  * synth install
  * synth build (followed by "yes" to rebuild repo question)
  * synth force (followed by "yes" to rebuild repo question)

Other changes/fixes:
  * The PORTSCAN.SEEK_FAILURE exception is usually a false positive and
    should be fixed now
  * Under test mode leftover check, all changes to /var/db between
    installation and deinstallation are ignored rather than being flagged
    as a failure (see databases/mysql56-server test failure)
  * Add support for DragonFly's /boot/modules.local (similar to FreeBSD's
    /boot/modules)
  * Bring in ports patch to use installed libraries instead of the bundled
    versions
2016-06-12 09:37:12 +00:00
Bryan Drewery
7cd28fe816 - Update to checkin 3.0-1669-g5d15cfe
Changes:
 - jail -c: Fix fetching for 11.0-ALPHA
2016-06-11 22:11:06 +00:00
Torsten Zuehlsdorff
fa23faa40b Change MAINTAINER from ports@toco-domains.de to tz@FreeBSD.org
Approved by:	junovitch (mentor)
2016-06-10 09:08:02 +00:00
Baptiste Daroussin
f1eb32fd9b Update to 1.8.99.6
Changes:
- fix solver deciding to reinstall the reverse dependencies
- fix mirror_type: http with https url
2016-06-09 22:07:46 +00:00
Baptiste Daroussin
f8a8451d63 Release 1.8.5
Changes:
- Fix mirror_type: http with https servers
- Fix regression in the solver that tries to reinstall reverse deps sometime
2016-06-09 21:21:03 +00:00
Baptiste Daroussin
2c20fde739 Add a patch to fix grabbing mirror lists over https
Note that people are using mirror_type: http when they should not
most probably due to bad documentation on our side so we will improve that later

mirror_type: http is only useful if you actually host multiple mirror of your
repos see pkg-repository(5).
2016-06-08 14:04:50 +00:00
Baptiste Daroussin
508189966c Update to 1.8.4
Changes:
- Fix: setting date on system not POSIX 2008 compliant (like FreeBSD 8)
- Fix: running pkg in env where the 0 file descriptor is closd
- Fix: make http mirror type respect the specified port
- Fix: chown/chmod on linux
- Fix: pkg ssh
- Improved upgrade chain in multi repo environment
- Update libucl to latest version
2016-06-05 09:08:50 +00:00
Baptiste Daroussin
46cd1f14f3 Update to 1.8.99.5
Changes:
- Fix: make http mirror type respect the specified port
- Fix: chown/chmod on linux
- Fix: pkg ssh
- Update libucl to latest version
- Reduce adherence on openssl
2016-06-05 09:03:42 +00:00
Antoine Brodin
d4f812c7fe Ignore on the package builders
Reported by:	pkg-fallout
2016-06-04 15:48:55 +00:00
Bryan Drewery
0510940b0b - Update to checkin 3.0-1668-g5880c23
Changes:
  - jail: Fix usage for -m src=PATH
  - jail -v: Note that non-listed methods used the value only for display.
  - QEMU: Copy the latest emulator into the jail at startup. This fixes
    the jail running into bugs with qemu that are fixed with the latest
    qemu.  It was only copying it in during creation before.
  - bulk: Avoid redundant cleaning message with jailversion cleanup.
  - Add and document PORTBUILD_UID and CCACHE_DIR_NON_ROOT_SAFE. [1]

PR:		209786 [1]
2016-06-03 22:36:48 +00:00
Bryan Drewery
c2d922f037 - Update to 3.0-1663-gf6c1bad
Changes:
 - Tweak ccache+BUILD_AS_NON_ROOT so that BUILD_AS_NON_ROOT is just default
   off, with a warning, when CCACHE_DIR is set.

PR:		209786
2016-05-31 22:31:16 +00:00
Bryan Drewery
1046f6f6c8 - Update to 3.0-1662-gc11d922
Changes:
 - Fix incorrect handling of null-mounting /nxb-bin in jail
 - Disable BUILD_AS_NON_ROOT if CCACHE_DIR is set [1]
 - Fix mount path too long when using linprocfs

PR:		209786 [1]
2016-05-31 16:47:49 +00:00
Steven Kreuzer
e6beb9a869 Update WWW:
Reported by:	Vladimir Chukharev <chukharev@mail.ru>
2016-05-30 19:48:45 +00:00
Baptiste Daroussin
4cd51edc85 update to 1.8.99.4
Changes:
- Fix checks for duplicates in the universe chains (multirepo)
2016-05-30 18:31:45 +00:00