Commit graph

115 commits

Author SHA1 Message Date
Tijl Coosemans
627ceb22cb Update util-linux-ng to 2.17.2-12.24.el6_8.3.
PR:		217394
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
2017-03-09 19:10:16 +00:00
Tijl Coosemans
875e1ad055 Update GIO module cache on installation. 2017-02-01 17:39:40 +00:00
Tijl Coosemans
6140d3c6aa - Autodetect the installed linux_base port and use LINUX_DEFAULT only as
a last resort.
- Construct a list of DISTFILES for every architecture (amd64, i386).
  Select one list for regular make and all lists for make makesum so linux
  ports can have one combined distinfo file.
- Set DIST_SUBDIR?=centos so there's only one copy of common distfiles.
- Use MASTER_SITES and DISTFILES groups so make fetch is a bit smarter.
- Regenerate all distinfo files.
- For linux_base-c6 (just like linux_base-c7 already does) turn bin, lib,
  lib64 and sbin into symbolic links to the same directory under usr.
  This fixes the problem where some programs/libraries exist under / on
  FreeBSD and /usr on Linux or vice versa and then depending on the order
  of search paths Linux programs may run/load FreeBSD programs/libraries
  and fail.
- Turn usr/share/icons into a symbolic link to LOCALBASE/share/icons so
  Linux programs can find desktop theme icons.  This eliminates the need
  for x11-themes/linux*-hicolor-icon-theme.
- Rename pkg-plist.x86_64 to pkg-plist.amd64.
- Regenerate all pkg-plist files.
- Add @preexec to linux_base pkg-plist that moves existing files in bin,
  lib, lib64, sbin and icons to the new destination before the directories
  are turned into symbolic links.
- Remove several empty directories from linux_base ports.
- Sweep over all linux ports: use consistent style, remove old CONFLICTS,
  remove unused pkg-descr files, add NLS option,...
- Remove old linux arts, esound and openssl-compat ports.
2017-01-31 16:54:21 +00:00
Tijl Coosemans
e038b00a57 Update to bash 4.1.2-41.el6_8 and db4 4.7.25-20.el6_8.1.
Fix check-plist errors.

PR:		216219
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
2017-01-18 11:30:50 +00:00
Tijl Coosemans
793f920bb3 Don't use @dir for directories that may have filesystems mounted. It may
not be possible to change their mode and timestamp like @dir tries to do.

PR:		215769
MFH:		2017Q1
2017-01-14 13:13:31 +00:00
Tijl Coosemans
83579f491e Make 64 bit Linux packages the default on amd64. 2017-01-12 10:44:45 +00:00
Tijl Coosemans
e2b90992e1 Update to util-linux-ng 2.17.2-12.24.el6_8.1.
PR:		214772
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
2016-11-23 11:11:27 +00:00
Jung-uk Kim
d58d7e08f5 Fix modes for /compat/linux/sys.
This commit is analogous to r425303 and r425309 for /compat/linux/proc.

MFH:		2016Q4
2016-11-04 15:43:27 +00:00
Baptiste Daroussin
61a4bde434 Fix modes for /compat/linux/proc
When linprocfs is mounted the mode set to /compat/linux/proc is set to 555
while the package said 755 meaning pkg will try to change it 755 and fail
preventing upgrade or installation of the package because linprocfs does not
support changing attributes.

Enforce it to 555 to prevent that situation
2016-11-04 08:02:48 +00:00
Mathieu Arnold
d26ef18700 Cleanup no longer needed CHMOD usage after r424898.
PR:		213743
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-11-02 22:45:14 +00:00
Tijl Coosemans
0ad64661d5 Update grep to 2.20-5.el6_8 and use SRC_SUFX.
PR:		213264
Submitted by:	pkubaj@anongoth.pl
2016-10-22 11:46:59 +00:00
Tijl Coosemans
993ae6362e Since base r283461 /compat/linux/dev/shm must point to a tmpfs. Make
/compat/linux/dev/shm a plain directory instead of a link to /tmp so we
don't force users to mount tmpfs on /tmp.  This also makes /dev/shm a
separate namespace from /tmp.

PR:		207769
2016-10-19 10:58:48 +00:00
Tijl Coosemans
82a87de90c - Replace Mk/bsd.linux-apps.mk and Mk/bsd.linux-rpm.mk with
Mk/Uses/linux.mk.
- Replace USE_LINUX=yes with USES+=linux and USE_LINUX=(.*) with
  USES+=linux:\1 in all ports.
