Skip to content

Instantly share code, notes, and snippets.

@danielhams
Last active October 22, 2019 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielhams/db71798cf3c0f487dcfd0c6125e0ff2f to your computer and use it in GitHub Desktop.
Save danielhams/db71798cf3c0f487dcfd0c6125e0ff2f to your computer and use it in GitHub Desktop.
Instructions for fixing the rpm installation dirs with didbs 0.1.6
How to get "rpm" fixed and installed in the right directory
-----------------------------------------------------------
I assume you've got the appropriate pre-requisites installed for didbs.
Extract the didbs 0.1.6 gcc release under /usr/didbs
cd /usr/didbs
gunzip usr-didbs-0.1.6-n32m3gcc.tar.gz |tar xf
Fix up a "current" symbolic link to this extract (must be to the things just extracted!):
ln -s 0_1_6_n32_mips3_gcc current
Now we'll clone the didbs git repository with the fix
git clone https://github.com/danielhams/didbs.git didbs.git
cd didbs.git
Next in this same directory, create the didbs config file "bootstrap.conf" with these contents:
--packagedir /usr/didbs/0_1_package
--compiler gcc
--isa mips3
--installdir /usr/didbs/0_1_6_n32_mips3_gcc
--builddir /usr/didbs/0_1_6_n32_mips3_gcc_build
--elfwidth n32
--stoponuntested
Now in this dir, try a "dry run" of didbs to be sure it will only try to rebuild libdicl, libpopt and rpm:
./bootstrap.pl --dryrun
Verify it's only the mentioned packages - then we can "unleash the build":
./bootstrap.pl
If all successful, you should now see "rpm" and related tools under /usr/didbs/0_1_6_n32_mips3_gcc/bin
ls -alrt /usr/didbs/0_1_6_n32_mips3_gcc/bin
@dillera
Copy link

dillera commented Oct 22, 2019

bootstrapping in progress. thanks for this work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment