Hello, I have begun with the initial bootstrap of openSUSE Tumbleweed for LoongArch as a result of the work during my Hackweek project for 2024 [1]. I have used a fast LoongArch server running Debian's unstable distribution for loong64 and used a chroot and Debian's own rpm package to build all the packages. I have written down a very quick and dirty guide how it was done below. There are a few packages left that I haven't built yet, some of them failed at my first attempts, so I continued with other packages. The packages still missing include gcc, binutils, glibc and python311. Since I have already managed to build a cross- toolchain for loongarch64 [2], I assume cross-building the toolchain for loongarch64 on openSUSE form x86_64 might be easier but I haven't tried that yet. My initial set of packages has been uploaded to [3], the OBS project using these packages can be found in [4]. A simple guide on how to set up a LoongArch system with QEMU can be found in [5]. If anyone is interested in helping with this effort, please let me know. In particular, it would be great if someone could help me build the remaining packages, especially the toolchain packages. Thanks, Adrian
[1] https://hackweek.opensuse.org/24/projects/bootstrap-opensuse-on-loongarch [2] https://build.opensuse.org/project/show/home:glaubitz:loongarch64 [3] https://ftp.suse.com/pub/people/glaubitz/bootstrap/ [4] https://build.opensuse.org/project/show/devel:LoongArch:bootstrap [5] https://en.opensuse.org/Portal:LoongArch
================================================================================== - Packages to build, see: https://build.opensuse.org/project/repository_state/openSUSE:Factory/standar... - On a Debian unstable system with the target architecture, create a schroot and install rpm and osc - From an openSUSE system, copy the file /usr/lib/rpm/suse/macros as /usr/lib/rpm/macros.d/macros.suse on the target Debian system's chroot - From an openSUSE system, copy all files from /usr/lib/rpm/macros.d/ to /usr/lib/rpm/macros.d on the target Debian system's chroot - Fetch the source of any package from OBS you want to build, e.g.: "osc co Base:System m4". - Install the Debian build dependencies for the package in question into the Debian target system's chroot, e.g. "apt-get build-dep m4" - Create folders for rpmbuild in your home: mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SRPMS} - Copy the sources of the package you want to build into the SOURCES folder, e.g. cp -av ~/Base\:System/m4/* ~/rpmbuild/SOURCES/ - Build the package with rpmbuild rpmbuild --nocheck -bb m4.spec Manual build dependencies ========================= - makedepend: "apt build-dep xutils-dev && apt install xutils-dev" - python311: "apt install autoconf-archive pkg-config" - libcrypt: Build jitterentropy first, then extract -devel package into chroot - pam: apt install libedit-dev