- Replace USE_LINUX_APPS with USE_LINUX in all ports.
- Use INSTALL_SCRIPT instead of INSTALL_PROGRAM to install scripts in some
  ports.
- When USE_LINUX_RPM is defined, simplify the way DISTFILES and EXTRACT_ONLY
  are defined.
- Remove BRANDELF_DIRS and BRANDELF_FILES handling.  In the very rare cases
  that it is still necessary ports can run ${BRANDELF} from post-patch.
- Remove AUTOMATIC_PLIST handling.  Only one port used it.
- Fix Linux MASTER_SITES.
- Replace OVERRIDE_LINUX_BASE_PORT and OVERRIDE_LINUX_NONBASE_PORTS with
  default versions framework.
- bsd.port.mk:
  - Move Linux related bits to Uses/linux.mk, except USE_LINUX_PREFIX.
  - Put USE_LINUX_PREFIX handling after USES processing.
  - Define DOCSDIR, DATADIR, etc. after handling USE_LINUX_PREFIX so it can
    give these variables a different default value.
  - When a package needs to run Linux ldconfig check before installation if
    Linux support is enabled.
- emulators/linux_base-*:
  - Use USES=linux and remove duplication.
  - Remove files/lp.  FreeBSD or CUPS lp(1) should work.
  - Remove files/yp.conf.  No longer seems to be used.
  - Remove pkg-deinstall and move pkg-install into pkg-plist.
  - Update pkg-descr and pkg-message.
  - Fix handling of ldconfig cache in pkg-plist.
- devel/fb-adb: Use a Linux shell to run a Linux script but patch the script
  to use FreeBSD mkdir so mkdir -p $path creates $path and not
  /compat/linux/$path.

PR:		211645
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2016-09-05 19:23:42 +00:00
Tijl Coosemans
b3107f563d Use LINUX_REPO_ARCH instead of LINUX_RPM_ARCH to define DISTINFO_FILE and PLIST. 2016-08-01 22:23:40 +00:00
Tijl Coosemans
21653fcc78 Use LINUX_REPO_ARCH instead of LINUX_RPM_ARCH when setting DISTINFO_FILE
and PLIST for Linux ports.  LINUX_RPM_ARCH is the CPU targetted by a
package and LINUX_REPO_ARCH is like our ARCH which is more suitable.  This
only affects Centos 6 ports because they are the only ones where
LINUX_REPO_ARCH != LINUX_RPM_ARCH.
2016-08-01 13:07:14 +00:00
Tijl Coosemans
e079e58681 Update Linux ports to Centos 6.8.
PR:		210373
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
Differential Revision:	https://reviews.freebsd.org/D6891
2016-06-20 17:13:26 +00:00
Tijl Coosemans
778d4075ed Bump PORTREVISION for previous commit. 2016-06-05 20:53:33 +00:00
Tijl Coosemans
fb000dfd11 Update krb5-libs to 1.10.3-42z1.el6_7. 2016-06-05 19:35:39 +00:00
Dmitry Marakasov
1d1f878054 - Fix trailing whitespace in pkg-descrs, categories [a-f]*
Approved by:	portmgr blanket
2016-05-19 10:21:23 +00:00
Baptiste Daroussin
1218bd3a7a Do not try to load the linux* modules from the pre install scripts
It will always fail when jailed, it is also inaccurate given we now have
linux and linux64 modules. There is alrady a test before that via checking
compat.linux.* which is good enough to determien if linux emulation is supported
2016-05-15 14:51:38 +00:00
Steve Wills
a5aebf960e CentOS ports: for c6_64, install 32bit libraries alongside
PR:		206943
Submitted by:	xmj
2016-04-13 01:49:24 +00:00
Dag-Erling Smørgrav
1b83a48b9a Update glibc and glibc-common to latest version
PR:		207272
Submitted by:	Johannes Jost Meixner <johannes@meixner.dk>
MFH:		2016Q1
Security:	CVE-2015-7547
2016-02-17 18:25:43 +00:00
Martin Wilke
a234e43dd7 Welcome Centos 6.7
- Upgrade all linux-c6- to CentOS 6.7
- Cleanups

PR:                     205846
Submitted by:           xmj
In Collaboration with:  allanjude, netchild, xmj
Exp-run:                antoine
Sponsored by:           Perceivon Hosting Inc.
Differential Revision:  D3428

