Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 145137

Summary: New ebuild request: netbrake
Product: Gentoo Linux Reporter: Octapus <octapus>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: CONFIRMED ---    
Severity: enhancement Keywords: EBUILD, InOverlay, REVIEWED
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
URL: http://www.hping.org/netbrake/
Whiteboard: sunrise-removal
Package list:
Runtime testing required: ---
Attachments: netbrake-0.2.ebuild (New Package)
patch for httpfs and install path
netbrake-0.2.ebuild (Updated New Package)
patch to fix CFLAGS and CC

Description Octapus 2006-08-25 19:18:33 UTC
Netbrake is an utility to limit the bandwidth used by a process in user-mode. 

Can you add the ebuild in portage?

Thanks
Comment 1 Mike Pagano gentoo-dev 2006-09-02 10:45:44 UTC
Created attachment 95754 [details]
netbrake-0.2.ebuild (New Package)

Please find attached netbrake-0.2.ebuild.

Please test and let me know how it works. You will also need the patch attached.

I will maintain this in sunrise if applicable.
Comment 2 Mike Pagano gentoo-dev 2006-09-02 10:46:43 UTC
Created attachment 95755 [details, diff]
patch for httpfs and install path

Patch for netbrake-0.2
Comment 3 Mike Pagano gentoo-dev 2006-09-02 12:04:51 UTC
Created attachment 95765 [details]
netbrake-0.2.ebuild (Updated New Package)

Updated ebuild
Comment 4 Mike Pagano gentoo-dev 2006-09-02 12:05:42 UTC
Created attachment 95766 [details, diff]
patch to fix CFLAGS and CC
Comment 5 Mike Pagano gentoo-dev 2006-09-02 12:17:37 UTC
This package is now maintained in the sunrise overlay at :

http://gentoo-sunrise.org/cgi-bin/trac.cgi/browser/sunrise/net-misc/netbrake

Sunrise Overlay

http://gentoo-sunrise.org/cgi-bin/trac.cgi


Comment 6 Michael Weber (RETIRED) gentoo-dev 2009-12-01 13:46:29 UTC
Hi, it compiles against sys-libs/glibc-2.9_p20081201-r2 on ~x86, but fails
against sys-libs/glibc-2.10.1 or sys-libs/glibc-2.11 on ~amd64.

Any clue?

io ~ # cat /var/tmp/portage/net-misc/netbrake-0.2/temp/build.log | more
>>> Unpacking source...
>>> Unpacking netbrake-0.2.tar.gz to /var/tmp/portage/net-misc/netbrake-0.2/work
 * Applying netbrake-0.2-fix-compiler-and-flags.patch ...                                                                                                                  [ ok ]
 * Applying netbrake-0.2-fix-path-and-httpfs.patch ...                                                                                                                     [ ok ]
>>> Source unpacked in /var/tmp/portage/net-misc/netbrake-0.2/work
>>> Checking netbrake-0.2.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
>>> Compiling source in /var/tmp/portage/net-misc/netbrake-0.2/work/netbrake ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --local
statedir=/var/lib --libdir=/usr/lib64

----------------------------------------------
HTTPFS disabled
Library path: /usr/lib
Binary path: /usr/bin
----------------------------------------------

Maikefine.in => Makefile ...
netbrake.h.in => netbrake.h ...

Now try `make'
make -j1 
Making dependences
cc -I. -march=core2 -mfpmath=sse -mieee-fp -O2 -pipe -fPIC   -c libnetbrake.c -o libnetbrake.o
libnetbrake.c:239: error: conflicting types for ‘recv’
/usr/include/bits/socket2.h:35: note: previous definition of ‘recv’ was here
libnetbrake.c:248: error: conflicting types for ‘recvfrom’
/usr/include/bits/socket2.h:65: note: previous definition of ‘recvfrom’ was here
libnetbrake.c:258: error: conflicting types for ‘send’
/usr/include/sys/socket.h:141: note: previous declaration of ‘send’ was here
libnetbrake.c:267: error: conflicting types for ‘sendto’
/usr/include/sys/socket.h:155: note: previous declaration of ‘sendto’ was here
make: *** [libnetbrake.o] Error 1
 * 
 * ERROR: net-misc/netbrake-0.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2305:  Called _eapi0_src_compile
 *               ebuild.sh, line  600:  Called _eapi2_src_compile
 *               ebuild.sh, line  634:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
io ~ # cat /var/tmp/portage/net-misc/netbrake-0.2/temp/build.log 
>>> Unpacking source...
>>> Unpacking netbrake-0.2.tar.gz to /var/tmp/portage/net-misc/netbrake-0.2/work
 * Applying netbrake-0.2-fix-compiler-and-flags.patch ...                                                                                                                  [ ok ]
 * Applying netbrake-0.2-fix-path-and-httpfs.patch ...                                                                                                                     [ ok ]
>>> Source unpacked in /var/tmp/portage/net-misc/netbrake-0.2/work
>>> Checking netbrake-0.2.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
>>> Compiling source in /var/tmp/portage/net-misc/netbrake-0.2/work/netbrake ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64

----------------------------------------------
HTTPFS disabled
Library path: /usr/lib
Binary path: /usr/bin
----------------------------------------------

Maikefine.in => Makefile ...
netbrake.h.in => netbrake.h ...

Now try `make'
make -j1 
Making dependences
cc -I. -march=core2 -mfpmath=sse -mieee-fp -O2 -pipe -fPIC   -c libnetbrake.c -o libnetbrake.o
libnetbrake.c:239: error: conflicting types for ‘recv’
/usr/include/bits/socket2.h:35: note: previous definition of ‘recv’ was here
libnetbrake.c:248: error: conflicting types for ‘recvfrom’
/usr/include/bits/socket2.h:65: note: previous definition of ‘recvfrom’ was here
libnetbrake.c:258: error: conflicting types for ‘send’
/usr/include/sys/socket.h:141: note: previous declaration of ‘send’ was here
libnetbrake.c:267: error: conflicting types for ‘sendto’
/usr/include/sys/socket.h:155: note: previous declaration of ‘sendto’ was here
make: *** [libnetbrake.o] Error 1
 * 
 * ERROR: net-misc/netbrake-0.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2305:  Called _eapi0_src_compile
 *               ebuild.sh, line  600:  Called _eapi2_src_compile
 *               ebuild.sh, line  634:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-misc/netbrake-0.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/netbrake-0.2/temp/environment'.
 * This ebuild is from an overlay named 'sunrise': '/usr/local/portage/layman/sunrise/'
 * 
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-08 16:48:49 UTC
Hello, everyone.

It seems that at least one ebuild related to this bug exists in the Sunrise overlay at the moment. However, I have to regretfully announce that after a long inactivity period the Sunrise project has been discontinued and the related overlay will be eventually removed. For this reason, I'd like to ask you to reevaluate the ebuilds and consider moving them. If you'd like to maintain a package from Sunrise in Gentoo, please take a look at our Proxy Maintainers [1] project.

Please make sure to take ebuilds from the unreviewed developer Sunrise repository [2] rather than the -reviewed one, since the latter has not been updated for over a year. While at it, please note that:

1. Adding a package to Gentoo requires declaring yourself as an active maintainer for it. All bugs regarding the package will be assigned to you, and you will be expected to maintain it.

2. Some packages may not be suitable for addition anymore. While there's no strong rules that would prevent you from adding a package, it may be a bad idea to add old-unmaintained packages that will shortly result in a large number of bugs reported with no solution. If that is the case, please close the bug as RESOLVED/OBSOLETE to make it easier to find packages worth adding.

3. Some of the bugs were already closed as WONTFIX/OBSOLETE/... while the relevant ebuild was kept in Sunrise. If you disagree with the original decision, you still can add the ebuild via proxy-maint.

4. Pleaes note that many of the Sunrise ebuilds are old and may be buggy. If you decide to move them, please make sure to update/clean them up. The proxy-maint team will also review your ebuilds, therefore making sure they land in Gentoo in good quality.

Once again, thank you for your contribution. We hope that you will still want to contribute to Gentoo, through proxy-maint or otherwise.


[1]:https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
[2]:https://gitweb.gentoo.org/proj/sunrise.git/