Keeping up with rawhide source changes

If I’m looking at the source for a package that is currently being being worked on, while also testing rawhide’s latest build, how do I get the latest source code to match the rawhide build?

Do you mean something like this?
https://src.fedoraproject.org/rpms/NetworkManager/blob/rawhide/f/NetworkManager.spec

git clone https://src.fedoraproject.org/rpms/NetworkManager
git -C NetworkManager pull -r
git -C NetworkManager log
git -C NetworkManager diff HEAD^1
2 Likes

As @vgaetera says, you can get the spec file from dist-git (that is, https://src.fedoraproject.org/). You can also download the source RPM like this:

dnf download --source NetworkManager
2 Likes

Or, of course, if you’re not on Rawhide on the system where you want to download this:

dnf download --source --enablerepo=rawhide NetworkManager
2 Likes

Thanks for the great help!

I needed to read https://fedoraproject.org/wiki/Releases/Rawhide as well, but now I can do stuff like this:

diff -r -y --width=200 --color=auto NetworkManager-1.26.4 NetworkManager-1.29.9

Yes, this good (and new for me), because I can quickly check the
commit log for one or more packages quickly!!! Perhaps a foolish question, can I derive further info from a query of a git repository? For instance the files affected in a specific commit.

git -C NetworkManager diff d106900593fa19470236dd59d5ce964419c907be{^1,}
git -C NetworkManager show d106900593fa19470236dd59d5ce964419c907be
1 Like

:+1:Thanks!

1 Like