We'd like to thanks for all the feedback and comments.
2016-01-30 18:30:40 +00:00
Mathieu Arnold
065c026fe5 Fix ports that confused the meaning of WRKDIR and WRKSRC.
PR:		204056
Submitted by:	mat
Reviewed by:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D2735
2015-11-05 12:36:25 +00:00
Bartek Rutkowski
5d5e8b5430 emulators/linux_base-c6: fix unfetchable distfiles
- After Centos 6.6 was deprecated, the MASTER_SITE_SUBDIR was pointing to no longer
  existing location. This change gets that fixed, allowing the port to build again.

Submitted by:	Pawel Biernacki <pawel.biernacki@gmail.com>
MFH:		2015Q4
2015-10-07 20:59:00 +00:00
Jimmy Olgeni
686b747c39 Typos, whitespace and capitalization fixes (A-F). 2015-09-20 19:59:03 +00:00
Mathieu Arnold
21a283f3be Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.

Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.

Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3336
2015-08-17 14:20:40 +00:00
Alexander Leidinger
435ea2a95a Re-commit of
64 bit linuxulator support (not activated by default):
 - most of the work was done by Alan Jude
 - all errors are mine
 - 64bit (may) have rough edges
 - I validated
    * that the 32bit part doesn't has deinstall regressions (incl. EXP runs by
      antoine)
    * 29 of 72 64bit ports ports don't have deinstall leftovers (more validation
      later, when I dare to activate the 64bit linuxulator in the kernel)
 - the infrastructure part looks mature enough to let more test-bunnies get
   some experience with the new 64 bit parts
 - to use it you shall have no linux ports installed and have to specify
   (on your own risk) the following in make.conf before installing the ports:
   OVERRIDE_LINUX_BASE_PORT=c6_64
   OVERRIDE_LINUX_NONBASE_PORTS=c6_64

This is on top of the exiting c6 linux ports. Given that CentOS 7 is 64bits
only, we decided to have it as an "overlay" instead of new ports.
The 64bit part only installs 64bit executables, the 32bit ports can not be
installed at the same time (if needed we can think of letting the 64bit
overlay install the 32bit parts too, but given the CentOS 7 comment
above...).

Differential Revision:	https://reviews.freebsd.org/D174
Submitted by:		alanjude
Sponsored by:		Essen FreeBSD Hackathon 2015
Reviewed by:		xmj, eadler (earlier versions)
Approved by:		portmgr (antoine after some EXP-runs)
2015-08-09 19:14:13 +00:00
Antoine Brodin
011dfa81be Unbreak INDEX, reverting r392921
With hat:	portmgr
2015-07-26 13:35:29 +00:00
Alexander Leidinger
3aeeb3f1bd 64 bit linuxulator support (not activated by default):
- most of the work was done by Alan Jude
 - all errors are mine
 - 64bit (may) have rough edges
 - I validated
    * that the 32bit part doesn't has deinstall regressions
    * 29 of 72 64bit ports ports don't have deinstall leftovers (more validation
      later, when I dare to activate the 64bit linuxulator in the kernel)
 - the infrastructure part looks mature enough to let more test-bunnies get
   some experience with it
 - to use it you shall have no linux ports installed and have to specify
   (on your own risk) the following in make.conf before installing the ports:
   OVERRIDE_LINUX_BASE_PORT=c6_64
   OVERRIDE_LINUX_NONBASE_PORTS=c6_64

This is on top of the exiting c6 linux ports. Given that CentOS 7 is 64bits
only, we decided to have it as an "overlay" instead of new ports.
The 64bit part only installs 64bit executables, the 32bit ports can not be
installed at the same time (if needed we can think of letting the 64bit
overlay install the 32bit parts too, but given the CentOS 7 comment
above...).

Differential Revision:	https://reviews.freebsd.org/D174
Submitted by:		alanjude
Sponsored by:		Essen FreeBSD Hackathon 2015
Reviewed by:		xmj, eadler (earlier versions)
Approved by:		portmgr (implicit, I remember blanked approval for
			linux parts loooong ago, punish me if you don't
			agree anymore)
2015-07-26 13:06:24 +00:00
Tijl Coosemans
ae41dd3ad0 - Update to db4-4.7.25-19.el6_6
- Update to freetype-2.3.11-15.el6_6.1
- Update to glibc-2.12-1.149.el6_6.9
- Update to krb5-libs-1.10.3-37.el6_6
- Add symlink from /usr/lib/librt.so.1 to /lib/librt.so.1.  This shadows
  FreeBSD /usr/lib/librt.so.1 and fixes some applications (e.g. Maple)

