acquire.sh 635 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. set -e
  3. # Create sources directory
  4. mkdir -p sources
  5. # Download glibc source archive
  6. echo "Downloading glibc-2.42 source archive..."
  7. wget -O sources/glibc-2.42.tar.xz https://ftp.gnu.org/gnu/glibc/glibc-2.42.tar.xz
  8. # Extract the source archive
  9. echo "Extracting glibc source..."
  10. tar -xf sources/glibc-2.42.tar.xz -C sources/
  11. # Clean up the archive
  12. echo "Cleaning up archive..."
  13. rm sources/glibc-2.42.tar.xz
  14. # Download required patches
  15. echo "Downloading glibc fhs patch..."
  16. wget -O sources/glibc-2.42-fhs-1.patch https://www.linuxfromscratch.org/patches/lfs/12.2/glibc-2.40-fhs-1.patch
  17. echo "Source acquisition complete."