Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52551 - fcitx 2.0.2-r1
Summary: fcitx 2.0.2-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High enhancement (vote)
Assignee: CJK Team
URL: http://www.fcitx.org
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-05-31 06:44 UTC by Jackey Yang ("timeout" in forum)
Modified: 2004-06-26 23:52 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fcitx-2.0.2-r1.ebuild (fcitx-2.0.2-r1.ebuild,1.04 KB, text/plain)
2004-05-31 06:46 UTC, Jackey Yang ("timeout" in forum)
Details
fcitx-2.1.0rc patch (fcitx-2.1.0rc.diff,1.41 MB, patch)
2004-05-31 06:47 UTC, Jackey Yang ("timeout" in forum)
Details | Diff
fcitx-2.0.2-r1.ebuild (fcitx-2.0.2-r1.ebuild,993 bytes, text/plain)
2004-05-31 07:58 UTC, Jackey Yang ("timeout" in forum)
Details
fcitx 3.0.0test2 ebuild (fcitx-3.0.0_beta2.ebuild,973 bytes, text/plain)
2004-06-24 06:33 UTC, Jackey Yang ("timeout" in forum)
Details
fcitx-3.0.0test3.tar.bz2 (fcitx-3.0.0test3.tar.bz2,1.39 MB, application/x-tbz)
2004-06-25 04:53 UTC, Jackey Yang ("timeout" in forum)
Details
fcitx-3.0.0_beta3.ebuild (fcitx-3.0.0_beta3.ebuild,982 bytes, text/plain)
2004-06-25 04:54 UTC, Jackey Yang ("timeout" in forum)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jackey Yang ("timeout" in forum) 2004-05-31 06:44:52 UTC
Latest fcitx, a chinese input application
Comment 1 Jackey Yang ("timeout" in forum) 2004-05-31 06:46:00 UTC
Created attachment 32378 [details]
fcitx-2.0.2-r1.ebuild
Comment 2 Jackey Yang ("timeout" in forum) 2004-05-31 06:47:22 UTC
Created attachment 32379 [details, diff]
fcitx-2.1.0rc patch

update patch for fcitx-2.0.2 to fcitx-2.1.0rc
Comment 3 Jackey Yang ("timeout" in forum) 2004-05-31 06:50:25 UTC
new version fixed input problem in mozilla and opera with new user interface
Comment 4 Jackey Yang ("timeout" in forum) 2004-05-31 07:58:47 UTC
Created attachment 32387 [details]
fcitx-2.0.2-r1.ebuild

change make install part
Comment 5 Josh Glover (RETIRED) gentoo-dev 2004-05-31 08:16:00 UTC
I will take a look at this in a few. Perhaps LiquidX can do the same, since my Chinese is rudimentary. :)
Comment 6 Josh Glover (RETIRED) gentoo-dev 2004-05-31 08:23:48 UTC
Issues with fcitx-2.0.2-r1.ebuild:

1.

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/fcitx-2.1.0rc.diff
}

Why are you applying a diff to 2.1.0rc? An ebuild with a version number of 2.0.2 should install fcitx version 2.0.2.

2.

src_compile() {
	./configure --prefix=/usr || die "configure failed"
	make || die "emake failed"
}

Use econf instead:

src_compile() {
	econf || die "configure failed"
	make || die "make failed"
}

econf handles setting all of the Gentoo-specific install locations (prefix, host, mandir, infodir, datadir, sysconfdir, localstatedir). See this doc:

http://www.gentoo.org/doc/en/gentoo-howto.xml
Comment 7 Jackey Yang ("timeout" in forum) 2004-05-31 08:42:24 UTC
Josh Glover,
2.0.2 has a serious bug, can not input in mozilla and opera.
fcitx just release a 2.1.0 rc version, so i think maybe just use -r1

can you delete my ebuild, i will upload a new one. It seems that you can not overwrite the old ebuild.
Comment 8 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-06-06 10:04:22 UTC
If it is versioned as 2.1.0rc by upstream, we should probablly name
the ebuild fcix-2.1.0_rc1 (or fcix-2.1.0_rc). It is our convention to
use _rc suffix for release candidate. For more detail about
versioning, see "Naming Policy" in Gentoo Linux Development Policy
http://www.gentoo.org/doc/en/policy.xml
Comment 9 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-06-20 13:09:16 UTC
Okay, I've just changed its name to fcitx-2.1.0_rc.ebuild and
committed. Thanks for the contribution.

P.S. What about fcitx-3.0.0test2.tar.bz2? Is it worth including
into Portage tree? If you make an ebuild for it, it should be
named either fcitx-3.0.0_alpha2, fcitx-3.0.0_beta2, fcitx-3.0.0_pre2
or fcitx-3.0.0_rc2. See Gentoo Policy for detail.
Comment 10 Jackey Yang ("timeout" in forum) 2004-06-21 05:00:20 UTC
As far as i known, we just started to test this new version, but it seems that is very unstable now. After tried a little bit, lots of people switched back to 2.0.2-r1. Another reason is the new version change X11 xinput script, which i think it is a very bad idea, but i think i can patch it for gentoo if you guys want it.
Comment 11 Jackey Yang ("timeout" in forum) 2004-06-21 05:02:28 UTC
btw, is there anyway can put my email address in cjk@gentoo.org, so i will be able to catch up other fellow's work, thx lots!
Comment 12 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-06-21 05:35:25 UTC
I didn't put fcitx-2.0.2.ebuild since you said it has serious bug
regarding to opera and mozilla. If you would make a patch for the
bug to 2.0.2 I'm very happy adding it to CVS.

Also, I added you to cjk alias. (You can use "prefs" at the bottom
of the bugzilla to track others' bugs yourself, but this time I just
added your mail address to the alias)
Comment 13 Jackey Yang ("timeout" in forum) 2004-06-24 06:33:22 UTC
Created attachment 34049 [details]
fcitx 3.0.0test2 ebuild

5 mins work, for testing only.
I am not sure if it is stable or not.
It fixed lots of 2.0.2 bugs.
Opera and mozilla bugs fixed
Comment 14 Jackey Yang ("timeout" in forum) 2004-06-25 04:53:45 UTC
Created attachment 34125 [details]
fcitx-3.0.0test3.tar.bz2

1. fix wubi speed problem
2. fix lumaqq can not input problem
3. some other fix
Comment 15 Jackey Yang ("timeout" in forum) 2004-06-25 04:54:35 UTC
Created attachment 34126 [details]
fcitx-3.0.0_beta3.ebuild

A dump version
Comment 16 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-06-26 23:40:42 UTC
Hi, Jackey. Here is comments on your fcitx-3.0.0_beta3.ebuild.

* Versioning is fine. Great ;)
* You mustn't change ${P}. Use ${MY_P} or whatever instead.
  Read Ebuild HOWTO http://www.gentoo.org/doc/en/gentoo-howto.xml
  It would be better to set "MY_P=${P/_beta/test}"
* If you don't change ${S} from default, you shouldn't write it.
* src_unpack() defaults to unpack ${A}, so you can safely remove 
  the function from you ebuild.
* Don't you need to pass --enable-xft to econf if USE=truetype is set?
* "make DESTDIR=${D} install || die" is preferred than "einstall || die"
  if "make DESTDIR=${D} install" works. Read useful comments in
  /usr/portage/skel.ebuild.
Comment 17 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-06-26 23:52:15 UTC
Regarding to ${MY_P}, you better not hardcode version number.
If you hardcode version number to ${MY_P}, it will need some work to
upgrade the ebuild (renaming the ebuild does not always work if you
embed version number), hence you must be familiar with pre-defined
variables in Portage (described in Ebuild HOWTO). Thanks to bash we 
usually don't need to use sed or perl to transform ${P} into ${MY_P}.
Read "man bash" for parameter expansion feature.