Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233873 - net-dialup/misdn net-dialup/misdn-user version bump request
Summary: net-dialup/misdn net-dialup/misdn-user version bump request
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement with 2 votes (vote)
Assignee: Gentoo Dialup Developers
URL: http://www.misdn.org/downloads/releases/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-04 11:36 UTC by Thomas Stein
Modified: 2013-02-10 08:00 UTC (History)
4 users (show)

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


Attachments
version bump (misdn-1.1.8.ebuild,5.87 KB, text/plain)
2008-08-20 14:49 UTC, Norbert Marx
Details
version bump (misdnuser-1.1.8.ebuild,965 bytes, text/plain)
2008-08-20 14:49 UTC, Norbert Marx
Details
Updated ebuild for 1.1.20 (misdnuser-1.1.20.ebuild,1.27 KB, text/plain)
2008-10-20 09:04 UTC, Nick Loeve
Details
ebuild for 1.1.20 that makes shared libs (misdnuser-1.1.20.ebuild,1.35 KB, text/plain)
2008-10-24 11:55 UTC, Nick Loeve
Details
Patch build system to make shared libs with proper SONAME versioning (misdnuser-1.1.20-shared.patch,1.96 KB, patch)
2008-10-24 11:56 UTC, Nick Loeve
Details | Diff
ebuild for 1.1.20 that makes shared libs with proper SONAME versioning (misdnuser-1.1.20.ebuild,1.37 KB, text/plain)
2008-10-24 12:00 UTC, Nick Loeve
Details
misdn/misdn-1.1.9.2.ebuild (misdn-1.1.9.2.ebuild,5.87 KB, text/plain)
2009-08-13 06:33 UTC, Konstantin Münning
Details
net-dialup/misdnuser-1.1.9.ebuild (misdnuser-1.1.9.ebuild,967 bytes, text/plain)
2009-08-13 06:34 UTC, Konstantin Münning
Details
Fix include statements in mbuffer.h (misdnuser-1.1.20-mbuffer.patch,361 bytes, patch)
2010-01-04 10:40 UTC, Petric Frank
Details | Diff
Fix object list in lib/Makefile for *.so file (misdnuser-1.1.20-objects.patch,336 bytes, patch)
2010-01-04 10:41 UTC, Petric Frank
Details | Diff
Fixed patch to name the shared file correctly (misdnuser-1.1.20-shared.patch,1.96 KB, patch)
2010-01-04 10:43 UTC, Petric Frank
Details | Diff
Updated: Apply *-mbuffer.patch and *.objects.patch also (misdnuser-1.1.20.ebuild,1.49 KB, text/plain)
2010-01-04 10:46 UTC, Petric Frank
Details
Asterisk C test config file (from configure) (asterisk-libmISDN.c,5.84 KB, text/plain)
2010-02-27 19:10 UTC, damage
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stein 2008-08-04 11:36:31 UTC
Hello.

misdn and misdn-user 1.1.8 has been released a few weeks ago.

regards
t.

Reproducible: Always
Comment 1 Norbert Marx 2008-08-20 14:49:13 UTC
Created attachment 163386 [details]
version bump
Comment 2 Norbert Marx 2008-08-20 14:49:31 UTC
Created attachment 163388 [details]
version bump
Comment 3 Norbert Marx 2008-08-20 14:50:56 UTC
kernel patch removed, early tests with 2.6.24-r8 successful
Comment 4 Nick Loeve 2008-10-20 09:04:00 UTC
Created attachment 169162 [details]
Updated ebuild for 1.1.20

This ebuild will build with a kernel >= 2.6.27 and the now mainline mISDN driver. You will need to create an updated ebuild for mISDN 1.2.0 if you want to use the out of tree driver.
Comment 5 Nick Loeve 2008-10-23 15:22:24 UTC
Disregard the last ebuild attached as it violates metadata invariance
Comment 6 Nick Loeve 2008-10-24 08:34:40 UTC
Also this ebuild needs to patch the build system so that shared libraries are versioned
Comment 7 Nick Loeve 2008-10-24 11:55:38 UTC
Created attachment 169704 [details]
ebuild for 1.1.20 that makes shared libs
Comment 8 Nick Loeve 2008-10-24 11:56:31 UTC
Created attachment 169706 [details, diff]
Patch build system to make shared libs with proper SONAME versioning

Use this with the latest 1.1.20 ebuild
Comment 9 Nick Loeve 2008-10-24 12:00:25 UTC
Created attachment 169708 [details]
ebuild for 1.1.20 that makes shared libs with proper SONAME versioning

We need to actually call check_extra_config for the check to happen :)
Comment 10 Thomas Stein 2008-10-31 07:28:48 UTC
May i kindly ask whats 1.1.8 holding back from releasing to portage?
Comment 11 Jaco Kroon 2009-06-22 13:48:50 UTC
(In reply to comment #9)
> Created an attachment (id=169708) [edit]
> ebuild for 1.1.20 that makes shared libs with proper SONAME versioning
> 
> We need to actually call check_extra_config for the check to happen :)
> 

Doesn't work for me, I suspect the working folder is incorrect as per the following output:

