building deb package fails

Bug #1677423 reported by Matthew B
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
New
Wishlist
EvgeniyPatlan

Bug Description

```
# git clone https://github.com/percona/percona-xtrabackup.git
# cd percona-xtrabackup
# git checkout 2.4
# cp -ap packaging/deb-xenial debian
# dch -i -- edit as needed
# dpkg-buildpackage -b
dpkg-buildpackage: source package mysql-community
dpkg-buildpackage: source version 5.7.13-1ubuntu16.05
.....
make[2]: Leaving directory '/root/percona-xtrabackup'
# remove all redundant files
rm debian/tmp/usr/lib/mysql-test/cmake_install.cmake
rm debian/tmp/usr/lib/mysql-test/CTestTestfile.cmake
rm: cannot remove 'debian/tmp/usr/lib/mysql-test/CTestTestfile.cmake': No such file or directory
debian/rules:68: recipe for target 'override_dh_auto_install' failed
make[1]: *** [override_dh_auto_install] Error 1
make[1]: Leaving directory '/root/percona-xtrabackup'
debian/rules:19: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
```

Tags: doc
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

Lets keep it as feature request to describe package build process in our docs

Changed in percona-xtrabackup:
importance: Undecided → Wishlist
Revision history for this message
Matthew B (utdrmac) wrote :

Seriously? Instructions for how to build our product is a "feature request"? What if MySQL said that? or Docker? or AWS had no docs on their website because it was just a feature request and they expected everyone to be able to figure it out on their own?

Revision history for this message
EvgeniyPatlan (evgeniy-patlan) wrote :

I will prepare the instruction a bit later is it ok?

Changed in percona-xtrabackup:
assignee: nobody → EvgeniyPatlan (evgeniy-patlan)
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

Mattew B,

We do have instruction on how to build and install our product from source code It is here percona.com/doc/percona-xtrabackup/2.4/installation/compiling_xtrabackup.html.
Have you seen instruction on how to build MySQL RPM on dev.mysql.com, or OpenSSL deb package on openssl.org?

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

Evgeniy,

Will it be possible to go even further and put up simple script which can be invoked to easily build debs and rpms?

Revision history for this message
EvgeniyPatlan (evgeniy-patlan) wrote :

yes it is possible but it is more time consuming procedure. So I will try to create the doc as soon as possible. and after that I will create such script.

Revision history for this message
Matthew B (utdrmac) wrote :

Thanks. I do understand that we have instructions for compiling from source, but should we not have "complete" instructions for also building packages for our supported operating systems as well?

We have instructions for building PS packages here, https://www.percona.com/doc/percona-server/5.7/installation.html#compile-from-source (though incomplete as RPM is missing).

This is awesome: https://www.percona.com/blog/2017/01/20/how-to-manually-build-percona-server-rpm-packages/ and should become part of our standard docs along with building deb.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-1035

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.