public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] CUnit - !!! Name error in CUnit-1.0-4: multiple version parts.
@ 2002-03-11 21:50 Yannick Koehler
  2002-03-11 22:02 ` Daniel Robbins
  2002-03-11 22:33 ` Tod M. Neidt
  0 siblings, 2 replies; 7+ messages in thread
From: Yannick Koehler @ 2002-03-11 21:50 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 156 bytes --]


I wrote that ebuild, but it looks like portage doesn't like package name 
with <version>.<revision>-<patch> format.

Any help appreciated

Yannick Koehler

[-- Attachment #2: CUnit-1.0-4.ebuild --]
[-- Type: text/plain, Size: 534 bytes --]

# Copyright 2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Yannick Koehler <ykoehler@hotmail.com> (mostly inspired by existing ebuild scripts)
# $Header$
 
DESCRIPTION="CUnit 1.0-4 C Unit Test Framework"
SRC_URI="http://prdownloads.sourceforge.net/cunit/${PV}.tar.gz"
HOMEPAGE="http://cunit.sourceforge.net"

DEPEND="virtual/glibc"

src_compile() {
	cd ${WORK_DIR}/${PV}
	try ./configure
	try ./make
}

src_install() {
	cd ${WORK_DIR}/${PV}
	try ./make install
}


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] CUnit - !!! Name error in CUnit-1.0-4: multiple version parts.
  2002-03-11 21:50 [gentoo-dev] CUnit - !!! Name error in CUnit-1.0-4: multiple version parts Yannick Koehler
@ 2002-03-11 22:02 ` Daniel Robbins
  2002-03-11 23:34   ` Yannick Koehler
  2002-03-11 22:33 ` Tod M. Neidt
  1 sibling, 1 reply; 7+ messages in thread
From: Daniel Robbins @ 2002-03-11 22:02 UTC (permalink / raw
  To: gentoo-dev

On Mon, 2002-03-11 at 14:50, Yannick Koehler wrote:
> 
> I wrote that ebuild, but it looks like portage doesn't like package name 
> with <version>.<revision>-<patch> format.
> 
> Any help appreciated
> 
> Yannick Koehler

Yes, you need to change the Gentoo Linux-specific version to be
compatible with our versioning system.  Some possibilities:

1.0.4
1.0_p4 (patchlevel 4)

Best Regards,

-- 
Daniel Robbins                                  <drobbins@gentoo.org>
Chief Architect/President                       http://www.gentoo.org 
Gentoo Technologies, Inc.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] CUnit - !!! Name error in CUnit-1.0-4: multiple version parts.
  2002-03-11 21:50 [gentoo-dev] CUnit - !!! Name error in CUnit-1.0-4: multiple version parts Yannick Koehler
  2002-03-11 22:02 ` Daniel Robbins
@ 2002-03-11 22:33 ` Tod M. Neidt
  2002-03-11 22:41   ` Tod M. Neidt
  1 sibling, 1 reply; 7+ messages in thread
From: Tod M. Neidt @ 2002-03-11 22:33 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1092 bytes --]

Hi!

The current Gentoo package naming convention can be found in

http://www.gentoo.org/doc/gentoo-howto.html

In this specific case I would suggest appending the patch number to the
version number with a "." instead of a "-" (should be kosher with
portage) and then use appropriate munging to transform the ebuild name
to the tarball name. I guess I would also pad the version number with a
extra 0 so that it is less likely to have a version collision with the
possibly release of the real version 1.0.4 in the future, i.e.
CUnit-1.0.0.4.ebuild

Since this is a small ebuild I have attached an example of how I would
approach it. The munging may be overkill, but it illustrates how to make
the ebuild version independent (at least within this 1.0 patch cycle) to
make maintenance easier. I have not tested this ebuild, it is intended
to be informative only. ( please test and submit a working verison to
bugs.gentoo.org) Note: the <command> || die syntax instead of try
<command>, see skel.ebuild.

If you have any additional questions, feel free to contact me.

Hope this helps,

tod





