Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8467941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:47:25+00:00 2026-06-10T15:47:25+00:00

rpmbuild can autodetect dependencies by looking up shared libraries required by binaries included in

  • 0

rpmbuild can autodetect dependencies by looking up shared libraries required by binaries included in the package and, while this is a good think almost every time, there are time when it is undesirable but only for some specific libraries. I am referring to the case where some binary file requires libraries that are not provided to the system via its rpm package management but installed directly by third party installers.

Now, the question is: is there a way to keep the autodetect feature active (comes in handy for the other binaries in the package) but ignore/remove only these specific libraries?

Something like

AutoReqIgnore : library1
AutoReqIgnore : library2
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:47:27+00:00Added an answer on June 10, 2026 at 3:47 pm

    I have not found a built-in way, but I wrote a small script that I used as a filter:

    #!/usr/bin/perl -w
    use strict;
    use IPC::Open2;
    
    # This quick script will run the native find-requires (first parameter)
    # and then strip out packages we don't want listed.
    open2(\*IN, \*OUT, @ARGV);
    print OUT while (<STDIN>);
    close(OUT);
    my $list = join('', <IN>);
    
    # Apply my filter(s):
    $list =~ s/^libqt-mt.so.*?$//mg;
    
    print $list;
    

    You can put your own regular expression lines, in this example I removed libqt-mt.so.*

    Then, in the .spec file:

    # Note: 'global' evaluates NOW, 'define' allows recursion later...
    %global _use_internal_dependency_generator 0
    %global __find_requires_orig %{__find_requires}
    %define __find_requires %{_builddir}/%{?buildsubdir}/build/find-requires %{__find_requires_orig}
    

    As you can see, this script is in the source tarball under /build/ .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use rpmbuild to build x86-64 packages and libs-32bit package. The same
I'm automating RPM package building with rpmbuild . The files end up in the
rpmbuild is located at /xenv/OS/ia64/RH4.0AS_U4/x86_64/usr/bin/ and brp-compress is located at /xenv/OS/ia64/RH4.0AS_U4/x86_64/usr/lib/rpm/, but when I
I noticed rpmbuild (-bb and --buildroot options) creates the .rpm in different locations depending
I have a tcl script which 'exec' rpmbuild. When doing so, the 'topdir' used
I have java project with building rpm by maven. Required create noarch packets, but
I have been reading about creating an RPM for Python 2.6.4. In this page:
I'm trying to build freetds but want it to include the static libraries in
I studying dpkg and rpm package systems. I found in dpkg manuals recommendation to
I'm trying to build my own rpm package and have a couple of doubts.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.