j-reher / bossdocker

Docker container to run BOSS in a development environment
GNU General Public License v3.0
0 stars 0 forks source link

CMT make fails in non-latest container #116

Closed j-reher closed 2 years ago

j-reher commented 2 years ago

Running cmt make in custom YAPP package fails with boss:7.0.9.p01 because the workarea is not in the CMT path.

I remember fixing that before -- was that fix incomplete for non-latest versions? Or was it only valid for 7.0.5?

j-reher commented 2 years ago

The following line in cmthome/requirements should be uncommented and adjusted by the install script, but apparently isn't:

#macro WorkArea "/home/bes/maqm/cvmfs/705"

Maybe I missed this line when turning the boss version into a build arg?

j-reher commented 2 years ago

The following command should do the adjustments:

sed -i 's/#macro WorkArea \"\/home\/bes\/maqm\/workarea\"/macro WorkArea \"\/root\/workarea\"/g' /root/cmthome/requirements

Clearly the contents of this line before the operation runs have changed, which is why sed can't work here. This could be very annoying to deal with.

Maybe the best approach would be to identify the line by the fact it contains #macro WorkArea, and then forcibly replacing the entire line?

j-reher commented 2 years ago

Replace entire line:

sed -i 's@#macro WorkArea.*@macro WorkArea "/root/workarea"@' /root/cmthome/requirements