From 7aaaf233d3107c9f88c9cbc508f2e7f5dd849c72 Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Mon, 26 Nov 2018 11:53:13 +0100
Subject: [PATCH] slapos/obs: Define DESTDIR and location for perl

  This is to comply with obs package build.
---
 component/slapos/obs.cfg | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/component/slapos/obs.cfg b/component/slapos/obs.cfg
index 27e9e1f88..0a1de7a72 100644
--- a/component/slapos/obs.cfg
+++ b/component/slapos/obs.cfg
@@ -130,6 +130,7 @@ environment +=
  BISON_PKGDATADIR=${bison:location}/share/bison/
 
 [perl]
+location = ${buildout:destdir}/parts/perl
 configure-command =
   sh Configure -des \
     -Dprefix=${buildout:rootdir}/parts/${:_buildout_section_name_} \
@@ -139,6 +140,8 @@ configure-command =
     -Ui_db \
     -Dnoextensions=ODBM_File \
     -Dusethreads
+environment +=
+  DESTDIR=${buildout:destdir}
 
 [versions]
 # More recently version of cliff uses pbr which will break package build on OBS.
-- 
2.30.9