bigtop icon indicating copy to clipboard operation
bigtop copied to clipboard

BIGTOP-2524: Add Greenplum component

Open kirill-morozov-epam opened this issue 9 years ago • 3 comments

kirill-morozov-epam avatar Aug 27 '16 15:08 kirill-morozov-epam

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?

ghost avatar Sep 20 '16 20:09 ghost

This is issue in gpdb build scripts. Fixed in https://github.com/greenplum-db/gpdb/pull/1146

kirill-morozov-epam avatar Sep 22 '16 17:09 kirill-morozov-epam

Issue build package under non-privileged user fixed in https://github.com/apache/bigtop/pull/143/commits/a19feb2f560feaa96432d26fd5c6a668f1b8e5b1

kirill-morozov-epam avatar Sep 28 '16 05:09 kirill-morozov-epam