[ 
https://issues.apache.org/jira/browse/BIGTOP-1381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiaomin Zhang updated BIGTOP-1381:
----------------------------------

    Attachment: BIGTOP-1381.patch

There's an assignment to XXX_PKG_NAME in packages.gradle, but it should be 
directly loaded from bigtop.mk (if it's defined) instead:
BOM_map[variable + '_PKG_NAME'] = "${variable}_NAME"
All components could be built except datafu, because it defines different value 
for DATAFU_NAME and DATAFU_PKG_NAME in bigtop.mk:
DATAFU_NAME=datafu
DATAFU_PKG_NAME=pig-udf-datafu
And this is the root cause of the build failure.
This patch tries to fix this issue by introducing another variable 
PKG_FINAL_NAME to behave the same as makefile
Please review it. Thanks.


> Datafu gradle build is broken 
> ------------------------------
>
>                 Key: BIGTOP-1381
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-1381
>             Project: Bigtop
>          Issue Type: Bug
>          Components: Build, Debian
>    Affects Versions: 0.8.0
>         Environment: Ubuntu 14.04
>            Reporter: Xiaomin Zhang
>             Fix For: 0.8.0
>
>         Attachments: BIGTOP-1381.patch
>
>
> With the following command to build datafu package:
> >gradle datafu-deb
> I just got below error messages in the stage of creating source package:
> ...
> datafu-1.0.0/tools/jarjar-1.1.jar
> dpkg-buildpackage: source package datafu
> dpkg-buildpackage: source version 1.0.0-1
> dpkg-buildpackage: source distribution stable
> dpkg-buildpackage: source changed by Bigtop <[email protected]>
>  dpkg-source --before-build datafu-1.0.0
> dpkg-source: error: source package has two conflicting values - 
> pig-udf-datafu and datafu
> dpkg-buildpackage: error: dpkg-source --before-build datafu-1.0.0 gave error 
> exit status 255
> :datafu-sdeb FAILED
> FAILURE: Build failed with an exception.
> * Where:
> Script '/data/bigtop/packages.gradle' line: 254



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to