Skip to content

Commit

Permalink
Applied updates and changes for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Nov 20, 2023
1 parent 32cdb6a commit 1a6339a
Show file tree
Hide file tree
Showing 19 changed files with 84 additions and 706 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,6 @@ name: build
on: [push, pull_request]
permissions: read-all
jobs:
build_freebsd:
# FreeBSD support is provided via virtualization on MacOS 12
# See https://github.com/vmactions/freebsd-vm#under-the-hood.
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Building from source
id: build_freebsd
uses: vmactions/freebsd-vm@v0
with:
usesh: true
mem: 4096
# Note that the test scripts require bash
prepare: |
pkg install -y autoconf automake bash gettext git libtool pkgconf
run: |
tests/build.sh
tests/runtests.sh
build_ubuntu:
runs-on: ubuntu-22.04
strategy:
Expand Down Expand Up @@ -69,10 +51,6 @@ jobs:
compiler: 'gcc'
configure_options: '--enable-python'
python_version: ''
- architecture: 'x64'
compiler: 'gcc'
configure_options: '--enable-python3'
python_version: '3'
steps:
- uses: actions/checkout@v3
- name: Install build dependencies
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/build_freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Build from source on FreeBSD.
name: build_freebsd
on: [push]
permissions: read-all
jobs:
build_freebsd:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Building from source
id: build_freebsd
uses: vmactions/freebsd-vm@v1
with:
usesh: true
mem: 4096
# Note that the test scripts require bash
prepare: |
pkg install -y autoconf automake bash gettext git libtool pkgconf
run: |
tests/build.sh
tests/runtests.sh
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Files to ignore by git
#
# Version: 20230926
# Version: 20231119

