Bug 251962 - net/asterisk-chan_sccp: Version bump to v4.3.3
Summary: net/asterisk-chan_sccp: Version bump to v4.3.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Guido Falsi
URL:
Keywords: patch-ready
Depends on:
Blocks:
 
Reported: 2020-12-19 14:31 UTC by Diederik de Groot
Modified: 2020-12-20 07:52 UTC (History)
1 user (show)

See Also:
ddegroot: maintainer-feedback-


Attachments
Version bump (2.96 KB, patch)
2020-12-19 14:31 UTC, Diederik de Groot
no flags Details | Diff
Manually edited patch (1.10 KB, patch)
2020-12-19 22:12 UTC, Diederik de Groot
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diederik de Groot 2020-12-19 14:31:21 UTC
Created attachment 220719 [details]
Version bump

net/asterisk-chan_sccp: Version bump to v4.3.3
- removal of patch files
Comment 1 Guido Falsi freebsd_committer freebsd_triage 2020-12-19 17:34:04 UTC
Thanks, I'm going to test it.
Comment 2 Guido Falsi freebsd_committer freebsd_triage 2020-12-19 19:50:05 UTC
Why did you remove USES=ssl and LIB_DEPENDS=libltdl.so:devel/libltdl?

Both are actually required, since the binary does link to them. From my podriere build log:



====> Running Q/A tests (stage-qa)
Warning: you need USES=ssl
Error: /usr/local/lib/asterisk/modules/chan_sccp.so is linked to /usr/local/lib/libiconv.so.2 from converters/libiconv but it is not declared as a dependency
Warning: you need USES+=iconv, USES+=iconv:wchar_t, or USES+=iconv:translit depending on needs
Error: /usr/local/lib/asterisk/modules/chan_sccp.so is linked to /usr/local/lib/libltdl.so.7 from devel/libltdl but it is not declared as a dependency
Warning: you need LIB_DEPENDS+=libltdl.so:devel/libltdl
====> Checking for pkg-plist issues (check-plist)
[...]
===========================================================================
=>> Checking shared library dependencies
 0x0000000000000001 NEEDED               Shared library: [libBlocksRuntime.so.0]
 0x0000000000000001 NEEDED               Shared library: [libc.so.7]
 0x0000000000000001 NEEDED               Shared library: [libcrypto.so.111]
 0x0000000000000001 NEEDED               Shared library: [libexecinfo.so.1]
 0x0000000000000001 NEEDED               Shared library: [libiconv.so.2]
 0x0000000000000001 NEEDED               Shared library: [libltdl.so.7]
 0x0000000000000001 NEEDED               Shared library: [libm.so.5]
 0x0000000000000001 NEEDED               Shared library: [libssl.so.111]
 0x0000000000000001 NEEDED               Shared library: [libthr.so.3]
=======================<phase: deinstall      >============================
===>  Deinstalling for asterisk16-chan_sccp


(not sure why it tells me about iconv too, since USES=iconv is present, so I'll count that as a false positive)

The rule is any dependency required at run time, even if indirect should be declared.

I'm asking information before adding them myself.
Comment 3 Guido Falsi freebsd_committer freebsd_triage 2020-12-19 19:51:54 UTC
I also noticed you removed the stanza:

.if ${FLAVOR} == asterisk13
CONFIGURE_ARGS+=		--with-asterisk-version=13
.elif ${FLAVOR} == asterisk16
CONFIGURE_ARGS+=		--with-asterisk-version=16
.elif ${FLAVOR} == asterisk18
CONFIGURE_ARGS+=		--with-asterisk-version=18
.endif


While it is not strictly needed at present, I'd rather keep it. It does no harm!
Comment 4 Diederik de Groot 2020-12-19 19:59:09 UTC
Ooh scrap that. That was not my intention at all. I just ran portsnap fetch/portsnap update and based my changes on that. My intent was only to remove all the patch files and just change the version number. My patch is no good at all. I should have inspected it a little closer before pushing it.
Comment 5 Diederik de Groot 2020-12-19 20:01:50 UTC
I will redo this patch tomorrow. Sorry for the inconvenience.
Comment 6 Guido Falsi freebsd_committer freebsd_triage 2020-12-19 20:06:16 UTC
(In reply to Diederik de Groot from comment #4)

> Ooh scrap that. That was not my intention at all. I just ran portsnap
> fetch/portsnap update and based my changes on that. My intent was only to
> remove all the patch files and just change the version number. My patch is no
> good at all. I should have inspected it a little closer before pushing it.

BTW portsnap has been deprecated, but I think it still provides current sources. You'd better use subversion for the time being (subversion will be replaced by git in a few months too, but at present subversion is still the official source of truth.)
Comment 7 Guido Falsi freebsd_committer freebsd_triage 2020-12-19 20:26:27 UTC
I also noticed, your patch remove files/patch-src_define.h.

I think that's also a mistake, because that was added to fix it on FreeBSD big endian archs, I think that patch file should be kept.
Comment 8 Diederik de Groot 2020-12-19 21:36:31 UTC
@Guido,
If you have time and access to a running system and the latest sources, can you try to make the change i wanted to do. I have done a release of v4.3.3 today, my plan was only to change that.
I will try to be a little more carefull next time. If you don't have time i will make the switch back to svn and do the patching myself.
Thanks
Comment 9 Diederik de Groot 2020-12-19 22:12:03 UTC
Created attachment 220725 [details]
Manually edited patch

This might already be enough.
Comment 10 Guido Falsi freebsd_committer freebsd_triage 2020-12-19 22:41:22 UTC
(In reply to Diederik de Groot from comment #9)

Thanks I think this is fine, I'll test it and commit it.
Comment 11 Diederik de Groot 2020-12-19 22:42:39 UTC
Thanks,
Note i manually edited the diff on linux so could not run any test. But it looks ok afaict
Comment 12 commit-hook freebsd_committer freebsd_triage 2020-12-19 23:15:03 UTC
A commit references this bug:

Author: madpilot
Date: Sat Dec 19 23:14:13 UTC 2020
New revision: 558703
URL: https://svnweb.freebsd.org/changeset/ports/558703

Log:
  Update asterisk-chan_sccp to v4.3.3

  PR:		251962
  Submitted by:	Diederik de Groot <ddegroot@talon.nl> (maintainer)

Changes:
  head/net/asterisk-chan_sccp/Makefile
  head/net/asterisk-chan_sccp/distinfo
Comment 13 Guido Falsi freebsd_committer freebsd_triage 2020-12-19 23:15:54 UTC
Committed.

My request were for clarifications. If a maintainer removes a dependency I try to understand why, his reasons, before overriding him. Did not mean to sound aggressive.

Thanks!
Comment 14 Diederik de Groot 2020-12-20 07:52:15 UTC
Thanks Guido
for paying more attention then me and noticing my initial mistake