>>> Unpacking mISDNuser.tar.gz to /var/tmp/portage/net-dialup/misdnuser-1.1.20/work
/var/tmp/portage/net-dialup/misdnuser-1.1.20/temp/environment: line 2912: cd: /var/tmp/portage/net-dialup/misdnuser-1.1.20/work/misdnuser-1.1.20: No such file or directory
 * Applying misdnuser-1.1.20-shared.patch ...

 * Failed Patch: misdnuser-1.1.20-shared.patch !
 *  ( /usr/local/portage/net-dialup/misdnuser/files/misdnuser-1.1.20-shared.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/net-dialup/misdnuser-1.1.20/temp/misdnuser-1.1.20-shared.patch-13405.out

 * 
 * ERROR: net-dialup/misdnuser-1.1.20 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2913:  Called epatch '/usr/local/portage/net-dialup/misdnuser/files/misdnuser-1.1.20-shared.patch'
 *             environment, line 1453:  Called die
 * The specific snippet of code:
 *                   die "Failed Patch: ${patchname}!";
 *  The die message:
 *   Failed Patch: misdnuser-1.1.20-shared.patch!
 * 
 * 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-dialup/misdnuser-1.1.20/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-dialup/misdnuser-1.1.20/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * 

Adding this line fixes it for me:

S="${WORKDIR}/mISDNuser"

Regards,
Comment 12 Konstantin Münning 2009-08-13 06:33:35 UTC
Created attachment 201109 [details]
misdn/misdn-1.1.9.2.ebuild
Comment 13 Konstantin Münning 2009-08-13 06:34:22 UTC
Created attachment 201111 [details]
net-dialup/misdnuser-1.1.9.ebuild
Comment 14 Petric Frank 2010-01-04 09:40:27 UTC
Have a problem with misdnuser-1.1.20.
There are no symbols generated in libmISDN.so - and in recent ebuilds the *.a files are no more installed.

I had a look to lib/Makefile (from original source) and saw the following lines:
----------------------- cut ----------------------
MISDN_OBJ = debug.o mbuffer.o q931.o fsm.o mtimer.o mlayer3.o layer3.o dss1user.o dss1net.o

MISDN_PICOBJ = $(ISDNNET_OBJ:%.o=%.lo)

...

libmisdn.so: $(MISDN_OBJ)
        $(CC) $(CFLAGS) -shared -Xlinker -x -o $@ $^
----------------------- cut ----------------------

After patch with misdnuser-1.1.20-shared.patch (attached here) it becomes:
----------------------- cut ----------------------
MISDN_OBJ = debug.o mbuffer.o q931.o fsm.o mtimer.o mlayer3.o layer3.o dss1user.o dss1net.o

MISDN_PICOBJ = $(ISDNNET_OBJ:%.o=%.lo)

...

libmisdn.so: $(MISDN_PICOBJ)
        $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-soname,libmISDN.so.0 -shared -o libmISDN.so.0 \
                $(MISDN_PICOBJ)
----------------------- cut ----------------------

There are several problems.

1. libmisdn.so is never created.
2. MISDN_PICOBJ is always empty (due ISDNNET_OBJ is empty)

Question: What is intended: generate libmISDN.so or libmisdn.so ?
(I think the latter one has to be generated)


Next Problem:

mbuffer.h is installed to /usr/include/mISDNuser. But inside it includes mISDNif.h (not mISDNuser/mISDNif.h !). So any application which wants to use misdn does not compile. This applies to some other includes also.
Comment 15 Petric Frank 2010-01-04 10:40:34 UTC
Created attachment 215144 [details, diff]
Fix include statements in mbuffer.h
Comment 16 Petric Frank 2010-01-04 10:41:49 UTC
Created attachment 215145 [details, diff]
Fix object list in lib/Makefile for *.so file
Comment 17 Petric Frank 2010-01-04 10:43:48 UTC
Created attachment 215146 [details, diff]
Fixed patch to name the shared file correctly
Comment 18 Petric Frank 2010-01-04 10:46:20 UTC
Created attachment 215148 [details]
Updated: Apply *-mbuffer.patch and *.objects.patch also
Comment 19 damage 2010-02-26 23:17:51 UTC
Hi Petric,
thanks for your patches. But there are a few problems:

1. The mbuffer patch is not working. Because during compilation mbuffer.h is used. But the includes are not in the directory mISDNuser. This only happens if you emerge misdnuser this first time. If you ever installed misdnuser successfully you have the specified directory in /usr/include.

2. The library searched by asterisk (chan_misdn) is called libmISDN. But the file is libmisdn (attention to the case of the letters).

I try to emerge misdnuser and emerge asterisk with +misdn. If I have luck I will give you a feedback.
Comment 20 damage 2010-02-27 19:09:11 UTC
Hmmmm.... I didn't get it :-(

asterisk-libmISDN.c is the Test C file of asterisk vor mISDN. I think this is one of the best files to test. It should get compiled by

i686-pc-linux-gnu-gcc -o conftest -g -O2   test.c -lmISDN   -lm

Or whatever gcc you use. If I try to compaile asterisk-libmISDN.c I get following:

/tmp/ccK5KEVB.o: In function `main':
/root/asterisk-libmISDN.c:235: undefined reference to `mISDN_open'
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../libmISDN.so: undefined reference to `pthread_create'
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../libmISDN.so: undefined reference to `pthread_cancel'
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../libmISDN.so: undefined reference to `pthread_join'
collect2: ld gab 1 als Ende-Status zurück
Comment 21 damage 2010-02-27 19:10:07 UTC
Created attachment 221465 [details]
Asterisk C test config file (from configure)

Asterisk C test config file (from configure)
Comment 22 damage 2010-02-27 19:39:16 UTC
If you add -lpthread in line 62 of misdnuser-1.1.20-shared.patch than the pthread problem is gone.
Comment 23 damage 2010-02-27 21:27:10 UTC
mISDN_open has been moved into the kernel. How do I link against it?
Comment 24 Pacho Ramos gentoo-dev 2013-02-10 08:00:56 UTC
dropped