Re: BIND 9.16

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

 



Hi Jerry,

I am actually bind maintainer. I would recommend using fedpkg command
instead. It does more or less the same as mock here, but is a bit
simpler to use.

Just use:

fedpkg clone bind
cd bind
git checkout f32
fedpkg mock-build

Adding to mock group is still required however.

It would build your own version, from the sources provided. They can be
found on https://src.fedoraproject.org. fedpkg mock-build is a frontend
to mock, which would build it from clean chroot for given release.
Manual mock commands are still possible. fedpkg local is quite useful,
if you want just quick rebuild on your machine.

And if you would be interested, v9_16 branch can be cloned from my bind
fork[1]. That are sources my packages were built from. Forks from other
packages could be found on Fedora package sources. But their use is at
your own risk.

Regards,
Petr

1. https://src.fedoraproject.org/fork/pemensik/rpms/bind

On 4/29/20 1:22 AM, Jerry James wrote:
> Samuel's answers were excellent.  I just want to add one thing.
> 
> On Tue, Apr 28, 2020 at 4:11 PM Samuel Sieb <samuel@xxxxxxxx> wrote:
>> That is a huge topic.  I don't know where to start with that.  I use
>> "rpmbuild" for my purposes, but I've seen it mentioned that "mock" is
>> the recommended way to build.  Actual packages for Fedora get built in
>> koji.  https://koji.fedoraproject.org/koji/  There are a set of command
>> line utilities for managing packages and running builds.
> 
> For those interested, here's how to try mock yourself.  Install mock:
> 
> sudo dnf install mock
> 
> Add yourself to the mock group:
> 
> sudo usermod -a -G mock <your username goes here>
> 
> Go find a package you care about on koji.  Since this thread is about
> bind, let's look it up.  Visit https://koji.fedoraproject.org/koji/.
> In the upper right, there is a dropdown which is set to "Packages"
> (leave that alone), a text box, and a button that says "SEARCH".  Type
> bind in the text box and press return or click the SEARCH button.  You
> now see a list of the bind builds that koji knows about.  Click on the
> top one.  This gives you a bunch of information about that build.
> Look down the left side until you find "RPMs".  That is a list of rpm
> files associated with this build.  Find the "src" label.  Just below
> that should be a line that looks like this:
> 
> bind-9.11.18-2.fc33.src.rpm (info) (download)
> 
> Click on the download link.  You now have a source rpm in your
> Downloads directory.  Let's pretend you have
> ~/Downloads/bind-9.11.18-2.fc33.src.rpm.  Build it yourself like this
> (assuming you have x86_64 hardware, which seems like a pretty safe
> assumption):
> 
> mock -r fedora-rawhide-x86_64 --rebuild ~/Downloads/bind-9.11.18-2.fc33.src.rpm
> 
> If you want to build for Fedora 32 instead, do it like this:
> 
> mock -r fedora-32-x86_64 --rebuild ~/Downloads/bind-9.11.18-2.fc33.src.rpm
> 
> Look in /etc/mock to see all of the distributions you can build for.
> If you have x86_64 hardware, you can build for the x86_64 and i386
> targets.  If you want to build for other types of hardware, ask me how
> to do it.
> 
> After initiating the mock build, look in
> /var/lib/mock/fedora-rawhide-x86_64 (or
> /var/lib/mock/fedora-32-x86_64) to see where the build happened.
> Build logs and binary artifacts go in the "result" directory.  The
> build itself happens in a chroot, which is in the "root" directory.
> Look in "root/builddir/build" to find all of the usual directories
> created by rpmbuild.
> 
> I think all of that counts as "one thing", don't you? :-)  Regards,
> 

-- 
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemensik@xxxxxxxxxx
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-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/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux