Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Packaging (http://www.linux-archive.org/fedora-packaging/)
-   -   Can rpmbuild resolve these 4 issues ? (http://www.linux-archive.org/fedora-packaging/661942-can-rpmbuild-resolve-these-4-issues.html)

Michael Schwendt 05-01-2012 07:34 PM

Can rpmbuild resolve these 4 issues ?
 
On Tue, 1 May 2012 12:21:40 -0700 (PDT), KA (Kamal) wrote:

>
> I found these in a article on mach:
> ref: http://psg.com/~brian/howto/mach.html
>
>
> 1. Given a spec file, rpmbuild won't download the source tarball and/or
> patches. You have to fetch those yourself into the SOURCES directory.
> 2. rpmbuild will abort if any build-time dependencies are missing, forcing
> you to stop what you're doing, and go and build and install those packages too.
> 3. When your package configures itself, it may auto-detect libraries which
> are available on your build system, but which are not going to be available
> on the target system. For example, if openldap-devel is present then
> openldap may be linked into your binaries, but if the RPM doesn't declare
> openldap as a dependency, then it will fail to run on the target system.
> This is an insiduous problem, which I call "the curse of autoconf".
> 4. You can only build packages for the same type of system as your build
> machine (e.g. CentOS 4 binaries on a CentOS 4 build system)
> Is there a way we can use rpmbuild to resolve these issues?

Take a look at "mock" instead?
yum -y install mock ; man mock

--
Fedora release 17 (Beefy Miracle) - Linux 3.3.4-1.fc17.x86_64
loadavg: 0.11 0.07 0.05
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging

Jindrich Novy 05-01-2012 08:11 PM

Can rpmbuild resolve these 4 issues ?
 
On Tue, May 01, 2012 at 12:21:40PM -0700, Kamal Ahmed wrote:
>
> I found these in a article on mach:
> ref: http://psg.com/~brian/howto/mach.html
>
>
> 1. Given a spec file, rpmbuild won't download the source tarball and/or
> patches. You have to fetch those yourself into the SOURCES directory.

rpm since 4.9.90 (in F17 and newer) has this feature already
implemented. Just set _disable_source_fetch to 0. (1 is the default)

Jindrich

> 2. rpmbuild will abort if any build-time dependencies are missing, forcing
> you to stop what you're doing, and go and build and install those packages too.
> 3. When your package configures itself, it may auto-detect libraries which
> are available on your build system, but which are not going to be available
> on the target system. For example, if openldap-devel is present then
> openldap may be linked into your binaries, but if the RPM doesn't declare
> openldap as a dependency, then it will fail to run on the target system.
> This is an insiduous problem, which I call "the curse of autoconf".
> 4. You can only build packages for the same type of system as your build
> machine (e.g. CentOS 4 binaries on a CentOS 4 build system)
> Is there a way we can use rpmbuild to resolve these issues?
> Thanks,
> -Kamal.

> --
> packaging mailing list
> packaging@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/packaging


--
Jindrich Novy <jnovy@redhat.com> http://people.redhat.com/jnovy/
Kdo v*no má a nepije, kdo hrozny má a nej* je, kdo ženu má a nel*bá,
kdo zábavě se vyhýbá, na toho vemte bič a hůl, to nen* člověk, to je vůl.
--- Jan Werich
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging

Kamal Ahmed 05-02-2012 04:24 PM

Can rpmbuild resolve these 4 issues ?
 
mock seems better than mach, but they both seem to be good for testing , before publishing RPMsWhat i wanted to know if there is a way to AUTO install the dependencies rather than just pointing them outI could do it in %post.Now the binaries for the dependencies along with their respective config files with become part of the rpm that i ship.Any comments ?
Thanks,-Kamal.


From: Michael Schwendt <mschwendt@gmail.com>
To: packaging@lists.fedoraproject.org
Sent: Tuesday, May 1, 2012 3:34 PM
Subject: Re: [Fedora-packaging] Can rpmbuild resolve these 4 issues ?


On Tue, 1 May 2012 12:21:40 -0700 (PDT), KA (Kamal) wrote:

>
> I found these in a article on mach:
> ref: http://psg.com/~brian/howto/mach.html
>
>
> *** 1. Given a spec file, rpmbuild won't download the source tarball and/or
> patches. You have to fetch those yourself into the SOURCES directory.
> *** 2. rpmbuild will abort if any build-time dependencies are missing, forcing
> you to stop what you're doing, and go and build and install those packages too.
> *** 3. When your package configures itself, it may auto-detect libraries which
> are available on your build system, but which are not going to be available
> on the target system. For example, if openldap-devel is present then
> openldap may be linked into your binaries, but if the RPM doesn't declare
> openldap as a dependency, then it will fail to run on the
target system.
> This is an insiduous problem, which I call "the curse of autoconf".
> *** 4. You can only build packages for the same type of system as your build
> machine (e.g. CentOS 4 binaries on a CentOS 4 build system)
> Is there a way we can use rpmbuild to resolve these issues?

Take a look at "mock" instead?
yum -y install mock ; man mock

--
Fedora release 17 (Beefy Miracle) - Linux 3.3.4-1.fc17.x86_64
loadavg: 0.11 0.07 0.05
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging

--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging

Jon Ciesla 05-02-2012 04:58 PM

Can rpmbuild resolve these 4 issues ?
 
On Wed, May 2, 2012 at 11:24 AM, Kamal Ahmed <kamal2222ahmed@yahoo.com> wrote:
> mock seems better than mach, but they both seem to be good for testing ,
> before publishing RPMs
> What i wanted to know if there is a way to AUTO install the dependencies
> rather than just pointing them out
> I could do it in %post.

That's what yum does, if your package is in a yum repo. If not,
install it with yum install foo.rpm, and it will grab the deps from
the repo if available.

> Now the binaries for the dependencies along with their respective config
> files with become part of the rpm that i ship.

The other requirements won't be part of your RPM, nor should they be.

> Any comments ?
> Thanks,
> -Kamal.
>
> ________________________________
> From: Michael Schwendt <mschwendt@gmail.com>
> To: packaging@lists.fedoraproject.org
> Sent: Tuesday, May 1, 2012 3:34 PM
> Subject: Re: [Fedora-packaging] Can rpmbuild resolve these 4 issues ?
>
> On Tue, 1 May 2012 12:21:40 -0700 (PDT), KA (Kamal) wrote:
>
>>
>> I found these in a article on mach:
>> ref: http://psg.com/~brian/howto/mach.html
>>
>>
>> *** 1. Given a spec file, rpmbuild won't download the source tarball
>> and/or
>> patches. You have to fetch those yourself into the SOURCES directory.
>> *** 2. rpmbuild will abort if any build-time dependencies are missing,
>> forcing
>> you to stop what you're doing, and go and build and install those packages
>> too.
>> *** 3. When your package configures itself, it may auto-detect libraries
>> which
>> are available on your build system, but which are not going to be
>> available
>> on the target system. For example, if openldap-devel is present then
>> openldap may be linked into your binaries, but if the RPM doesn't declare
>> openldap as a dependency, then it will fail to run on the target system.
>> This is an insiduous problem, which I call "the curse of autoconf".
>> *** 4. You can only build packages for the same type of system as your
>> build
>> machine (e.g. CentOS 4 binaries on a CentOS 4 build system)
>> Is there a way we can use rpmbuild to resolve these issues?
>
> Take a look at "mock" instead?
> yum -y install mock ; man mock
>
> --
> Fedora release 17 (Beefy Miracle) - Linux 3.3.4-1.fc17.x86_64
> loadavg: 0.11 0.07 0.05
> --
> packaging mailing list
> packaging@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/packaging
>
>
> --
> packaging mailing list
> packaging@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/packaging



--
http://cecinestpasunefromage.wordpress.com/
------------------------------------------------
in your fear, seek only peace
in your fear, seek only love

-d. bowie
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging


All times are GMT. The time now is 06:47 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.