Commit graph

1153 commits

Author SHA1 Message Date
Antoine Brodin
3f58690a6f Commit what was exp-ran in PR 198132 (and unbreak INDEX) 2015-03-05 23:10:55 +00:00
Baptiste Daroussin
90dc66b285 Rework dependency registration
Change the way the dependencies are registred so that now it follows the same
mechanism as when the *_DEPENDS making the dependency registration system ready
to allow multiple packages from the same origin such as flavours and subpackages

Also allowing to install twice the same port one built with python33 and the
other built with python27 for example.

PR:		19702
With help of:	antoine
Exp-run:	portmgr (antoine)
2015-02-09 17:16:43 +00:00
Baptiste Daroussin
e98aa8ce11 Fix the revert... 2015-01-23 00:21:24 +00:00
Baptiste Daroussin
73c1e0676d Revert wrong patch done in the wrong branch :( 2015-01-23 00:19:36 +00:00
Baptiste Daroussin
1dd2779d16 for gl and egl compononents of USE_GL depend on the package rather that a file
which does not belong to any package
2015-01-23 00:16:45 +00:00
Bryan Drewery
400808592c Rename post-plist to ${POST_PLIST}. This will allow controlling order and
adding multiple hooks onto the end of plist processing.

Submitted by:	bapt
With hat:	portmgr
2015-01-09 21:43:18 +00:00
Bryan Drewery
d47c8de374 Add 'post-plist' target which can be hooked into to modify the plist without
needing to add more targets to STAGE_SEQ. This is especially useful for
customizing the ports tree/framework without modifying bsd.port.mk.

With hat:	portmgr
Discussed with:	mat
2015-01-09 21:12:53 +00:00
Mathieu Arnold
547b6d7c0b Remove a dupplicate occurence of a target.
Noticed by:	bdrewery
Sponsored by:	Absolight
2015-01-08 16:13:41 +00:00
Marcus von Appen
beb88abfed - Remove support for deprecated python bits from the ports
framework. The following knobs are not supported anymore:

    USE_PYTHON=<yes|version+-|-version|version-version>
    USE_PYTHON_BUILD
    USE_PYTHON_RUN
    USE_PYDISTUTILS
    PYDISTUTILS_AUTOPLIST
    PYTHON_PY3K_PLIST_HACK
    PYDISTUTILS_NOEGGINFO
    PYTHON_CONCURRENT_INSTALL
    USE_PYTHON_PREFIX

PR: 196477
Differential Revision: https://reviews.freebsd.org/D1416
Exp-run: antoine
Reviewed by: antoine
Approved by: portmgr (antoine)
With hat: python
2015-01-07 17:22:07 +00:00
Antoine Brodin
5f9bfd77dd Update a comment about where ldconfig configuration files reside
With hat:	portmgr
2014-12-31 16:07:56 +00:00
Baptiste Daroussin
e034d8f233 Simplify a bit the rmconfig target 2014-12-28 19:01:42 +00:00
Baptiste Daroussin
57ccffb9d2 Allow to work with options as a regular user 2014-12-28 19:00:38 +00:00
Grzegorz Blach
a781a6e13c - Remove Mk/bsd.efl.mk
- Convert USE_EFL=libtool_hack to USES=libtool
- Convert USE_EFL=imlib2 to LIB_DEPENDS=libImlib2.so:...
- Bump PORTVERSION in graphics/imlib2 and in all ports
  which depends on imlib2

PR:		196062
Approved by:	portmgr
2014-12-27 00:09:02 +00:00
Baptiste Daroussin
23f2184d9f mtree files are not used anymore by packages 2014-12-25 01:14:54 +00:00
Baptiste Daroussin
fc3d3dcbe9 Remove now useless gnomehier, pkg handles automatically the directories where
needed making gnomehier entirely useless now.

Differential Revision:	https://reviews.freebsd.org/D1355
Reviewed by:	antoine, kwm
Approved by:	gnome (kwm)
2014-12-25 01:10:19 +00:00
Jean-Sébastien Pédron
3c9a1d11c2 Final removal of WITH_NEW_XORG
This knob was turned on for all version of FreeBSD in r369875
(2014-10-03) and officially deprecated. Since then, it was gradually
removed from many ports when they needed an update.

x11-servers/xorg-server was the last major user of this knob. The port
was updated to xserver 1.14 in r374982 (2014-12-19). The update got rid
of the knob, clearing the path to the final removal.

This commit changes ports who were checking for WITH_NEW_XORG and remove
its handling from bsd.port.mk.

While here, two sanity checks are added to warn user about WITH_KMS and
WITH_NEW_XORG which have no effect now.

Differential Revision:	https://reviews.freebsd.org/D1351
Reviewed by:	antoine, bapt, kwm
Approved by:	portmgr (antoine, bapt), kwm
2014-12-22 23:04:17 +00:00
Baptiste Daroussin
6455096ba7 Remove documentation about PLIST_DIRSTRY 2014-12-20 20:12:44 +00:00
Baptiste Daroussin
295ea87e9f Add USES=fakeroot to allow packaging ports that are not stageable as a user
It uses debian's fakeroot, like NEED_ROOT (which it is supposed to replace) it
is preferred to fix the port to properly stage without those hacks
2014-12-17 14:32:59 +00:00
Baptiste Daroussin
214e082755 Avoid defining do-install if NO_INSTALL is defined 2014-12-17 13:01:59 +00:00
Antoine Brodin
9cb1f86730 - Remove support for EXTRACT_PRESERVE_OWNERSHIP
- Update a few comments related to extract

Differential Revision:	https://reviews.freebsd.org/D1189
With hat:	portmgr
2014-12-14 11:44:24 +00:00
Baptiste Daroussin
24fa16b156 abi is case sensitive 2014-12-11 08:15:55 +00:00
Baptiste Daroussin
7d5768fe2f Fix NO_ARCH in a way compatible with both pkg 1.3 and pkg 1.4 2014-12-11 08:04:27 +00:00
Mathieu Arnold
7a6669d8bc Patches go into PATCHDIR, not FILESDIR.
Pointy hat to:	Everybody that looked at the code review, me included.
Sponsored by:	Absolight
2014-12-10 15:10:40 +00:00
Johannes Jost Meixner
ed75099171 Set CentOS 6.6 as default Linux version.
Since CentOS 6.5 landed in the portstree and was updated to CentOS 6.6 and we've
fixed the remaining issues, it's time to replace Fedora 10 as Linux default --
given that in the past five years it has done its service and has long since
gone EOL upstream.

The CentOS 6 series will go End of Life in 2020, this should give us some time
to keep its annual releases up to date.

If you have not switched to using CentOS 6.6 ports, please refer to today's
UPDATING entry -- it contains detailed instructions.

If you have already switched to CentOS 6.6 userland,
you can now remove the following two lines from make.conf:

OVERRIDE_LINUX_BASE_PORT=c6
OVERRIDE_LINUX_NONBASE_PORTS=c6

If you encounter any difficulties, please follow the UPDATING entry from
20140922 but skip step 2. In case these steps do not fix the issues,
please submit an issue report in Bugzilla and send an email to FreeBSD's
emulation mailing list.

Differential Revision:	https://reviews.freebsd.org/D1145
Reviewed by:	wblock, bcr (doc), rene (emulation)
Approved by:	swills (mentor)
Approved by:	portmgr (swills)
Sponsored by:	Perceivon Hosting Inc.
2014-12-09 18:05:30 +00:00
Johannes Jost Meixner
1d3ee0a15f Force PREFIX to LINUXBASE
Using pkg with linux packages will generate conflicts with non-linux ports if
PREFIX is set in make.conf. If USE_LINUX_PREFIX is defined, force PREFIX to
LINUXBASE, which can be overridden separately.

Approved by:    koobs, swills (mentors)
Approved by:    portmgr (swills)
2014-12-09 17:44:30 +00:00
Tijl Coosemans
369ca89d17 Modify run-autotools-fixup so it only prints "FreeBSD 10 autotools fix
applied to..." when it modified a file.  Also change _CONFIGURE_SEQ so
run-autotools-fixup runs after targets like do-autoreconf that can already
fix some cases.

This will allow us to get a better idea of how big the problem still is.

Approved by:	portmgr (bapt)
2014-12-05 10:47:45 +00:00
Mathieu Arnold
eee58d187e Change the way Perl modules are installed, update the default Perl to 5.18.
Before, we had:

  site_perl :           lib/perl5/site_perl/5.18
  site_perl/perl_arch : lib/perl5/site_perl/5.18/mach
  perl_man3 :           lib/perl5/5.18/man/man3

Now we have:

  site_perl : lib/perl5/site_perl
  site_arch : lib/perl5/site_perl/mach/5.18
  perl_man3 : lib/perl5/site_perl/man/man3

Modules without any .so will be installed at the same place regardless of the
Perl version, minimizing the upgrade when the major Perl version is changed.
It uses a version dependent directory for modules with compiled bits.

As PERL_ARCH is no longer needed in plists, it has been removed from
PLIST_SUB.

The USE_PERL5=fixpacklist keyword is removed, the .packlist file is now
always removed, as is perllocal.pod.

The old site_perl and site_perl/arch directories have been kept in the
default Perl @INC for all Perl ports, and will be phased out as these old
Perl versions expire.

PR:		194969
Differential Revision:	https://reviews.freebsd.org/D1019
Exp-run by:	antoine
Reviewed by:	perl@
Approved by:	portmgr
2014-11-26 13:08:24 +00:00
Baptiste Daroussin
1305c7321a Do not load anymore bsd.database.mk in case of USE_PGSQL given the migration is
finished
2014-11-22 22:06:55 +00:00
Baptiste Daroussin
3c01ec06a5 Do not ignore .so in manpages they are really problems for both groff and mandoc
Given we do compress manpages. They need to be addressed with soelim(1) prior
any compression
2014-11-22 01:47:24 +00:00
Baptiste Daroussin
f83444a840 Add a new check-man target that will check the manpages inside the port for
correctness against mandoc lint checker
2014-11-21 14:54:11 +00:00
Bryan Drewery
ec713d99b6 - Enable SSP by default.
This is the culmination of years of work and testing including work by jlh@.

  This will enable SSP by default for all amd64 releases, and i386 releases
  10.0 and over.

With hat:	portmgr
Tested by:	multiple exp-runs, CFT package repository, CFT ports
Discussed with:	bapt, antoine
2014-11-02 20:01:31 +00:00
John Marino
b340da6eb8 bsd.port.mk: Finish update to make makepatch
A portion of this patch to upgrade makepatch was committed almost 2
months ago; this is the rest of it.  It changes the directory separator
to "_" and it will transform "_" in the filename to "__" to avoid
ambiguous file names (e.g. A/B/C.c and A_B/C.c won't have the same patch
name).

The new logic will not rename an existing patch that used previously
standard separators of "-", "+", or "__" in its name.  It is desireable
to avoid commits that only change the filename of the patch, so that's
why existing filenames are re-used if previously legal.

The diff command is also pass the -p argument for additional useful
context.

Differential Revision:	https://reviews.freebsd.org/D582
Approved by:		portmgr (bapt)
2014-10-30 23:04:03 +00:00
Bryan Drewery
9ae831676e Move WITH_CCACHE_BUILD logic to bsd.ccache.mk
With hat:	portmgr
2014-10-28 18:01:55 +00:00
Koop Mast
1d803f71bb Update Mesa ports to new default of 9.1.7 and more recent version to 10.3.0.
The port will switch to the newer version if hw context is available in the
i915kms driver.

- Get ride of WITH_NEW_XORG.
- Use @comment in plist to ignore unwanted files in the stagedir, instead of
  trying to remove them in post-install.
- Bump portrevision of 9.1.7 due to dependency changes.
- Drop :keepla from USES=libtool.
- Drop @dirrm[try] from plists
- Give dri propper options, with pkg-help for additional information.
- Make separate plist for dri for the different versions, the combined plist
  was headache inducing.
- Add "workaround" patches to allow clang to build the dri port on i386 [1].
  USE_GCC is now only needed for 8.x.
- Add gbm port and USE_GL switch for it.

PR:		192286 [1]
Submitted by:	Carlos Jacobo Puga Medina [1]
Approved by:	portmgr (bapt@)
In collaberation with:	dumbbell@
Obtained from:	xorg-dev
2014-10-17 09:53:13 +00:00
Tijl Coosemans
2210fec0e9 Modern compilers have more -O* flags that enable strict aliasing. Instead
of listing each one, just add -fno-strict-aliasing to CFLAGS unconditionally

PR:		186929
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-10-09 17:59:01 +00:00
Baptiste Daroussin
83fe4bc1ea Use bsd.sanity.mk to check for INSTALLS_SHLIB 2014-10-08 10:08:24 +00:00
Baptiste Daroussin
fe0b735bba Get rid of _DESKTOPDIR_REL and use DESKTOPDIR everywhere
That avoids playing with @cwd
2014-10-08 06:13:43 +00:00
Baptiste Daroussin
a8e8df12f4 Use absolute path for PORTDATA PORTDOCS and PORTEXAMPLES
That makes them @cwd safe
2014-10-08 06:06:34 +00:00
Baptiste Daroussin
856027ca8a Use absolute patch for rc scripts in plist
That avoids playing with @cwd
2014-10-08 05:54:33 +00:00
Baptiste Daroussin
fe7bca82f0 Make info files absolute patch in plist
That makes them more @cwd safe while simplifying the infra
2014-10-08 05:52:17 +00:00
Tijl Coosemans
a4155c67ec Remove unused configure-autotools target from Mk/bsd.autotools.mk and
Mk/bsd.port.mk

Approved by:	portmgr (bapt)
2014-10-07 09:22:27 +00:00
Antoine Brodin
dd9d36338d qa.sh now needs LINUXBASE
With hat:	portmgr
2014-10-04 18:05:48 +00:00
Bryan Drewery
63fc9a3edb check-plist no longer needs to check for directories owned by dependencies.
pkg-1.3.8's auto directory handling makes this a non-issue.

We should add a new check to warn of possibly needing @dir for empty dirs
though.

With hat:	portmgr
2014-10-03 18:22:46 +00:00
Baptiste Daroussin
683b331695 Switch to WITH_NEW_XORG for all supported version of FreeBSD by default 2014-10-03 08:35:28 +00:00
Bryan Drewery
89662d08b4 - Reinstate r369644 fully to add the OSVERSION==UNAME_r sanity check.
FreshPorts, portsnap and indexbuild have all been fixed.
2014-10-02 16:05:56 +00:00
Baptiste Daroussin
fb56c84735 Add BUNDLE_LIBS knob to prevent pkg(8) from automatically add provided shlibs 2014-10-01 22:12:32 +00:00
Baptiste Daroussin
d401e3541b Activate New Xorg for the full 10.x branch see UPDATING for details 2014-10-01 06:41:55 +00:00
Bryan Drewery
c2ec3419b1 Partially revert r369644 temporarily (to add the OSVERSION=sysctl kern.osreldate)
as both FreshPorts and the portsnap INDEX need updates first.
2014-09-30 18:16:37 +00:00
Bryan Drewery
9576bda613 If either of OSVERSION or UNAME_r is improperly set when building in a
jail/chroot, a number of unexpected errors can occur.

  1. autotools fixup may not run when needed. This could be avoided by always
     running it [PR 177980, 177403].
  2. Not having UNAME_r set will cause many unknown
     errors. Many ports use OSREL (derived from UNAME_r) to determine the name
     of files. This is usually also due to the port build itself using uname -r
     to derive filenames or 'built for' messages. [PR 192449, 191943] Without
     having these sanity checks it is very easy for users to get into
     situations where "everything worked" until they touch a certain port that
     reads uname(1) output or OSVERSION. It has always been necessary to define
     all of the UNAME_ vars and OSVERSION (or have a proper sys/param.h
     present), but many users do not know this.

Remove the fallback on the kernel for kern.osreldate as it easily gets the
answer wrong.

I have added sanity checks to ensure OSVERSION==OSREL==UNAME_r as these are the
most critical vars to have set properly.

Differential Revision:	https://reviews.freebsd.org/D869
PR:			177980, 177403, 192449, 191943
Reviewed by:		antoine, bapt, gjb
With hat:		portmgr
2014-09-30 16:22:05 +00:00
Tijl Coosemans
fe837ee6c6 Change the way USES is handled:
- Loop over USES twice, once to define all *_ARGS variables and once to
  include Uses/*.mk.  This allows all Uses/*.mk to examine arguments given
  to other USES entries.
- Always define *_ARGS (possibly empty) and replace commas with spaces.

Similar for _USES_POST.

Adjust all Uses/*.mk:
- defined(u_ARGS) becomes !empty(u_ARGS)
- Eliminate helper variables like _*_ARGS=${*_ARGS:C/,/ /g}
- Some Uses/*.mk used ":" as argument separator instead of ",", but no port
  used this form
- Uses/cran.mk: remove unused variable VALID_ARGS and USES+=fortran which
  has no effect
- Uses/twisted.mk: simplify handling of the case where neither "build" nor
  "run" arguments have been specified

PR:		193931
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-09-28 16:36:31 +00:00