[Samba] Samba Compiled From Source, Where Are The SystemD Unit Files?

Dachshund Digital dachshund-digital at dc.rr.com
Fri Mar 26 03:38:42 UTC 2021


Louis,

I will give it a shot.  But expect a lot of questions at first! :)
I take it I can do all this on Raspberry Pi 4, with latest lite image as 
starting point, right?

-DD

On 03/24/2021 01:15, L.P.H. van Belle via samba wrote:
> Hai,
>
> just saying, Profiling is enabled in my packages since 4.13.x  ;-)
> At least if you needed this option to be enabled, it is..
>     --with-profiling-data
>
> And yes, im sadly to say, it was taking to much time to keep building
> The raspbian packages, but if you add my sources, you can recompile
> them pretty easy on raspbian. Pick the buster packages for that.
> do keep in mind you need other packages to build first before you can build
> samba.
>
> I build in this order. that makes sure all build depends are there.
>
> 01-talloc
> 02-tevent
> 03-tdb
> 04-cmocka
> 05-ldb
> 06-nss-wrapper
> 07-resolv-wrapper
> 08-uid-wrapper
> 09-socket-wrapper
> 10-pam-wrapper
> 11-samba
>
> echo "deb http://apt.van-belle.nl/debian/ buster-samba413 main contrib non-free" | sudo tee -a /etc/apt/sources.list.d/van-belle.list
> echo "deb-src http://apt.van-belle.nl/debian/ buster-samba413 main contrib non-free" | sudo tee -a /etc/apt/sources.list.d/van-belle.list
>
> # Optional, if there are newer packages that are in debian SID
> echo "deb-src http://deb.debian.org/debian sid main contrib non-free" | sudo tee -a /etc/apt/sources.list.d/van-belle.list
>
> sudo apt-get -qq update
>
> if [ ! -d 01-talloc ]
> then
>      mkdir 01-talloc 02-tevent 03-tdb 04-cmocka 05-ldb \
>      06-nss-wrapper 07-resolv-wrapper 08-uid-wrapper 09-socket-wrapper \
>      10-pam-wrapper 11-samba
> fi
> cd 01-talloc/
> apt-get source talloc
> cd ..
> cd 02-tevent/
> apt-get source tevent
> cd ..
> cd 03-tdb/
> apt-get source tdb
> cd ..
> cd 04-cmocka/
> apt-get source cmocka
> cd ..
> cd 05-ldb/
> apt-get source ldb
> cd ..
> cd 06-nss-wrapper/
> apt-get source nss-wrapper
> cd ..
> cd 07-resolv-wrapper/
> apt-get source resolv-wrapper
> cd ..
> cd 08-uid-wrapper/
> apt-get source uid-wrapper
> cd ..
> cd 09-socket-wrapper/
> apt-get source socket-wrapper
> cd ..
> cd 10-pam-wrapper/
> apt-get source pam-wrapper
> cd ..
> cd 11-samba/
> apt-get source samba
>
> cd $(ls -ltr|grep "samba" |tail -n1 |awk '{ print $NF }')
> grep ^VERSION lib/{talloc,tdb,tevent,ldb}/wscript
> cat   buildtools/wafsamba/samba_third_party.py |\
>   grep minversion | awk -F"(" '{ print $2 }'
>
> And you see all needed minimal version you must build
>
>
> Greetz,
>
> Louis
>
>
>> -----Oorspronkelijk bericht-----
>> Van: samba [mailto:samba-bounces at lists.samba.org] Namens Dachshund Digital
>> via samba
>> Verzonden: dinsdag 23 maart 2021 19:20
>> Aan: samba at lists.samba.org
>> Onderwerp: Re: [Samba] Samba Compiled From Source, Where Are The SystemD
>> Unit Files?
>>
>> And take all the fun out of it... cough.  Per the site you listed, ARMHF
>> is only up to 4.11.  But seems to reference 4.12 and 4.13 for ARM HF.
>>
>> "This server contains packages for Samba on Debian
>> <http://www.debian.org/> Jessie (8) and Debian <http://www.debian.org/>
>> Stretch (9) amd64/i386 and Buster (10) amd64/i386 (samba 4.11 only,
>> armhf) and Ubuntu <http://www.ubuntu.com/> Bionic Beaver (18.04)
>> amd64/i386."
>>
>> "Raspbian Buster: (armhf/sources)
>> Per 12-Nov 2019 in raspbian-buster-samba411 repo. armhf only, Only
>> Security update untill 4.14. is release.
>> Samba 4.11
>> <https://wiki.samba.org/index.php/Release_Planning_for_Samba_4.11> is
>> repo name : raspbian-buster-samba411, current package list : klik here
>> <https://apt.van-belle.nl/current-packages-in-raspbian-buster-samba411-
>> apt.txt>
>> Security releases only
>> Due to the time involved building Raspian packages, switch to Buster 412
>> or 4.13 and its armhf packages, these work fine on Raspbian."
>>
>> But I still need profiling, so may end up compiling anyway.  :)
>>
>> -DD
>>
>> On 03/23/2021 10:44, Rowland penny via samba wrote:
>>> On 23/03/2021 17:16, Dachshund Digital via samba wrote:
>>>> Figured that might be the case, I copied the Debian 10 unit files for
>>>> smbd and nmbd, make the applicable changes, then discovered that smbd
>>>> is is failing after compile, make, make test, make install all
>>>> successful (on Pi 4 native, not a cross compile).  So am a bit
>>>> surprised.  Environment is Raspberry Pi OS 32bit for ARMv7 HF.  Is
>>>> there any thing special that needs to be done for Pi devices when
>>>> compiling from source?  Beyond the obvious required packages before
>>>> compile? Would have expected ./configure to throw a fit if there was
>>>> something special needed specific for Pi? Unfortunately, the Debian
>>>> 10 buster variant of Raspberry Pi OS only has a Samba 4.9 version
>>>> level and even the yet to be released (as stable) Raspberry Pi OS
>>>> based on Bullseye only has 4.12 included.  So I guess the package
>>>> maintainers are a bit behind the curve given 4.14 is available as
>>>> stable.  What started be down this path was the need for profiling
>>>> support, which is not included by default in the Debian 10 packages.
>>>
>>> Easiest way out of this, go here: https://apt.van-belle.nl/
>>>
>>> Stop compiling Samba yourself ????
>>>
>>> Rowland
>>>
>>>
>>>
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba
>
>



More information about the samba mailing list