# libostree-dev Backport

Compiles a backport of libostree-dev for Ubuntu Noble.

## Source and Target

- **Source**: Ubuntu "Questing Quokka" (questing) - libostree 2025.2-1
- **Target**: Ubuntu "Noble Numbat" (noble) - Ubuntu 24.04 LTS

## For Debian

- **Source**: Debian sid
- **Target**: Debian trixie

## Usage

This repository contains the CI/CD workflow and scripts to build a backport of libostree 2025.2-1 for Ubuntu Noble, which is required for bootc compatibility.

## 📦 Download Latest Build

**Last Built**: 2025-07-21 07:35:00 UTC  
**Version**: 2025.2-1~noble1  
**Target**: Ubuntu Noble (24.04 LTS)
**Build ID**: [11](https://git.raines.xyz/robojerk/libostree-dev/actions/runs/11)

### Download Links

**Latest Build**: [Build #11](https://git.raines.xyz/robojerk/libostree-dev/actions/runs/11) - Successfully completed

**Available Packages**:
- `gir1.2-ostree-1.0_2025.2-1~noble1_amd64.deb`
- `libostree-1-1_2025.2-1~noble1_amd64.deb`
- `libostree-dev_2025.2-1~noble1_amd64.deb`
- `libostree-doc_2025.2-1~noble1_all.deb`
- `ostree-boot_2025.2-1~noble1_amd64.deb`
- `ostree-tests_2025.2-1~noble1_amd64.deb`
- `ostree_2025.2-1~noble1_amd64.deb`

### How to Download

#### Option 1: Generic Package Registry (Current)
Packages are available in Forgejo's Generic Package Registry:

```bash
# Download packages directly
curl -O "https://git.raines.xyz/api/packages/robojerk/generic/libostree-dev/2025.2-1/gir1.2-ostree-1.0_2025.2-1~noble1_amd64.deb"
curl -O "https://git.raines.xyz/api/packages/robojerk/generic/libostree-dev/2025.2-1/libostree-1-1_2025.2-1~noble1_amd64.deb"
curl -O "https://git.raines.xyz/api/packages/robojerk/generic/libostree-dev/2025.2-1/libostree-dev_2025.2-1~noble1_amd64.deb"
curl -O "https://git.raines.xyz/api/packages/robojerk/generic/libostree-dev/2025.2-1/libostree-doc_2025.2-1~noble1_all.deb"
curl -O "https://git.raines.xyz/api/packages/robojerk/generic/libostree-dev/2025.2-1/ostree-boot_2025.2-1~noble1_amd64.deb"
curl -O "https://git.raines.xyz/api/packages/robojerk/generic/libostree-dev/2025.2-1/ostree-tests_2025.2-1~noble1_amd64.deb"
curl -O "https://git.raines.xyz/api/packages/robojerk/generic/libostree-dev/2025.2-1/ostree_2025.2-1~noble1_amd64.deb"

# Install packages
sudo dpkg -i *.deb
sudo apt --fix-broken install -y
```

#### Option 2: Debian Package Registry (Future)
When Debian Package Registry is fully configured:

```bash
# Add the repository
echo "deb [signed-by=/etc/apt/keyrings/forgejo.gpg] https://git.raines.xyz/api/packages/robojerk/debian/ noble main" | sudo tee /etc/apt/sources.list.d/libostree-dev.list

# Add the GPG key
sudo mkdir -p /etc/apt/keyrings/
curl -fsSL https://git.raines.xyz/api/packages/robojerk/debian/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/forgejo.gpg

# Update and install
sudo apt update
sudo apt install libostree-dev=2025.2-1~noble1
```

### Installation Instructions

1. **Download the packages** using one of the methods above
2. **Install the packages**:
   ```bash
   sudo dpkg -i *.deb
   sudo apt --fix-broken install -y
   ```
3. **Verify installation**:
   ```bash
   dpkg -l | grep libostree
   pkg-config --modversion ostree-1
   ```

### Build Information

- **Source Version**: 2025.2-1 from Ubuntu Questing
- **Target Distribution**: Ubuntu Noble (24.04 LTS)
- **Build Date**: 2025-07-21 07:35:00 UTC
- **Build Status**: ✅ Success
- **Packages Built**: 7 packages (main + debug symbols)

### Troubleshooting

If you encounter issues:

1. **Check package dependencies**: `sudo apt --fix-broken install -y`
2. **Verify libostree version**: `pkg-config --modversion ostree-1`
3. **Check for conflicts**: `dpkg -l | grep libostree`
4. **Reboot if needed**: Some applications may need a reboot to use the new libostree version

---

*This backport is required for bootc compatibility on Ubuntu Noble. See [bootc-deb repository](https://git.raines.xyz/robojerk/bootc-deb) for the bootc package that uses this libostree backport.*
