[Git][NTPsec/ntpsec][master] 2 commits: Add a help line for those who just run buildprep first

Matt Selsky gitlab at mg.gitlab.com
Mon Jan 8 13:49:12 UTC 2018


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
887ed8d9 by Sanjeev Gupta at 2018-01-08T11:05:12+00:00
Add a help line for those who just run buildprep first

If buildprep is run as a non-root user, by someone who might
have just unpacked the tarball, it fails with a message
asking to be run as root.

It is better to point the user towards the dry-run option
instead, first.

- - - - -
6bbee919 by Sanjeev Gupta at 2018-01-08T11:05:13+00:00
buildprep script should ensure compiler is installed

While trying to build NTPsec on a new laptop, I realised
that the CC compiler and friends are not being pulled in
explicitly.  They do get installed on Ubuntu by the
avahi dependency, but that is marked in the text as
optional.

If someone has an old SuSE, please check that install.

- - - - -


1 changed file:

- buildprep


Changes:

=====================================
buildprep
=====================================
--- a/buildprep
+++ b/buildprep
@@ -66,6 +66,7 @@ else
 	if [ "$(id -u)" != 0 ]
 	then
 		echo "# ERROR: You must be running as root for your installer to do its thing."
+		echo "# ERROR: If you just wish to see what would be done, use the -n option."
 		exit 1
 	fi
 fi
@@ -118,16 +119,19 @@ daemon () {
     # Prerequisites to build the daemon: bison, pps-tools, service libraries
     case $installer in
 	apt)
+	    $install build-essential			# Build environment
 	    $install bison libssl-dev			# build
 	    $install libcap-dev libseccomp-dev		# build
 	    $install libavahi-compat-libdnssd-dev	# optional build
 	    $install libssl1.0.0 libcap2 pps-tools
 	    ;;
 	emerge)
+						# Build environment included!
 	    $install sys-libs/libcap sys-libs/libseccomp
 	    $install sys-devel/bison net-misc/pps-tools
 	    ;;
 	yum|dnf)
+	    $do $installer groupinstall "Development Tools" 	# Build environment
 	    $install bison openssl-devel 		# build
 	    $install libcap-devel libseccomp-devel	# build
 	    $install pps-tools-devel			# build
@@ -136,13 +140,13 @@ daemon () {
 	    ;;
 	yast)
 	    echo "# SLES versions 12 and earlier do not have pps-tools"
-	    $install basis-devel 			# build
+	    $install basis-devel 			# Build environment
 	    $install libcap-devel libseccomp-devel 	# build
 	    $install openssl-devel			# build
 	    $install libcap2 openssl-libs
 	    ;;
 	zypper)
-	    $install gcc6 gcc6-info gcc6-locale	# build
+	    $install -t pattern devel_basis		# Build environment
 	    $install bison				# build
 	    $install libcap-devel libseccomp-devel	# build
 	    $install openssl-devel			# build



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/e349aa133ab5fc511df9bc5c09a55a78ebfbb1e1...6bbee919bcf3f93f1c45573179173c7913512a7a

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/e349aa133ab5fc511df9bc5c09a55a78ebfbb1e1...6bbee919bcf3f93f1c45573179173c7913512a7a
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20180108/2edf0946/attachment.html>


More information about the vc mailing list