MFH:		2015Q3
Security:	CVE-2012-5669
Security:	CVE-2013-7423
Security:	CVE-2014-6040
Security:	CVE-2014-7817
Security:	CVE-2014-9657
Security:	CVE-2014-9658
Security:	CVE-2014-9660
Security:	CVE-2014-9661
Security:	CVE-2014-9663
Security:	CVE-2014-9664
Security:	CVE-2014-9667
Security:	CVE-2014-9669
Security:	CVE-2014-9670
Security:	CVE-2014-9671
Security:	CVE-2014-9673
Security:	CVE-2014-9674
Security:	CVE-2014-9675
Security:	CVE-2015-0235
Security:	CVE-2015-1781
2015-07-15 18:35:03 +00:00
Johannes Jost Meixner
62b2a35363 emulators/linux_base-c6: Add libblkid RPM
- Add libblkid to DISTFILES.
  the corresponding src distfile is
  util-linux-ng-2.17.2-12.18.el6.src.rpm

PR:		199083
Differential Revision:	https://reviews.freebsd.org/D2315
Submitted by:	trasz
Reviewed by:	eadler, trasz
2015-04-18 17:29:03 +00:00
Tijl Coosemans
b024bf4540 - White space fixes
- Like r315899 did for linux_base-f10, add some symlinks to linux_base-c6
  for executables that exist in /usr/bin on Linux but /bin on FreeBSD.
  This guarantees that Linux shell scripts run the Linux executables and
  not the FreeBSD ones.

PR:		197406
2015-02-08 10:34:14 +00:00
Johannes Jost Meixner
639d7af80e emulators/linux_base-c6: update glibc
- Update to a GHOST-free glibc version.

Differential Revision:	https://reviews.freebsd.org/D1695
Security:	0765de84-a6c1-11e4-a0c1-c485083ca99c
Approved by:	so@ (des)
MFH:		2015Q1
2015-01-28 08:41:17 +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
9c0adba31e 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.

Differential Revision:	https://reviews.freebsd.org/D1265
Approved by:    koobs, swills (mentors)
2014-12-09 17:47:32 +00:00
Johannes Jost Meixner
8ad4f1b492 linux_base-f10/c6: add missing gmp
- expr(1) and factor(1) currently shipped with linux emulation fail, due to
  missing gmp libraries. Add these to allow the correct behavior
- Bump PORTREVISIONs

PR: 		195084
Differential Revision:	https://reviews.freebsd.org/D1252
Submitted by:	Jan Beich <jbeich@vfemail.net>
Approved by:	swills (mentor)
2014-12-02 18:37:06 +00:00
Johannes Jost Meixner
62c8c97bf1 emulators/linux_base-c6: distfiles cleanup
- replace two i686 distfiles in SRC_DISTFILES with their src.rpm counterpart

Reported by:	Nikolai Lifanov <lifanov@mail.lifanov.com>
Approved by:	swills (mentor)
2014-11-11 15:20:12 +00:00
Johannes Jost Meixner
80b6c31429 Upgrade CentOS to 6.6
- Upgrade all things linux-c6- to CentOS 6.6
- Add ports:
  devel/linux-c6-libsigc++20
  graphics/linux-c6-gdk-pixbuf [1]
  graphics/linux-c6-glx-utils
- Add pkg-plists for net/linux-c6-openldap
  and security/linux-c6-cyrus-sasl2
- Misc. cleanups

Differential Revision:	https://reviews.freebsd.org/D1108
Submitted by:	kmoore [1]
Reviewed by:	rene (emulation)
Approved by:	portmgr (swills)
Approved by:	swills (mentor)
Sponsored by:	Perceivon Hosting Inc.
2014-11-11 13:06:39 +00:00
Johannes Jost Meixner
cfba3b02d5 emulators/linux_base-c6: fix build/packaging as unprivileged user.
- Allow build/packaging as unprivileged user.

