[MacPorts] #38834: samba4: Update to 4.0.5
#38834: samba4: Update to 4.0.5 -------------------------------+-------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: samba4 -------------------------------+-------------------- The samba4 port should be updated to the latest stable version. Currently that is 4.0.5. Also the livecheck is broken. -- Ticket URL: <https://trac.macports.org/ticket/38834> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.5 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by ajdudman@…): This may help start the update. It compiles and installs and does livecheck. Other ports when slightly modified link to it. I have not tested it. My lan is quite simple. Wow, waf does a poor job setting the dynamic library loader commands. I think I had to adjust just about all of the shared object libraries, bundles and binaries. -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.5 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by macsforever2000@…): @ajdudman: Thanks but can you also attach a unified diff of the Portfile so we can easily see the changes you made there? -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.5 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by ajdudman@…): Okay here is the unified diff of Portfile with a glob fix and replacement of the whole tar. -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.5 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by ajdudman@…): Sorry, but it needs more work. My post-destroot was too simple. Many library names are still wrong. Links are broken. Perhaps it would be best if the first portion of the version string were included in the shared library name used as id and dependent library references. Confusion happens several times between '-' and '_'. Confusion exists whether or not the 'lib' prefix is used in the name. -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.5 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by ajdudman@…): Well, I have progress to report. The Mach-O type files in this port under /opt/local/lib/python2.7/site-packages/ have .so extension and generally do not prefix with lib are bundle files. Here they are not versioned. The Mach-O type files in this port under /opt/local/lib without lib prefix and having .dylib extension are modules. Here they are not versioned. The Mach-O type files in this port under /opt/local/lib with lib prefix and having .dylib extension are regular shared libraries. These may be versioned. In that case the true file has full version string in its name and the symbolic links have reduced or no version string in their names. This is odd because it is unlike OSX system shared libraries and those from GNU libtool. There the file has a single version number and the links have more version numbers, (3), or none. Well checking another waf based port, talloc, it also is odd. Instead of fighting waf, I tried using its pattern. Surprisingly simple was the fix to the Portfile post- destroot. Okay, here are the updated files. -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.5 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Changes (by macsforever2000@…): * cc: macsforever2000@… (removed) -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.5 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by sdevilcry@…): Hi, Even reading the documentation to apply patch, I still not able to apply it and I'm sure I don't use the good way.. Someone can describe how to apply it please ? Thanks in advance :) -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.5 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by ajdudman@…): The new files are best placed in your local repository. To configure that, backup and then edit /opt/local/etc/macports/sources.conf. Follow the example at line 5. Make a new line 6, like "file:///Users/landonf/misc/MacPorts/ports" substituting your username for landonf. Save it replacing the old file. To create the local repository, create the new path, extract the archive I attached, and sync the new port repository as follows: {{{ mkdir -p ~/misc/MacPorts/ports cd ~/misc/MacPorts/ports gnutar -xzf ~/Downloads/samba4.tar.gz sudo port -d sync }}} Build and install samba4 from source verbosely. {{{ sudo port -sv install samba4 }}} -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.5 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by sdevilcry@…): Thank you ! It works ! Didn't know we could have a local repository. -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.7 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by ryandesign@…): Current version is 4.0.7. Markus, can you please update the port? -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.7 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by kaviani.amir@…): Thanks! It works for me too. Could you please update to latest Samba? Or how could it be possible to do it as you did!? Replying to [comment:9 ajdudman@…]:
The new files are best placed in your local repository. To configure that, backup and then edit /opt/local/etc/macports/sources.conf. Follow the example at line 5. Make a new line 6, like "file:///Users/landonf/misc/MacPorts/ports" substituting your username for landonf. Save it replacing the old file.
To create the local repository, create the new path, extract the archive I attached, and sync the new port repository as follows:
{{{ mkdir -p ~/misc/MacPorts/ports cd ~/misc/MacPorts/ports gnutar -xzf ~/Downloads/samba4.tar.gz sudo port -d sync }}}
Build and install samba4 from source verbosely.
{{{ sudo port -sv install samba4 }}}
-- Ticket URL: <https://trac.macports.org/ticket/38834#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.7 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by joshk.macports@…): I updated the port to 4.1.0. On Mavericks (not sure if it is needed elsewhere) I had to add an extra patch to #define MD5_CTX as CC_MD5_CTX. Hope it's useful to someone. -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.7 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by jeremyhu@…): The samba4 port is quite dated and has known vulnerabilities. Thankfully, it fails to compile, so there isn't much risk of people using it. Please update it to at least 4.0.16 or 4.1.6. -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.16 or 4.1.6 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:18> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.16 or 4.1.6 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by egall@…): Replying to [comment:17 jeremyhu@…]:
The samba4 port is quite dated and has known vulnerabilities. Thankfully, it fails to compile, so there isn't much risk of people using it. Please update it to at least 4.0.16 or 4.1.6.
Last I heard, Samba upstream was no longer supporting OS X: - https://github.com/Homebrew/homebrew/issues/17820 - https://bugzilla.samba.org/show_bug.cgi?id=9659 - http://lists.samba.org/archive/samba-technical/2012-October/087254.html Although that was over a year ago, so idk if stuff has changed in newer versions... -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:19> MacPorts <http://www.macports.org/> Ports system for OS X
#38834: samba4: Update to 4.0.16 or 4.1.6 --------------------------------+------------------- Reporter: macsforever2000@… | Owner: mww@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: samba4 | --------------------------------+------------------- Comment (by jra@…): Replying to [comment:19 egall@…]:
Replying to [comment:17 jeremyhu@…]:
The samba4 port is quite dated and has known vulnerabilities. Thankfully, it fails to compile, so there isn't much risk of people using it. Please update it to at least 4.0.16 or 4.1.6.
Last I heard, Samba upstream was no longer supporting OS X:
- http://lists.samba.org/archive/samba- technical/2012-October/087254.html
Although that was over a year ago, so idk if stuff has changed in newer versions...
That's just Volker being grumpy, don't take it seriously please. We're very happy to take patches to make the Samba 4.1.x builds work on MacOSX - please feel free to submit and I'll review ! Thanks, Jeremy Allison, Samba Team. -- Ticket URL: <https://trac.macports.org/ticket/38834#comment:21> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts