Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460656 - net-misc/htun-0.9.5 ~amd64 keyword request
Summary: net-misc/htun-0.9.5 ~amd64 keyword request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Keywording and Stabilization (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: EBUILD, KEYWORDREQ, PATCH
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2013-03-07 08:34 UTC by Andrew Savchenko
Modified: 2013-03-12 04:35 UTC (History)
1 user (show)

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


Attachments
htun-0.9.6.ebuild (htun-0.9.6.ebuild,1.30 KB, text/plain)
2013-03-08 21:50 UTC, Michael Mair-Keimberger (iamnr3)
Details
htun-0.9.6-glibc.patch (htun-0.9.6-glibc.patch,254 bytes, patch)
2013-03-08 21:50 UTC, Michael Mair-Keimberger (iamnr3)
Details | Diff
htun-0.9.6-makefile.patch (htun-0.9.6-makefile.patch,712 bytes, patch)
2013-03-08 21:51 UTC, Michael Mair-Keimberger (iamnr3)
Details | Diff
htun-0.9.6.ebuild (htun-0.9.6.ebuild,1.32 KB, text/plain)
2013-03-09 12:53 UTC, Andrew Savchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2013-03-07 08:34:43 UTC
Hello,

net-misc/htun-0.9.5 compiles and works fine on ~amd64.
Comment 1 Chema Alonso Josa (RETIRED) gentoo-dev 2013-03-07 16:55:27 UTC
Some issues detected:

1. Invalid Gentoo Copyright on line: 1
Should be:
# Copyright 1999-2013 Gentoo Foundation

2. Are you using EAPI=0?

3. ebuild calls gcc directly, and uses -g flag (Added blocker to this bug)
gcc -I../include -I. -g -D_REENTRANT  -c y.tab.c

4. Missing || die at lines 21 and 30

5. The package does not compile in my box:

gcc -I../include -I. -g -D_REENTRANT  -c y.tab.c
In file included from gram.y:31:0:
../include/common.h:139:15: warning: built-in function 'log' declared as non-function [enabled by default]
gram.y:305:6: warning: conflicting types for 'die_error' [enabled by default]
gram.y:205:21: note: previous implicit declaration of 'die_error' was here
gram.y:322:6: warning: conflicting types for 'yyerror' [enabled by default]
y.tab.c:2035:7: note: previous implicit declaration of 'yyerror' was here
gram.y:327:6: warning: conflicting types for 'yy_error' [enabled by default]
gram.y:199:21: note: previous implicit declaration of 'yy_error' was here
gram.y:332:13: warning: conflicting types for 'set_ip' [enabled by default]
gram.y:332:13: error: static declaration of 'set_ip' follows non-static declaration
gram.y:154:17: note: previous implicit declaration of 'set_ip' was here
gram.y:346:12: error: static declaration of 'get_answer' follows non-static declaration
gram.y:122:56: note: previous implicit declaration of 'get_answer' was here
gram.y:356:15: error: static declaration of 'set_base64_user_pass' follows non-static declaration
gram.y:212:47: note: previous implicit declaration of 'set_base64_user_pass' was here
make: *** [y.tab.o] Error 1
emake failed
Comment 2 Denis M. (Phr33d0m) 2013-03-07 17:09:51 UTC
The ebuild really needs some work.
The package installs fine for me though.

Also, there seems to be a 0.9.6 version out there.
Comment 3 Michael Mair-Keimberger (iamnr3) 2013-03-08 21:49:44 UTC
I've updated the package:
* fixes copyright
* updated ebuild (eapi=5)
* add missing die's
* fixes calling gcc directly
* fixes dosen't respect users cflags/ldflags
* version bump to 0.9.6
* added ~amd64 keyword
* updated homepage (original seems to be offline, i took the hp from archs package)
* updated glibc patch (a few things got fixed with the new version)

The package builds fine for me too (on amd64). Please take a look at the ebuild. Hope it's mostly correct :)
Comment 4 Michael Mair-Keimberger (iamnr3) 2013-03-08 21:50:29 UTC
Created attachment 341340 [details]
htun-0.9.6.ebuild

ebuild for the latest version
Comment 5 Michael Mair-Keimberger (iamnr3) 2013-03-08 21:50:57 UTC
Created attachment 341342 [details, diff]
htun-0.9.6-glibc.patch

updated glibc patch
Comment 6 Michael Mair-Keimberger (iamnr3) 2013-03-08 21:51:31 UTC
Created attachment 341344 [details, diff]
htun-0.9.6-makefile.patch

makefile patch
Comment 7 Andrew Savchenko gentoo-dev 2013-03-09 12:52:01 UTC
(In reply to comment #3)
> I've updated the package:
> * fixes copyright
> * updated ebuild (eapi=5)
> * add missing die's
> * fixes calling gcc directly
> * fixes dosen't respect users cflags/ldflags
> * version bump to 0.9.6
> * added ~amd64 keyword
> * updated homepage (original seems to be offline, i took the hp from archs
> package)
> * updated glibc patch (a few things got fixed with the new version)
> 
> The package builds fine for me too (on amd64). Please take a look at the
> ebuild. Hope it's mostly correct :)

Thanks, works fine here on both ~x86 and ~amd64.
Though repoman is not happy with patching in src_unpack(), this is fixed below.
Comment 8 Andrew Savchenko gentoo-dev 2013-03-09 12:53:26 UTC
Created attachment 341428 [details]
htun-0.9.6.ebuild

Updated ebuild with epatch commands placed into src_prepare() as EAPI>=2 requires.
Comment 9 Chema Alonso Josa (RETIRED) gentoo-dev 2013-03-11 10:44:45 UTC
Nice =)

Do you get these QA issues?

* QA Notice: Package triggers severe warnings which indicate that it
*            may exhibit random runtime failures.
* queue.c:155:5: warning: null argument where non-null required (argument 1) [-Wnonnull]
* queue.c:223:5: warning: null argument where non-null required (argument 1) [-Wnonnull]
* queue.c:263:5: warning: null argument where non-null required (argument 1) [-Wnonnull]
Comment 10 Andrew Savchenko gentoo-dev 2013-03-11 16:05:08 UTC
Yes, I got them. At the first glance at the code, non-null requirements are outdated.
Comment 11 Sergey Popov gentoo-dev 2013-03-12 04:35:59 UTC
+  12 Mar 2013; Sergey Popov <pinkbyte@gentoo.org> +htun-0.9.6.ebuild,
+  +files/htun-0.9.6-glibc.patch, +files/htun-0.9.6-makefile.patch,
+  +files/README.gentoo:
+  Version bump, wrt bug #460656. EAPI 5, add ~amd64 keyword, add epatch_user,
+  use readme.gentoo eclass instead of simple message in pkg_postinst, respect
+  CFLAGS, LDFLAGS and compiler. Thanks to Michael Mair-Keimberger and Andrew
+  Savchenko for ebuild improvements