[PC-BSD Pbi-dev] submit Emacs module

loader loader at freebsdmall.com
Thu Jun 25 06:44:40 PDT 2009


Kris Moore <kris at pcbsd.org> wrote:

> Thanks Loader!
>
> I put it though a quick test build here, and it only needed a few small adjustments.
>
> The kmenu-dir/emacs entry had the wrong .png location, and the PBI.SetupScript.sh
> needed to have the LAUNCHCLOSE: changed to /Programs/bin/emacs, but aside from that it
> works great!

Thank you Kris for correcting these.

> Also, you may want to use the PBIAUTOPOPULATE="YES" variable in pbi.conf
> in the future. If that is set, the builder will automatically copy over
> all files from the target port,
> which makes it a lot easier by not having to manually add so much to copy-files

Yes, that's a cool feature.

And I have silly question about copylibs.sh:

    42      # Check if we have a symlink here and copy the real file
    43      if [ -h "${FILE}" ]
    44      then
    45        REALFILE=cho ${FILE} | cut -d ">" -f 2 | sed -e "s| ||"
    46        cp ${FILE} ${COPYDIR}/${REALFILE}
    47        cp -R ${FILE} ${COPYDIR}/
    48      else
    49        cp ${FILE} ${COPYDIR}/
    50      fi

could you please give me an example, help me to understand how the symlink
part works, when I try to compile net-mgmt/vidalia, I got some messages
like this in the build.log:

Copy Lib /Programs/Tor0.2.1.16-rc/lib/qt4/libQtCore.so.4 -> /pbi//autolibs/
cp: /pbi//autolibs///Programs/Tor0.2.1.16-rc/lib/qt4/libQtCore.so.4: No
such file or directory
cp: symlink: libQtCore.so.4.4.3: File exists

And this PBI really can work, there's a copy of libQtCore.so.4 in
/PCBSD/local/lib. Then I found in the /Programs/Tor0.2.1.16-rc/lib
directory, there's a broken symlink, libQtCore.so.4.4.3 was not copied
into this directory:
lrwxr-xr-x  1 root  wheel    18B Jun 25 18:14 libQtCore.so.4 -> libQtCore.so.4.4.3

Then I think maybe we can copy the real file to the PBI lib/
I tried to replace the line 45-47 with:

    REALPATH=`realpath ${FILE}`
    cp ${REALPATH} ${COPYDIR}/`basename ${FILE}`

Thank you.

Regards,
loader


More information about the Pbi-dev mailing list