1

I am wanting to build MariaDB 10.5.5 on my Raspberry Pi 3B (Kernel version 5.4.65-v7+) since it has some nice features I want to play with. The first step involves setting up the build environment described here: Build Environment Setup for Linux

However the first step used to install all the dependencies doesn't work:

 sudo apt build-dep mariadb-server
 Reading package lists... Done
 E: You must put some 'source' URIs in your sources.list

The documentation is aware of this problem and asks that you include the source repositories in your sources.list file:

Note: On Debian-based distributions, you may receive a "You must put some 'source' URIs in your sources.list" error. To avoid this, ensure that /etc/apt/sources.list contains the source repositories.

So I uncommented the deb-src command from my /etc/apt/sources.list file:

deb http://archive.raspberrypi.org/debian/ buster main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.org/debian/ buster main

After saving the changes and running sudo apt-get update I then get the following error after running apt build-dep mariadb-server:

sudo apt build-dep mariadb-server
Reading package lists... Done
Picking 'mariadb-10.3' as source package instead of 'mariadb-server'
E: Unable to find a source package for mariadb-server

Does anyone know how I can run apt build-dep mariadb-server for MariaDB 10.5?

1 Answers1

1

Mariadb is available, just not in the version you want. The reason that build-dep doesn't work is possibly because mariadb-server is actually a "metapackage depending on the latest version" (latest in the repo that is, not the universe as a whole); the actual binaries are in mariadb-server-10.3.

You don't actually need the source from the repo of course, because you won't be using it, you'll be using the source for 10.5 you download from somewhere. However, build-dep seems useful if you don't know how to sort such things out yourself (and may save some time even if you do). Most likely, they should be fine to use to build 10.5, so try apt build-dep mariadb-server-10.3.

goldilocks
  • 60,325
  • 17
  • 117
  • 234