[-- Attachment #2: CUnit-1.0.0.4.ebuild --]
[-- Type: text/plain, Size: 694 bytes --]

# Copyright 2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Yannick Koehler <ykoehler@hotmail.com> (mostly inspired by existing ebuild scripts)
# $Header$

patchversion=${PV##*.}
MYPV=${PV%.0*}
MYP=${PN}-${MYPV}-${patchversion}
S=${WORKDIR}/${MYP}
DESCRIPTION="CUnit 1.0-4 C Unit Test Framework"
SRC_URI="http://prdownloads.sourceforge.net/cunit/${MYP}.tar.gz"
HOMEPAGE="http://cunit.sourceforge.net"

DEPEND="virtual/glibc"

src_compile() {
	
	./configure || die "Configuration failed."
	
	emake || die "Parallel make failed."
}

src_install() {
	
	make install || die "Installation failed."

}


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] CUnit - !!! Name error in CUnit-1.0-4: multiple version parts.
  2002-03-11 22:33 ` Tod M. Neidt
@ 2002-03-11 22:41   ` Tod M. Neidt
  2002-03-11 23:36     ` Yannick Koehler
  0 siblings, 1 reply; 7+ messages in thread
From: Tod M. Neidt @ 2002-03-11 22:41 UTC (permalink / raw
  To: gentoo-dev

On Mon, 2002-03-11 at 16:33, Tod M. Neidt wrote:

Hi again!

Didn't see drobbins post before I sent mine.

Didn't realize that the "_p4" suffix was an option (I learned something
new today :)  and I personally would prefer that as it is the most
informative.

Munging the ebuild to the tarball naming is still a good habit to get
into as updating the ebuild for _p5, _p6 , etc. would be a simple copy
of the ebuild to the new name and not require editing any hardcoded
version in the ebuild itself.

Regards,

tod





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] CUnit - !!! Name error in CUnit-1.0-4: multiple version parts.
  2002-03-11 22:02 ` Daniel Robbins
@ 2002-03-11 23:34   ` Yannick Koehler
  2002-03-12  0:15     ` Daniel Robbins
  0 siblings, 1 reply; 7+ messages in thread
From: Yannick Koehler @ 2002-03-11 23:34 UTC (permalink / raw
  To: gentoo-dev

Daniel Robbins wrote:
> On Mon, 2002-03-11 at 14:50, Yannick Koehler wrote:
> 
>>I wrote that ebuild, but it looks like portage doesn't like package name 
>>with <version>.<revision>-<patch> format.
>>
>>Any help appreciated
>>
>>Yannick Koehler
>>
> 
> Yes, you need to change the Gentoo Linux-specific version to be
> compatible with our versioning system.  Some possibilities:
> 
> 1.0.4
> 1.0_p4 (patchlevel 4)
> 
> Best Regards,
> 
> 

Ok but then I can't use $P has the file isn't from me and use 1.0-4.. So 
I have to do

src_extract {
	cd ${WORKDIR}/CUnit-1.0-4
	try ./configure

...

Yannick Koehler



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] CUnit - !!! Name error in CUnit-1.0-4: multiple version parts.
  2002-03-11 22:41   ` Tod M. Neidt
@ 2002-03-11 23:36     ` Yannick Koehler
  0 siblings, 0 replies; 7+ messages in thread
From: Yannick Koehler @ 2002-03-11 23:36 UTC (permalink / raw
  To: gentoo-dev

Tod M. Neidt wrote:
> On Mon, 2002-03-11 at 16:33, Tod M. Neidt wrote:
> 
> Hi again!
> 
> Didn't see drobbins post before I sent mine.
> 
> Didn't realize that the "_p4" suffix was an option (I learned something
> new today :)  and I personally would prefer that as it is the most
> informative.
> 
> Munging the ebuild to the tarball naming is still a good habit to get
> into as updating the ebuild for _p5, _p6 , etc. would be a simple copy
> of the ebuild to the new name and not require editing any hardcoded
> version in the ebuild itself.
> 
> Regards,
> 
> tod
> 
> 
> 
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
> 

Thanks to both!

I'll modify my scripts with that insight and send it back inside bugzilla

Yannick Koehler



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] CUnit - !!! Name error in CUnit-1.0-4: multiple version parts.
  2002-03-11 23:34   ` Yannick Koehler
@ 2002-03-12  0:15     ` Daniel Robbins
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Robbins @ 2002-03-12  0:15 UTC (permalink / raw
  To: gentoo-dev

On Mon, 2002-03-11 at 16:34, Yannick Koehler wrote:

> src_extract {
> 	cd ${WORKDIR}/CUnit-1.0-4
> 	try ./configure

Add this to your ebuild:

S=${WORKDIR}/CUnit-1.0-4

Then everything will work fine.

Note that you should type:

	./configure || die

...instead of what you have above:

	try ./configure

Best Regards,

-- 
Daniel Robbins                                  <drobbins@gentoo.org>
Chief Architect/President                       http://www.gentoo.org 
Gentoo Technologies, Inc.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-03-12  0:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-11 21:50 [gentoo-dev] CUnit - !!! Name error in CUnit-1.0-4: multiple version parts Yannick Koehler
2002-03-11 22:02 ` Daniel Robbins
2002-03-11 23:34   ` Yannick Koehler
2002-03-12  0:15     ` Daniel Robbins
2002-03-11 22:33 ` Tod M. Neidt
2002-03-11 22:41   ` Tod M. Neidt
2002-03-11 23:36     ` Yannick Koehler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox