Re: [HEADS UP] libgta-1.2.1-5.fc34 successfully built

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 8, 2021 at 6:24 PM Jiri Kucera <jkucera@xxxxxxxxxx> wrote:
Hello,

libgta-1.2.1-5.fc34 was built successfully[1] with side tag f34-build-side-42373. You can now rebuild your dependent packages against this side tag so I can create a Bodhi update.

It's a good practice to kick off builds yourself and then work with the maintainers for any failures. I use the following script. I'm not a bash expert so others may have better ones but it works for me:

First I run a needs_rebuilding script to see which packages need to be rebuilt. This saves them to a file called "needs_rebuilding":

$ cat .local/bin/needs_rebuilding
#!/bin/bash

if [ $# -eq 0 ]
  then
    echo "No arguments supplied"
    echo "Usage: $0 <pkgname> [pkgname] ..."
    exit 0
fi

provides=$(mktemp -t provides-XXXXXX)
deps=$(mktemp -t rawdeps-XXXXXX)

# Only break on newline not space or tab in for loops
IFS=$'\n'

for pkg in "$@"; do
echo "Checking for provides in $pkg."
dnf --quiet repoquery --repoid=rawhide --provides "$pkg" >> $provides
done

sed -i "/^bundled/d" $provides
sort -u -o $provides $provides

echo "Found $(wc -l $provides | awk '{print $1}') provides to be evaluated."

for dep in $(cat $provides); do
echo "Checking requirements for $dep"
dnf --quiet repoquery --repoid=rawhide --qf "%{source_name}" --whatrequires "$dep" >> $deps
done

sort -u -o ./needs_rebuilding $deps

# Remove the packages being checked
for pkgname in "$@"; do
sed -i "/$pkgname/d" needs_rebuilding
done

echo "Rebuild dependencies saved to ./needs_rebuilding"


Then I have a rebuild script specifically for side tags:

$ cat .local/bin/rebuild-side-tag
#!/bin/bash

if [ $# -eq 0 ]
  then
    echo "No arguments supplied"
    echo "Usage: $0 <changelog> <side-tag>"
exit 0
fi

sidetag=
commitmsg=

for pkg in $(cat ./needs_rebuilding); do
echo "Rebuilding $pkg"
tmpdir=$(mktemp -d -t $pkg-XXXXXXXXXX)
fedpkg clone $pkg $tmpdir
pushd $tmpdir
rpmdev-bumpspec -c "$1" $pkg.spec
fedpkg commit -c -p
fedpkg build --target=$2 --nowait
popd
done

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux