Commit 826020d8 authored by Ophélie Gagnard's avatar Ophélie Gagnard

Fixes and updates.

TODO.txt: Update.
build-scripts/clean_build_tree.sh: Fix failure when $RUN_BUILDOUT_DIR/go did not exist.
build-scripts/bootstrap_buildout.sh: Fix a bug in the backup mechanism.
templates/:
- Fix mca/Makefile.in
- Change debian_defaults/dirs.in to fit the mca case.
parent b81059fa
SHORT RUN
"Merge" BUILD_DIR and RUN_BUILDOUT_DIR. Don't forgot the templates.
In Makefile.in, allow to select some parts to copy.
Set the versions to 1-1 instead of 0-1?
SHORT TERM
Document the project.
Do not rename the plugin library (libfluentbit-wendelin.so to fluentbit-wendelin.so). The fix first has to be made upstream (in the metadata-collect-agent project).
LONG RUN
MID TERM
Re-add networkcached to the building process.
Use a ./configure script?
In particular, in $ARCHIVE_NAME/Makefile there are some operations which should be in the template stage.
- In particular, in $ARCHIVE_NAME/Makefile there are some operations which should be in the template stage.
Make the clean_* suite reversible.
Write tests to test the compilation and the reversibility with clean_*.
LONG RUN
Write standards to that other people can adapt the project without breaking it.
......@@ -29,4 +29,4 @@ BACKUP_DIR=$TARBALL_DIR/../backup.$SOFTWARE_AND_VERSION
BACKUP_DIR=`realpath -m $BACKUP_DIR`
# Delete the potential old backup and backup the newly created build tree instead.
rm -rf $BACKUP_DIR
cp -r $TARBAL_DIR $BACKUP_DIR
cp -r $TARBALL_DIR $BACKUP_DIR
......@@ -5,9 +5,11 @@ source build-scripts/configuration_information.sh
cd $INITIAL_DIR
# For some reason the user does not have the "write" permission on some directories of go/. As it is
# needed on a directory to delete a file in it, the following line add the permissions to every
# needed on a directory to delete a file in it, the if block add the permissions to every
# directories in go/.
find $RUN_BUILDOUT_DIR/go -name "*" -type d -exec chmod u+xw {} +
if [ -d $RUN_BUILDOUT_DIR/go ]; then
find $RUN_BUILDOUT_DIR/go -name "*" -type d -exec chmod u+xw {} +
fi
rm -rf $TARBALL_DIR
exit # TODO: separate the tree building from the software release retrieving
......
......@@ -48,16 +48,21 @@ install: all
mkdir -p $(INSTALL_DIR)/etc/
mkdir -p $(INSTALL_DIR)/lib/
mkdir -p $(INSTALL_DIR)/share/
mkdir -p $(INSTALL_DIR)/include/
#cp `find $(RUN_BUILDOUT_DIR) | grep -e "^$(RUN_BUILDOUT_DIR)/[^/][^/]*/bin/*` $(DESTDIR)/usr/bin/
# no -r because there must be no subdirectories
# see https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s04.html
# and https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s13.html
-cp $(RUN_BUILDOUT_DIR)/parts/mca/bin/* $(INSTALL_DIR)/bin/
-cp -r $(RUN_BUILDOUT_DIR)/parts/mca/etc/* $(INSTALL_DIR)/etc/
-cp -r $(RUN_BUILDOUT_DIR)/parts/{mca,openssl}/lib/* $(INSTALL_DIR)/lib/
# TODO: the next line is temporary and should be removed asap (after the correct fixes in the MCA project)
-cp $(RUN_BUILDOUT_DIR)/parts/fluentbit-plugin-wendelin/lib/* $(INSTALL_DIR)/lib/
-cp -r $(RUN_BUILDOUT_DIR)/parts/{mca,openssl}/share/* $(INSTALL_DIR)/share/
-cp -r $(RUN_BUILDOUT_DIR)/parts/openssl/lib/* $(INSTALL_DIR)/lib/
# TODO: the next "cp" line is temporary renaming the library and this should be fixed asap
# the fix has to be made primarily in the MCA project
-cp $(RUN_BUILDOUT_DIR)/parts/fluentbit-plugin-wendelin/lib/libfluentbit_wendelin.so $(INSTALL_DIR)/lib/fluentbit_wendelin.so
-cp $(RUN_BUILDOUT_DIR)/parts/fluentbit-plugin-wendelin/include/libfluentbit_wendelin.h $(INSTALL_DIR)/include/libfluentbit_wendelin.h
-cp -r $(RUN_BUILDOUT_DIR)/parts/mca/share/* $(INSTALL_DIR)/share/
-cp -r $(RUN_BUILDOUT_DIR)/parts/openssl/share/* $(INSTALL_DIR)/share/
-cp -r $(RUN_BUILDOUT_DIR)/parts/fluentbit-plugin-wendelin/share/* $(INSTALL_DIR)/share/
ls -Rl $(INSTALL_DIR)/bin/ # DEBUG
.PHONY: build all clean install
/opt/%SOFTWARE_AND_VERSION%/bin/
/opt/%SOFTWARE_AND_VERSION%/lib/
/opt/%SOFTWARE_AND_VERSION%/include/
/opt/%SOFTWARE_AND_VERSION%/etc/
/opt/%SOFTWARE_AND_VERSION%/lib/
/opt/%SOFTWARE_AND_VERSION%/share/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment