BIGTOP-2524: Add Greenplum component
Well, looks like I can not build the RPM while running build as a non-privileged user (which is what we do always). I am getting this:
make[1]: Entering directory `/ws/build/gpdb/rpm/BUILD/gpdb-4.3.99.0/src'
/bin/mkdir -p '/usr/lib/gpdb/lib/postgresql/pgxs/src'
/bin/mkdir: cannot create directory '/usr/lib/gpdb': Permission denied
make[1]: *** [installdirs-local] Error 1
make[1]: Leaving directory `/ws/build/gpdb/rpm/BUILD/gpdb-4.3.99.0/src'
make: *** [install] Error 2
Looks like a prefix is missed somewhere or something.
I've tried to make the following change in the spec file
%build
-bash %{SOURCE3} %{bin_gpdb}
+bash %{SOURCE3} $RPM_SOURCE_DIR/%{bin_gpdb}
bash %{SOURCE1}
%install
%__rm -rf $RPM_BUILD_ROOT
bash %{SOURCE2}
mkdir -p $RPM_BUILD_ROOT%{bin_gpdb}
-cp -f -r %{bin_gpdb}/* $RPM_BUILD_ROOT/%{bin_gpdb}
+cp -f -r $RPM_SOURCE_DIR/%{bin_gpdb}/* $RPM_BUILD_ROOT/%{bin_gpdb}
%__rm -rf %{bin_gpdb}
but now the build is hanging, so I am not sure what's going on. Could you please take a look and make sure we can build under a normal user?
This is issue in gpdb build scripts. Fixed in https://github.com/greenplum-db/gpdb/pull/1146
Issue build package under non-privileged user fixed in https://github.com/apache/bigtop/pull/143/commits/a19feb2f560feaa96432d26fd5c6a668f1b8e5b1