Find the answer to your Linux question:
Results 1 to 6 of 6
So the spec file I'm working with has a bunch of fields like: BuildRequires: .... Some of the dependencies are problematic to install on SLES so my question is if ...
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    10

    If I removed some dependencies from a src.rpm spec, would it work?

    So the spec file I'm working with has a bunch of fields like:
    BuildRequires: ....
    Some of the dependencies are problematic to install on SLES so my question is if I remove them from the spec will:
    Code:
    rpmbuild -ba pkg.spec
    work?

    And keep in mind this is a source rpm.

    Any help is appreciated.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    No, it won't.
    The author of the spec file most probably placed the build requirements for a reason.
    Usually (source) rpms of the distribution itself or at least from a compatible repository are chosen for that.

    So my guess is, that you try to modify a specfile, that is not intended for suse?
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Mar 2011
    Posts
    10
    Not exactly. The rpm is compatible with SUSE because I downloaded it from the opensuse package builder database. Or whatever it's called.

    I made some modifications to it's source tar archive and want to package it back up into an rpm.

    But in order to do so I have about 6 unmet dependencies(which have their own unmet dependencies). The SLES iso I'm working with has a rpm-dir repository that provided most of them, thank god, but quite a few of them I'm unable to find.

    So I was wondering if I can get away with modifying the spec file.

    I suppose rpmbuild itself needs to go through the build process so the packages are required no matter what...?

  4. #4
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    Quote Originally Posted by Rodayo View Post
    I suppose rpmbuild itself needs to go through the build process so the packages are required no matter what...?
    That would pretty much be the case.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  5. #5
    Just Joined!
    Join Date
    Mar 2011
    Posts
    10
    Quote Originally Posted by jayd512 View Post
    That would pretty much be the case.
    Well I'll keep trying to resolve the dependencies issue by manually installing packages. I suppose that's my only option.

    Unless....is there an online repository that provides SuSe rpms? Something I can use as a SMART channel. Like I said the sles iso has a lot of packages but really it's nothing compared to the ubuntu archives for example.

  6. #6
    Just Joined!
    Join Date
    Mar 2011
    Posts
    10
    Bump:

    Rather than making a new thread I thought I'd ask here.

    I'm attempting to install an rpm with "rpm -Uvh ..." but I get an unmet dependency error:
    libc.so.6(GLIBC_2.11)(64bit) is needed by lua-5.1.4-18.3.x86_64
    libc.so.6(GLIBC_2.7)(64bit) is needed by lua-5.1.4-18.3.x86_64
    libreadline.so.6()(64bit) is needed by lua-5.1.4-18.3.x86_64
    However a find query shows me that libc.so.6 is located in /lib and libreadline in /lib64.

    I added both the paths to $PATH but that didn't do the trick.

    Any ideas?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...