PR:	193848
Differential Revision:	https://reviews.freebsd.org/D989
Submitted by:	mandree
Approved by:	swills (mentor)
2014-10-27 13:11:21 +00:00
Baptiste Daroussin
7a81cc2bcf Clean up plist 2014-10-27 12:24:22 +00:00
Johannes Jost Meixner
21761d945c emulators/linux_base-c6: Use a CVE-free version of bash
Bash 4.1.2 as shipped with this Linux base port is vulnerable to
CVE-2014-6271 and CVE-2014-7169.  As EL6 policy is to backport security
patches, use a RPM that is not vulnerable to either remote code execution
vulnerability.

While here:
 - Add the proper UDPATES Master site
 - remove sample files installation from Makefile, in favor of @sample

Approved by:	swills (mentor)
Security:	71ad81da-4414-11e4-a33e-3c970e169bc2
2014-09-26 17:06:49 +00:00
Johannes Jost Meixner
05317facbe Update CentOS base to 6.5, add userland ports
The Fedora 10 infrastructure ports have been in use since June 2009 and, while
having served a great deed, have become unsupported upstream and hence affected
by unfixed security vulnerabilities. In addition to that, many recent Linux
binaries need newer libc / stdlibc++ versions.

This commit adds the linux-c6- userland as drop-in replacement for the -f10
infrastructure, as well as upgrading the linux_base-c6 port to CentOS 6.5.

If you want to switch to linux-c6 ports, please define at /etc/make.conf:

    OVERRIDE_LINUX_BASE_PORT=c6
    OVERRIDE_LINUX_NONBASE_PORTS=c6

Additionally, please add the following line to /etc/sysctl.conf:

    compat.linux.osrelease=2.6.18

Upgrading procedures are shown in /usr/ports/UPDATING.

This work has been inspired by Artyom Mirgorodskiy's post to emulation@ in
November 2013, using and extending mav@'s work. It has been tested extensively
and most reported issues were already fixed. Please report any additional bug
or "features" to the emulation mailing list.

Many thanks to: mav@, rene@, allanjude@, netchild@, antoine@, everyone who's
filed Issues and Pull requests on GitHub,

PR:		186820
Differential Revision:	https://reviews.freebsd.org/D793
Reviewed by:	allanjude, antoine, bapt, rene
Approved by:	portmgr (antoine, bapt)
Approved by:	koobs (mentor)
Sponsored by:	Perceivon Hosting Inc.
2014-09-22 10:40:00 +00:00
Jimmy Olgeni
55dc0f983a Remove all space characters from Makefile assignments.
No functional changes included.

CR:		D193 (except math/sedumi)
Approved by:	portmgr (bapt)
2014-06-08 19:51:27 +00:00
Alexander Leidinger
5c8b95fb38 Add libuuid:
- f10 had it
 - this fixes at least the flashplugin with this linux_base

Fix comment.

PR:		186118
Submitted by:	Nikolai Lifanov <lifanov@mail.lifanov.com>
2014-02-02 06:58:50 +00:00
Alexander Leidinger
26612084ef Update to 6.4.
Submitted by:	Johannes Meixner <xmj@chaot.net>
2014-01-24 22:01:48 +00:00
Rene Ladan
c2db014b11 - Add staging support
- Properly handle yp.conf and krb5.conf
- Remove some assignments with default values

Note that staging warns about etc/*shadow not being readable, because their
permissions are 0.
2013-10-10 16:12:48 +00:00
Baptiste Daroussin
1089da7dcc Add NO_STAGE all over the place in preparation for the staging support (cat: emulators) 2013-09-20 16:43:52 +00:00
Rene Ladan
1759b37af1 - Finish removal of support for Linux 2.4 in bsd.linux-apps.mk and
bsd.linux-rpm.mk.  The default linux version is now Fedora 10.
- Remove now obsolete checks for Linux 2.4 in emulators/linux_base-c6,
  emulators/linux_base-f10, and emulators/linux_dist-gentoo-stage3.
  While there, remove superfluous -p argument from ${MKDIR}.
- Remove now obsolete check for Linux 2.4 or FreeBSD 6 and lower from
  astro/google-earth.
- Remove expired Fedora Core 4 ports which were only used on FreeBSD 7
  and below.
- Update LEGAL and MOVED

PR:		ports/176877
Submitted by:	myself
Approved by:	portmgr (bapt)
Exp-run by:	bapt
2013-05-30 09:11:52 +00:00
Baptiste Daroussin
eb40118d02 On all supported version of FreeBSD tar do support rpm as an archive format.
So directly use tar to extract linux* distfiles instead of rpm2cpio.
2013-04-22 16:24:11 +00:00