# Generic auto-generated build files
*~
Expand Down Expand Up @@ -127,7 +127,6 @@ stamp-h[1-9]
/liblnk.spec
/liblnk/liblnk.rc
/liblnk/liblnk_definitions.h
/pylnk-python[23]/*.[ch]
/setup.cfg
/lnktools/*.exe
/lnktools/lnkinfo
Expand Down
2 changes: 0 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ SUBDIRS = \
liblnk \
lnktools \
pylnk \
pylnk-python2 \
pylnk-python3 \
po \
manuals \
tests \
Expand Down
7 changes: 1 addition & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,6 @@ environment:
BUILD_ENVIRONMENT: cygwin64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
CONFIGURE_OPTIONS: "--enable-python"
- TARGET: cygwin64-gcc-python3
BUILD_ENVIRONMENT: cygwin64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
CONFIGURE_OPTIONS: "--enable-python3"
PYTHON_VERSION: 3
- TARGET: cygwin64-gcc-static-executables
BUILD_ENVIRONMENT: cygwin64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
Expand All @@ -205,7 +200,7 @@ install:
- cmd: if [%BUILD_ENVIRONMENT%]==[msbuild] (
git clone https://github.com/libyal/vstools.git ..\vstools )
- sh: if test ${BUILD_ENVIRONMENT} = "python-tox" || test ${BUILD_ENVIRONMENT} = "xcode"; then brew update-reset && brew update -q; fi
- sh: if test ${BUILD_ENVIRONMENT} = "python-tox" || test ${BUILD_ENVIRONMENT} = "xcode"; then brew install -q gettext gnu-sed || true; fi
- sh: if test ${BUILD_ENVIRONMENT} = "python-tox" || test ${BUILD_ENVIRONMENT} = "xcode"; then brew install -q autoconf automake gettext gnu-sed libtool pkg-config || true; fi
- sh: if test ${BUILD_ENVIRONMENT} = "python-tox"; then brew install -q python@${PYTHON_VERSION} tox twine-pypi || true; fi
- cmd: if [%BUILD_ENVIRONMENT%]==[python] (
"%PYTHON%" -m pip install -U pip setuptools twine wheel )
Expand Down
6 changes: 2 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ([2.71])

AC_INIT(
[liblnk],
[20231030],
[20231120],
[[email protected]])

AC_CONFIG_SRCDIR(
Expand Down Expand Up @@ -119,7 +119,7 @@ dnl Check if liblnk Python bindings (pylnk) required headers and functions are a
AX_PYTHON_CHECK_ENABLE

AS_IF(
[test "x${ac_cv_enable_python}" != xno || test "x${ac_cv_enable_python2}" != xno || test "x${ac_cv_enable_python3}" != xno],
[test "x${ac_cv_enable_python}" != xno],
[dnl Headers included in pylnk/pylnk_error.c
AC_CHECK_HEADERS([stdarg.h varargs.h])
Expand Down Expand Up @@ -183,8 +183,6 @@ AC_CONFIG_FILES([libfwps/Makefile])
AC_CONFIG_FILES([libfwsi/Makefile])
AC_CONFIG_FILES([liblnk/Makefile])
AC_CONFIG_FILES([pylnk/Makefile])
AC_CONFIG_FILES([pylnk-python2/Makefile])
AC_CONFIG_FILES([pylnk-python3/Makefile])
AC_CONFIG_FILES([lnktools/Makefile])
AC_CONFIG_FILES([po/Makefile.in])
AC_CONFIG_FILES([po/Makevars])
Expand Down
2 changes: 1 addition & 1 deletion dpkg/rules
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export SKIP_PYTHON_TESTS=1

.PHONY: override_dh_auto_configure
override_dh_auto_configure:
dh_auto_configure -- --enable-python3 CFLAGS="-g"
dh_auto_configure -- --enable-python CFLAGS="-g"

.PHONY: override_dh_install
override_dh_install:
Expand Down
4 changes: 2 additions & 2 deletions liblnk.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<package >
<metadata>
<id>liblnk</id>
<version>20231030</version>
<version>20231120</version>
<authors>Joachim Metz</authors>
<owners>joachimmetz</owners>
<license type="expression">LGPL-3.0-or-later</license>
<projectUrl>https://github.com/libyal/liblnk</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<title>liblnk</title>
<description>Library to access the Windows Shortcut File (LNK) format</description>
<releaseNotes>Release of liblnk 20231030</releaseNotes>
<releaseNotes>Release of liblnk 20231120</releaseNotes>
<copyright>Copyright (C) 2009-2023</copyright>
<tags>native</tags>
</metadata>
Expand Down
4 changes: 2 additions & 2 deletions liblnk.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Header files and libraries for developing applications for liblnk.
Summary: Python 3 bindings for liblnk
Group: System Environment/Libraries
Requires: liblnk = %{version}-%{release} python3
BuildRequires: python3-devel
BuildRequires: python3-devel python3-setuptools

%description -n liblnk-python3
Python 3 bindings for liblnk
Expand All @@ -49,7 +49,7 @@ Several tools for reading Windows Shortcut Files (LNK)
%setup -q

%build
%configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} --enable-python3
%configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} --enable-python
make %{?_smp_mflags}

%install
Expand Down
6 changes: 3 additions & 3 deletions lnktools/lnktools_signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void (*lnktools_signal_signal_handler)( lnktools_signal_t ) = NULL;
/* Signal handler for Ctrl+C or Ctrl+Break signals
*/
BOOL WINAPI lnktools_signal_handler(
unsigned long signal )
lnktools_signal_t signal )
{
static char *function = "lnktools_signal_handler";

Expand Down Expand Up @@ -112,7 +112,7 @@ int lnktools_signal_attach(
lnktools_signal_signal_handler = signal_handler;

if( SetConsoleCtrlHandler(
lnktools_signal_handler,
(PHANDLER_ROUTINE) lnktools_signal_handler,
TRUE ) == 0 )
{
libcerror_error_set(
Expand Down Expand Up @@ -179,7 +179,7 @@ int lnktools_signal_detach(
static char *function = "lnktools_signal_detach";

if( SetConsoleCtrlHandler(
lnktools_signal_handler,
(PHANDLER_ROUTINE) lnktools_signal_handler,
FALSE ) == 0 )
{
libcerror_error_set(
Expand Down
Loading

0 comments on commit 1a6339a

Please sign in to comment.