You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Kengo Seki (Jira)" <ji...@apache.org> on 2020/02/01 00:03:00 UTC

[jira] [Commented] (BIGTOP-3296) Creating apt repository fails on Ubuntu 18.04

    [ https://issues.apache.org/jira/browse/BIGTOP-3296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17027890#comment-17027890 ] 

Kengo Seki commented on BIGTOP-3296:
------------------------------------

As the above messages indicate, the cause of this problem is that reprepro can't handle .ddeb files properly and wrongly recognizes them as part of an source package.
 And I found that debhelper renamed .deb files containing debug symbols to .ddeb in {{./gradlew zookeeper-pkg}}, as follows:
{code:java}
dpkg-deb: building package 'zookeeper-native-dbgsym' in 'debian/.debhelper/scratch-space/build-zookeeper-native/zookeeper-native-dbgsym_3.4.13-1_amd64.deb'.
        Renaming zookeeper-native-dbgsym_3.4.13-1_amd64.deb to zookeeper-native-dbgsym_3.4.13-1_amd64.ddeb
        mv debian/.debhelper/scratch-space/build-zookeeper-native/zookeeper-native-dbgsym_3.4.13-1_amd64.deb ../zookeeper-native-dbgsym_3.4.13-1_amd64.ddeb
{code}
We can prevent this behavior by specifying {{--no-automatic-dbgsym}} to {{dh_strip}}. [https://manpages.debian.org/testing/debhelper/dh_strip.1.en.html#OPTIONS]

> Creating apt repository fails on Ubuntu 18.04
> ---------------------------------------------
>
>                 Key: BIGTOP-3296
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-3296
>             Project: Bigtop
>          Issue Type: Bug
>          Components: build
>            Reporter: Kengo Seki
>            Assignee: Kengo Seki
>            Priority: Major
>
> After building some packages containing native libraries, {{./gradlew repo}} on Ubuntu 18.04 fails for some reason. This error doesn't occur on Ubuntu 16.04, Debian 9 and 10.
> {code:java}
> $ cat /etc/issue
> Ubuntu 18.04.3 LTS \n \l
> $ reprepro --version
> reprepro: This is reprepro version 5.1.1
> $ ./gradlew zookeeper-pkg
> (snip)
> BUILD SUCCESSFUL in 6m 11s
> 6 actionable tasks: 6 executed
> $ ./gradlew repo
> > Task :apt FAILED
> Unknown file type: '278e9876acb17f94be4d2753246254e6 249536 debug optional zookeeper-native-dbgsym_3.4.13-1_amd64.ddeb', assuming source format...
> Warning: File 'zookeeper-native-dbgsym_3.4.13-1_amd64.ddeb' looks like source but does not start with 'zookeeper_'!
> Ignoring buildinfo file: 'zookeeper_3.4.13-1_amd64.buildinfo'!
> 'zookeeper-native-dbgsym_3.4.13-1_amd64.ddeb' looks like part of an source package, but no dsc file listed in the .changes file!
> There have been errors!
> Created directory "/home/sekikn/repos/bigtop/output/apt/db"
> FAILURE: Build failed with an exception.
> * Where:
> Script '/home/sekikn/repos/bigtop/packages.gradle' line: 823
> * What went wrong:
> Execution failed for task ':apt'.
> > Process 'command 'reprepro'' finished with non-zero exit value 255
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)