Split pkgs required by xbps-base-chroot, as it was made in Fedora.
- Added an additional shell func to add full (build/run), build or run time dependencies to packages. An optional third parameter can be used to specify other version than the one set in the depends file. - Use a "depends" file in package directory to specify minimum required ABI/API version for a package, so that there's no need to set the version all the time in pkgs. - Updated bash to 4.0. --HG-- extra : convert_revision : 1aa0ce32d4bdc2cd371eac19ae7bcff2c986b6b3
This commit is contained in:
@@ -19,8 +19,16 @@ long_desc="
|
||||
The GNU C Compiler suite, with support for C, C++, Fortran, ObjC."
|
||||
|
||||
base_chroot=yes
|
||||
build_depends="gmp-4.2.4 mpfr-2.3.2 binutils-2.18"
|
||||
subpackages="base dev docs locale"
|
||||
subpackages="libgcc libstdc++ libstdc++-devel libgomp libmudflap"
|
||||
subpackages="${subpackages} libmudflap-devel libobjc libobjc-devel"
|
||||
subpackages="${subpackages} c++ objc objc++"
|
||||
|
||||
Add_dependency full gmp
|
||||
Add_dependency full mpfr
|
||||
Add_dependency full binutils
|
||||
Add_dependency run gcc-libgcc
|
||||
Add_dependency run gcc-libgomp
|
||||
Add_dependency run glibc-devel
|
||||
|
||||
# As specified in the LFS book, disable installing libiberty.
|
||||
pre_configure()
|
||||
@@ -28,8 +36,9 @@ pre_configure()
|
||||
sed -i 's/install_to_$(INSTALL_DEST) //' $wrksrc/libiberty/Makefile.in
|
||||
}
|
||||
|
||||
# Make /usr/bin/gcc -> /usr/bin/cc symlink.
|
||||
post_install()
|
||||
{
|
||||
cd $XBPS_DESTDIR/$pkgname-$version/usr/bin && ln -s gcc cc
|
||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||
|
||||
cd $destdir/usr/bin && ln -s gcc cc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user