[MDEV-12642] apt metadata in source repository for MariaDB 10.2 is corrupted Created: 2017-04-29  Updated: 2018-08-05  Resolved: 2018-08-05

Status: Closed
Project: MariaDB Server
Component/s: Packaging
Affects Version/s: 10.2
Fix Version/s: 10.2.16

Type: Bug Priority: Major
Reporter: Kentaro Hayashi Assignee: Otto Kekäläinen
Resolution: Fixed Votes: 0
Labels: contribution, foundation
Environment:

Ubuntu trusty, xenial, yakkety


Issue Links:
Duplicate
is duplicated by MDEV-14928 DEB Source Packages Missing From Repo... Closed
Relates
relates to MDEV-14954 Build environment information serious... Closed

 Description   

What is problem?

MariaDB 10.2 apt source repository for Ubuntu trusty, xenial, yakkety is corruppted, so we can't get MariaDB 10.2 source package anymore.

What is expected?

apt-get source succeeds.

What is actual situation?

apt-get source fails.

Why it fails?

I've noticed this issue on Travis-CI.

Here is the build error log on it.
https://travis-ci.org/mroonga/mroonga/jobs/225504750#L299

This issue is caused by empty metadata such as folows:

http://mirror.jmu.edu/pub/mariadb/repo/10.2/ubuntu/dists/trusty/main/source/Release
http://mirror.jmu.edu/pub/mariadb/repo/10.2/ubuntu/dists/trusty/main/source/Souces.gz

This error is not limited to above mirror only. I investigated some of other mirrors, but all of them contains same problems.



 Comments   
Comment by Elena Stepanova [ 2017-05-02 ]

Are you really using 10.2.2 as the 'Affects version/s' says?

Comment by Kentaro Hayashi [ 2017-05-02 ]

Oh, I've posted wrong 'Affects' version.

Comment by Kouhei Sutou [ 2017-08-15 ]

Are there any progress?

Comment by Daniel Bartholomew [ 2017-08-15 ]

This issue is not because of any issues with the 10.2 repositories. Rather back during 10.2 development it was decided to stop building source packages, that's why they aren't there. Here's the commit:

https://github.com/MariaDB/server/commit/bfda961c86849a4a6fea4b6d71a38266758b1bc9

otto: Do you have an opinion on this? Is there any reason to not remove the '-b' flag so that we can start providing source packages again? Thanks.

Comment by Otto Kekäläinen [ 2017-08-16 ]

Sorry, I did not know the autobake-deb.sh was used to generate the source packages. I assumed some git archive or something other generic instead.

I will rewrite that step so that '-b' is omitted only in Travis builds (as there 1-2 minutes of time saving is very valuable).

Comment by Otto Kekäläinen [ 2017-08-16 ]

It can take some time to do, as the head of current 10.2 is already broken and I need a "green" starting point to make systematic progress.

On Travis:
{{
debian/autobake-deb.sh: line 104: fakeroot: command not found
The command "env DEB_BUILD_OPTIONS="parallel=3" debian/autobake-deb.sh;" exited with 127.
}}
https://travis-ci.org/ottok/mariadb/jobs/265146476

On buildbot:
{{
/home/buildbot/buildbot/build/mariadb-10.2.6/vio/viosslfactories.c:62:5: error: dereferencing pointer to incomplete type ‘DH

{aka struct dh_st}

’
dh->p=BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL);
^~
vio/CMakeFiles/vio.dir/build.make:182: recipe for target 'vio/CMakeFiles/vio.dir/viosslfactories.c.o' failed
make[4]: *** [vio/CMakeFiles/vio.dir/viosslfactories.c.o] Error 1
}}
http://buildbot.askmonty.org/buildbot/builders/kvm-deb-stretch-amd64/builds/1143/steps/compile/logs/stdio

Comment by Kentaro Hayashi [ 2017-10-30 ]

I thought that autobake-deb.sh is used to generate source packages in apt repository and do the CI on Travis-CI.
So, for saving time, '-b' is omitted only on Travis-CI is reasonable, but it seems disabled completely without CI case.

https://github.com/MariaDB/server/blob/10.2/debian/autobake-deb.sh#L109

Daniel Bartholomew says: "during 10.2 development it was decided to stop building source packages"

Is there a possibility that source packages are provided in the future again? or are there any blocking issue to providing source packages in apt repository again?

Comment by Kentaro Hayashi [ 2017-10-30 ]

If there are still some blocking issue to provide them again, I hope I can solve this issue with together.

Comment by Otto Kekäläinen [ 2018-01-12 ]

Fix to this is included in the merge request https://github.com/MariaDB/server/pull/545

Comment by Daniel Black [ 2018-02-03 ]

so with pr 545 merged a fix in 10.3.4 - verified at url http://mirrors.coreix.net/mariadb/repo/10.3/ubuntu/dists/zesty/main/source/ since jmu.edu is no longer mirroring.

Still needs a fix in the 10.2 branch.

Comment by Otto Kekäläinen [ 2018-08-05 ]

This was fixed for 10.2 in https://github.com/MariaDB/server/commit/738c5c84245f

Generated at Thu Feb 08 07:59:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.