mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
make, scripts: Fix CentOS 7 build
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
f5c33174fb
commit
20f675c280
5 changed files with 38 additions and 7 deletions
|
|
@ -16,16 +16,20 @@ libname = none
|
||||||
|
|
||||||
[pkg.requires.os]
|
[pkg.requires.os]
|
||||||
run = python
|
run = python
|
||||||
build = cvs, make, inkscape, pkg-config
|
build = cvs, make, inkscape
|
||||||
|
|
||||||
|
[pkg.requires.centos]
|
||||||
|
run = hostname
|
||||||
|
build = epel-release, pkgconfig
|
||||||
|
|
||||||
[pkg.requires.ubuntu-14]
|
[pkg.requires.ubuntu-14]
|
||||||
build = realpath
|
build = realpath, pkg-config
|
||||||
|
|
||||||
[pkg.requires.suse]
|
[pkg.requires.suse]
|
||||||
release = rpmbuild
|
release = rpmbuild, pkg-config
|
||||||
|
|
||||||
[pkg.requires.debian]
|
[pkg.requires.debian]
|
||||||
release = devscripts, debhelper, dput, libparse-debcontrol-perl, fakeroot
|
release = devscripts, debhelper, dput, libparse-debcontrol-perl, fakeroot, pkg-config
|
||||||
|
|
||||||
[pkg.run.post]
|
[pkg.run.post]
|
||||||
rm -f /usr/bin/jcs
|
rm -f /usr/bin/jcs
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,9 @@ clean-all-dirs:
|
||||||
echo-prereq-build:
|
echo-prereq-build:
|
||||||
@$(PROJECTS_PY) requires-pkg --skip-excluded --flavours "build" $(BUILD_PROJECTS)
|
@$(PROJECTS_PY) requires-pkg --skip-excluded --flavours "build" $(BUILD_PROJECTS)
|
||||||
|
|
||||||
|
echo-prereq-install:
|
||||||
|
@$(PROJECTS_PY) requires-pkg --skip-excluded --flavours "build run" $(BUILD_PROJECTS)
|
||||||
|
|
||||||
echo-prereq-release:
|
echo-prereq-release:
|
||||||
@$(PROJECTS_PY) requires-pkg --skip-excluded --flavours "build run release" $(BUILD_PROJECTS)
|
@$(PROJECTS_PY) requires-pkg --skip-excluded --flavours "build run release" $(BUILD_PROJECTS)
|
||||||
echo-os:
|
echo-os:
|
||||||
|
|
|
||||||
|
|
@ -50,9 +50,15 @@ cmd_name_version()
|
||||||
echo suse-tumbleweed
|
echo suse-tumbleweed
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
if [ "$ID" != ubuntu ]; then
|
|
||||||
|
case "$ID" in
|
||||||
|
ubuntu|centos)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
[ "$ID_LIKE" ] && ID=$ID_LIKE
|
[ "$ID_LIKE" ] && ID=$ID_LIKE
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$ID" in
|
case "$ID" in
|
||||||
debian)
|
debian)
|
||||||
VERSION_NAME=`echo $PRETTY_NAME | awk 'NF>1{print $NF}' | sed 's%/.*%%' | tr '[A-Z]' '[a-z]'`
|
VERSION_NAME=`echo $PRETTY_NAME | awk 'NF>1{print $NF}' | sed 's%/.*%%' | tr '[A-Z]' '[a-z]'`
|
||||||
|
|
@ -73,6 +79,8 @@ cmd_name_version()
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
centos)
|
||||||
|
;;
|
||||||
ubuntu)
|
ubuntu)
|
||||||
;;
|
;;
|
||||||
suse|opensuse)
|
suse|opensuse)
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,15 @@ config()
|
||||||
run_git()
|
run_git()
|
||||||
{
|
{
|
||||||
marker git "$@"
|
marker git "$@"
|
||||||
|
# sadly, CentOS 7 has git 1.8.3.1, which doesn't support -C
|
||||||
|
if [ "$1" = -C ]; then
|
||||||
|
(
|
||||||
|
cd $2
|
||||||
|
shift 2
|
||||||
|
git "$@"
|
||||||
|
)
|
||||||
|
return $?
|
||||||
|
fi
|
||||||
git "$@"
|
git "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,9 @@ cmd_install()
|
||||||
}
|
}
|
||||||
eval run sudo $env -S pacman $global_opts -S --needed "$@"
|
eval run sudo $env -S pacman $global_opts -S --needed "$@"
|
||||||
;;
|
;;
|
||||||
|
centos)
|
||||||
|
eval run sudo $env -S yum $global_opts install -y "$@"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
fatal "Tried to install on unsupported platform \"$ID\""
|
fatal "Tried to install on unsupported platform \"$ID\""
|
||||||
;;
|
;;
|
||||||
|
|
@ -99,6 +102,10 @@ cmd_refresh()
|
||||||
debian|ubuntu)
|
debian|ubuntu)
|
||||||
eval run sudo $env -S apt-get $global_opts update "$@"
|
eval run sudo $env -S apt-get $global_opts update "$@"
|
||||||
;;
|
;;
|
||||||
|
centos)
|
||||||
|
eval run sudo $env -S yum $global_opts clean expire-cache "$@"
|
||||||
|
eval run sudo $env -S yum $global_opts makecache "$@"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
fatal "Tried to update unsupported platform \"$ID\""
|
fatal "Tried to update unsupported platform \"$ID\""
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue